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 BOOTCYCLE_JVM_ARGS_BIG
 648 JAVA_FLAGS_BIG
 649 JAVA_FLAGS
 650 TEST_JOBS
 651 JOBS
 652 MEMORY_SIZE
 653 NUM_CORES
 654 ENABLE_GENERATE_CLASSLIST
 655 BUILD_FAILURE_HANDLER
 656 ENABLE_INTREE_EC
 657 VALID_JVM_FEATURES
 658 JVM_FEATURES_custom
 659 JVM_FEATURES_zeroshark
 660 JVM_FEATURES_zero
 661 JVM_FEATURES_minimal
 662 JVM_FEATURES_core
 663 JVM_FEATURES_client
 664 JVM_FEATURES_server
 665 ELF_LIBS
 666 ELF_CFLAGS
 667 STLPORT_LIB
 668 LIBZIP_CAN_USE_MMAP
 669 LIBDL
 670 LIBM
 671 USE_EXTERNAL_LCMS
 672 LCMS_LIBS
 673 LCMS_CFLAGS
 674 USE_EXTERNAL_LIBZ
 675 USE_EXTERNAL_LIBPNG
 676 PNG_LIBS
 677 PNG_CFLAGS
 678 USE_EXTERNAL_LIBGIF
 679 USE_EXTERNAL_LIBJPEG
 680 LLVM_LIBS
 681 LLVM_LDFLAGS
 682 LLVM_CFLAGS
 683 LLVM_CONFIG
 684 LIBFFI_LIBS
 685 LIBFFI_CFLAGS
 686 ALSA_LIBS
 687 ALSA_CFLAGS
 688 FREETYPE_BUNDLE_LIB_PATH
 689 FREETYPE_LIBS
 690 FREETYPE_CFLAGS
 691 CUPS_CFLAGS
 692 X_EXTRA_LIBS
 693 X_LIBS
 694 X_PRE_LIBS
 695 X_CFLAGS
 696 XMKMF
 697 MSVCP_DLL
 698 MSVCR_DLL
 699 LIBCXX
 700 FIXPATH_DETACH_FLAG
 701 FIXPATH
 702 BUILD_GTEST
 703 ENABLE_AOT
 704 INCLUDE_DTRACE
 705 GCOV_ENABLED
 706 STRIP_POLICY
 707 DEBUG_BINARIES
 708 ZIP_EXTERNAL_DEBUG_SYMBOLS
 709 COPY_DEBUG_SYMBOLS
 710 COMPILE_WITH_DEBUG_SYMBOLS
 711 CFLAGS_WARNINGS_ARE_ERRORS
 712 BUILD_CC_DISABLE_WARNING_PREFIX
 713 DISABLE_WARNING_PREFIX
 714 HOTSPOT_SET_WARNINGS_AS_ERRORS
 715 WARNINGS_AS_ERRORS
 716 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 717 ZERO_ARCHFLAG
 718 LDFLAGS_TESTEXE
 719 LDFLAGS_TESTLIB
 720 CXXFLAGS_TESTEXE
 721 CXXFLAGS_TESTLIB
 722 CFLAGS_TESTEXE
 723 CFLAGS_TESTLIB
 724 OPENJDK_BUILD_JVM_LIBS
 725 OPENJDK_BUILD_JVM_ASFLAGS
 726 OPENJDK_BUILD_JVM_LDFLAGS
 727 OPENJDK_BUILD_JVM_CFLAGS
 728 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 729 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 730 OPENJDK_BUILD_JDKEXE_LIBS
 731 OPENJDK_BUILD_JDKLIB_LIBS
 732 OPENJDK_BUILD_LDFLAGS_JDKEXE
 733 OPENJDK_BUILD_LDFLAGS_JDKLIB
 734 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 735 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 736 OPENJDK_BUILD_CFLAGS_JDKEXE
 737 OPENJDK_BUILD_CFLAGS_JDKLIB
 738 OPENJDK_BUILD_CXXSTD_CXXFLAG
 739 JVM_LIBS
 740 JVM_ASFLAGS
 741 JVM_LDFLAGS
 742 JVM_CFLAGS
 743 LDFLAGS_HASH_STYLE
 744 LDFLAGS_CXX_JDK
 745 JDKEXE_LIBS
 746 JDKLIB_LIBS
 747 LDFLAGS_JDKEXE
 748 LDFLAGS_JDKLIB
 749 CXXFLAGS_JDKEXE
 750 CXXFLAGS_JDKLIB
 751 CFLAGS_JDKEXE
 752 CFLAGS_JDKLIB
 753 MACOSX_VERSION_MIN
 754 CXXSTD_CXXFLAG
 755 CXX_O_FLAG_SIZE
 756 CXX_O_FLAG_NONE
 757 CXX_O_FLAG_DEBUG
 758 CXX_O_FLAG_NORM
 759 CXX_O_FLAG_HI
 760 CXX_O_FLAG_HIGHEST
 761 CXX_O_FLAG_HIGHEST_JVM
 762 C_O_FLAG_SIZE
 763 C_O_FLAG_NONE
 764 C_O_FLAG_DEBUG
 765 C_O_FLAG_NORM
 766 C_O_FLAG_HI
 767 C_O_FLAG_HIGHEST
 768 C_O_FLAG_HIGHEST_JVM
 769 JVM_CFLAGS_SYMBOLS
 770 CXXFLAGS_DEBUG_SYMBOLS
 771 CFLAGS_DEBUG_SYMBOLS
 772 CXX_FLAG_DEPS
 773 C_FLAG_DEPS
 774 SHARED_LIBRARY_FLAGS
 775 SET_SHARED_LIBRARY_MAPFILE
 776 SET_SHARED_LIBRARY_NAME
 777 SET_SHARED_LIBRARY_ORIGIN
 778 SET_EXECUTABLE_ORIGIN
 779 CXX_FLAG_REORDER
 780 C_FLAG_REORDER
 781 JVM_RCFLAGS
 782 RC_FLAGS
 783 AR_OUT_OPTION
 784 LD_OUT_OPTION
 785 EXE_OUT_OPTION
 786 CC_OUT_OPTION
 787 STRIPFLAGS
 788 ARFLAGS
 789 COMPILER_BINDCMD_FILE_FLAG
 790 COMPILER_COMMAND_FILE_FLAG
 791 COMPILER_TARGET_BITS_FLAG
 792 JT_HOME
 793 JTREGEXE
 794 HOTSPOT_TOOLCHAIN_TYPE
 795 USING_BROKEN_SUSE_LD
 796 PACKAGE_PATH
 797 USE_CLANG
 798 HOTSPOT_LD
 799 HOTSPOT_CXX
 800 HOTSPOT_RC
 801 HOTSPOT_MT
 802 BUILD_AS
 803 BUILD_LDCXX
 804 BUILD_LD
 805 BUILD_STRIP
 806 BUILD_OBJCOPY
 807 BUILD_AR
 808 BUILD_NM
 809 BUILD_CXX
 810 BUILD_CC
 811 BUILD_SYSROOT_LDFLAGS
 812 BUILD_SYSROOT_CFLAGS
 813 ac_ct_OBJDUMP
 814 OBJDUMP
 815 ac_ct_OBJCOPY
 816 OBJCOPY
 817 ac_ct_NM
 818 ac_ct_STRIP
 819 GNM
 820 NM
 821 STRIP
 822 MSBUILD
 823 DUMPBIN
 824 RC
 825 MT
 826 LIPO
 827 ac_ct_AR
 828 AR
 829 AS
 830 LDCXX
 831 LD
 832 CXXCPP
 833 CPP
 834 CXX_VERSION_NUMBER
 835 CC_VERSION_NUMBER
 836 ac_ct_CXX
 837 CXXFLAGS
 838 CXX
 839 TOOLCHAIN_PATH_CXX
 840 POTENTIAL_CXX
 841 OBJEXT
 842 EXEEXT
 843 ac_ct_CC
 844 CPPFLAGS
 845 LDFLAGS
 846 CFLAGS
 847 CC
 848 TOOLCHAIN_PATH_CC
 849 POTENTIAL_CC
 850 TOOLCHAIN_VERSION
 851 VS_LIB
 852 VS_INCLUDE
 853 VS_PATH
 854 CYGWIN_LINK
 855 SYSROOT_LDFLAGS
 856 SYSROOT_CFLAGS
 857 EXTRA_LDFLAGS
 858 EXTRA_CXXFLAGS
 859 EXTRA_CFLAGS
 860 LEGACY_EXTRA_LDFLAGS
 861 LEGACY_EXTRA_CXXFLAGS
 862 LEGACY_EXTRA_CFLAGS
 863 EXE_SUFFIX
 864 OBJ_SUFFIX
 865 STATIC_LIBRARY
 866 SHARED_LIBRARY
 867 STATIC_LIBRARY_SUFFIX
 868 SHARED_LIBRARY_SUFFIX
 869 LIBRARY_PREFIX
 870 TOOLCHAIN_TYPE
 871 STATIC_BUILD
 872 IMPORT_MODULES_MAKE
 873 IMPORT_MODULES_SRC
 874 IMPORT_MODULES_CONF
 875 IMPORT_MODULES_LIBS
 876 IMPORT_MODULES_CMDS
 877 IMPORT_MODULES_CLASSES
 878 BUILD_HOTSPOT
 879 HOTSPOT_DIST
 880 BUILD_OUTPUT
 881 JDK_TOPDIR
 882 NASHORN_TOPDIR
 883 HOTSPOT_TOPDIR
 884 JAXWS_TOPDIR
 885 JAXP_TOPDIR
 886 CORBA_TOPDIR
 887 LANGTOOLS_TOPDIR
 888 EXTERNAL_BUILDJDK
 889 BUILD_JDK
 890 CREATE_BUILDJDK
 891 JLINK
 892 JMOD
 893 BOOT_JDK_BITS
 894 JAVAC_FLAGS
 895 BOOT_JDK_MODULAR
 896 BOOT_JDK_SOURCETARGET
 897 JARSIGNER
 898 JAR
 899 JAVAH
 900 JAVAC
 901 JAVA
 902 BOOT_JDK
 903 JAVA_CHECK
 904 JAVAC_CHECK
 905 VERSION_IS_GA
 906 VERSION_SHORT
 907 VERSION_STRING
 908 VERSION_NUMBER_FOUR_POSITIONS
 909 VERSION_NUMBER
 910 VERSION_OPT
 911 VERSION_BUILD
 912 VERSION_PRE
 913 VERSION_PATCH
 914 VERSION_SECURITY
 915 VERSION_MINOR
 916 VERSION_MAJOR
 917 MACOSX_BUNDLE_ID_BASE
 918 MACOSX_BUNDLE_NAME_BASE
 919 HOTSPOT_VM_DISTRO
 920 COMPANY_NAME
 921 JDK_RC_PLATFORM_NAME
 922 PRODUCT_SUFFIX
 923 PRODUCT_NAME
 924 LAUNCHER_NAME
 925 JLINK_KEEP_PACKAGED_MODULES
 926 COPYRIGHT_YEAR
 927 COMPRESS_JARS
 928 INCLUDE_SA
 929 UNLIMITED_CRYPTO
 930 CACERTS_FILE
 931 ENABLE_HEADLESS_ONLY
 932 DEFAULT_MAKE_TARGET
 933 OS_VERSION_MICRO
 934 OS_VERSION_MINOR
 935 OS_VERSION_MAJOR
 936 PKG_CONFIG
 937 BASH_ARGS
 938 SETFILE
 939 CODESIGN
 940 XATTR
 941 DSYMUTIL
 942 IS_GNU_TIME
 943 PATCH
 944 DTRACE
 945 TIME
 946 STAT
 947 HG
 948 READELF
 949 OTOOL
 950 LDD
 951 ZIP
 952 UNZIP
 953 TAR_SUPPORTS_TRANSFORM
 954 TAR_INCLUDE_PARAM
 955 TAR_CREATE_EXTRA_PARAM
 956 TAR_TYPE
 957 FIND_DELETE
 958 OUTPUT_SYNC
 959 OUTPUT_SYNC_SUPPORTED
 960 CHECK_TOOLSDIR_MAKE
 961 CHECK_TOOLSDIR_GMAKE
 962 CHECK_MAKE
 963 CHECK_GMAKE
 964 MAKE
 965 PKGHANDLER
 966 CONFIGURESUPPORT_OUTPUTDIR
 967 OUTPUT_ROOT
 968 CONF_NAME
 969 SPEC
 970 SDKROOT
 971 XCODEBUILD
 972 VALID_JVM_VARIANTS
 973 JVM_VARIANTS
 974 DEBUG_LEVEL
 975 HOTSPOT_DEBUG_LEVEL
 976 JDK_VARIANT
 977 USERNAME
 978 CANONICAL_TOPDIR
 979 ORIGINAL_TOPDIR
 980 TOPDIR
 981 PATH_SEP
 982 ZERO_ARCHDEF
 983 HOTSPOT_BUILD_CPU_DEFINE
 984 HOTSPOT_BUILD_CPU_ARCH
 985 HOTSPOT_BUILD_CPU
 986 HOTSPOT_BUILD_OS_TYPE
 987 HOTSPOT_BUILD_OS
 988 OPENJDK_BUILD_BUNDLE_PLATFORM
 989 OPENJDK_BUILD_CPU_BUNDLE
 990 OPENJDK_BUILD_OS_BUNDLE
 991 OPENJDK_BUILD_OS_EXPORT_DIR
 992 OPENJDK_BUILD_CPU_JLI_CFLAGS
 993 OPENJDK_BUILD_CPU_OSARCH
 994 OPENJDK_BUILD_CPU_ISADIR
 995 OPENJDK_BUILD_CPU_LIBDIR
 996 OPENJDK_BUILD_CPU_LEGACY_LIB
 997 OPENJDK_BUILD_CPU_LEGACY
 998 HOTSPOT_TARGET_CPU_DEFINE
 999 HOTSPOT_TARGET_CPU_ARCH
1000 HOTSPOT_TARGET_CPU
1001 HOTSPOT_TARGET_OS_TYPE
1002 HOTSPOT_TARGET_OS
1003 DEFINE_CROSS_COMPILE_ARCH
1004 LP64
1005 OPENJDK_TARGET_BUNDLE_PLATFORM
1006 OPENJDK_TARGET_CPU_BUNDLE
1007 OPENJDK_TARGET_OS_BUNDLE
1008 OPENJDK_TARGET_OS_EXPORT_DIR
1009 OPENJDK_TARGET_CPU_JLI_CFLAGS
1010 OPENJDK_TARGET_CPU_OSARCH
1011 OPENJDK_TARGET_CPU_ISADIR
1012 OPENJDK_TARGET_CPU_LIBDIR
1013 OPENJDK_TARGET_CPU_LEGACY_LIB
1014 OPENJDK_TARGET_CPU_LEGACY
1015 REQUIRED_OS_VERSION
1016 REQUIRED_OS_NAME
1017 COMPILE_TYPE
1018 OPENJDK_TARGET_CPU_ENDIAN
1019 OPENJDK_TARGET_CPU_BITS
1020 OPENJDK_TARGET_CPU_ARCH
1021 OPENJDK_TARGET_CPU
1022 OPENJDK_TARGET_OS_ENV
1023 OPENJDK_TARGET_OS_TYPE
1024 OPENJDK_TARGET_OS
1025 OPENJDK_BUILD_CPU_ENDIAN
1026 OPENJDK_BUILD_CPU_BITS
1027 OPENJDK_BUILD_CPU_ARCH
1028 OPENJDK_BUILD_CPU
1029 OPENJDK_BUILD_OS_ENV
1030 OPENJDK_BUILD_OS_TYPE
1031 OPENJDK_BUILD_OS
1032 OPENJDK_BUILD_AUTOCONF_NAME
1033 OPENJDK_TARGET_AUTOCONF_NAME
1034 target_os
1035 target_vendor
1036 target_cpu
1037 target
1038 host_os
1039 host_vendor
1040 host_cpu
1041 host
1042 build_os
1043 build_vendor
1044 build_cpu
1045 build
1046 NICE
1047 CPIO
1048 DF
1049 READLINK
1050 CYGPATH
1051 SED
1052 FGREP
1053 EGREP
1054 GREP
1055 AWK
1056 XARGS
1057 WHICH
1058 WC
1059 UNIQ
1060 UNAME
1061 TR
1062 TOUCH
1063 TEE
1064 TAR
1065 TAIL
1066 SORT
1067 SH
1068 RMDIR
1069 RM
1070 PRINTF
1071 NAWK
1072 MV
1073 MKTEMP
1074 MKDIR
1075 LS
1076 LN
1077 GZIP
1078 GUNZIP
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_headless_only
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 enable_aot
1202 enable_hotspot_gtest
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 with_libelf
1229 with_libelf_include
1230 with_libelf_lib
1231 with_jvm_features
1232 with_jvm_interpreter
1233 enable_jtreg_failure_handler
1234 enable_generate_classlist
1235 with_num_cores
1236 with_memory_size
1237 with_jobs
1238 with_test_jobs
1239 with_boot_jdk_jvmargs
1240 with_sjavac_server_java
1241 enable_sjavac
1242 enable_javac_server
1243 enable_icecc
1244 enable_precompiled_headers
1245 enable_ccache
1246 with_ccache_dir
1247 '
1248       ac_precious_vars='build_alias
1249 host_alias
1250 target_alias
1251 BASENAME
1252 BASH
1253 CAT
1254 CHMOD
1255 CMP
1256 COMM
1257 CP
1258 CUT
1259 DATE
1260 DIFF
1261 DIRNAME
1262 ECHO
1263 EXPR
1264 FILE
1265 FIND
1266 HEAD
1267 GUNZIP
1268 GZIP
1269 LN
1270 LS
1271 MKDIR
1272 MKTEMP
1273 MV
1274 NAWK
1275 PRINTF
1276 RM
1277 RMDIR
1278 SH
1279 SORT
1280 TAIL
1281 TAR
1282 TEE
1283 TOUCH
1284 TR
1285 UNAME
1286 UNIQ
1287 WC
1288 WHICH
1289 XARGS
1290 AWK
1291 GREP
1292 EGREP
1293 FGREP
1294 SED
1295 CYGPATH
1296 READLINK
1297 DF
1298 CPIO
1299 NICE
1300 MAKE
1301 UNZIP
1302 ZIP
1303 LDD
1304 OTOOL
1305 READELF
1306 HG
1307 STAT
1308 TIME
1309 DTRACE
1310 PATCH
1311 DSYMUTIL
1312 XATTR
1313 CODESIGN
1314 SETFILE
1315 PKG_CONFIG
1316 JAVA
1317 JAVAC
1318 JAVAH
1319 JAR
1320 JARSIGNER
1321 CC
1322 CFLAGS
1323 LDFLAGS
1324 LIBS
1325 CPPFLAGS
1326 CXX
1327 CXXFLAGS
1328 CCC
1329 CPP
1330 CXXCPP
1331 AS
1332 AR
1333 LIPO
1334 STRIP
1335 NM
1336 GNM
1337 OBJCOPY
1338 OBJDUMP
1339 BUILD_CC
1340 BUILD_CXX
1341 BUILD_NM
1342 BUILD_AR
1343 BUILD_OBJCOPY
1344 BUILD_STRIP
1345 JTREGEXE
1346 XMKMF
1347 FREETYPE_CFLAGS
1348 FREETYPE_LIBS
1349 ALSA_CFLAGS
1350 ALSA_LIBS
1351 LIBFFI_CFLAGS
1352 LIBFFI_LIBS
1353 PNG_CFLAGS
1354 PNG_LIBS
1355 LCMS_CFLAGS
1356 LCMS_LIBS
1357 ELF_CFLAGS
1358 ELF_LIBS
1359 ICECC_CMD
1360 ICECC_CREATE_ENV
1361 ICECC_WRAPPER
1362 CCACHE'
1363 
1364 
1365 # Initialize some variables set by options.
1366 ac_init_help=
1367 ac_init_version=false
1368 ac_unrecognized_opts=
1369 ac_unrecognized_sep=
1370 # The variables have the same names as the options, with
1371 # dashes changed to underlines.
1372 cache_file=/dev/null
1373 exec_prefix=NONE
1374 no_create=
1375 no_recursion=
1376 prefix=NONE
1377 program_prefix=NONE
1378 program_suffix=NONE
1379 program_transform_name=s,x,x,
1380 silent=
1381 site=
1382 srcdir=
1383 verbose=
1384 x_includes=NONE
1385 x_libraries=NONE
1386 
1387 # Installation directory options.
1388 # These are left unexpanded so users can "make install exec_prefix=/foo"
1389 # and all the variables that are supposed to be based on exec_prefix
1390 # by default will actually change.
1391 # Use braces instead of parens because sh, perl, etc. also accept them.
1392 # (The list follows the same order as the GNU Coding Standards.)
1393 bindir='${exec_prefix}/bin'
1394 sbindir='${exec_prefix}/sbin'
1395 libexecdir='${exec_prefix}/libexec'
1396 datarootdir='${prefix}/share'
1397 datadir='${datarootdir}'
1398 sysconfdir='${prefix}/etc'
1399 sharedstatedir='${prefix}/com'
1400 localstatedir='${prefix}/var'
1401 includedir='${prefix}/include'
1402 oldincludedir='/usr/include'
1403 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1404 infodir='${datarootdir}/info'
1405 htmldir='${docdir}'
1406 dvidir='${docdir}'
1407 pdfdir='${docdir}'
1408 psdir='${docdir}'
1409 libdir='${exec_prefix}/lib'
1410 localedir='${datarootdir}/locale'
1411 mandir='${datarootdir}/man'
1412 
1413 ac_prev=
1414 ac_dashdash=
1415 for ac_option
1416 do
1417   # If the previous option needs an argument, assign it.
1418   if test -n "$ac_prev"; then
1419     eval $ac_prev=\$ac_option
1420     ac_prev=
1421     continue
1422   fi
1423 
1424   case $ac_option in
1425   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1426   *=)   ac_optarg= ;;
1427   *)    ac_optarg=yes ;;
1428   esac
1429 
1430   # Accept the important Cygnus configure options, so we can diagnose typos.
1431 
1432   case $ac_dashdash$ac_option in
1433   --)
1434     ac_dashdash=yes ;;
1435 
1436   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1437     ac_prev=bindir ;;
1438   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1439     bindir=$ac_optarg ;;
1440 
1441   -build | --build | --buil | --bui | --bu)
1442     ac_prev=build_alias ;;
1443   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1444     build_alias=$ac_optarg ;;
1445 
1446   -cache-file | --cache-file | --cache-fil | --cache-fi \
1447   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1448     ac_prev=cache_file ;;
1449   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1450   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1451     cache_file=$ac_optarg ;;
1452 
1453   --config-cache | -C)
1454     cache_file=config.cache ;;
1455 
1456   -datadir | --datadir | --datadi | --datad)
1457     ac_prev=datadir ;;
1458   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1459     datadir=$ac_optarg ;;
1460 
1461   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1462   | --dataroo | --dataro | --datar)
1463     ac_prev=datarootdir ;;
1464   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1465   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1466     datarootdir=$ac_optarg ;;
1467 
1468   -disable-* | --disable-*)
1469     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1470     # Reject names that are not valid shell variable names.
1471     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1472       as_fn_error $? "invalid feature name: $ac_useropt"
1473     ac_useropt_orig=$ac_useropt
1474     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1475     case $ac_user_opts in
1476       *"
1477 "enable_$ac_useropt"
1478 "*) ;;
1479       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1480          ac_unrecognized_sep=', ';;
1481     esac
1482     eval enable_$ac_useropt=no ;;
1483 
1484   -docdir | --docdir | --docdi | --doc | --do)
1485     ac_prev=docdir ;;
1486   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1487     docdir=$ac_optarg ;;
1488 
1489   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1490     ac_prev=dvidir ;;
1491   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1492     dvidir=$ac_optarg ;;
1493 
1494   -enable-* | --enable-*)
1495     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1496     # Reject names that are not valid shell variable names.
1497     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1498       as_fn_error $? "invalid feature name: $ac_useropt"
1499     ac_useropt_orig=$ac_useropt
1500     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1501     case $ac_user_opts in
1502       *"
1503 "enable_$ac_useropt"
1504 "*) ;;
1505       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1506          ac_unrecognized_sep=', ';;
1507     esac
1508     eval enable_$ac_useropt=\$ac_optarg ;;
1509 
1510   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1511   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1512   | --exec | --exe | --ex)
1513     ac_prev=exec_prefix ;;
1514   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1515   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1516   | --exec=* | --exe=* | --ex=*)
1517     exec_prefix=$ac_optarg ;;
1518 
1519   -gas | --gas | --ga | --g)
1520     # Obsolete; use --with-gas.
1521     with_gas=yes ;;
1522 
1523   -help | --help | --hel | --he | -h)
1524     ac_init_help=long ;;
1525   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1526     ac_init_help=recursive ;;
1527   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1528     ac_init_help=short ;;
1529 
1530   -host | --host | --hos | --ho)
1531     ac_prev=host_alias ;;
1532   -host=* | --host=* | --hos=* | --ho=*)
1533     host_alias=$ac_optarg ;;
1534 
1535   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1536     ac_prev=htmldir ;;
1537   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1538   | --ht=*)
1539     htmldir=$ac_optarg ;;
1540 
1541   -includedir | --includedir | --includedi | --included | --include \
1542   | --includ | --inclu | --incl | --inc)
1543     ac_prev=includedir ;;
1544   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1545   | --includ=* | --inclu=* | --incl=* | --inc=*)
1546     includedir=$ac_optarg ;;
1547 
1548   -infodir | --infodir | --infodi | --infod | --info | --inf)
1549     ac_prev=infodir ;;
1550   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1551     infodir=$ac_optarg ;;
1552 
1553   -libdir | --libdir | --libdi | --libd)
1554     ac_prev=libdir ;;
1555   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1556     libdir=$ac_optarg ;;
1557 
1558   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1559   | --libexe | --libex | --libe)
1560     ac_prev=libexecdir ;;
1561   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1562   | --libexe=* | --libex=* | --libe=*)
1563     libexecdir=$ac_optarg ;;
1564 
1565   -localedir | --localedir | --localedi | --localed | --locale)
1566     ac_prev=localedir ;;
1567   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1568     localedir=$ac_optarg ;;
1569 
1570   -localstatedir | --localstatedir | --localstatedi | --localstated \
1571   | --localstate | --localstat | --localsta | --localst | --locals)
1572     ac_prev=localstatedir ;;
1573   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1574   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1575     localstatedir=$ac_optarg ;;
1576 
1577   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1578     ac_prev=mandir ;;
1579   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1580     mandir=$ac_optarg ;;
1581 
1582   -nfp | --nfp | --nf)
1583     # Obsolete; use --without-fp.
1584     with_fp=no ;;
1585 
1586   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1587   | --no-cr | --no-c | -n)
1588     no_create=yes ;;
1589 
1590   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1591   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1592     no_recursion=yes ;;
1593 
1594   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1595   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1596   | --oldin | --oldi | --old | --ol | --o)
1597     ac_prev=oldincludedir ;;
1598   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1599   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1600   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1601     oldincludedir=$ac_optarg ;;
1602 
1603   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1604     ac_prev=prefix ;;
1605   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1606     prefix=$ac_optarg ;;
1607 
1608   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1609   | --program-pre | --program-pr | --program-p)
1610     ac_prev=program_prefix ;;
1611   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1612   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1613     program_prefix=$ac_optarg ;;
1614 
1615   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1616   | --program-suf | --program-su | --program-s)
1617     ac_prev=program_suffix ;;
1618   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1619   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1620     program_suffix=$ac_optarg ;;
1621 
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     ac_prev=program_transform_name ;;
1630   -program-transform-name=* | --program-transform-name=* \
1631   | --program-transform-nam=* | --program-transform-na=* \
1632   | --program-transform-n=* | --program-transform-=* \
1633   | --program-transform=* | --program-transfor=* \
1634   | --program-transfo=* | --program-transf=* \
1635   | --program-trans=* | --program-tran=* \
1636   | --progr-tra=* | --program-tr=* | --program-t=*)
1637     program_transform_name=$ac_optarg ;;
1638 
1639   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1640     ac_prev=pdfdir ;;
1641   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1642     pdfdir=$ac_optarg ;;
1643 
1644   -psdir | --psdir | --psdi | --psd | --ps)
1645     ac_prev=psdir ;;
1646   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1647     psdir=$ac_optarg ;;
1648 
1649   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1650   | -silent | --silent | --silen | --sile | --sil)
1651     silent=yes ;;
1652 
1653   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1654     ac_prev=sbindir ;;
1655   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1656   | --sbi=* | --sb=*)
1657     sbindir=$ac_optarg ;;
1658 
1659   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1660   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1661   | --sharedst | --shareds | --shared | --share | --shar \
1662   | --sha | --sh)
1663     ac_prev=sharedstatedir ;;
1664   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1665   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1666   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1667   | --sha=* | --sh=*)
1668     sharedstatedir=$ac_optarg ;;
1669 
1670   -site | --site | --sit)
1671     ac_prev=site ;;
1672   -site=* | --site=* | --sit=*)
1673     site=$ac_optarg ;;
1674 
1675   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1676     ac_prev=srcdir ;;
1677   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1678     srcdir=$ac_optarg ;;
1679 
1680   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1681   | --syscon | --sysco | --sysc | --sys | --sy)
1682     ac_prev=sysconfdir ;;
1683   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1684   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1685     sysconfdir=$ac_optarg ;;
1686 
1687   -target | --target | --targe | --targ | --tar | --ta | --t)
1688     ac_prev=target_alias ;;
1689   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1690     target_alias=$ac_optarg ;;
1691 
1692   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1693     verbose=yes ;;
1694 
1695   -version | --version | --versio | --versi | --vers | -V)
1696     ac_init_version=: ;;
1697 
1698   -with-* | --with-*)
1699     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1700     # Reject names that are not valid shell variable names.
1701     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1702       as_fn_error $? "invalid package name: $ac_useropt"
1703     ac_useropt_orig=$ac_useropt
1704     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1705     case $ac_user_opts in
1706       *"
1707 "with_$ac_useropt"
1708 "*) ;;
1709       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1710          ac_unrecognized_sep=', ';;
1711     esac
1712     eval with_$ac_useropt=\$ac_optarg ;;
1713 
1714   -without-* | --without-*)
1715     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1716     # Reject names that are not valid shell variable names.
1717     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1718       as_fn_error $? "invalid package name: $ac_useropt"
1719     ac_useropt_orig=$ac_useropt
1720     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1721     case $ac_user_opts in
1722       *"
1723 "with_$ac_useropt"
1724 "*) ;;
1725       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1726          ac_unrecognized_sep=', ';;
1727     esac
1728     eval with_$ac_useropt=no ;;
1729 
1730   --x)
1731     # Obsolete; use --with-x.
1732     with_x=yes ;;
1733 
1734   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1735   | --x-incl | --x-inc | --x-in | --x-i)
1736     ac_prev=x_includes ;;
1737   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1738   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1739     x_includes=$ac_optarg ;;
1740 
1741   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1742   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1743     ac_prev=x_libraries ;;
1744   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1745   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1746     x_libraries=$ac_optarg ;;
1747 
1748   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1749 Try \`$0 --help' for more information"
1750     ;;
1751 
1752   *=*)
1753     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1754     # Reject names that are not valid shell variable names.
1755     case $ac_envvar in #(
1756       '' | [0-9]* | *[!_$as_cr_alnum]* )
1757       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1758     esac
1759     eval $ac_envvar=\$ac_optarg
1760     export $ac_envvar ;;
1761 
1762   *)
1763     # FIXME: should be removed in autoconf 3.0.
1764     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1765     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1766       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1767     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1768     ;;
1769 
1770   esac
1771 done
1772 
1773 if test -n "$ac_prev"; then
1774   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1775   as_fn_error $? "missing argument to $ac_option"
1776 fi
1777 
1778 if test -n "$ac_unrecognized_opts"; then
1779   case $enable_option_checking in
1780     no) ;;
1781     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1782     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1783   esac
1784 fi
1785 
1786 # Check all directory arguments for consistency.
1787 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1788                 datadir sysconfdir sharedstatedir localstatedir includedir \
1789                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1790                 libdir localedir mandir
1791 do
1792   eval ac_val=\$$ac_var
1793   # Remove trailing slashes.
1794   case $ac_val in
1795     */ )
1796       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1797       eval $ac_var=\$ac_val;;
1798   esac
1799   # Be sure to have absolute directory names.
1800   case $ac_val in
1801     [\\/$]* | ?:[\\/]* )  continue;;
1802     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1803   esac
1804   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1805 done
1806 
1807 # There might be people who depend on the old broken behavior: `$host'
1808 # used to hold the argument of --host etc.
1809 # FIXME: To remove some day.
1810 build=$build_alias
1811 host=$host_alias
1812 target=$target_alias
1813 
1814 # FIXME: To remove some day.
1815 if test "x$host_alias" != x; then
1816   if test "x$build_alias" = x; then
1817     cross_compiling=maybe
1818   elif test "x$build_alias" != "x$host_alias"; then
1819     cross_compiling=yes
1820   fi
1821 fi
1822 
1823 ac_tool_prefix=
1824 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1825 
1826 test "$silent" = yes && exec 6>/dev/null
1827 
1828 
1829 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1830 ac_ls_di=`ls -di .` &&
1831 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1832   as_fn_error $? "working directory cannot be determined"
1833 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1834   as_fn_error $? "pwd does not report name of working directory"
1835 
1836 
1837 # Find the source files, if location was not specified.
1838 if test -z "$srcdir"; then
1839   ac_srcdir_defaulted=yes
1840   # Try the directory containing this script, then the parent directory.
1841   ac_confdir=`$as_dirname -- "$as_myself" ||
1842 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1843          X"$as_myself" : 'X\(//\)[^/]' \| \
1844          X"$as_myself" : 'X\(//\)$' \| \
1845          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1846 $as_echo X"$as_myself" |
1847     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1848             s//\1/
1849             q
1850           }
1851           /^X\(\/\/\)[^/].*/{
1852             s//\1/
1853             q
1854           }
1855           /^X\(\/\/\)$/{
1856             s//\1/
1857             q
1858           }
1859           /^X\(\/\).*/{
1860             s//\1/
1861             q
1862           }
1863           s/.*/./; q'`
1864   srcdir=$ac_confdir
1865   if test ! -r "$srcdir/$ac_unique_file"; then
1866     srcdir=..
1867   fi
1868 else
1869   ac_srcdir_defaulted=no
1870 fi
1871 if test ! -r "$srcdir/$ac_unique_file"; then
1872   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1873   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1874 fi
1875 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1876 ac_abs_confdir=`(
1877         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1878         pwd)`
1879 # When building in place, set srcdir=.
1880 if test "$ac_abs_confdir" = "$ac_pwd"; then
1881   srcdir=.
1882 fi
1883 # Remove unnecessary trailing slashes from srcdir.
1884 # Double slashes in file names in object file debugging info
1885 # mess up M-x gdb in Emacs.
1886 case $srcdir in
1887 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1888 esac
1889 for ac_var in $ac_precious_vars; do
1890   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1891   eval ac_env_${ac_var}_value=\$${ac_var}
1892   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1893   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1894 done
1895 
1896 #
1897 # Report the --help message.
1898 #
1899 if test "$ac_init_help" = "long"; then
1900   # Omit some internal or obsolete options to make the list less imposing.
1901   # This message is too long to be a string in the A/UX 3.1 sh.
1902   cat <<_ACEOF
1903 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1904 
1905 Usage: $0 [OPTION]... [VAR=VALUE]...
1906 
1907 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1908 VAR=VALUE.  See below for descriptions of some of the useful variables.
1909 
1910 Defaults for the options are specified in brackets.
1911 
1912 Configuration:
1913   -h, --help              display this help and exit
1914       --help=short        display options specific to this package
1915       --help=recursive    display the short help of all the included packages
1916   -V, --version           display version information and exit
1917   -q, --quiet, --silent   do not print \`checking ...' messages
1918       --cache-file=FILE   cache test results in FILE [disabled]
1919   -C, --config-cache      alias for \`--cache-file=config.cache'
1920   -n, --no-create         do not create output files
1921       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1922 
1923 Installation directories:
1924   --prefix=PREFIX         install architecture-independent files in PREFIX
1925                           [$ac_default_prefix]
1926   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1927                           [PREFIX]
1928 
1929 By default, \`make install' will install all the files in
1930 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1931 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1932 for instance \`--prefix=\$HOME'.
1933 
1934 For better control, use the options below.
1935 
1936 Fine tuning of the installation directories:
1937   --bindir=DIR            user executables [EPREFIX/bin]
1938   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1939   --libexecdir=DIR        program executables [EPREFIX/libexec]
1940   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1941   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1942   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1943   --libdir=DIR            object code libraries [EPREFIX/lib]
1944   --includedir=DIR        C header files [PREFIX/include]
1945   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1946   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1947   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1948   --infodir=DIR           info documentation [DATAROOTDIR/info]
1949   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1950   --mandir=DIR            man documentation [DATAROOTDIR/man]
1951   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1952   --htmldir=DIR           html documentation [DOCDIR]
1953   --dvidir=DIR            dvi documentation [DOCDIR]
1954   --pdfdir=DIR            pdf documentation [DOCDIR]
1955   --psdir=DIR             ps documentation [DOCDIR]
1956 _ACEOF
1957 
1958   cat <<\_ACEOF
1959 
1960 X features:
1961   --x-includes=DIR    X include files are in DIR
1962   --x-libraries=DIR   X library files are in DIR
1963 
1964 System types:
1965   --build=BUILD     configure for building on BUILD [guessed]
1966   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1967   --target=TARGET   configure for building compilers for TARGET [HOST]
1968 _ACEOF
1969 fi
1970 
1971 if test -n "$ac_init_help"; then
1972   case $ac_init_help in
1973      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1974    esac
1975   cat <<\_ACEOF
1976 
1977 Optional Features:
1978   --disable-option-checking  ignore unrecognized --enable/--with options
1979   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1980   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1981   --enable-openjdk-only   suppress building custom source even if present
1982                           [disabled]
1983   --enable-debug          set the debug level to fastdebug (shorthand for
1984                           --with-debug-level=fastdebug) [disabled]
1985   --enable-headless-only  only build headless (no GUI) support [disabled]
1986   --enable-unlimited-crypto
1987                           Enable unlimited crypto policy [disabled]
1988   --disable-keep-packaged-modules
1989                           Do not keep packaged modules in jdk image [enable]
1990   --enable-static-build   enable static library build [disabled]
1991   --disable-warnings-as-errors
1992                           do not consider native warnings to be an error
1993                           [enabled]
1994   --enable-debug-symbols  Deprecated. Option is kept for backwards
1995                           compatibility and is ignored
1996   --enable-zip-debug-info Deprecated. Option is kept for backwards
1997                           compatibility and is ignored
1998   --enable-native-coverage
1999                           enable native compilation with code coverage
2000                           data[disabled]
2001   --enable-dtrace[=yes/no/auto]
2002                           enable dtrace. Default is auto, where dtrace is
2003                           enabled if all dependencies are present.
2004   --enable-aot[=yes/no/auto]
2005                           enable ahead of time compilation feature. Default is
2006                           auto, where aot is enabled if all dependencies are
2007                           present.
2008   --disable-hotspot-gtest Disables building of the Hotspot unit tests
2009   --disable-freetype-bundling
2010                           disable bundling of the freetype library with the
2011                           build result [enabled on Windows or when using
2012                           --with-freetype, disabled otherwise]
2013   --enable-jtreg-failure-handler
2014                           forces build of the jtreg failure handler to be
2015                           enabled, missing dependencies become fatal errors.
2016                           Default is auto, where the failure handler is built
2017                           if all dependencies are present and otherwise just
2018                           disabled.
2019   --disable-generate-classlist
2020                           forces enabling or disabling of the generation of a
2021                           CDS classlist at build time. Default is to generate
2022                           it when either the server or client JVMs are built.
2023   --enable-sjavac         use sjavac to do fast incremental compiles
2024                           [disabled]
2025   --disable-javac-server  disable javac server [enabled]
2026   --enable-icecc          enable distribted compilation of native code using
2027                           icecc/icecream [disabled]
2028   --disable-precompiled-headers
2029                           disable using precompiled headers when compiling C++
2030                           [enabled]
2031   --enable-ccache         enable using ccache to speed up recompilations
2032                           [disabled]
2033 
2034 Optional Packages:
2035   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2036   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2037   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2038                           support it), e.g. --with-target-bits=32 [guessed]
2039   --with-custom-make-dir  Deprecated. Option is kept for backwards
2040                           compatibility and is ignored
2041   --with-jdk-variant      JDK variant to build (normal) [normal]
2042   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2043                           optimized) [release]
2044   --with-jvm-variants     JVM variants (separated by commas) to build
2045                           (server,client,minimal,core,zero,zeroshark,custom)
2046                           [server]
2047   --with-devkit           use this devkit for compilers, tools and resources
2048   --with-sys-root         alias for --with-sysroot for backwards compatability
2049   --with-sysroot          use this directory as sysroot
2050   --with-tools-dir        alias for --with-toolchain-path for backwards
2051                           compatibility
2052   --with-toolchain-path   prepend these directories when searching for
2053                           toolchain binaries (compilers etc)
2054   --with-extra-path       prepend these directories to the default path
2055   --with-sdk-name         use the platform SDK of the given name. [macosx]
2056   --with-conf-name        use this as the name of the configuration [generated
2057                           from important configuration options]
2058   --with-output-sync      set make output sync type if supported by make.
2059                           [recurse]
2060   --with-default-make-target
2061                           set the default make target [exploded-image]
2062   --with-cacerts-file     specify alternative cacerts file
2063   --with-copyright-year   Set copyright year value for build [current year]
2064   --with-milestone        Deprecated. Option is kept for backwards
2065                           compatibility and is ignored
2066   --with-update-version   Deprecated. Option is kept for backwards
2067                           compatibility and is ignored
2068   --with-user-release-suffix
2069                           Deprecated. Option is kept for backwards
2070                           compatibility and is ignored
2071   --with-build-number     Deprecated. Option is kept for backwards
2072                           compatibility and is ignored
2073   --with-version-string   Set version string [calculated]
2074   --with-version-pre      Set the base part of the version 'PRE' field
2075                           (pre-release identifier) ['internal']
2076   --with-version-opt      Set version 'OPT' field (build metadata)
2077                           [<timestamp>.<user>.<dirname>]
2078   --with-version-build    Set version 'BUILD' field (build number) [not
2079                           specified]
2080   --with-version-major    Set version 'MAJOR' field (first number) [current
2081                           source value]
2082   --with-version-minor    Set version 'MINOR' field (second number) [current
2083                           source value]
2084   --with-version-security Set version 'SECURITY' field (third number) [current
2085                           source value]
2086   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2087                           specified]
2088   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2089   --with-build-jdk        path to JDK of same version as is being built[the
2090                           newly built JDK]
2091   --with-add-source-root  Deprecated. Option is kept for backwards
2092                           compatibility and is ignored
2093   --with-override-source-root
2094                           Deprecated. Option is kept for backwards
2095                           compatibility and is ignored
2096   --with-adds-and-overrides
2097                           Deprecated. Option is kept for backwards
2098                           compatibility and is ignored
2099   --with-override-langtools
2100                           Deprecated. Option is kept for backwards
2101                           compatibility and is ignored
2102   --with-override-corba   Deprecated. Option is kept for backwards
2103                           compatibility and is ignored
2104   --with-override-jaxp    Deprecated. Option is kept for backwards
2105                           compatibility and is ignored
2106   --with-override-jaxws   Deprecated. Option is kept for backwards
2107                           compatibility and is ignored
2108   --with-override-hotspot Deprecated. Option is kept for backwards
2109                           compatibility and is ignored
2110   --with-override-nashorn Deprecated. Option is kept for backwards
2111                           compatibility and is ignored
2112   --with-override-jdk     Deprecated. Option is kept for backwards
2113                           compatibility and is ignored
2114   --with-import-hotspot   import hotspot binaries from this jdk image or
2115                           hotspot build dist dir instead of building from
2116                           source
2117   --with-import-modules   import a set of prebuilt modules either as a zip
2118                           file or an exploded directory
2119   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2120                           to show possible values [platform dependent]
2121   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2122   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2123   --with-extra-ldflags    extra flags to be used when linking jdk
2124   --with-toolchain-version
2125                           the version of the toolchain to look for, use
2126                           '--help' to show possible values [platform
2127                           dependent]
2128   --with-build-devkit     Devkit to use for the build platform toolchain
2129   --with-jtreg            Regression Test Harness [probed]
2130   --with-native-debug-symbols
2131                           set the native debug symbol configuration (none,
2132                           internal, external, zipped) [varying]
2133   --with-stdc++lib=<static>,<dynamic>,<default>
2134                           force linking of the C++ runtime on Linux to either
2135                           static or dynamic, default is static with dynamic as
2136                           fallback
2137   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2138                           (Windows only) [probed]
2139   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2140                           (Windows only) [probed]
2141   --with-x                use the X Window System
2142   --with-cups             specify prefix directory for the cups package
2143                           (expecting the headers under PATH/include)
2144   --with-cups-include     specify directory for the cups include files
2145   --with-freetype         specify prefix directory for the freetype package
2146                           (expecting the libraries under PATH/lib and the
2147                           headers under PATH/include)
2148   --with-freetype-include specify directory for the freetype include files
2149   --with-freetype-lib     specify directory for the freetype library
2150   --with-freetype-src     specify directory with freetype sources to
2151                           automatically build the library (experimental,
2152                           Windows-only)
2153   --with-alsa             specify prefix directory for the alsa package
2154                           (expecting the libraries under PATH/lib and the
2155                           headers under PATH/include)
2156   --with-alsa-include     specify directory for the alsa include files
2157   --with-alsa-lib         specify directory for the alsa library
2158   --with-libffi           specify prefix directory for the libffi package
2159                           (expecting the libraries under PATH/lib and the
2160                           headers under PATH/include)
2161   --with-libffi-include   specify directory for the libffi include files
2162   --with-libffi-lib       specify directory for the libffi library
2163   --with-libjpeg          use libjpeg from build system or OpenJDK source
2164                           (system, bundled) [bundled]
2165   --with-giflib           use giflib from build system or OpenJDK source
2166                           (system, bundled) [bundled]
2167   --with-libpng           use libpng from build system or OpenJDK source
2168                           (system, bundled) [bundled]
2169   --with-zlib             use zlib from build system or OpenJDK source
2170                           (system, bundled) [bundled]
2171   --with-lcms             use lcms2 from build system or OpenJDK source
2172                           (system, bundled) [bundled]
2173   --with-dxsdk            Deprecated. Option is kept for backwards
2174                           compatibility and is ignored
2175   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2176                           compatibility and is ignored
2177   --with-dxsdk-include    Deprecated. Option is kept for backwards
2178                           compatibility and is ignored
2179   --with-libelf           specify prefix directory for the libelf package
2180                           (expecting the libraries under PATH/lib and the
2181                           headers under PATH/include)
2182   --with-libelf-include   specify directory for the libelf include files
2183   --with-libelf-lib       specify directory for the libelf library
2184   --with-jvm-features     additional JVM features to enable (separated by
2185                           comma), use '--help' to show possible values [none]
2186   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2187                           compatibility and is ignored
2188   --with-num-cores        number of cores in the build system, e.g.
2189                           --with-num-cores=8 [probed]
2190   --with-memory-size      memory (in MB) available in the build system, e.g.
2191                           --with-memory-size=1024 [probed]
2192   --with-jobs             number of parallel jobs to let make run [calculated
2193                           based on cores and memory]
2194   --with-test-jobs        number of parallel tests jobs to run [based on build
2195                           jobs]
2196   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2197                           invocations of boot JDK, overriding the default
2198                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2199                           -enableassertions"
2200   --with-sjavac-server-java
2201                           use this java binary for running the sjavac
2202                           background server [Boot JDK java]
2203   --with-ccache-dir       where to store ccache files [~/.ccache]
2204 
2205 Some influential environment variables:
2206   BASENAME    Override default value for BASENAME
2207   BASH        Override default value for BASH
2208   CAT         Override default value for CAT
2209   CHMOD       Override default value for CHMOD
2210   CMP         Override default value for CMP
2211   COMM        Override default value for COMM
2212   CP          Override default value for CP
2213   CUT         Override default value for CUT
2214   DATE        Override default value for DATE
2215   DIFF        Override default value for DIFF
2216   DIRNAME     Override default value for DIRNAME
2217   ECHO        Override default value for ECHO
2218   EXPR        Override default value for EXPR
2219   FILE        Override default value for FILE
2220   FIND        Override default value for FIND
2221   HEAD        Override default value for HEAD
2222   GUNZIP      Override default value for GUNZIP
2223   GZIP        Override default value for GZIP
2224   LN          Override default value for LN
2225   LS          Override default value for LS
2226   MKDIR       Override default value for MKDIR
2227   MKTEMP      Override default value for MKTEMP
2228   MV          Override default value for MV
2229   NAWK        Override default value for NAWK
2230   PRINTF      Override default value for PRINTF
2231   RM          Override default value for RM
2232   RMDIR       Override default value for RMDIR
2233   SH          Override default value for SH
2234   SORT        Override default value for SORT
2235   TAIL        Override default value for TAIL
2236   TAR         Override default value for TAR
2237   TEE         Override default value for TEE
2238   TOUCH       Override default value for TOUCH
2239   TR          Override default value for TR
2240   UNAME       Override default value for UNAME
2241   UNIQ        Override default value for UNIQ
2242   WC          Override default value for WC
2243   WHICH       Override default value for WHICH
2244   XARGS       Override default value for XARGS
2245   AWK         Override default value for AWK
2246   GREP        Override default value for GREP
2247   EGREP       Override default value for EGREP
2248   FGREP       Override default value for FGREP
2249   SED         Override default value for SED
2250   CYGPATH     Override default value for CYGPATH
2251   READLINK    Override default value for READLINK
2252   DF          Override default value for DF
2253   CPIO        Override default value for CPIO
2254   NICE        Override default value for NICE
2255   MAKE        Override default value for MAKE
2256   UNZIP       Override default value for UNZIP
2257   ZIP         Override default value for ZIP
2258   LDD         Override default value for LDD
2259   OTOOL       Override default value for OTOOL
2260   READELF     Override default value for READELF
2261   HG          Override default value for HG
2262   STAT        Override default value for STAT
2263   TIME        Override default value for TIME
2264   DTRACE      Override default value for DTRACE
2265   PATCH       Override default value for PATCH
2266   DSYMUTIL    Override default value for DSYMUTIL
2267   XATTR       Override default value for XATTR
2268   CODESIGN    Override default value for CODESIGN
2269   SETFILE     Override default value for SETFILE
2270   PKG_CONFIG  path to pkg-config utility
2271   JAVA        Override default value for JAVA
2272   JAVAC       Override default value for JAVAC
2273   JAVAH       Override default value for JAVAH
2274   JAR         Override default value for JAR
2275   JARSIGNER   Override default value for JARSIGNER
2276   CC          C compiler command
2277   CFLAGS      C compiler flags
2278   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2279               nonstandard directory <lib dir>
2280   LIBS        libraries to pass to the linker, e.g. -l<library>
2281   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2282               you have headers in a nonstandard directory <include dir>
2283   CXX         C++ compiler command
2284   CXXFLAGS    C++ compiler flags
2285   CPP         C preprocessor
2286   CXXCPP      C++ preprocessor
2287   AS          Override default value for AS
2288   AR          Override default value for AR
2289   LIPO        Override default value for LIPO
2290   STRIP       Override default value for STRIP
2291   NM          Override default value for NM
2292   GNM         Override default value for GNM
2293   OBJCOPY     Override default value for OBJCOPY
2294   OBJDUMP     Override default value for OBJDUMP
2295   BUILD_CC    Override default value for BUILD_CC
2296   BUILD_CXX   Override default value for BUILD_CXX
2297   BUILD_NM    Override default value for BUILD_NM
2298   BUILD_AR    Override default value for BUILD_AR
2299   BUILD_OBJCOPY
2300               Override default value for BUILD_OBJCOPY
2301   BUILD_STRIP Override default value for BUILD_STRIP
2302   JTREGEXE    Override default value for JTREGEXE
2303   XMKMF       Path to xmkmf, Makefile generator for X Window System
2304   FREETYPE_CFLAGS
2305               C compiler flags for FREETYPE, overriding pkg-config
2306   FREETYPE_LIBS
2307               linker flags for FREETYPE, overriding pkg-config
2308   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2309   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2310   LIBFFI_CFLAGS
2311               C compiler flags for LIBFFI, overriding pkg-config
2312   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2313   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2314   PNG_LIBS    linker flags for PNG, overriding pkg-config
2315   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2316   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2317   ELF_CFLAGS  C compiler flags for ELF, overriding pkg-config
2318   ELF_LIBS    linker flags for ELF, overriding pkg-config
2319   ICECC_CMD   Override default value for ICECC_CMD
2320   ICECC_CREATE_ENV
2321               Override default value for ICECC_CREATE_ENV
2322   ICECC_WRAPPER
2323               Override default value for ICECC_WRAPPER
2324   CCACHE      Override default value for CCACHE
2325 
2326 Use these variables to override the choices made by `configure' or to help
2327 it to find libraries and programs with nonstandard names/locations.
2328 
2329 Report bugs to <build-dev@openjdk.java.net>.
2330 OpenJDK home page: <http://openjdk.java.net>.
2331 _ACEOF
2332 ac_status=$?
2333 fi
2334 
2335 if test "$ac_init_help" = "recursive"; then
2336   # If there are subdirs, report their specific --help.
2337   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2338     test -d "$ac_dir" ||
2339       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2340       continue
2341     ac_builddir=.
2342 
2343 case "$ac_dir" in
2344 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2345 *)
2346   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2347   # A ".." for each directory in $ac_dir_suffix.
2348   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2349   case $ac_top_builddir_sub in
2350   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2351   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2352   esac ;;
2353 esac
2354 ac_abs_top_builddir=$ac_pwd
2355 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2356 # for backward compatibility:
2357 ac_top_builddir=$ac_top_build_prefix
2358 
2359 case $srcdir in
2360   .)  # We are building in place.
2361     ac_srcdir=.
2362     ac_top_srcdir=$ac_top_builddir_sub
2363     ac_abs_top_srcdir=$ac_pwd ;;
2364   [\\/]* | ?:[\\/]* )  # Absolute name.
2365     ac_srcdir=$srcdir$ac_dir_suffix;
2366     ac_top_srcdir=$srcdir
2367     ac_abs_top_srcdir=$srcdir ;;
2368   *) # Relative name.
2369     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2370     ac_top_srcdir=$ac_top_build_prefix$srcdir
2371     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2372 esac
2373 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2374 
2375     cd "$ac_dir" || { ac_status=$?; continue; }
2376     # Check for guested configure.
2377     if test -f "$ac_srcdir/configure.gnu"; then
2378       echo &&
2379       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2380     elif test -f "$ac_srcdir/configure"; then
2381       echo &&
2382       $SHELL "$ac_srcdir/configure" --help=recursive
2383     else
2384       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2385     fi || ac_status=$?
2386     cd "$ac_pwd" || { ac_status=$?; break; }
2387   done
2388 fi
2389 
2390 test -n "$ac_init_help" && exit $ac_status
2391 if $ac_init_version; then
2392   cat <<\_ACEOF
2393 OpenJDK configure jdk9
2394 generated by GNU Autoconf 2.69
2395 
2396 Copyright (C) 2012 Free Software Foundation, Inc.
2397 This configure script is free software; the Free Software Foundation
2398 gives unlimited permission to copy, distribute and modify it.
2399 _ACEOF
2400   exit
2401 fi
2402 
2403 ## ------------------------ ##
2404 ## Autoconf initialization. ##
2405 ## ------------------------ ##
2406 
2407 # ac_fn_c_try_compile LINENO
2408 # --------------------------
2409 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2410 ac_fn_c_try_compile ()
2411 {
2412   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413   rm -f conftest.$ac_objext
2414   if { { ac_try="$ac_compile"
2415 case "(($ac_try" in
2416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417   *) ac_try_echo=$ac_try;;
2418 esac
2419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2420 $as_echo "$ac_try_echo"; } >&5
2421   (eval "$ac_compile") 2>conftest.err
2422   ac_status=$?
2423   if test -s conftest.err; then
2424     grep -v '^ *+' conftest.err >conftest.er1
2425     cat conftest.er1 >&5
2426     mv -f conftest.er1 conftest.err
2427   fi
2428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2429   test $ac_status = 0; } && {
2430          test -z "$ac_c_werror_flag" ||
2431          test ! -s conftest.err
2432        } && test -s conftest.$ac_objext; then :
2433   ac_retval=0
2434 else
2435   $as_echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2437 
2438         ac_retval=1
2439 fi
2440   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2441   as_fn_set_status $ac_retval
2442 
2443 } # ac_fn_c_try_compile
2444 
2445 # ac_fn_cxx_try_compile LINENO
2446 # ----------------------------
2447 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2448 ac_fn_cxx_try_compile ()
2449 {
2450   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451   rm -f conftest.$ac_objext
2452   if { { ac_try="$ac_compile"
2453 case "(($ac_try" in
2454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455   *) ac_try_echo=$ac_try;;
2456 esac
2457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458 $as_echo "$ac_try_echo"; } >&5
2459   (eval "$ac_compile") 2>conftest.err
2460   ac_status=$?
2461   if test -s conftest.err; then
2462     grep -v '^ *+' conftest.err >conftest.er1
2463     cat conftest.er1 >&5
2464     mv -f conftest.er1 conftest.err
2465   fi
2466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2467   test $ac_status = 0; } && {
2468          test -z "$ac_cxx_werror_flag" ||
2469          test ! -s conftest.err
2470        } && test -s conftest.$ac_objext; then :
2471   ac_retval=0
2472 else
2473   $as_echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2475 
2476         ac_retval=1
2477 fi
2478   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2479   as_fn_set_status $ac_retval
2480 
2481 } # ac_fn_cxx_try_compile
2482 
2483 # ac_fn_c_try_cpp LINENO
2484 # ----------------------
2485 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2486 ac_fn_c_try_cpp ()
2487 {
2488   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489   if { { ac_try="$ac_cpp conftest.$ac_ext"
2490 case "(($ac_try" in
2491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492   *) ac_try_echo=$ac_try;;
2493 esac
2494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2495 $as_echo "$ac_try_echo"; } >&5
2496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2497   ac_status=$?
2498   if test -s conftest.err; then
2499     grep -v '^ *+' conftest.err >conftest.er1
2500     cat conftest.er1 >&5
2501     mv -f conftest.er1 conftest.err
2502   fi
2503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2504   test $ac_status = 0; } > conftest.i && {
2505          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2506          test ! -s conftest.err
2507        }; then :
2508   ac_retval=0
2509 else
2510   $as_echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512 
2513     ac_retval=1
2514 fi
2515   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2516   as_fn_set_status $ac_retval
2517 
2518 } # ac_fn_c_try_cpp
2519 
2520 # ac_fn_cxx_try_cpp LINENO
2521 # ------------------------
2522 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2523 ac_fn_cxx_try_cpp ()
2524 {
2525   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526   if { { ac_try="$ac_cpp conftest.$ac_ext"
2527 case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532 $as_echo "$ac_try_echo"; } >&5
2533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2534   ac_status=$?
2535   if test -s conftest.err; then
2536     grep -v '^ *+' conftest.err >conftest.er1
2537     cat conftest.er1 >&5
2538     mv -f conftest.er1 conftest.err
2539   fi
2540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541   test $ac_status = 0; } > conftest.i && {
2542          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2543          test ! -s conftest.err
2544        }; then :
2545   ac_retval=0
2546 else
2547   $as_echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549 
2550     ac_retval=1
2551 fi
2552   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2553   as_fn_set_status $ac_retval
2554 
2555 } # ac_fn_cxx_try_cpp
2556 
2557 # ac_fn_c_try_link LINENO
2558 # -----------------------
2559 # Try to link conftest.$ac_ext, and return whether this succeeded.
2560 ac_fn_c_try_link ()
2561 {
2562   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563   rm -f conftest.$ac_objext conftest$ac_exeext
2564   if { { ac_try="$ac_link"
2565 case "(($ac_try" in
2566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567   *) ac_try_echo=$ac_try;;
2568 esac
2569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2570 $as_echo "$ac_try_echo"; } >&5
2571   (eval "$ac_link") 2>conftest.err
2572   ac_status=$?
2573   if test -s conftest.err; then
2574     grep -v '^ *+' conftest.err >conftest.er1
2575     cat conftest.er1 >&5
2576     mv -f conftest.er1 conftest.err
2577   fi
2578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579   test $ac_status = 0; } && {
2580          test -z "$ac_c_werror_flag" ||
2581          test ! -s conftest.err
2582        } && test -s conftest$ac_exeext && {
2583          test "$cross_compiling" = yes ||
2584          test -x conftest$ac_exeext
2585        }; then :
2586   ac_retval=0
2587 else
2588   $as_echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590 
2591         ac_retval=1
2592 fi
2593   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2594   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2595   # interfere with the next link command; also delete a directory that is
2596   # left behind by Apple's compiler.  We do this before executing the actions.
2597   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2598   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2599   as_fn_set_status $ac_retval
2600 
2601 } # ac_fn_c_try_link
2602 
2603 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2604 # ---------------------------------------------------------
2605 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2606 # the include files in INCLUDES and setting the cache variable VAR
2607 # accordingly.
2608 ac_fn_cxx_check_header_mongrel ()
2609 {
2610   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2611   if eval \${$3+:} false; then :
2612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2613 $as_echo_n "checking for $2... " >&6; }
2614 if eval \${$3+:} false; then :
2615   $as_echo_n "(cached) " >&6
2616 fi
2617 eval ac_res=\$$3
2618                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2619 $as_echo "$ac_res" >&6; }
2620 else
2621   # Is the header compilable?
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2623 $as_echo_n "checking $2 usability... " >&6; }
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h.  */
2626 $4
2627 #include <$2>
2628 _ACEOF
2629 if ac_fn_cxx_try_compile "$LINENO"; then :
2630   ac_header_compiler=yes
2631 else
2632   ac_header_compiler=no
2633 fi
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2636 $as_echo "$ac_header_compiler" >&6; }
2637 
2638 # Is the header present?
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2640 $as_echo_n "checking $2 presence... " >&6; }
2641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642 /* end confdefs.h.  */
2643 #include <$2>
2644 _ACEOF
2645 if ac_fn_cxx_try_cpp "$LINENO"; then :
2646   ac_header_preproc=yes
2647 else
2648   ac_header_preproc=no
2649 fi
2650 rm -f conftest.err conftest.i conftest.$ac_ext
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2652 $as_echo "$ac_header_preproc" >&6; }
2653 
2654 # So?  What about this header?
2655 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2656   yes:no: )
2657     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2658 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2660 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2661     ;;
2662   no:yes:* )
2663     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2664 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2665     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2666 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2667     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2668 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2669     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2670 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2671     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2672 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2673 ( $as_echo "## ----------------------------------------- ##
2674 ## Report this to build-dev@openjdk.java.net ##
2675 ## ----------------------------------------- ##"
2676      ) | sed "s/^/$as_me: WARNING:     /" >&2
2677     ;;
2678 esac
2679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2680 $as_echo_n "checking for $2... " >&6; }
2681 if eval \${$3+:} false; then :
2682   $as_echo_n "(cached) " >&6
2683 else
2684   eval "$3=\$ac_header_compiler"
2685 fi
2686 eval ac_res=\$$3
2687                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2688 $as_echo "$ac_res" >&6; }
2689 fi
2690   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2691 
2692 } # ac_fn_cxx_check_header_mongrel
2693 
2694 # ac_fn_cxx_try_run LINENO
2695 # ------------------------
2696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2697 # that executables *can* be run.
2698 ac_fn_cxx_try_run ()
2699 {
2700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701   if { { ac_try="$ac_link"
2702 case "(($ac_try" in
2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704   *) ac_try_echo=$ac_try;;
2705 esac
2706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2707 $as_echo "$ac_try_echo"; } >&5
2708   (eval "$ac_link") 2>&5
2709   ac_status=$?
2710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2711   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2712   { { case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2717 $as_echo "$ac_try_echo"; } >&5
2718   (eval "$ac_try") 2>&5
2719   ac_status=$?
2720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2721   test $ac_status = 0; }; }; then :
2722   ac_retval=0
2723 else
2724   $as_echo "$as_me: program exited with status $ac_status" >&5
2725        $as_echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727 
2728        ac_retval=$ac_status
2729 fi
2730   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2731   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2732   as_fn_set_status $ac_retval
2733 
2734 } # ac_fn_cxx_try_run
2735 
2736 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2737 # ---------------------------------------------------------
2738 # Tests whether HEADER exists and can be compiled using the include files in
2739 # INCLUDES, setting the cache variable VAR accordingly.
2740 ac_fn_cxx_check_header_compile ()
2741 {
2742   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2744 $as_echo_n "checking for $2... " >&6; }
2745 if eval \${$3+:} false; then :
2746   $as_echo_n "(cached) " >&6
2747 else
2748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h.  */
2750 $4
2751 #include <$2>
2752 _ACEOF
2753 if ac_fn_cxx_try_compile "$LINENO"; then :
2754   eval "$3=yes"
2755 else
2756   eval "$3=no"
2757 fi
2758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759 fi
2760 eval ac_res=\$$3
2761                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762 $as_echo "$ac_res" >&6; }
2763   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2764 
2765 } # ac_fn_cxx_check_header_compile
2766 
2767 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2768 # ----------------------------------------------
2769 # Tries to find the compile-time value of EXPR in a program that includes
2770 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2771 # computed
2772 ac_fn_cxx_compute_int ()
2773 {
2774   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2775   if test "$cross_compiling" = yes; then
2776     # Depending upon the size, compute the lo and hi bounds.
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h.  */
2779 $4
2780 int
2781 main ()
2782 {
2783 static int test_array [1 - 2 * !(($2) >= 0)];
2784 test_array [0] = 0;
2785 return test_array [0];
2786 
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 if ac_fn_cxx_try_compile "$LINENO"; then :
2792   ac_lo=0 ac_mid=0
2793   while :; do
2794     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h.  */
2796 $4
2797 int
2798 main ()
2799 {
2800 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2801 test_array [0] = 0;
2802 return test_array [0];
2803 
2804   ;
2805   return 0;
2806 }
2807 _ACEOF
2808 if ac_fn_cxx_try_compile "$LINENO"; then :
2809   ac_hi=$ac_mid; break
2810 else
2811   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2812                         if test $ac_lo -le $ac_mid; then
2813                           ac_lo= ac_hi=
2814                           break
2815                         fi
2816                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2817 fi
2818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2819   done
2820 else
2821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h.  */
2823 $4
2824 int
2825 main ()
2826 {
2827 static int test_array [1 - 2 * !(($2) < 0)];
2828 test_array [0] = 0;
2829 return test_array [0];
2830 
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 if ac_fn_cxx_try_compile "$LINENO"; then :
2836   ac_hi=-1 ac_mid=-1
2837   while :; do
2838     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h.  */
2840 $4
2841 int
2842 main ()
2843 {
2844 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2845 test_array [0] = 0;
2846 return test_array [0];
2847 
2848   ;
2849   return 0;
2850 }
2851 _ACEOF
2852 if ac_fn_cxx_try_compile "$LINENO"; then :
2853   ac_lo=$ac_mid; break
2854 else
2855   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2856                         if test $ac_mid -le $ac_hi; then
2857                           ac_lo= ac_hi=
2858                           break
2859                         fi
2860                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2861 fi
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863   done
2864 else
2865   ac_lo= ac_hi=
2866 fi
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 fi
2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870 # Binary search between lo and hi bounds.
2871 while test "x$ac_lo" != "x$ac_hi"; do
2872   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2874 /* end confdefs.h.  */
2875 $4
2876 int
2877 main ()
2878 {
2879 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2880 test_array [0] = 0;
2881 return test_array [0];
2882 
2883   ;
2884   return 0;
2885 }
2886 _ACEOF
2887 if ac_fn_cxx_try_compile "$LINENO"; then :
2888   ac_hi=$ac_mid
2889 else
2890   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2891 fi
2892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 done
2894 case $ac_lo in #((
2895 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2896 '') ac_retval=1 ;;
2897 esac
2898   else
2899     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2900 /* end confdefs.h.  */
2901 $4
2902 static long int longval () { return $2; }
2903 static unsigned long int ulongval () { return $2; }
2904 #include <stdio.h>
2905 #include <stdlib.h>
2906 int
2907 main ()
2908 {
2909 
2910   FILE *f = fopen ("conftest.val", "w");
2911   if (! f)
2912     return 1;
2913   if (($2) < 0)
2914     {
2915       long int i = longval ();
2916       if (i != ($2))
2917         return 1;
2918       fprintf (f, "%ld", i);
2919     }
2920   else
2921     {
2922       unsigned long int i = ulongval ();
2923       if (i != ($2))
2924         return 1;
2925       fprintf (f, "%lu", i);
2926     }
2927   /* Do not output a trailing newline, as this causes \r\n confusion
2928      on some platforms.  */
2929   return ferror (f) || fclose (f) != 0;
2930 
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 if ac_fn_cxx_try_run "$LINENO"; then :
2936   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2937 else
2938   ac_retval=1
2939 fi
2940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2941   conftest.$ac_objext conftest.beam conftest.$ac_ext
2942 rm -f conftest.val
2943 
2944   fi
2945   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2946   as_fn_set_status $ac_retval
2947 
2948 } # ac_fn_cxx_compute_int
2949 
2950 # ac_fn_cxx_try_link LINENO
2951 # -------------------------
2952 # Try to link conftest.$ac_ext, and return whether this succeeded.
2953 ac_fn_cxx_try_link ()
2954 {
2955   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2956   rm -f conftest.$ac_objext conftest$ac_exeext
2957   if { { ac_try="$ac_link"
2958 case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963 $as_echo "$ac_try_echo"; } >&5
2964   (eval "$ac_link") 2>conftest.err
2965   ac_status=$?
2966   if test -s conftest.err; then
2967     grep -v '^ *+' conftest.err >conftest.er1
2968     cat conftest.er1 >&5
2969     mv -f conftest.er1 conftest.err
2970   fi
2971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972   test $ac_status = 0; } && {
2973          test -z "$ac_cxx_werror_flag" ||
2974          test ! -s conftest.err
2975        } && test -s conftest$ac_exeext && {
2976          test "$cross_compiling" = yes ||
2977          test -x conftest$ac_exeext
2978        }; then :
2979   ac_retval=0
2980 else
2981   $as_echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983 
2984         ac_retval=1
2985 fi
2986   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2987   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2988   # interfere with the next link command; also delete a directory that is
2989   # left behind by Apple's compiler.  We do this before executing the actions.
2990   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2991   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2992   as_fn_set_status $ac_retval
2993 
2994 } # ac_fn_cxx_try_link
2995 
2996 # ac_fn_cxx_check_func LINENO FUNC VAR
2997 # ------------------------------------
2998 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2999 ac_fn_cxx_check_func ()
3000 {
3001   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3003 $as_echo_n "checking for $2... " >&6; }
3004 if eval \${$3+:} false; then :
3005   $as_echo_n "(cached) " >&6
3006 else
3007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h.  */
3009 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3011 #define $2 innocuous_$2
3012 
3013 /* System header to define __stub macros and hopefully few prototypes,
3014     which can conflict with char $2 (); below.
3015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3016     <limits.h> exists even on freestanding compilers.  */
3017 
3018 #ifdef __STDC__
3019 # include <limits.h>
3020 #else
3021 # include <assert.h>
3022 #endif
3023 
3024 #undef $2
3025 
3026 /* Override any GCC internal prototype to avoid an error.
3027    Use char because int might match the return type of a GCC
3028    builtin and then its argument prototype would still apply.  */
3029 #ifdef __cplusplus
3030 extern "C"
3031 #endif
3032 char $2 ();
3033 /* The GNU C library defines this for functions which it implements
3034     to always fail with ENOSYS.  Some functions are actually named
3035     something starting with __ and the normal name is an alias.  */
3036 #if defined __stub_$2 || defined __stub___$2
3037 choke me
3038 #endif
3039 
3040 int
3041 main ()
3042 {
3043 return $2 ();
3044   ;
3045   return 0;
3046 }
3047 _ACEOF
3048 if ac_fn_cxx_try_link "$LINENO"; then :
3049   eval "$3=yes"
3050 else
3051   eval "$3=no"
3052 fi
3053 rm -f core conftest.err conftest.$ac_objext \
3054     conftest$ac_exeext conftest.$ac_ext
3055 fi
3056 eval ac_res=\$$3
3057                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3058 $as_echo "$ac_res" >&6; }
3059   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3060 
3061 } # ac_fn_cxx_check_func
3062 
3063 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3064 # -------------------------------------------------------
3065 # Tests whether HEADER exists and can be compiled using the include files in
3066 # INCLUDES, setting the cache variable VAR accordingly.
3067 ac_fn_c_check_header_compile ()
3068 {
3069   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3071 $as_echo_n "checking for $2... " >&6; }
3072 if eval \${$3+:} false; then :
3073   $as_echo_n "(cached) " >&6
3074 else
3075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076 /* end confdefs.h.  */
3077 $4
3078 #include <$2>
3079 _ACEOF
3080 if ac_fn_c_try_compile "$LINENO"; then :
3081   eval "$3=yes"
3082 else
3083   eval "$3=no"
3084 fi
3085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 fi
3087 eval ac_res=\$$3
3088                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3089 $as_echo "$ac_res" >&6; }
3090   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3091 
3092 } # ac_fn_c_check_header_compile
3093 cat >config.log <<_ACEOF
3094 This file contains any messages produced by compilers while
3095 running configure, to aid debugging if configure makes a mistake.
3096 
3097 It was created by OpenJDK $as_me jdk9, which was
3098 generated by GNU Autoconf 2.69.  Invocation command line was
3099 
3100   $ $0 $@
3101 
3102 _ACEOF
3103 exec 5>>config.log
3104 {
3105 cat <<_ASUNAME
3106 ## --------- ##
3107 ## Platform. ##
3108 ## --------- ##
3109 
3110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3115 
3116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3117 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3118 
3119 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3120 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3122 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3123 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3124 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3125 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3126 
3127 _ASUNAME
3128 
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132   IFS=$as_save_IFS
3133   test -z "$as_dir" && as_dir=.
3134     $as_echo "PATH: $as_dir"
3135   done
3136 IFS=$as_save_IFS
3137 
3138 } >&5
3139 
3140 cat >&5 <<_ACEOF
3141 
3142 
3143 ## ----------- ##
3144 ## Core tests. ##
3145 ## ----------- ##
3146 
3147 _ACEOF
3148 
3149 
3150 # Keep a trace of the command line.
3151 # Strip out --no-create and --no-recursion so they do not pile up.
3152 # Strip out --silent because we don't want to record it for future runs.
3153 # Also quote any args containing shell meta-characters.
3154 # Make two passes to allow for proper duplicate-argument suppression.
3155 ac_configure_args=
3156 ac_configure_args0=
3157 ac_configure_args1=
3158 ac_must_keep_next=false
3159 for ac_pass in 1 2
3160 do
3161   for ac_arg
3162   do
3163     case $ac_arg in
3164     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3165     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3166     | -silent | --silent | --silen | --sile | --sil)
3167       continue ;;
3168     *\'*)
3169       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3170     esac
3171     case $ac_pass in
3172     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3173     2)
3174       as_fn_append ac_configure_args1 " '$ac_arg'"
3175       if test $ac_must_keep_next = true; then
3176         ac_must_keep_next=false # Got value, back to normal.
3177       else
3178         case $ac_arg in
3179           *=* | --config-cache | -C | -disable-* | --disable-* \
3180           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3181           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3182           | -with-* | --with-* | -without-* | --without-* | --x)
3183             case "$ac_configure_args0 " in
3184               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3185             esac
3186             ;;
3187           -* ) ac_must_keep_next=true ;;
3188         esac
3189       fi
3190       as_fn_append ac_configure_args " '$ac_arg'"
3191       ;;
3192     esac
3193   done
3194 done
3195 { ac_configure_args0=; unset ac_configure_args0;}
3196 { ac_configure_args1=; unset ac_configure_args1;}
3197 
3198 # When interrupted or exit'd, cleanup temporary files, and complete
3199 # config.log.  We remove comments because anyway the quotes in there
3200 # would cause problems or look ugly.
3201 # WARNING: Use '\'' to represent an apostrophe within the trap.
3202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3203 trap 'exit_status=$?
3204   # Save into config.log some information that might help in debugging.
3205   {
3206     echo
3207 
3208     $as_echo "## ---------------- ##
3209 ## Cache variables. ##
3210 ## ---------------- ##"
3211     echo
3212     # The following way of writing the cache mishandles newlines in values,
3213 (
3214   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3215     eval ac_val=\$$ac_var
3216     case $ac_val in #(
3217     *${as_nl}*)
3218       case $ac_var in #(
3219       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3221       esac
3222       case $ac_var in #(
3223       _ | IFS | as_nl) ;; #(
3224       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3225       *) { eval $ac_var=; unset $ac_var;} ;;
3226       esac ;;
3227     esac
3228   done
3229   (set) 2>&1 |
3230     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3231     *${as_nl}ac_space=\ *)
3232       sed -n \
3233         "s/'\''/'\''\\\\'\'''\''/g;
3234           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3235       ;; #(
3236     *)
3237       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3238       ;;
3239     esac |
3240     sort
3241 )
3242     echo
3243 
3244     $as_echo "## ----------------- ##
3245 ## Output variables. ##
3246 ## ----------------- ##"
3247     echo
3248     for ac_var in $ac_subst_vars
3249     do
3250       eval ac_val=\$$ac_var
3251       case $ac_val in
3252       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3253       esac
3254       $as_echo "$ac_var='\''$ac_val'\''"
3255     done | sort
3256     echo
3257 
3258     if test -n "$ac_subst_files"; then
3259       $as_echo "## ------------------- ##
3260 ## File substitutions. ##
3261 ## ------------------- ##"
3262       echo
3263       for ac_var in $ac_subst_files
3264       do
3265         eval ac_val=\$$ac_var
3266         case $ac_val in
3267         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3268         esac
3269         $as_echo "$ac_var='\''$ac_val'\''"
3270       done | sort
3271       echo
3272     fi
3273 
3274     if test -s confdefs.h; then
3275       $as_echo "## ----------- ##
3276 ## confdefs.h. ##
3277 ## ----------- ##"
3278       echo
3279       cat confdefs.h
3280       echo
3281     fi
3282     test "$ac_signal" != 0 &&
3283       $as_echo "$as_me: caught signal $ac_signal"
3284     $as_echo "$as_me: exit $exit_status"
3285   } >&5
3286   rm -f core *.core core.conftest.* &&
3287     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3288     exit $exit_status
3289 ' 0
3290 for ac_signal in 1 2 13 15; do
3291   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3292 done
3293 ac_signal=0
3294 
3295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3296 rm -f -r conftest* confdefs.h
3297 
3298 $as_echo "/* confdefs.h */" > confdefs.h
3299 
3300 # Predefined preprocessor variables.
3301 
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE_NAME "$PACKAGE_NAME"
3304 _ACEOF
3305 
3306 cat >>confdefs.h <<_ACEOF
3307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3308 _ACEOF
3309 
3310 cat >>confdefs.h <<_ACEOF
3311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3312 _ACEOF
3313 
3314 cat >>confdefs.h <<_ACEOF
3315 #define PACKAGE_STRING "$PACKAGE_STRING"
3316 _ACEOF
3317 
3318 cat >>confdefs.h <<_ACEOF
3319 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3320 _ACEOF
3321 
3322 cat >>confdefs.h <<_ACEOF
3323 #define PACKAGE_URL "$PACKAGE_URL"
3324 _ACEOF
3325 
3326 
3327 # Let the site file select an alternate cache file if it wants to.
3328 # Prefer an explicitly selected file to automatically selected ones.
3329 ac_site_file1=NONE
3330 ac_site_file2=NONE
3331 if test -n "$CONFIG_SITE"; then
3332   # We do not want a PATH search for config.site.
3333   case $CONFIG_SITE in #((
3334     -*)  ac_site_file1=./$CONFIG_SITE;;
3335     */*) ac_site_file1=$CONFIG_SITE;;
3336     *)   ac_site_file1=./$CONFIG_SITE;;
3337   esac
3338 elif test "x$prefix" != xNONE; then
3339   ac_site_file1=$prefix/share/config.site
3340   ac_site_file2=$prefix/etc/config.site
3341 else
3342   ac_site_file1=$ac_default_prefix/share/config.site
3343   ac_site_file2=$ac_default_prefix/etc/config.site
3344 fi
3345 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3346 do
3347   test "x$ac_site_file" = xNONE && continue
3348   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3349     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3351     sed 's/^/| /' "$ac_site_file" >&5
3352     . "$ac_site_file" \
3353       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "failed to load site script $ac_site_file
3356 See \`config.log' for more details" "$LINENO" 5; }
3357   fi
3358 done
3359 
3360 if test -r "$cache_file"; then
3361   # Some versions of bash will fail to source /dev/null (special files
3362   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3363   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3364     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3365 $as_echo "$as_me: loading cache $cache_file" >&6;}
3366     case $cache_file in
3367       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3368       *)                      . "./$cache_file";;
3369     esac
3370   fi
3371 else
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3373 $as_echo "$as_me: creating cache $cache_file" >&6;}
3374   >$cache_file
3375 fi
3376 
3377 # Check that the precious variables saved in the cache have kept the same
3378 # value.
3379 ac_cache_corrupted=false
3380 for ac_var in $ac_precious_vars; do
3381   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3382   eval ac_new_set=\$ac_env_${ac_var}_set
3383   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3384   eval ac_new_val=\$ac_env_${ac_var}_value
3385   case $ac_old_set,$ac_new_set in
3386     set,)
3387       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3388 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3389       ac_cache_corrupted=: ;;
3390     ,set)
3391       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3392 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3393       ac_cache_corrupted=: ;;
3394     ,);;
3395     *)
3396       if test "x$ac_old_val" != "x$ac_new_val"; then
3397         # differences in whitespace do not lead to failure.
3398         ac_old_val_w=`echo x $ac_old_val`
3399         ac_new_val_w=`echo x $ac_new_val`
3400         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3401           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3402 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3403           ac_cache_corrupted=:
3404         else
3405           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3406 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3407           eval $ac_var=\$ac_old_val
3408         fi
3409         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3410 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3411         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3412 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3413       fi;;
3414   esac
3415   # Pass precious variables to config.status.
3416   if test "$ac_new_set" = set; then
3417     case $ac_new_val in
3418     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3419     *) ac_arg=$ac_var=$ac_new_val ;;
3420     esac
3421     case " $ac_configure_args " in
3422       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3423       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3424     esac
3425   fi
3426 done
3427 if $ac_cache_corrupted; then
3428   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3431 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3432   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3433 fi
3434 ## -------------------- ##
3435 ## Main body of script. ##
3436 ## -------------------- ##
3437 
3438 ac_ext=c
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443 
3444 
3445 
3446 ac_aux_dir=
3447 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3448   if test -f "$ac_dir/install-sh"; then
3449     ac_aux_dir=$ac_dir
3450     ac_install_sh="$ac_aux_dir/install-sh -c"
3451     break
3452   elif test -f "$ac_dir/install.sh"; then
3453     ac_aux_dir=$ac_dir
3454     ac_install_sh="$ac_aux_dir/install.sh -c"
3455     break
3456   elif test -f "$ac_dir/shtool"; then
3457     ac_aux_dir=$ac_dir
3458     ac_install_sh="$ac_aux_dir/shtool install -c"
3459     break
3460   fi
3461 done
3462 if test -z "$ac_aux_dir"; then
3463   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
3464 fi
3465 
3466 # These three variables are undocumented and unsupported,
3467 # and are intended to be withdrawn in a future Autoconf release.
3468 # They can cause serious problems if a builder's source tree is in a directory
3469 # whose full name contains unusual characters.
3470 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3471 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3472 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3473 
3474 
3475 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3476 
3477 #
3478 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3479 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3480 #
3481 # This code is free software; you can redistribute it and/or modify it
3482 # under the terms of the GNU General Public License version 2 only, as
3483 # published by the Free Software Foundation.  Oracle designates this
3484 # particular file as subject to the "Classpath" exception as provided
3485 # by Oracle in the LICENSE file that accompanied this code.
3486 #
3487 # This code is distributed in the hope that it will be useful, but WITHOUT
3488 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3489 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3490 # version 2 for more details (a copy is included in the LICENSE file that
3491 # accompanied this code).
3492 #
3493 # You should have received a copy of the GNU General Public License version
3494 # 2 along with this work; if not, write to the Free Software Foundation,
3495 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3496 #
3497 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3498 # or visit www.oracle.com if you need additional information or have any
3499 # questions.
3500 #
3501 
3502 #
3503 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3504 #
3505 # This program is free software; you can redistribute it and/or modify
3506 # it under the terms of the GNU General Public License as published by
3507 # the Free Software Foundation; either version 2 of the License, or
3508 # (at your option) any later version.
3509 #
3510 # This program is distributed in the hope that it will be useful, but
3511 # WITHOUT ANY WARRANTY; without even the implied warranty of
3512 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3513 # General Public License for more details.
3514 #
3515 # You should have received a copy of the GNU General Public License
3516 # along with this program; if not, write to the Free Software
3517 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3518 #
3519 # As a special exception to the GNU General Public License, if you
3520 # distribute this file as part of a program that contains a
3521 # configuration script generated by Autoconf, you may include it under
3522 # the same distribution terms that you use for the rest of that program.
3523 
3524 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3525 # ----------------------------------
3526 # PKG_PROG_PKG_CONFIG
3527 
3528 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3529 #
3530 # Check to see whether a particular set of modules exists.  Similar
3531 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3532 #
3533 #
3534 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3535 # this or PKG_CHECK_MODULES is called, or make sure to call
3536 # PKG_CHECK_EXISTS manually
3537 # --------------------------------------------------------------
3538 
3539 
3540 
3541 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3542 # ---------------------------------------------
3543 # _PKG_CONFIG
3544 
3545 # _PKG_SHORT_ERRORS_SUPPORTED
3546 # -----------------------------
3547 # _PKG_SHORT_ERRORS_SUPPORTED
3548 
3549 
3550 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3551 # [ACTION-IF-NOT-FOUND])
3552 #
3553 #
3554 # Note that if there is a possibility the first call to
3555 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3556 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3557 #
3558 #
3559 # --------------------------------------------------------------
3560 # PKG_CHECK_MODULES
3561 
3562 
3563 # Include these first...
3564 #
3565 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3566 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3567 #
3568 # This code is free software; you can redistribute it and/or modify it
3569 # under the terms of the GNU General Public License version 2 only, as
3570 # published by the Free Software Foundation.  Oracle designates this
3571 # particular file as subject to the "Classpath" exception as provided
3572 # by Oracle in the LICENSE file that accompanied this code.
3573 #
3574 # This code is distributed in the hope that it will be useful, but WITHOUT
3575 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3576 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3577 # version 2 for more details (a copy is included in the LICENSE file that
3578 # accompanied this code).
3579 #
3580 # You should have received a copy of the GNU General Public License version
3581 # 2 along with this work; if not, write to the Free Software Foundation,
3582 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3583 #
3584 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3585 # or visit www.oracle.com if you need additional information or have any
3586 # questions.
3587 #
3588 
3589 # Create a function/macro that takes a series of named arguments. The call is
3590 # similar to AC_DEFUN, but the setup of the function looks like this:
3591 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3592 # ... do something
3593 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3594 # ])
3595 # A star (*) in front of a named argument means that it is required and it's
3596 # presence will be verified. To pass e.g. the first value as a normal indexed
3597 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3598 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3599 # "ARG_FOO".
3600 #
3601 # The generated function can be called like this:
3602 # MYFUNC(FOO: [foo-val],
3603 #     BAR: [
3604 #         $ECHO hello world
3605 #     ])
3606 # Note that the argument value must start on the same line as the argument name.
3607 #
3608 # Argument 1: Name of the function to define
3609 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3610 # Argument 3: Argument array to treat as named, typically $@
3611 # Argument 4: The main function body
3612 
3613 
3614 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3615 # If so, then append $1 to $2 \
3616 # Also set JVM_ARG_OK to true/false depending on outcome.
3617 
3618 
3619 # Appends a string to a path variable, only adding the : when needed.
3620 
3621 
3622 # Prepends a string to a path variable, only adding the : when needed.
3623 
3624 
3625 # This will make sure the given variable points to a full and proper
3626 # path. This means:
3627 # 1) There will be no spaces in the path. On unix platforms,
3628 #    spaces in the path will result in an error. On Windows,
3629 #    the path will be rewritten using short-style to be space-free.
3630 # 2) The path will be absolute, and it will be in unix-style (on
3631 #     cygwin).
3632 # $1: The name of the variable to fix
3633 
3634 
3635 # This will make sure the given variable points to a executable
3636 # with a full and proper path. This means:
3637 # 1) There will be no spaces in the path. On unix platforms,
3638 #    spaces in the path will result in an error. On Windows,
3639 #    the path will be rewritten using short-style to be space-free.
3640 # 2) The path will be absolute, and it will be in unix-style (on
3641 #     cygwin).
3642 # Any arguments given to the executable is preserved.
3643 # If the input variable does not have a directory specification, then
3644 # it need to be in the PATH.
3645 # $1: The name of the variable to fix
3646 
3647 
3648 
3649 
3650 # Register a --with argument but mark it as deprecated
3651 # $1: The name of the with argument to deprecate, not including --with-
3652 
3653 
3654 # Register a --enable argument but mark it as deprecated
3655 # $1: The name of the with argument to deprecate, not including --enable-
3656 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3657 # $3: Messages to user.
3658 
3659 
3660 
3661 
3662 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3663 # $1: variable to check
3664 
3665 
3666 # Check that there are no unprocessed overridden variables left.
3667 # If so, they are an incorrect argument and we will exit with an error.
3668 
3669 
3670 # Setup a tool for the given variable. If correctly specified by the user,
3671 # use that value, otherwise search for the tool using the supplied code snippet.
3672 # $1: variable to set
3673 # $2: code snippet to call to look for the tool
3674 # $3: code snippet to call if variable was used to find tool
3675 
3676 
3677 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3678 # $1: variable to set
3679 # $2: executable name (or list of names) to look for
3680 # $3: [path]
3681 
3682 
3683 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3684 # $1: variable to set
3685 # $2: executable name (or list of names) to look for
3686 
3687 
3688 # Like BASIC_PATH_PROGS but fails if no tool was found.
3689 # $1: variable to set
3690 # $2: executable name (or list of names) to look for
3691 # $3: [path]
3692 
3693 
3694 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3695 # $1: variable to set
3696 # $2: autoconf macro to call to look for the special tool
3697 
3698 
3699 # Setup the most fundamental tools that relies on not much else to set up,
3700 # but is used by much of the early bootstrap code.
3701 
3702 
3703 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3704 
3705 
3706 # Evaluates platform specific overrides for devkit variables.
3707 # $1: Name of variable
3708 
3709 
3710 
3711 
3712 
3713 
3714 #%%% Simple tools %%%
3715 
3716 # Check if we have found a usable version of make
3717 # $1: the path to a potential make binary (or empty)
3718 # $2: the description on how we found this
3719 
3720 
3721 
3722 
3723 # Goes looking for a usable version of GNU make.
3724 
3725 
3726 
3727 
3728 
3729 
3730 
3731 
3732 # Check if build directory is on local disk. If not possible to determine,
3733 # we prefer to claim it's local.
3734 # Argument 1: directory to test
3735 # Argument 2: what to do if it is on local disk
3736 # Argument 3: what to do otherwise (remote disk or failure)
3737 
3738 
3739 # Check that source files have basic read permissions set. This might
3740 # not be the case in cygwin in certain conditions.
3741 
3742 
3743 
3744 
3745 # Check for support for specific options in bash
3746 
3747 
3748 ################################################################################
3749 #
3750 # Default make target
3751 #
3752 
3753 
3754 # Code to run after AC_OUTPUT
3755 
3756 
3757 #
3758 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3759 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3760 #
3761 # This code is free software; you can redistribute it and/or modify it
3762 # under the terms of the GNU General Public License version 2 only, as
3763 # published by the Free Software Foundation.  Oracle designates this
3764 # particular file as subject to the "Classpath" exception as provided
3765 # by Oracle in the LICENSE file that accompanied this code.
3766 #
3767 # This code is distributed in the hope that it will be useful, but WITHOUT
3768 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3769 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3770 # version 2 for more details (a copy is included in the LICENSE file that
3771 # accompanied this code).
3772 #
3773 # You should have received a copy of the GNU General Public License version
3774 # 2 along with this work; if not, write to the Free Software Foundation,
3775 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3776 #
3777 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3778 # or visit www.oracle.com if you need additional information or have any
3779 # questions.
3780 #
3781 
3782 
3783 
3784 
3785 
3786 # Helper function which possibly converts a path using DOS-style short mode.
3787 # If so, the updated path is stored in $new_path.
3788 # $1: The path to check
3789 
3790 
3791 # Helper function which possibly converts a path using DOS-style short mode.
3792 # If so, the updated path is stored in $new_path.
3793 # $1: The path to check
3794 
3795 
3796 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3797 # and could probably be heavily simplified. However, all changes in this
3798 # area tend to need lot of testing in different scenarios, and in lack of
3799 # proper unit testing, cleaning this up has not been deemed worth the effort
3800 # at the moment.
3801 
3802 
3803 
3804 
3805 
3806 
3807 
3808 
3809 
3810 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3811 
3812 
3813 
3814 
3815 # ... then the rest
3816 #
3817 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3818 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3819 #
3820 # This code is free software; you can redistribute it and/or modify it
3821 # under the terms of the GNU General Public License version 2 only, as
3822 # published by the Free Software Foundation.  Oracle designates this
3823 # particular file as subject to the "Classpath" exception as provided
3824 # by Oracle in the LICENSE file that accompanied this code.
3825 #
3826 # This code is distributed in the hope that it will be useful, but WITHOUT
3827 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3828 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3829 # version 2 for more details (a copy is included in the LICENSE file that
3830 # accompanied this code).
3831 #
3832 # You should have received a copy of the GNU General Public License version
3833 # 2 along with this work; if not, write to the Free Software Foundation,
3834 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3835 #
3836 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3837 # or visit www.oracle.com if you need additional information or have any
3838 # questions.
3839 #
3840 
3841 ########################################################################
3842 # This file handles detection of the Boot JDK. The Boot JDK detection
3843 # process has been developed as a response to solve a complex real-world
3844 # problem. Initially, it was simple, but it has grown as platform after
3845 # platform, idiosyncracy after idiosyncracy has been supported.
3846 #
3847 # The basic idea is this:
3848 # 1) You need an acceptable *) JDK to use as a Boot JDK
3849 # 2) There are several ways to locate a JDK, that are mostly platform
3850 #    dependent **)
3851 # 3) You can have multiple JDKs installed
3852 # 4) If possible, configure should try to dig out an acceptable JDK
3853 #    automatically, without having to resort to command-line options
3854 #
3855 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3856 #     javac) and not a JRE, etc.
3857 #
3858 # **) On Windows we typically use a well-known path.
3859 #     On MacOSX we typically use the tool java_home.
3860 #     On Linux we typically find javac in the $PATH, and then follow a
3861 #     chain of symlinks that often ends up in a real JDK.
3862 #
3863 # This leads to the code where we check in different ways to locate a
3864 # JDK, and if one is found, check if it is acceptable. If not, we print
3865 # our reasons for rejecting it (useful when debugging non-working
3866 # configure situations) and continue checking the next one.
3867 ########################################################################
3868 
3869 # Execute the check given as argument, and verify the result
3870 # If the Boot JDK was previously found, do nothing
3871 # $1 A command line (typically autoconf macro) to execute
3872 
3873 
3874 # Test: Is bootjdk explicitely set by command line arguments?
3875 
3876 
3877 # Test: Is $JAVA_HOME set?
3878 
3879 
3880 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3881 
3882 
3883 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3884 # $1: Argument to the java_home binary (optional)
3885 
3886 
3887 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3888 
3889 
3890 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3891 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3892 # $1 = Path to directory containing jdk installations.
3893 # $2 = String to append to the found JDK directory to get the proper JDK home
3894 
3895 
3896 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3897 # environmental variable as base for where to look.
3898 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3899 
3900 
3901 # Test: Is there a JDK installed in default, well-known locations?
3902 
3903 
3904 # Check that a command-line tool in the Boot JDK is correct
3905 # $1 = name of variable to assign
3906 # $2 = name of binary
3907 
3908 
3909 ###############################################################################
3910 #
3911 # We need a Boot JDK to bootstrap the build.
3912 #
3913 
3914 
3915 
3916 
3917 
3918 # BUILD_JDK: the location of the latest JDK that can run
3919 #   on the host system and supports the target class file version
3920 #   generated in this JDK build.  This variable should only be
3921 #   used after the launchers are built.
3922 #
3923 
3924 # Execute the check given as argument, and verify the result.
3925 # If the JDK was previously found, do nothing.
3926 # $1 A command line (typically autoconf macro) to execute
3927 
3928 
3929 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3930 # is different than the host system doing the build (e.g. cross-compilation),
3931 # a special BUILD_JDK is built as part of the build process.  An external
3932 # prebuilt BUILD_JDK can also be supplied.
3933 
3934 
3935 #
3936 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3937 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3938 #
3939 # This code is free software; you can redistribute it and/or modify it
3940 # under the terms of the GNU General Public License version 2 only, as
3941 # published by the Free Software Foundation.  Oracle designates this
3942 # particular file as subject to the "Classpath" exception as provided
3943 # by Oracle in the LICENSE file that accompanied this code.
3944 #
3945 # This code is distributed in the hope that it will be useful, but WITHOUT
3946 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3947 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3948 # version 2 for more details (a copy is included in the LICENSE file that
3949 # accompanied this code).
3950 #
3951 # You should have received a copy of the GNU General Public License version
3952 # 2 along with this work; if not, write to the Free Software Foundation,
3953 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3954 #
3955 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3956 # or visit www.oracle.com if you need additional information or have any
3957 # questions.
3958 #
3959 
3960 
3961 
3962 
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 
3976 ################################################################################
3977 #
3978 # Runs icecc-create-env once and prints the error if it fails
3979 #
3980 # $1: arguments to icecc-create-env
3981 # $2: log file
3982 #
3983 
3984 
3985 ################################################################################
3986 #
3987 # Optionally enable distributed compilation of native code using icecc/icecream
3988 #
3989 
3990 
3991 
3992 
3993 
3994 
3995 
3996 #
3997 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3998 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3999 #
4000 # This code is free software; you can redistribute it and/or modify it
4001 # under the terms of the GNU General Public License version 2 only, as
4002 # published by the Free Software Foundation.  Oracle designates this
4003 # particular file as subject to the "Classpath" exception as provided
4004 # by Oracle in the LICENSE file that accompanied this code.
4005 #
4006 # This code is distributed in the hope that it will be useful, but WITHOUT
4007 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4008 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4009 # version 2 for more details (a copy is included in the LICENSE file that
4010 # accompanied this code).
4011 #
4012 # You should have received a copy of the GNU General Public License version
4013 # 2 along with this work; if not, write to the Free Software Foundation,
4014 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4015 #
4016 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4017 # or visit www.oracle.com if you need additional information or have any
4018 # questions.
4019 #
4020 
4021 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4022 # corresponding configure arguments instead
4023 
4024 
4025 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4026 # that configure can use them while detecting compilers.
4027 # TOOLCHAIN_TYPE is available here.
4028 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4029 
4030 
4031 
4032 
4033 
4034 
4035 # Documentation on common flags used for solstudio in HIGHEST.
4036 #
4037 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4038 #          done with care, there are some assumptions below that need to
4039 #          be understood about the use of pointers, and IEEE behavior.
4040 #
4041 # -fns: Use non-standard floating point mode (not IEEE 754)
4042 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4043 # -fsingle: Use single precision floating point with 'float'
4044 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4045 #   (Source with excessing pointer casting and data access with mixed
4046 #    pointer types are not recommended)
4047 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4048 #   (If you expect perfect errno behavior, do not use this)
4049 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4050 # -xrestrict: Pointer parameters to functions do not overlap
4051 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4052 #    If you pass in multiple pointers to the same data, do not use this)
4053 # -xlibmil: Inline some library routines
4054 #   (If you expect perfect errno behavior, do not use this)
4055 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4056 #   (If you expect perfect errno behavior, do not use this)
4057 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4058 
4059     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4060     # Bug?
4061     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4062     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4063     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4064     #fi
4065 
4066 
4067 
4068 
4069 
4070 
4071 ################################################################################
4072 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4073 #      conditionals against.
4074 # $2 - Optional prefix for each variable defined.
4075 
4076 
4077 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4078 #                                  IF_FALSE: [RUN-IF-FALSE])
4079 # ------------------------------------------------------------
4080 # Check that the C compiler supports an argument
4081 
4082 
4083 
4084 
4085 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4086 #                                    IF_FALSE: [RUN-IF-FALSE])
4087 # ------------------------------------------------------------
4088 # Check that the C++ compiler supports an argument
4089 
4090 
4091 
4092 
4093 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4094 #                                IF_FALSE: [RUN-IF-FALSE])
4095 # ------------------------------------------------------------
4096 # Check that the C and C++ compilers support an argument
4097 
4098 
4099 
4100 
4101 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4102 #                                   IF_FALSE: [RUN-IF-FALSE])
4103 # ------------------------------------------------------------
4104 # Check that the linker support an argument
4105 
4106 
4107 
4108 
4109 
4110 
4111 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4112 # Arguments:
4113 # $1 - Optional prefix for each variable defined.
4114 
4115 
4116 #
4117 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4118 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4119 #
4120 # This code is free software; you can redistribute it and/or modify it
4121 # under the terms of the GNU General Public License version 2 only, as
4122 # published by the Free Software Foundation.  Oracle designates this
4123 # particular file as subject to the "Classpath" exception as provided
4124 # by Oracle in the LICENSE file that accompanied this code.
4125 #
4126 # This code is distributed in the hope that it will be useful, but WITHOUT
4127 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4128 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4129 # version 2 for more details (a copy is included in the LICENSE file that
4130 # accompanied this code).
4131 #
4132 # You should have received a copy of the GNU General Public License version
4133 # 2 along with this work; if not, write to the Free Software Foundation,
4134 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4135 #
4136 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4137 # or visit www.oracle.com if you need additional information or have any
4138 # questions.
4139 #
4140 
4141 
4142 
4143 
4144 
4145 cygwin_help() {
4146   case $1 in
4147     unzip)
4148       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4149       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4150       ;;
4151     zip)
4152       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4153       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4154       ;;
4155     make)
4156       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4157       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4158       ;;
4159     freetype)
4160       HELP_MSG="
4161 The freetype library can now be build during the configure process.
4162 Download the freetype sources and unpack them into an arbitrary directory:
4163 
4164 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4165 tar -xzf freetype-2.5.3.tar.gz
4166 
4167 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4168 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4169 builds or into '<freetype_src>/lib32' for 32-bit builds.
4170 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4171 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4172 
4173 Alternatively you can unpack the sources like this to use the default directory:
4174 
4175 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4176       ;;
4177   esac
4178 }
4179 
4180 msys_help() {
4181   PKGHANDLER_COMMAND=""
4182 }
4183 
4184 apt_help() {
4185   case $1 in
4186     reduced)
4187       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4188     devkit)
4189       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4190     openjdk)
4191       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4192     alsa)
4193       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4194     cups)
4195       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4196     freetype)
4197       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4198     ffi)
4199       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4200     x11)
4201       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4202     ccache)
4203       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4204     dtrace)
4205       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4206     elf)
4207       PKGHANDLER_COMMAND="sudo apt-get install libelf-dev" ;;
4208   esac
4209 }
4210 
4211 yum_help() {
4212   case $1 in
4213     devkit)
4214       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4215     openjdk)
4216       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4217     alsa)
4218       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4219     cups)
4220       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4221     freetype)
4222       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4223     x11)
4224       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4225     ccache)
4226       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4227     elf)
4228       PKGHANDLER_COMMAND="sudo yum install elfutils-libelf-devel" ;;
4229   esac
4230 }
4231 
4232 port_help() {
4233   PKGHANDLER_COMMAND=""
4234 }
4235 
4236 pkgutil_help() {
4237   PKGHANDLER_COMMAND=""
4238 }
4239 
4240 pkgadd_help() {
4241   PKGHANDLER_COMMAND=""
4242 }
4243 
4244 # This function will check if we're called from the "configure" wrapper while
4245 # printing --help. If so, we will print out additional information that can
4246 # only be extracted within the autoconf script, and then exit. This must be
4247 # called at the very beginning in configure.ac.
4248 
4249 
4250 
4251 
4252 
4253 
4254 #
4255 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4256 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4257 #
4258 # This code is free software; you can redistribute it and/or modify it
4259 # under the terms of the GNU General Public License version 2 only, as
4260 # published by the Free Software Foundation.  Oracle designates this
4261 # particular file as subject to the "Classpath" exception as provided
4262 # by Oracle in the LICENSE file that accompanied this code.
4263 #
4264 # This code is distributed in the hope that it will be useful, but WITHOUT
4265 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4266 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4267 # version 2 for more details (a copy is included in the LICENSE file that
4268 # accompanied this code).
4269 #
4270 # You should have received a copy of the GNU General Public License version
4271 # 2 along with this work; if not, write to the Free Software Foundation,
4272 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4273 #
4274 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4275 # or visit www.oracle.com if you need additional information or have any
4276 # questions.
4277 #
4278 
4279 # All valid JVM features, regardless of platform
4280 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
4281     fprof vm-structs jni-check services management all-gcs nmt cds static-build aot"
4282 
4283 # All valid JVM variants
4284 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
4285 
4286 ###############################################################################
4287 # Check if the specified JVM variant should be built. To be used in shell if
4288 # constructs, like this:
4289 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4290 #
4291 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4292 
4293 # Definition kept in one line to allow inlining in if statements.
4294 # Additional [] needed to keep m4 from mangling shell constructs.
4295 
4296 
4297 ###############################################################################
4298 # Check if the specified JVM features are explicitly enabled. To be used in
4299 # shell if constructs, like this:
4300 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4301 #
4302 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4303 
4304 # Definition kept in one line to allow inlining in if statements.
4305 # Additional [] needed to keep m4 from mangling shell constructs.
4306 
4307 
4308 ###############################################################################
4309 # Check which variants of the JVM that we want to build. Available variants are:
4310 #   server: normal interpreter, and a tiered C1/C2 compiler
4311 #   client: normal interpreter, and C1 (no C2 compiler)
4312 #   minimal: reduced form of client with optional features stripped out
4313 #   core: normal interpreter only, no compiler
4314 #   zero: C++ based interpreter only, no compiler
4315 #   zeroshark: C++ based interpreter, and a llvm-based compiler
4316 #   custom: baseline JVM with no default features
4317 #
4318 
4319 
4320 ###############################################################################
4321 # Check if dtrace should be enabled and has all prerequisites present.
4322 #
4323 
4324 
4325 ################################################################################
4326 # Check if AOT should be enabled
4327 #
4328 
4329 
4330 ###############################################################################
4331 # Set up all JVM features for each JVM variant.
4332 #
4333 
4334 
4335 ###############################################################################
4336 # Validate JVM features once all setup is complete, including custom setup.
4337 #
4338 
4339 
4340 ################################################################################
4341 # Check if gtest should be built
4342 #
4343 
4344 
4345 #
4346 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4347 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4348 #
4349 # This code is free software; you can redistribute it and/or modify it
4350 # under the terms of the GNU General Public License version 2 only, as
4351 # published by the Free Software Foundation.  Oracle designates this
4352 # particular file as subject to the "Classpath" exception as provided
4353 # by Oracle in the LICENSE file that accompanied this code.
4354 #
4355 # This code is distributed in the hope that it will be useful, but WITHOUT
4356 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4357 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4358 # version 2 for more details (a copy is included in the LICENSE file that
4359 # accompanied this code).
4360 #
4361 # You should have received a copy of the GNU General Public License version
4362 # 2 along with this work; if not, write to the Free Software Foundation,
4363 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4364 #
4365 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4366 # or visit www.oracle.com if you need additional information or have any
4367 # questions.
4368 #
4369 
4370 ###############################################################################
4371 # Check which variant of the JDK that we want to build.
4372 # Currently we have:
4373 #    normal:   standard edition
4374 # but the custom make system may add other variants
4375 #
4376 # Effectively the JDK variant gives a name to a specific set of
4377 # modules to compile into the JDK.
4378 
4379 
4380 ###############################################################################
4381 # Set the debug level
4382 #    release: no debug information, all optimizations, no asserts.
4383 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4384 #    fastdebug: debug information (-g), all optimizations, all asserts
4385 #    slowdebug: debug information (-g), no optimizations, all asserts
4386 
4387 
4388 ###############################################################################
4389 #
4390 # Should we build only OpenJDK even if closed sources are present?
4391 #
4392 
4393 
4394 
4395 
4396 ###############################################################################
4397 #
4398 # Enable or disable the elliptic curve crypto implementation
4399 #
4400 
4401 
4402 
4403 
4404 ################################################################################
4405 #
4406 # Gcov coverage data for hotspot
4407 #
4408 
4409 
4410 ################################################################################
4411 #
4412 # Static build support.  When enabled will generate static
4413 # libraries instead of shared libraries for all JDK libs.
4414 #
4415 
4416 
4417 ################################################################################
4418 #
4419 # jlink options.
4420 # We always keep packaged modules in JDK image.
4421 #
4422 
4423 
4424 ################################################################################
4425 #
4426 # Check if building of the jtreg failure handler should be enabled.
4427 #
4428 
4429 
4430 ################################################################################
4431 #
4432 # Enable or disable generation of the classlist at build time
4433 #
4434 
4435 
4436 #
4437 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4438 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4439 #
4440 # This code is free software; you can redistribute it and/or modify it
4441 # under the terms of the GNU General Public License version 2 only, as
4442 # published by the Free Software Foundation.  Oracle designates this
4443 # particular file as subject to the "Classpath" exception as provided
4444 # by Oracle in the LICENSE file that accompanied this code.
4445 #
4446 # This code is distributed in the hope that it will be useful, but WITHOUT
4447 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4448 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4449 # version 2 for more details (a copy is included in the LICENSE file that
4450 # accompanied this code).
4451 #
4452 # You should have received a copy of the GNU General Public License version
4453 # 2 along with this work; if not, write to the Free Software Foundation,
4454 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4455 #
4456 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4457 # or visit www.oracle.com if you need additional information or have any
4458 # questions.
4459 #
4460 
4461 ###############################################################################
4462 #
4463 # Setup version numbers
4464 #
4465 
4466 # Verify that a given string represents a valid version number, and assign it
4467 # to a variable.
4468 
4469 # Argument 1: the variable to assign to
4470 # Argument 2: the value given by the user
4471 
4472 
4473 
4474 
4475 #
4476 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4477 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4478 #
4479 # This code is free software; you can redistribute it and/or modify it
4480 # under the terms of the GNU General Public License version 2 only, as
4481 # published by the Free Software Foundation.  Oracle designates this
4482 # particular file as subject to the "Classpath" exception as provided
4483 # by Oracle in the LICENSE file that accompanied this code.
4484 #
4485 # This code is distributed in the hope that it will be useful, but WITHOUT
4486 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4487 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4488 # version 2 for more details (a copy is included in the LICENSE file that
4489 # accompanied this code).
4490 #
4491 # You should have received a copy of the GNU General Public License version
4492 # 2 along with this work; if not, write to the Free Software Foundation,
4493 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4494 #
4495 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4496 # or visit www.oracle.com if you need additional information or have any
4497 # questions.
4498 #
4499 
4500 # Major library component reside in separate files.
4501 #
4502 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4503 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4504 #
4505 # This code is free software; you can redistribute it and/or modify it
4506 # under the terms of the GNU General Public License version 2 only, as
4507 # published by the Free Software Foundation.  Oracle designates this
4508 # particular file as subject to the "Classpath" exception as provided
4509 # by Oracle in the LICENSE file that accompanied this code.
4510 #
4511 # This code is distributed in the hope that it will be useful, but WITHOUT
4512 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4513 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4514 # version 2 for more details (a copy is included in the LICENSE file that
4515 # accompanied this code).
4516 #
4517 # You should have received a copy of the GNU General Public License version
4518 # 2 along with this work; if not, write to the Free Software Foundation,
4519 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4520 #
4521 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4522 # or visit www.oracle.com if you need additional information or have any
4523 # questions.
4524 #
4525 
4526 ################################################################################
4527 # Setup alsa (Advanced Linux Sound Architecture)
4528 ################################################################################
4529 
4530 
4531 #
4532 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4533 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4534 #
4535 # This code is free software; you can redistribute it and/or modify it
4536 # under the terms of the GNU General Public License version 2 only, as
4537 # published by the Free Software Foundation.  Oracle designates this
4538 # particular file as subject to the "Classpath" exception as provided
4539 # by Oracle in the LICENSE file that accompanied this code.
4540 #
4541 # This code is distributed in the hope that it will be useful, but WITHOUT
4542 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4543 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4544 # version 2 for more details (a copy is included in the LICENSE file that
4545 # accompanied this code).
4546 #
4547 # You should have received a copy of the GNU General Public License version
4548 # 2 along with this work; if not, write to the Free Software Foundation,
4549 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4550 #
4551 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4552 # or visit www.oracle.com if you need additional information or have any
4553 # questions.
4554 #
4555 
4556 ################################################################################
4557 # Setup bundled libraries.
4558 #
4559 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4560 # OpenJDK repository. Default is to use these libraries as bundled, but they
4561 # might be replaced by en external version by the user.
4562 ################################################################################
4563 
4564 
4565 ################################################################################
4566 # Setup libjpeg
4567 ################################################################################
4568 
4569 
4570 ################################################################################
4571 # Setup giflib
4572 ################################################################################
4573 
4574 
4575 ################################################################################
4576 # Setup libpng
4577 ################################################################################
4578 
4579 
4580 ################################################################################
4581 # Setup zlib
4582 ################################################################################
4583 
4584 
4585 ################################################################################
4586 # Setup lcms (Little CMS)
4587 ################################################################################
4588 
4589 
4590 #
4591 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4592 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4593 #
4594 # This code is free software; you can redistribute it and/or modify it
4595 # under the terms of the GNU General Public License version 2 only, as
4596 # published by the Free Software Foundation.  Oracle designates this
4597 # particular file as subject to the "Classpath" exception as provided
4598 # by Oracle in the LICENSE file that accompanied this code.
4599 #
4600 # This code is distributed in the hope that it will be useful, but WITHOUT
4601 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4602 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4603 # version 2 for more details (a copy is included in the LICENSE file that
4604 # accompanied this code).
4605 #
4606 # You should have received a copy of the GNU General Public License version
4607 # 2 along with this work; if not, write to the Free Software Foundation,
4608 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4609 #
4610 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4611 # or visit www.oracle.com if you need additional information or have any
4612 # questions.
4613 #
4614 
4615 ################################################################################
4616 # Setup cups (Common Unix Printing System)
4617 ################################################################################
4618 
4619 
4620 #
4621 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4622 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4623 #
4624 # This code is free software; you can redistribute it and/or modify it
4625 # under the terms of the GNU General Public License version 2 only, as
4626 # published by the Free Software Foundation.  Oracle designates this
4627 # particular file as subject to the "Classpath" exception as provided
4628 # by Oracle in the LICENSE file that accompanied this code.
4629 #
4630 # This code is distributed in the hope that it will be useful, but WITHOUT
4631 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4632 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4633 # version 2 for more details (a copy is included in the LICENSE file that
4634 # accompanied this code).
4635 #
4636 # You should have received a copy of the GNU General Public License version
4637 # 2 along with this work; if not, write to the Free Software Foundation,
4638 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4639 #
4640 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4641 # or visit www.oracle.com if you need additional information or have any
4642 # questions.
4643 #
4644 
4645 ################################################################################
4646 # Setup libffi (Foreign Function Interface)
4647 ################################################################################
4648 
4649 
4650 #
4651 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4652 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4653 #
4654 # This code is free software; you can redistribute it and/or modify it
4655 # under the terms of the GNU General Public License version 2 only, as
4656 # published by the Free Software Foundation.  Oracle designates this
4657 # particular file as subject to the "Classpath" exception as provided
4658 # by Oracle in the LICENSE file that accompanied this code.
4659 #
4660 # This code is distributed in the hope that it will be useful, but WITHOUT
4661 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4662 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4663 # version 2 for more details (a copy is included in the LICENSE file that
4664 # accompanied this code).
4665 #
4666 # You should have received a copy of the GNU General Public License version
4667 # 2 along with this work; if not, write to the Free Software Foundation,
4668 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4669 #
4670 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4671 # or visit www.oracle.com if you need additional information or have any
4672 # questions.
4673 #
4674 
4675 ################################################################################
4676 # Build the freetype lib from source
4677 ################################################################################
4678 
4679 
4680 ################################################################################
4681 # Check if a potential freeype library match is correct and usable
4682 ################################################################################
4683 
4684 
4685 ################################################################################
4686 # Setup freetype (The FreeType2 font rendering library)
4687 ################################################################################
4688 
4689 
4690 #
4691 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4692 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4693 #
4694 # This code is free software; you can redistribute it and/or modify it
4695 # under the terms of the GNU General Public License version 2 only, as
4696 # published by the Free Software Foundation.  Oracle designates this
4697 # particular file as subject to the "Classpath" exception as provided
4698 # by Oracle in the LICENSE file that accompanied this code.
4699 #
4700 # This code is distributed in the hope that it will be useful, but WITHOUT
4701 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4702 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4703 # version 2 for more details (a copy is included in the LICENSE file that
4704 # accompanied this code).
4705 #
4706 # You should have received a copy of the GNU General Public License version
4707 # 2 along with this work; if not, write to the Free Software Foundation,
4708 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4709 #
4710 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4711 # or visit www.oracle.com if you need additional information or have any
4712 # questions.
4713 #
4714 
4715 ################################################################################
4716 # Setup the standard C/C++ runtime libraries.
4717 #
4718 # Most importantly, determine if stdc++ should be linked statically or
4719 # dynamically.
4720 ################################################################################
4721 
4722 
4723 #
4724 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4725 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4726 #
4727 # This code is free software; you can redistribute it and/or modify it
4728 # under the terms of the GNU General Public License version 2 only, as
4729 # published by the Free Software Foundation.  Oracle designates this
4730 # particular file as subject to the "Classpath" exception as provided
4731 # by Oracle in the LICENSE file that accompanied this code.
4732 #
4733 # This code is distributed in the hope that it will be useful, but WITHOUT
4734 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4735 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4736 # version 2 for more details (a copy is included in the LICENSE file that
4737 # accompanied this code).
4738 #
4739 # You should have received a copy of the GNU General Public License version
4740 # 2 along with this work; if not, write to the Free Software Foundation,
4741 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4742 #
4743 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4744 # or visit www.oracle.com if you need additional information or have any
4745 # questions.
4746 #
4747 
4748 ################################################################################
4749 # Setup X11 Windows system
4750 ################################################################################
4751 
4752 
4753 #
4754 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4755 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4756 #
4757 # This code is free software; you can redistribute it and/or modify it
4758 # under the terms of the GNU General Public License version 2 only, as
4759 # published by the Free Software Foundation.  Oracle designates this
4760 # particular file as subject to the "Classpath" exception as provided
4761 # by Oracle in the LICENSE file that accompanied this code.
4762 #
4763 # This code is distributed in the hope that it will be useful, but WITHOUT
4764 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4765 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4766 # version 2 for more details (a copy is included in the LICENSE file that
4767 # accompanied this code).
4768 #
4769 # You should have received a copy of the GNU General Public License version
4770 # 2 along with this work; if not, write to the Free Software Foundation,
4771 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4772 #
4773 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4774 # or visit www.oracle.com if you need additional information or have any
4775 # questions.
4776 #
4777 
4778 ################################################################################
4779 # Setup libelf (ELF library)
4780 ################################################################################
4781 
4782 
4783 
4784 ################################################################################
4785 # Determine which libraries are needed for this configuration
4786 ################################################################################
4787 
4788 
4789 ################################################################################
4790 # Parse library options, and setup needed libraries
4791 ################################################################################
4792 
4793 
4794 ################################################################################
4795 # Setup llvm (Low-Level VM)
4796 ################################################################################
4797 
4798 
4799 ################################################################################
4800 # Setup various libraries, typically small system libraries
4801 ################################################################################
4802 
4803 
4804 ################################################################################
4805 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4806 # redistribute it in the test image.
4807 ################################################################################
4808 
4809 
4810 
4811 #
4812 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4813 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4814 #
4815 # This code is free software; you can redistribute it and/or modify it
4816 # under the terms of the GNU General Public License version 2 only, as
4817 # published by the Free Software Foundation.  Oracle designates this
4818 # particular file as subject to the "Classpath" exception as provided
4819 # by Oracle in the LICENSE file that accompanied this code.
4820 #
4821 # This code is distributed in the hope that it will be useful, but WITHOUT
4822 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4823 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4824 # version 2 for more details (a copy is included in the LICENSE file that
4825 # accompanied this code).
4826 #
4827 # You should have received a copy of the GNU General Public License version
4828 # 2 along with this work; if not, write to the Free Software Foundation,
4829 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4830 #
4831 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4832 # or visit www.oracle.com if you need additional information or have any
4833 # questions.
4834 #
4835 
4836 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4837 # Converts autoconf style CPU name to OpenJDK style, into
4838 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4839 
4840 
4841 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4842 # Converts autoconf style OS name to OpenJDK style, into
4843 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4844 
4845 
4846 # Expects $host_os $host_cpu $build_os and $build_cpu
4847 # and $with_target_bits to have been setup!
4848 #
4849 # Translate the standard triplet(quadruplet) definition
4850 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4851 # OPENJDK_BUILD_OS, etc.
4852 
4853 
4854 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4855 # accordingly. Must be done after setting up build and target system, but before
4856 # doing anything else with these values.
4857 
4858 
4859 # Setup the legacy variables, for controlling the old makefiles.
4860 #
4861 
4862 
4863 # $1 - Either TARGET or BUILD to setup the variables for.
4864 
4865 
4866 
4867 
4868 #%%% Build and target systems %%%
4869 
4870 
4871 
4872 
4873 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4874 # Add -mX to various FLAGS variables.
4875 
4876 
4877 
4878 
4879 
4880 
4881 #
4882 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4883 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4884 #
4885 # This code is free software; you can redistribute it and/or modify it
4886 # under the terms of the GNU General Public License version 2 only, as
4887 # published by the Free Software Foundation.  Oracle designates this
4888 # particular file as subject to the "Classpath" exception as provided
4889 # by Oracle in the LICENSE file that accompanied this code.
4890 #
4891 # This code is distributed in the hope that it will be useful, but WITHOUT
4892 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4893 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4894 # version 2 for more details (a copy is included in the LICENSE file that
4895 # accompanied this code).
4896 #
4897 # You should have received a copy of the GNU General Public License version
4898 # 2 along with this work; if not, write to the Free Software Foundation,
4899 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4900 #
4901 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4902 # or visit www.oracle.com if you need additional information or have any
4903 # questions.
4904 #
4905 
4906 
4907 
4908 
4909 
4910 
4911 
4912 ################################################################################
4913 # Define a mechanism for importing extra prebuilt modules
4914 #
4915 
4916 
4917 
4918 #
4919 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4920 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4921 #
4922 # This code is free software; you can redistribute it and/or modify it
4923 # under the terms of the GNU General Public License version 2 only, as
4924 # published by the Free Software Foundation.  Oracle designates this
4925 # particular file as subject to the "Classpath" exception as provided
4926 # by Oracle in the LICENSE file that accompanied this code.
4927 #
4928 # This code is distributed in the hope that it will be useful, but WITHOUT
4929 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4930 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4931 # version 2 for more details (a copy is included in the LICENSE file that
4932 # accompanied this code).
4933 #
4934 # You should have received a copy of the GNU General Public License version
4935 # 2 along with this work; if not, write to the Free Software Foundation,
4936 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4937 #
4938 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4939 # or visit www.oracle.com if you need additional information or have any
4940 # questions.
4941 #
4942 
4943 ########################################################################
4944 # This file is responsible for detecting, verifying and setting up the
4945 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4946 # proper paths to the binaries, but it will not setup any flags.
4947 #
4948 # The binaries used is determined by the toolchain type, which is the family of
4949 # compilers and related tools that are used.
4950 ########################################################################
4951 
4952 
4953 # All valid toolchains, regardless of platform (used by help.m4)
4954 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4955 
4956 # These toolchains are valid on different platforms
4957 VALID_TOOLCHAINS_linux="gcc clang"
4958 VALID_TOOLCHAINS_solaris="solstudio"
4959 VALID_TOOLCHAINS_macosx="gcc clang"
4960 VALID_TOOLCHAINS_aix="xlc"
4961 VALID_TOOLCHAINS_windows="microsoft"
4962 
4963 # Toolchain descriptions
4964 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4965 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4966 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4967 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4968 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4969 
4970 # Minimum supported versions, empty means unspecified
4971 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
4972 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3"
4973 TOOLCHAIN_MINIMUM_VERSION_microsoft=""
4974 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
4975 TOOLCHAIN_MINIMUM_VERSION_xlc=""
4976 
4977 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4978 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4979 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4980 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4981 
4982 
4983 # Check if the configured compiler (C and C++) is of a specific version or
4984 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4985 #
4986 # Arguments:
4987 #   VERSION:   The version string to check against the found version
4988 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
4989 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
4990 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
4991 
4992 
4993 
4994 
4995 # Setup a number of variables describing how native output files are
4996 # named on this platform/toolchain.
4997 
4998 
4999 # Determine which toolchain type to use, and make sure it is valid for this
5000 # platform. Setup various information about the selected toolchain.
5001 
5002 
5003 # Before we start detecting the toolchain executables, we might need some
5004 # special setup, e.g. additional paths etc.
5005 
5006 
5007 # Restore path, etc
5008 
5009 
5010 # Check if a compiler is of the toolchain type we expect, and save the version
5011 # information from it. If the compiler does not match the expected type,
5012 # this function will abort using AC_MSG_ERROR. If it matches, the version will
5013 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
5014 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
5015 #
5016 # $1 = compiler to test (CC or CXX)
5017 # $2 = human readable name of compiler (C or C++)
5018 
5019 
5020 # Try to locate the given C or C++ compiler in the path, or otherwise.
5021 #
5022 # $1 = compiler to test (CC or CXX)
5023 # $2 = human readable name of compiler (C or C++)
5024 # $3 = list of compiler names to search for
5025 
5026 
5027 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
5028 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
5029 # archiver (AR). Verify that the compilers are correct according to the
5030 # toolchain type.
5031 
5032 
5033 # Setup additional tools that is considered a part of the toolchain, but not the
5034 # core part. Many of these are highly platform-specific and do not exist,
5035 # and/or are not needed on all platforms.
5036 
5037 
5038 # Setup the build tools (i.e, the compiler and linker used to build programs
5039 # that should be run on the build platform, not the target platform, as a build
5040 # helper). Since the non-cross-compile case uses the normal, target compilers
5041 # for this, we can only do this after these have been setup.
5042 
5043 
5044 # Setup legacy variables that are still needed as alternative ways to refer to
5045 # parts of the toolchain.
5046 
5047 
5048 # Do some additional checks on the detected tools.
5049 
5050 
5051 # Setup the JTReg Regression Test Harness.
5052 
5053 
5054 #
5055 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5056 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5057 #
5058 # This code is free software; you can redistribute it and/or modify it
5059 # under the terms of the GNU General Public License version 2 only, as
5060 # published by the Free Software Foundation.  Oracle designates this
5061 # particular file as subject to the "Classpath" exception as provided
5062 # by Oracle in the LICENSE file that accompanied this code.
5063 #
5064 # This code is distributed in the hope that it will be useful, but WITHOUT
5065 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5066 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5067 # version 2 for more details (a copy is included in the LICENSE file that
5068 # accompanied this code).
5069 #
5070 # You should have received a copy of the GNU General Public License version
5071 # 2 along with this work; if not, write to the Free Software Foundation,
5072 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5073 #
5074 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5075 # or visit www.oracle.com if you need additional information or have any
5076 # questions.
5077 #
5078 
5079 ################################################################################
5080 # The order of these defines the priority by which we try to find them.
5081 VALID_VS_VERSIONS="2013 2012 2010"
5082 
5083 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5084 VS_VERSION_INTERNAL_2010=100
5085 VS_MSVCR_2010=msvcr100.dll
5086 # We don't use msvcp on Visual Studio 2010
5087 #VS_MSVCP_2010=msvcp100.dll
5088 VS_ENVVAR_2010="VS100COMNTOOLS"
5089 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5090 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5091 VS_VS_PLATFORM_NAME_2010="v100"
5092 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5093 
5094 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5095 VS_VERSION_INTERNAL_2012=110
5096 VS_MSVCR_2012=msvcr110.dll
5097 VS_MSVCP_2012=msvcp110.dll
5098 VS_ENVVAR_2012="VS110COMNTOOLS"
5099 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5100 VS_SDK_INSTALLDIR_2012=
5101 VS_VS_PLATFORM_NAME_2012="v110"
5102 VS_SDK_PLATFORM_NAME_2012=
5103 
5104 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5105 VS_VERSION_INTERNAL_2013=120
5106 VS_MSVCR_2013=msvcr120.dll
5107 VS_MSVCP_2013=msvcp120.dll
5108 VS_ENVVAR_2013="VS120COMNTOOLS"
5109 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5110 VS_SDK_INSTALLDIR_2013=
5111 VS_VS_PLATFORM_NAME_2013="v120"
5112 VS_SDK_PLATFORM_NAME_2013=
5113 
5114 ################################################################################
5115 
5116 
5117 
5118 ################################################################################
5119 
5120 
5121 
5122 ################################################################################
5123 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5124 # build environment and assigns it to VS_ENV_CMD
5125 
5126 
5127 ################################################################################
5128 
5129 
5130 
5131 ################################################################################
5132 # Check if the VS env variables were setup prior to running configure.
5133 # If not, then find vcvarsall.bat and run it automatically, and integrate
5134 # the set env variables into the spec file.
5135 
5136 
5137 
5138 
5139 
5140 
5141 
5142 
5143 
5144 
5145 
5146 
5147 
5148 
5149 # This line needs to be here, verbatim, after all includes and the dummy hook
5150 # definitions. It is replaced with custom functionality when building
5151 # custom sources.
5152 #CUSTOM_AUTOCONF_INCLUDE
5153 
5154 # Do not change or remove the following line, it is needed for consistency checks:
5155 DATE_WHEN_GENERATED=1477705915
5156 
5157 ###############################################################################
5158 #
5159 # Initialization / Boot-strapping
5160 #
5161 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5162 # thus it jumps back and forth, each time gaining something needed later on.
5163 #
5164 ###############################################################################
5165 
5166 # If we are requested to print additional help, do that and then exit.
5167 # This must be the very first call.
5168 
5169   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5170 
5171     # Print available toolchains
5172     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5173     $PRINTF "Which are valid to use depends on the build platform.\n"
5174     for toolchain in $VALID_TOOLCHAINS_all; do
5175       # Use indirect variable referencing
5176       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5177       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5178       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5179     done
5180     $PRINTF "\n"
5181 
5182     # Print available jvm features
5183     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5184     $PRINTF "Which are valid to use depends on the target platform.\n  "
5185     $PRINTF "%s " $VALID_JVM_FEATURES
5186     $PRINTF "\n"
5187 
5188     # And now exit directly
5189     exit 0
5190   fi
5191 
5192 
5193 # Basic initialization that must happen first of all in the normal process.
5194 
5195   # Save the original command line. This is passed to us by the wrapper configure script.
5196 
5197   # Save the path variable before it gets changed
5198   ORIGINAL_PATH="$PATH"
5199 
5200   DATE_WHEN_CONFIGURED=`LANG=C date`
5201 
5202   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5203 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5205 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5206 
5207 
5208   # Start with tools that do not need have cross compilation support
5209   # and can be expected to be found in the default PATH. These tools are
5210   # used by configure.
5211 
5212   # First are all the simple required tools.
5213 
5214 
5215 
5216   # Publish this variable in the help.
5217 
5218 
5219   if [ -z "${BASENAME+x}" ]; then
5220     # The variable is not set by user, try to locate tool using the code snippet
5221     for ac_prog in basename
5222 do
5223   # Extract the first word of "$ac_prog", so it can be a program name with args.
5224 set dummy $ac_prog; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if ${ac_cv_path_BASENAME+:} false; then :
5228   $as_echo_n "(cached) " >&6
5229 else
5230   case $BASENAME in
5231   [\\/]* | ?:[\\/]*)
5232   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5233   ;;
5234   *)
5235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5237 do
5238   IFS=$as_save_IFS
5239   test -z "$as_dir" && as_dir=.
5240     for ac_exec_ext in '' $ac_executable_extensions; do
5241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244     break 2
5245   fi
5246 done
5247   done
5248 IFS=$as_save_IFS
5249 
5250   ;;
5251 esac
5252 fi
5253 BASENAME=$ac_cv_path_BASENAME
5254 if test -n "$BASENAME"; then
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5256 $as_echo "$BASENAME" >&6; }
5257 else
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5260 fi
5261 
5262 
5263   test -n "$BASENAME" && break
5264 done
5265 
5266   else
5267     # The variable is set, but is it from the command line or the environment?
5268 
5269     # Try to remove the string !BASENAME! from our list.
5270     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5271     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5272       # If it failed, the variable was not from the command line. Ignore it,
5273       # but warn the user (except for BASH, which is always set by the calling BASH).
5274       if test "xBASENAME" != xBASH; then
5275         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5276 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5277       fi
5278       # Try to locate tool using the code snippet
5279       for ac_prog in basename
5280 do
5281   # Extract the first word of "$ac_prog", so it can be a program name with args.
5282 set dummy $ac_prog; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if ${ac_cv_path_BASENAME+:} false; then :
5286   $as_echo_n "(cached) " >&6
5287 else
5288   case $BASENAME in
5289   [\\/]* | ?:[\\/]*)
5290   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5291   ;;
5292   *)
5293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296   IFS=$as_save_IFS
5297   test -z "$as_dir" && as_dir=.
5298     for ac_exec_ext in '' $ac_executable_extensions; do
5299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302     break 2
5303   fi
5304 done
5305   done
5306 IFS=$as_save_IFS
5307 
5308   ;;
5309 esac
5310 fi
5311 BASENAME=$ac_cv_path_BASENAME
5312 if test -n "$BASENAME"; then
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5314 $as_echo "$BASENAME" >&6; }
5315 else
5316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5318 fi
5319 
5320 
5321   test -n "$BASENAME" && break
5322 done
5323 
5324     else
5325       # If it succeeded, then it was overridden by the user. We will use it
5326       # for the tool.
5327 
5328       # First remove it from the list of overridden variables, so we can test
5329       # for unknown variables in the end.
5330       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5331 
5332       # Check if we try to supply an empty value
5333       if test "x$BASENAME" = x; then
5334         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5335 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5336         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5337 $as_echo_n "checking for BASENAME... " >&6; }
5338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5339 $as_echo "disabled" >&6; }
5340       else
5341         # Check if the provided tool contains a complete path.
5342         tool_specified="$BASENAME"
5343         tool_basename="${tool_specified##*/}"
5344         if test "x$tool_basename" = "x$tool_specified"; then
5345           # A command without a complete path is provided, search $PATH.
5346           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5347 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5348           # Extract the first word of "$tool_basename", so it can be a program name with args.
5349 set dummy $tool_basename; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_path_BASENAME+:} false; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355   case $BASENAME in
5356   [\\/]* | ?:[\\/]*)
5357   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5358   ;;
5359   *)
5360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365     for ac_exec_ext in '' $ac_executable_extensions; do
5366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372   done
5373 IFS=$as_save_IFS
5374 
5375   ;;
5376 esac
5377 fi
5378 BASENAME=$ac_cv_path_BASENAME
5379 if test -n "$BASENAME"; then
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5381 $as_echo "$BASENAME" >&6; }
5382 else
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5385 fi
5386 
5387 
5388           if test "x$BASENAME" = x; then
5389             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5390           fi
5391         else
5392           # Otherwise we believe it is a complete path. Use it as it is.
5393           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5394 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5395           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5396 $as_echo_n "checking for BASENAME... " >&6; }
5397           if test ! -x "$tool_specified"; then
5398             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5399 $as_echo "not found" >&6; }
5400             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5401           fi
5402           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5403 $as_echo "$tool_specified" >&6; }
5404         fi
5405       fi
5406     fi
5407 
5408   fi
5409 
5410 
5411 
5412   if test "x$BASENAME" = x; then
5413     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5414   fi
5415 
5416 
5417 
5418 
5419 
5420   # Publish this variable in the help.
5421 
5422 
5423   if [ -z "${BASH+x}" ]; then
5424     # The variable is not set by user, try to locate tool using the code snippet
5425     for ac_prog in bash
5426 do
5427   # Extract the first word of "$ac_prog", so it can be a program name with args.
5428 set dummy $ac_prog; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if ${ac_cv_path_BASH+:} false; then :
5432   $as_echo_n "(cached) " >&6
5433 else
5434   case $BASH in
5435   [\\/]* | ?:[\\/]*)
5436   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5437   ;;
5438   *)
5439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5441 do
5442   IFS=$as_save_IFS
5443   test -z "$as_dir" && as_dir=.
5444     for ac_exec_ext in '' $ac_executable_extensions; do
5445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448     break 2
5449   fi
5450 done
5451   done
5452 IFS=$as_save_IFS
5453 
5454   ;;
5455 esac
5456 fi
5457 BASH=$ac_cv_path_BASH
5458 if test -n "$BASH"; then
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5460 $as_echo "$BASH" >&6; }
5461 else
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5464 fi
5465 
5466 
5467   test -n "$BASH" && break
5468 done
5469 
5470   else
5471     # The variable is set, but is it from the command line or the environment?
5472 
5473     # Try to remove the string !BASH! from our list.
5474     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5475     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5476       # If it failed, the variable was not from the command line. Ignore it,
5477       # but warn the user (except for BASH, which is always set by the calling BASH).
5478       if test "xBASH" != xBASH; then
5479         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5480 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5481       fi
5482       # Try to locate tool using the code snippet
5483       for ac_prog in bash
5484 do
5485   # Extract the first word of "$ac_prog", so it can be a program name with args.
5486 set dummy $ac_prog; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_path_BASH+:} false; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   case $BASH in
5493   [\\/]* | ?:[\\/]*)
5494   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5495   ;;
5496   *)
5497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500   IFS=$as_save_IFS
5501   test -z "$as_dir" && as_dir=.
5502     for ac_exec_ext in '' $ac_executable_extensions; do
5503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506     break 2
5507   fi
5508 done
5509   done
5510 IFS=$as_save_IFS
5511 
5512   ;;
5513 esac
5514 fi
5515 BASH=$ac_cv_path_BASH
5516 if test -n "$BASH"; then
5517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5518 $as_echo "$BASH" >&6; }
5519 else
5520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5522 fi
5523 
5524 
5525   test -n "$BASH" && break
5526 done
5527 
5528     else
5529       # If it succeeded, then it was overridden by the user. We will use it
5530       # for the tool.
5531 
5532       # First remove it from the list of overridden variables, so we can test
5533       # for unknown variables in the end.
5534       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5535 
5536       # Check if we try to supply an empty value
5537       if test "x$BASH" = x; then
5538         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5539 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5540         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5541 $as_echo_n "checking for BASH... " >&6; }
5542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5543 $as_echo "disabled" >&6; }
5544       else
5545         # Check if the provided tool contains a complete path.
5546         tool_specified="$BASH"
5547         tool_basename="${tool_specified##*/}"
5548         if test "x$tool_basename" = "x$tool_specified"; then
5549           # A command without a complete path is provided, search $PATH.
5550           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5551 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5552           # Extract the first word of "$tool_basename", so it can be a program name with args.
5553 set dummy $tool_basename; ac_word=$2
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if ${ac_cv_path_BASH+:} false; then :
5557   $as_echo_n "(cached) " >&6
5558 else
5559   case $BASH in
5560   [\\/]* | ?:[\\/]*)
5561   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5562   ;;
5563   *)
5564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5566 do
5567   IFS=$as_save_IFS
5568   test -z "$as_dir" && as_dir=.
5569     for ac_exec_ext in '' $ac_executable_extensions; do
5570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5571     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573     break 2
5574   fi
5575 done
5576   done
5577 IFS=$as_save_IFS
5578 
5579   ;;
5580 esac
5581 fi
5582 BASH=$ac_cv_path_BASH
5583 if test -n "$BASH"; then
5584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5585 $as_echo "$BASH" >&6; }
5586 else
5587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5589 fi
5590 
5591 
5592           if test "x$BASH" = x; then
5593             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5594           fi
5595         else
5596           # Otherwise we believe it is a complete path. Use it as it is.
5597           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5598 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5599           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5600 $as_echo_n "checking for BASH... " >&6; }
5601           if test ! -x "$tool_specified"; then
5602             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5603 $as_echo "not found" >&6; }
5604             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5605           fi
5606           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5607 $as_echo "$tool_specified" >&6; }
5608         fi
5609       fi
5610     fi
5611 
5612   fi
5613 
5614 
5615 
5616   if test "x$BASH" = x; then
5617     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5618   fi
5619 
5620 
5621 
5622 
5623 
5624   # Publish this variable in the help.
5625 
5626 
5627   if [ -z "${CAT+x}" ]; then
5628     # The variable is not set by user, try to locate tool using the code snippet
5629     for ac_prog in cat
5630 do
5631   # Extract the first word of "$ac_prog", so it can be a program name with args.
5632 set dummy $ac_prog; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if ${ac_cv_path_CAT+:} false; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   case $CAT in
5639   [\\/]* | ?:[\\/]*)
5640   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5641   ;;
5642   *)
5643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646   IFS=$as_save_IFS
5647   test -z "$as_dir" && as_dir=.
5648     for ac_exec_ext in '' $ac_executable_extensions; do
5649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652     break 2
5653   fi
5654 done
5655   done
5656 IFS=$as_save_IFS
5657 
5658   ;;
5659 esac
5660 fi
5661 CAT=$ac_cv_path_CAT
5662 if test -n "$CAT"; then
5663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5664 $as_echo "$CAT" >&6; }
5665 else
5666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5668 fi
5669 
5670 
5671   test -n "$CAT" && break
5672 done
5673 
5674   else
5675     # The variable is set, but is it from the command line or the environment?
5676 
5677     # Try to remove the string !CAT! from our list.
5678     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5679     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5680       # If it failed, the variable was not from the command line. Ignore it,
5681       # but warn the user (except for BASH, which is always set by the calling BASH).
5682       if test "xCAT" != xBASH; then
5683         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5684 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5685       fi
5686       # Try to locate tool using the code snippet
5687       for ac_prog in cat
5688 do
5689   # Extract the first word of "$ac_prog", so it can be a program name with args.
5690 set dummy $ac_prog; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if ${ac_cv_path_CAT+:} false; then :
5694   $as_echo_n "(cached) " >&6
5695 else
5696   case $CAT in
5697   [\\/]* | ?:[\\/]*)
5698   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5699   ;;
5700   *)
5701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706     for ac_exec_ext in '' $ac_executable_extensions; do
5707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5708     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710     break 2
5711   fi
5712 done
5713   done
5714 IFS=$as_save_IFS
5715 
5716   ;;
5717 esac
5718 fi
5719 CAT=$ac_cv_path_CAT
5720 if test -n "$CAT"; then
5721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5722 $as_echo "$CAT" >&6; }
5723 else
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5726 fi
5727 
5728 
5729   test -n "$CAT" && break
5730 done
5731 
5732     else
5733       # If it succeeded, then it was overridden by the user. We will use it
5734       # for the tool.
5735 
5736       # First remove it from the list of overridden variables, so we can test
5737       # for unknown variables in the end.
5738       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5739 
5740       # Check if we try to supply an empty value
5741       if test "x$CAT" = x; then
5742         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5743 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5744         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5745 $as_echo_n "checking for CAT... " >&6; }
5746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5747 $as_echo "disabled" >&6; }
5748       else
5749         # Check if the provided tool contains a complete path.
5750         tool_specified="$CAT"
5751         tool_basename="${tool_specified##*/}"
5752         if test "x$tool_basename" = "x$tool_specified"; then
5753           # A command without a complete path is provided, search $PATH.
5754           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5755 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5756           # Extract the first word of "$tool_basename", so it can be a program name with args.
5757 set dummy $tool_basename; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_path_CAT+:} false; then :
5761   $as_echo_n "(cached) " >&6
5762 else
5763   case $CAT in
5764   [\\/]* | ?:[\\/]*)
5765   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5766   ;;
5767   *)
5768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771   IFS=$as_save_IFS
5772   test -z "$as_dir" && as_dir=.
5773     for ac_exec_ext in '' $ac_executable_extensions; do
5774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777     break 2
5778   fi
5779 done
5780   done
5781 IFS=$as_save_IFS
5782 
5783   ;;
5784 esac
5785 fi
5786 CAT=$ac_cv_path_CAT
5787 if test -n "$CAT"; then
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5789 $as_echo "$CAT" >&6; }
5790 else
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794 
5795 
5796           if test "x$CAT" = x; then
5797             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5798           fi
5799         else
5800           # Otherwise we believe it is a complete path. Use it as it is.
5801           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5802 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5803           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5804 $as_echo_n "checking for CAT... " >&6; }
5805           if test ! -x "$tool_specified"; then
5806             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5807 $as_echo "not found" >&6; }
5808             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5809           fi
5810           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5811 $as_echo "$tool_specified" >&6; }
5812         fi
5813       fi
5814     fi
5815 
5816   fi
5817 
5818 
5819 
5820   if test "x$CAT" = x; then
5821     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5822   fi
5823 
5824 
5825 
5826 
5827 
5828   # Publish this variable in the help.
5829 
5830 
5831   if [ -z "${CHMOD+x}" ]; then
5832     # The variable is not set by user, try to locate tool using the code snippet
5833     for ac_prog in chmod
5834 do
5835   # Extract the first word of "$ac_prog", so it can be a program name with args.
5836 set dummy $ac_prog; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if ${ac_cv_path_CHMOD+:} false; then :
5840   $as_echo_n "(cached) " >&6
5841 else
5842   case $CHMOD in
5843   [\\/]* | ?:[\\/]*)
5844   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5845   ;;
5846   *)
5847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850   IFS=$as_save_IFS
5851   test -z "$as_dir" && as_dir=.
5852     for ac_exec_ext in '' $ac_executable_extensions; do
5853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856     break 2
5857   fi
5858 done
5859   done
5860 IFS=$as_save_IFS
5861 
5862   ;;
5863 esac
5864 fi
5865 CHMOD=$ac_cv_path_CHMOD
5866 if test -n "$CHMOD"; then
5867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5868 $as_echo "$CHMOD" >&6; }
5869 else
5870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5872 fi
5873 
5874 
5875   test -n "$CHMOD" && break
5876 done
5877 
5878   else
5879     # The variable is set, but is it from the command line or the environment?
5880 
5881     # Try to remove the string !CHMOD! from our list.
5882     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5883     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5884       # If it failed, the variable was not from the command line. Ignore it,
5885       # but warn the user (except for BASH, which is always set by the calling BASH).
5886       if test "xCHMOD" != xBASH; then
5887         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5888 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5889       fi
5890       # Try to locate tool using the code snippet
5891       for ac_prog in chmod
5892 do
5893   # Extract the first word of "$ac_prog", so it can be a program name with args.
5894 set dummy $ac_prog; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if ${ac_cv_path_CHMOD+:} false; then :
5898   $as_echo_n "(cached) " >&6
5899 else
5900   case $CHMOD in
5901   [\\/]* | ?:[\\/]*)
5902   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5903   ;;
5904   *)
5905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908   IFS=$as_save_IFS
5909   test -z "$as_dir" && as_dir=.
5910     for ac_exec_ext in '' $ac_executable_extensions; do
5911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914     break 2
5915   fi
5916 done
5917   done
5918 IFS=$as_save_IFS
5919 
5920   ;;
5921 esac
5922 fi
5923 CHMOD=$ac_cv_path_CHMOD
5924 if test -n "$CHMOD"; then
5925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5926 $as_echo "$CHMOD" >&6; }
5927 else
5928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929 $as_echo "no" >&6; }
5930 fi
5931 
5932 
5933   test -n "$CHMOD" && break
5934 done
5935 
5936     else
5937       # If it succeeded, then it was overridden by the user. We will use it
5938       # for the tool.
5939 
5940       # First remove it from the list of overridden variables, so we can test
5941       # for unknown variables in the end.
5942       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5943 
5944       # Check if we try to supply an empty value
5945       if test "x$CHMOD" = x; then
5946         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5947 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5948         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5949 $as_echo_n "checking for CHMOD... " >&6; }
5950         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5951 $as_echo "disabled" >&6; }
5952       else
5953         # Check if the provided tool contains a complete path.
5954         tool_specified="$CHMOD"
5955         tool_basename="${tool_specified##*/}"
5956         if test "x$tool_basename" = "x$tool_specified"; then
5957           # A command without a complete path is provided, search $PATH.
5958           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5959 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5960           # Extract the first word of "$tool_basename", so it can be a program name with args.
5961 set dummy $tool_basename; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if ${ac_cv_path_CHMOD+:} false; then :
5965   $as_echo_n "(cached) " >&6
5966 else
5967   case $CHMOD in
5968   [\\/]* | ?:[\\/]*)
5969   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5970   ;;
5971   *)
5972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975   IFS=$as_save_IFS
5976   test -z "$as_dir" && as_dir=.
5977     for ac_exec_ext in '' $ac_executable_extensions; do
5978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981     break 2
5982   fi
5983 done
5984   done
5985 IFS=$as_save_IFS
5986 
5987   ;;
5988 esac
5989 fi
5990 CHMOD=$ac_cv_path_CHMOD
5991 if test -n "$CHMOD"; then
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5993 $as_echo "$CHMOD" >&6; }
5994 else
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5997 fi
5998 
5999 
6000           if test "x$CHMOD" = x; then
6001             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6002           fi
6003         else
6004           # Otherwise we believe it is a complete path. Use it as it is.
6005           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
6006 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
6007           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
6008 $as_echo_n "checking for CHMOD... " >&6; }
6009           if test ! -x "$tool_specified"; then
6010             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6011 $as_echo "not found" >&6; }
6012             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
6013           fi
6014           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6015 $as_echo "$tool_specified" >&6; }
6016         fi
6017       fi
6018     fi
6019 
6020   fi
6021 
6022 
6023 
6024   if test "x$CHMOD" = x; then
6025     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
6026   fi
6027 
6028 
6029 
6030 
6031 
6032   # Publish this variable in the help.
6033 
6034 
6035   if [ -z "${CMP+x}" ]; then
6036     # The variable is not set by user, try to locate tool using the code snippet
6037     for ac_prog in cmp
6038 do
6039   # Extract the first word of "$ac_prog", so it can be a program name with args.
6040 set dummy $ac_prog; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_path_CMP+:} false; then :
6044   $as_echo_n "(cached) " >&6
6045 else
6046   case $CMP in
6047   [\\/]* | ?:[\\/]*)
6048   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6049   ;;
6050   *)
6051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054   IFS=$as_save_IFS
6055   test -z "$as_dir" && as_dir=.
6056     for ac_exec_ext in '' $ac_executable_extensions; do
6057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060     break 2
6061   fi
6062 done
6063   done
6064 IFS=$as_save_IFS
6065 
6066   ;;
6067 esac
6068 fi
6069 CMP=$ac_cv_path_CMP
6070 if test -n "$CMP"; then
6071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6072 $as_echo "$CMP" >&6; }
6073 else
6074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6076 fi
6077 
6078 
6079   test -n "$CMP" && break
6080 done
6081 
6082   else
6083     # The variable is set, but is it from the command line or the environment?
6084 
6085     # Try to remove the string !CMP! from our list.
6086     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6087     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6088       # If it failed, the variable was not from the command line. Ignore it,
6089       # but warn the user (except for BASH, which is always set by the calling BASH).
6090       if test "xCMP" != xBASH; then
6091         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6092 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6093       fi
6094       # Try to locate tool using the code snippet
6095       for ac_prog in cmp
6096 do
6097   # Extract the first word of "$ac_prog", so it can be a program name with args.
6098 set dummy $ac_prog; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_path_CMP+:} false; then :
6102   $as_echo_n "(cached) " >&6
6103 else
6104   case $CMP in
6105   [\\/]* | ?:[\\/]*)
6106   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6107   ;;
6108   *)
6109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112   IFS=$as_save_IFS
6113   test -z "$as_dir" && as_dir=.
6114     for ac_exec_ext in '' $ac_executable_extensions; do
6115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118     break 2
6119   fi
6120 done
6121   done
6122 IFS=$as_save_IFS
6123 
6124   ;;
6125 esac
6126 fi
6127 CMP=$ac_cv_path_CMP
6128 if test -n "$CMP"; then
6129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6130 $as_echo "$CMP" >&6; }
6131 else
6132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6134 fi
6135 
6136 
6137   test -n "$CMP" && break
6138 done
6139 
6140     else
6141       # If it succeeded, then it was overridden by the user. We will use it
6142       # for the tool.
6143 
6144       # First remove it from the list of overridden variables, so we can test
6145       # for unknown variables in the end.
6146       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6147 
6148       # Check if we try to supply an empty value
6149       if test "x$CMP" = x; then
6150         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6151 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6152         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6153 $as_echo_n "checking for CMP... " >&6; }
6154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6155 $as_echo "disabled" >&6; }
6156       else
6157         # Check if the provided tool contains a complete path.
6158         tool_specified="$CMP"
6159         tool_basename="${tool_specified##*/}"
6160         if test "x$tool_basename" = "x$tool_specified"; then
6161           # A command without a complete path is provided, search $PATH.
6162           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6163 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6164           # Extract the first word of "$tool_basename", so it can be a program name with args.
6165 set dummy $tool_basename; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if ${ac_cv_path_CMP+:} false; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   case $CMP in
6172   [\\/]* | ?:[\\/]*)
6173   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6174   ;;
6175   *)
6176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181     for ac_exec_ext in '' $ac_executable_extensions; do
6182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188   done
6189 IFS=$as_save_IFS
6190 
6191   ;;
6192 esac
6193 fi
6194 CMP=$ac_cv_path_CMP
6195 if test -n "$CMP"; then
6196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6197 $as_echo "$CMP" >&6; }
6198 else
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6201 fi
6202 
6203 
6204           if test "x$CMP" = x; then
6205             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6206           fi
6207         else
6208           # Otherwise we believe it is a complete path. Use it as it is.
6209           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6210 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6211           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6212 $as_echo_n "checking for CMP... " >&6; }
6213           if test ! -x "$tool_specified"; then
6214             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6215 $as_echo "not found" >&6; }
6216             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6217           fi
6218           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6219 $as_echo "$tool_specified" >&6; }
6220         fi
6221       fi
6222     fi
6223 
6224   fi
6225 
6226 
6227 
6228   if test "x$CMP" = x; then
6229     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6230   fi
6231 
6232 
6233 
6234 
6235 
6236   # Publish this variable in the help.
6237 
6238 
6239   if [ -z "${COMM+x}" ]; then
6240     # The variable is not set by user, try to locate tool using the code snippet
6241     for ac_prog in comm
6242 do
6243   # Extract the first word of "$ac_prog", so it can be a program name with args.
6244 set dummy $ac_prog; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_path_COMM+:} false; then :
6248   $as_echo_n "(cached) " >&6
6249 else
6250   case $COMM in
6251   [\\/]* | ?:[\\/]*)
6252   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6253   ;;
6254   *)
6255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260     for ac_exec_ext in '' $ac_executable_extensions; do
6261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264     break 2
6265   fi
6266 done
6267   done
6268 IFS=$as_save_IFS
6269 
6270   ;;
6271 esac
6272 fi
6273 COMM=$ac_cv_path_COMM
6274 if test -n "$COMM"; then
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6276 $as_echo "$COMM" >&6; }
6277 else
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281 
6282 
6283   test -n "$COMM" && break
6284 done
6285 
6286   else
6287     # The variable is set, but is it from the command line or the environment?
6288 
6289     # Try to remove the string !COMM! from our list.
6290     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6291     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6292       # If it failed, the variable was not from the command line. Ignore it,
6293       # but warn the user (except for BASH, which is always set by the calling BASH).
6294       if test "xCOMM" != xBASH; then
6295         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6296 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6297       fi
6298       # Try to locate tool using the code snippet
6299       for ac_prog in comm
6300 do
6301   # Extract the first word of "$ac_prog", so it can be a program name with args.
6302 set dummy $ac_prog; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_path_COMM+:} false; then :
6306   $as_echo_n "(cached) " >&6
6307 else
6308   case $COMM in
6309   [\\/]* | ?:[\\/]*)
6310   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6311   ;;
6312   *)
6313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316   IFS=$as_save_IFS
6317   test -z "$as_dir" && as_dir=.
6318     for ac_exec_ext in '' $ac_executable_extensions; do
6319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322     break 2
6323   fi
6324 done
6325   done
6326 IFS=$as_save_IFS
6327 
6328   ;;
6329 esac
6330 fi
6331 COMM=$ac_cv_path_COMM
6332 if test -n "$COMM"; then
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6334 $as_echo "$COMM" >&6; }
6335 else
6336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6338 fi
6339 
6340 
6341   test -n "$COMM" && break
6342 done
6343 
6344     else
6345       # If it succeeded, then it was overridden by the user. We will use it
6346       # for the tool.
6347 
6348       # First remove it from the list of overridden variables, so we can test
6349       # for unknown variables in the end.
6350       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6351 
6352       # Check if we try to supply an empty value
6353       if test "x$COMM" = x; then
6354         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6355 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6357 $as_echo_n "checking for COMM... " >&6; }
6358         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6359 $as_echo "disabled" >&6; }
6360       else
6361         # Check if the provided tool contains a complete path.
6362         tool_specified="$COMM"
6363         tool_basename="${tool_specified##*/}"
6364         if test "x$tool_basename" = "x$tool_specified"; then
6365           # A command without a complete path is provided, search $PATH.
6366           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6367 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6368           # Extract the first word of "$tool_basename", so it can be a program name with args.
6369 set dummy $tool_basename; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_path_COMM+:} false; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   case $COMM in
6376   [\\/]* | ?:[\\/]*)
6377   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6378   ;;
6379   *)
6380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383   IFS=$as_save_IFS
6384   test -z "$as_dir" && as_dir=.
6385     for ac_exec_ext in '' $ac_executable_extensions; do
6386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389     break 2
6390   fi
6391 done
6392   done
6393 IFS=$as_save_IFS
6394 
6395   ;;
6396 esac
6397 fi
6398 COMM=$ac_cv_path_COMM
6399 if test -n "$COMM"; then
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6401 $as_echo "$COMM" >&6; }
6402 else
6403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6405 fi
6406 
6407 
6408           if test "x$COMM" = x; then
6409             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6410           fi
6411         else
6412           # Otherwise we believe it is a complete path. Use it as it is.
6413           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6414 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6415           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6416 $as_echo_n "checking for COMM... " >&6; }
6417           if test ! -x "$tool_specified"; then
6418             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6419 $as_echo "not found" >&6; }
6420             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6421           fi
6422           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6423 $as_echo "$tool_specified" >&6; }
6424         fi
6425       fi
6426     fi
6427 
6428   fi
6429 
6430 
6431 
6432   if test "x$COMM" = x; then
6433     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6434   fi
6435 
6436 
6437 
6438 
6439 
6440   # Publish this variable in the help.
6441 
6442 
6443   if [ -z "${CP+x}" ]; then
6444     # The variable is not set by user, try to locate tool using the code snippet
6445     for ac_prog in cp
6446 do
6447   # Extract the first word of "$ac_prog", so it can be a program name with args.
6448 set dummy $ac_prog; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if ${ac_cv_path_CP+:} false; then :
6452   $as_echo_n "(cached) " >&6
6453 else
6454   case $CP in
6455   [\\/]* | ?:[\\/]*)
6456   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6457   ;;
6458   *)
6459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462   IFS=$as_save_IFS
6463   test -z "$as_dir" && as_dir=.
6464     for ac_exec_ext in '' $ac_executable_extensions; do
6465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6466     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468     break 2
6469   fi
6470 done
6471   done
6472 IFS=$as_save_IFS
6473 
6474   ;;
6475 esac
6476 fi
6477 CP=$ac_cv_path_CP
6478 if test -n "$CP"; then
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6480 $as_echo "$CP" >&6; }
6481 else
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6484 fi
6485 
6486 
6487   test -n "$CP" && break
6488 done
6489 
6490   else
6491     # The variable is set, but is it from the command line or the environment?
6492 
6493     # Try to remove the string !CP! from our list.
6494     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6495     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6496       # If it failed, the variable was not from the command line. Ignore it,
6497       # but warn the user (except for BASH, which is always set by the calling BASH).
6498       if test "xCP" != xBASH; then
6499         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6500 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6501       fi
6502       # Try to locate tool using the code snippet
6503       for ac_prog in cp
6504 do
6505   # Extract the first word of "$ac_prog", so it can be a program name with args.
6506 set dummy $ac_prog; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_path_CP+:} false; then :
6510   $as_echo_n "(cached) " >&6
6511 else
6512   case $CP in
6513   [\\/]* | ?:[\\/]*)
6514   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6515   ;;
6516   *)
6517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520   IFS=$as_save_IFS
6521   test -z "$as_dir" && as_dir=.
6522     for ac_exec_ext in '' $ac_executable_extensions; do
6523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526     break 2
6527   fi
6528 done
6529   done
6530 IFS=$as_save_IFS
6531 
6532   ;;
6533 esac
6534 fi
6535 CP=$ac_cv_path_CP
6536 if test -n "$CP"; then
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6538 $as_echo "$CP" >&6; }
6539 else
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6542 fi
6543 
6544 
6545   test -n "$CP" && break
6546 done
6547 
6548     else
6549       # If it succeeded, then it was overridden by the user. We will use it
6550       # for the tool.
6551 
6552       # First remove it from the list of overridden variables, so we can test
6553       # for unknown variables in the end.
6554       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6555 
6556       # Check if we try to supply an empty value
6557       if test "x$CP" = x; then
6558         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6559 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6560         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6561 $as_echo_n "checking for CP... " >&6; }
6562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6563 $as_echo "disabled" >&6; }
6564       else
6565         # Check if the provided tool contains a complete path.
6566         tool_specified="$CP"
6567         tool_basename="${tool_specified##*/}"
6568         if test "x$tool_basename" = "x$tool_specified"; then
6569           # A command without a complete path is provided, search $PATH.
6570           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6571 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6572           # Extract the first word of "$tool_basename", so it can be a program name with args.
6573 set dummy $tool_basename; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if ${ac_cv_path_CP+:} false; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579   case $CP in
6580   [\\/]* | ?:[\\/]*)
6581   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6582   ;;
6583   *)
6584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589     for ac_exec_ext in '' $ac_executable_extensions; do
6590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596   done
6597 IFS=$as_save_IFS
6598 
6599   ;;
6600 esac
6601 fi
6602 CP=$ac_cv_path_CP
6603 if test -n "$CP"; then
6604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6605 $as_echo "$CP" >&6; }
6606 else
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610 
6611 
6612           if test "x$CP" = x; then
6613             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6614           fi
6615         else
6616           # Otherwise we believe it is a complete path. Use it as it is.
6617           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6618 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6619           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6620 $as_echo_n "checking for CP... " >&6; }
6621           if test ! -x "$tool_specified"; then
6622             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6623 $as_echo "not found" >&6; }
6624             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6625           fi
6626           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6627 $as_echo "$tool_specified" >&6; }
6628         fi
6629       fi
6630     fi
6631 
6632   fi
6633 
6634 
6635 
6636   if test "x$CP" = x; then
6637     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6638   fi
6639 
6640 
6641 
6642 
6643 
6644   # Publish this variable in the help.
6645 
6646 
6647   if [ -z "${CUT+x}" ]; then
6648     # The variable is not set by user, try to locate tool using the code snippet
6649     for ac_prog in cut
6650 do
6651   # Extract the first word of "$ac_prog", so it can be a program name with args.
6652 set dummy $ac_prog; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_path_CUT+:} false; then :
6656   $as_echo_n "(cached) " >&6
6657 else
6658   case $CUT in
6659   [\\/]* | ?:[\\/]*)
6660   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6661   ;;
6662   *)
6663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666   IFS=$as_save_IFS
6667   test -z "$as_dir" && as_dir=.
6668     for ac_exec_ext in '' $ac_executable_extensions; do
6669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672     break 2
6673   fi
6674 done
6675   done
6676 IFS=$as_save_IFS
6677 
6678   ;;
6679 esac
6680 fi
6681 CUT=$ac_cv_path_CUT
6682 if test -n "$CUT"; then
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6684 $as_echo "$CUT" >&6; }
6685 else
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6688 fi
6689 
6690 
6691   test -n "$CUT" && break
6692 done
6693 
6694   else
6695     # The variable is set, but is it from the command line or the environment?
6696 
6697     # Try to remove the string !CUT! from our list.
6698     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6699     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6700       # If it failed, the variable was not from the command line. Ignore it,
6701       # but warn the user (except for BASH, which is always set by the calling BASH).
6702       if test "xCUT" != xBASH; then
6703         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6704 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6705       fi
6706       # Try to locate tool using the code snippet
6707       for ac_prog in cut
6708 do
6709   # Extract the first word of "$ac_prog", so it can be a program name with args.
6710 set dummy $ac_prog; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_path_CUT+:} false; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   case $CUT in
6717   [\\/]* | ?:[\\/]*)
6718   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6719   ;;
6720   *)
6721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724   IFS=$as_save_IFS
6725   test -z "$as_dir" && as_dir=.
6726     for ac_exec_ext in '' $ac_executable_extensions; do
6727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730     break 2
6731   fi
6732 done
6733   done
6734 IFS=$as_save_IFS
6735 
6736   ;;
6737 esac
6738 fi
6739 CUT=$ac_cv_path_CUT
6740 if test -n "$CUT"; then
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6742 $as_echo "$CUT" >&6; }
6743 else
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747 
6748 
6749   test -n "$CUT" && break
6750 done
6751 
6752     else
6753       # If it succeeded, then it was overridden by the user. We will use it
6754       # for the tool.
6755 
6756       # First remove it from the list of overridden variables, so we can test
6757       # for unknown variables in the end.
6758       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6759 
6760       # Check if we try to supply an empty value
6761       if test "x$CUT" = x; then
6762         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6763 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6764         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6765 $as_echo_n "checking for CUT... " >&6; }
6766         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6767 $as_echo "disabled" >&6; }
6768       else
6769         # Check if the provided tool contains a complete path.
6770         tool_specified="$CUT"
6771         tool_basename="${tool_specified##*/}"
6772         if test "x$tool_basename" = "x$tool_specified"; then
6773           # A command without a complete path is provided, search $PATH.
6774           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6775 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6776           # Extract the first word of "$tool_basename", so it can be a program name with args.
6777 set dummy $tool_basename; ac_word=$2
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 $as_echo_n "checking for $ac_word... " >&6; }
6780 if ${ac_cv_path_CUT+:} false; then :
6781   $as_echo_n "(cached) " >&6
6782 else
6783   case $CUT in
6784   [\\/]* | ?:[\\/]*)
6785   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6786   ;;
6787   *)
6788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6790 do
6791   IFS=$as_save_IFS
6792   test -z "$as_dir" && as_dir=.
6793     for ac_exec_ext in '' $ac_executable_extensions; do
6794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797     break 2
6798   fi
6799 done
6800   done
6801 IFS=$as_save_IFS
6802 
6803   ;;
6804 esac
6805 fi
6806 CUT=$ac_cv_path_CUT
6807 if test -n "$CUT"; then
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6809 $as_echo "$CUT" >&6; }
6810 else
6811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814 
6815 
6816           if test "x$CUT" = x; then
6817             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6818           fi
6819         else
6820           # Otherwise we believe it is a complete path. Use it as it is.
6821           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6822 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6823           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6824 $as_echo_n "checking for CUT... " >&6; }
6825           if test ! -x "$tool_specified"; then
6826             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6827 $as_echo "not found" >&6; }
6828             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6829           fi
6830           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6831 $as_echo "$tool_specified" >&6; }
6832         fi
6833       fi
6834     fi
6835 
6836   fi
6837 
6838 
6839 
6840   if test "x$CUT" = x; then
6841     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6842   fi
6843 
6844 
6845 
6846 
6847 
6848   # Publish this variable in the help.
6849 
6850 
6851   if [ -z "${DATE+x}" ]; then
6852     # The variable is not set by user, try to locate tool using the code snippet
6853     for ac_prog in date
6854 do
6855   # Extract the first word of "$ac_prog", so it can be a program name with args.
6856 set dummy $ac_prog; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_path_DATE+:} false; then :
6860   $as_echo_n "(cached) " >&6
6861 else
6862   case $DATE in
6863   [\\/]* | ?:[\\/]*)
6864   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6865   ;;
6866   *)
6867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870   IFS=$as_save_IFS
6871   test -z "$as_dir" && as_dir=.
6872     for ac_exec_ext in '' $ac_executable_extensions; do
6873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876     break 2
6877   fi
6878 done
6879   done
6880 IFS=$as_save_IFS
6881 
6882   ;;
6883 esac
6884 fi
6885 DATE=$ac_cv_path_DATE
6886 if test -n "$DATE"; then
6887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6888 $as_echo "$DATE" >&6; }
6889 else
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6892 fi
6893 
6894 
6895   test -n "$DATE" && break
6896 done
6897 
6898   else
6899     # The variable is set, but is it from the command line or the environment?
6900 
6901     # Try to remove the string !DATE! from our list.
6902     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6903     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6904       # If it failed, the variable was not from the command line. Ignore it,
6905       # but warn the user (except for BASH, which is always set by the calling BASH).
6906       if test "xDATE" != xBASH; then
6907         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6908 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6909       fi
6910       # Try to locate tool using the code snippet
6911       for ac_prog in date
6912 do
6913   # Extract the first word of "$ac_prog", so it can be a program name with args.
6914 set dummy $ac_prog; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_path_DATE+:} false; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   case $DATE in
6921   [\\/]* | ?:[\\/]*)
6922   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6923   ;;
6924   *)
6925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928   IFS=$as_save_IFS
6929   test -z "$as_dir" && as_dir=.
6930     for ac_exec_ext in '' $ac_executable_extensions; do
6931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6932     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934     break 2
6935   fi
6936 done
6937   done
6938 IFS=$as_save_IFS
6939 
6940   ;;
6941 esac
6942 fi
6943 DATE=$ac_cv_path_DATE
6944 if test -n "$DATE"; then
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6946 $as_echo "$DATE" >&6; }
6947 else
6948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6950 fi
6951 
6952 
6953   test -n "$DATE" && break
6954 done
6955 
6956     else
6957       # If it succeeded, then it was overridden by the user. We will use it
6958       # for the tool.
6959 
6960       # First remove it from the list of overridden variables, so we can test
6961       # for unknown variables in the end.
6962       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6963 
6964       # Check if we try to supply an empty value
6965       if test "x$DATE" = x; then
6966         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6967 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6968         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6969 $as_echo_n "checking for DATE... " >&6; }
6970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6971 $as_echo "disabled" >&6; }
6972       else
6973         # Check if the provided tool contains a complete path.
6974         tool_specified="$DATE"
6975         tool_basename="${tool_specified##*/}"
6976         if test "x$tool_basename" = "x$tool_specified"; then
6977           # A command without a complete path is provided, search $PATH.
6978           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6979 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6980           # Extract the first word of "$tool_basename", so it can be a program name with args.
6981 set dummy $tool_basename; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_path_DATE+:} false; then :
6985   $as_echo_n "(cached) " >&6
6986 else
6987   case $DATE in
6988   [\\/]* | ?:[\\/]*)
6989   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6990   ;;
6991   *)
6992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997     for ac_exec_ext in '' $ac_executable_extensions; do
6998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004   done
7005 IFS=$as_save_IFS
7006 
7007   ;;
7008 esac
7009 fi
7010 DATE=$ac_cv_path_DATE
7011 if test -n "$DATE"; then
7012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
7013 $as_echo "$DATE" >&6; }
7014 else
7015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 $as_echo "no" >&6; }
7017 fi
7018 
7019 
7020           if test "x$DATE" = x; then
7021             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7022           fi
7023         else
7024           # Otherwise we believe it is a complete path. Use it as it is.
7025           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
7026 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
7027           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7028 $as_echo_n "checking for DATE... " >&6; }
7029           if test ! -x "$tool_specified"; then
7030             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7031 $as_echo "not found" >&6; }
7032             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
7033           fi
7034           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7035 $as_echo "$tool_specified" >&6; }
7036         fi
7037       fi
7038     fi
7039 
7040   fi
7041 
7042 
7043 
7044   if test "x$DATE" = x; then
7045     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
7046   fi
7047 
7048 
7049 
7050 
7051 
7052   # Publish this variable in the help.
7053 
7054 
7055   if [ -z "${DIFF+x}" ]; then
7056     # The variable is not set by user, try to locate tool using the code snippet
7057     for ac_prog in gdiff diff
7058 do
7059   # Extract the first word of "$ac_prog", so it can be a program name with args.
7060 set dummy $ac_prog; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if ${ac_cv_path_DIFF+:} false; then :
7064   $as_echo_n "(cached) " >&6
7065 else
7066   case $DIFF in
7067   [\\/]* | ?:[\\/]*)
7068   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7069   ;;
7070   *)
7071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074   IFS=$as_save_IFS
7075   test -z "$as_dir" && as_dir=.
7076     for ac_exec_ext in '' $ac_executable_extensions; do
7077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080     break 2
7081   fi
7082 done
7083   done
7084 IFS=$as_save_IFS
7085 
7086   ;;
7087 esac
7088 fi
7089 DIFF=$ac_cv_path_DIFF
7090 if test -n "$DIFF"; then
7091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7092 $as_echo "$DIFF" >&6; }
7093 else
7094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7096 fi
7097 
7098 
7099   test -n "$DIFF" && break
7100 done
7101 
7102   else
7103     # The variable is set, but is it from the command line or the environment?
7104 
7105     # Try to remove the string !DIFF! from our list.
7106     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7107     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7108       # If it failed, the variable was not from the command line. Ignore it,
7109       # but warn the user (except for BASH, which is always set by the calling BASH).
7110       if test "xDIFF" != xBASH; then
7111         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7112 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7113       fi
7114       # Try to locate tool using the code snippet
7115       for ac_prog in gdiff diff
7116 do
7117   # Extract the first word of "$ac_prog", so it can be a program name with args.
7118 set dummy $ac_prog; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if ${ac_cv_path_DIFF+:} false; then :
7122   $as_echo_n "(cached) " >&6
7123 else
7124   case $DIFF in
7125   [\\/]* | ?:[\\/]*)
7126   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7127   ;;
7128   *)
7129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134     for ac_exec_ext in '' $ac_executable_extensions; do
7135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141   done
7142 IFS=$as_save_IFS
7143 
7144   ;;
7145 esac
7146 fi
7147 DIFF=$ac_cv_path_DIFF
7148 if test -n "$DIFF"; then
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7150 $as_echo "$DIFF" >&6; }
7151 else
7152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7155 
7156 
7157   test -n "$DIFF" && break
7158 done
7159 
7160     else
7161       # If it succeeded, then it was overridden by the user. We will use it
7162       # for the tool.
7163 
7164       # First remove it from the list of overridden variables, so we can test
7165       # for unknown variables in the end.
7166       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7167 
7168       # Check if we try to supply an empty value
7169       if test "x$DIFF" = x; then
7170         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7171 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7173 $as_echo_n "checking for DIFF... " >&6; }
7174         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7175 $as_echo "disabled" >&6; }
7176       else
7177         # Check if the provided tool contains a complete path.
7178         tool_specified="$DIFF"
7179         tool_basename="${tool_specified##*/}"
7180         if test "x$tool_basename" = "x$tool_specified"; then
7181           # A command without a complete path is provided, search $PATH.
7182           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7183 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7184           # Extract the first word of "$tool_basename", so it can be a program name with args.
7185 set dummy $tool_basename; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_path_DIFF+:} false; then :
7189   $as_echo_n "(cached) " >&6
7190 else
7191   case $DIFF in
7192   [\\/]* | ?:[\\/]*)
7193   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7194   ;;
7195   *)
7196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199   IFS=$as_save_IFS
7200   test -z "$as_dir" && as_dir=.
7201     for ac_exec_ext in '' $ac_executable_extensions; do
7202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206   fi
7207 done
7208   done
7209 IFS=$as_save_IFS
7210 
7211   ;;
7212 esac
7213 fi
7214 DIFF=$ac_cv_path_DIFF
7215 if test -n "$DIFF"; then
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7217 $as_echo "$DIFF" >&6; }
7218 else
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7221 fi
7222 
7223 
7224           if test "x$DIFF" = x; then
7225             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7226           fi
7227         else
7228           # Otherwise we believe it is a complete path. Use it as it is.
7229           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7230 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7231           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7232 $as_echo_n "checking for DIFF... " >&6; }
7233           if test ! -x "$tool_specified"; then
7234             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7235 $as_echo "not found" >&6; }
7236             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7237           fi
7238           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7239 $as_echo "$tool_specified" >&6; }
7240         fi
7241       fi
7242     fi
7243 
7244   fi
7245 
7246 
7247 
7248   if test "x$DIFF" = x; then
7249     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7250   fi
7251 
7252 
7253 
7254 
7255 
7256   # Publish this variable in the help.
7257 
7258 
7259   if [ -z "${DIRNAME+x}" ]; then
7260     # The variable is not set by user, try to locate tool using the code snippet
7261     for ac_prog in dirname
7262 do
7263   # Extract the first word of "$ac_prog", so it can be a program name with args.
7264 set dummy $ac_prog; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_path_DIRNAME+:} false; then :
7268   $as_echo_n "(cached) " >&6
7269 else
7270   case $DIRNAME in
7271   [\\/]* | ?:[\\/]*)
7272   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7273   ;;
7274   *)
7275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278   IFS=$as_save_IFS
7279   test -z "$as_dir" && as_dir=.
7280     for ac_exec_ext in '' $ac_executable_extensions; do
7281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284     break 2
7285   fi
7286 done
7287   done
7288 IFS=$as_save_IFS
7289 
7290   ;;
7291 esac
7292 fi
7293 DIRNAME=$ac_cv_path_DIRNAME
7294 if test -n "$DIRNAME"; then
7295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7296 $as_echo "$DIRNAME" >&6; }
7297 else
7298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7300 fi
7301 
7302 
7303   test -n "$DIRNAME" && break
7304 done
7305 
7306   else
7307     # The variable is set, but is it from the command line or the environment?
7308 
7309     # Try to remove the string !DIRNAME! from our list.
7310     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7311     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7312       # If it failed, the variable was not from the command line. Ignore it,
7313       # but warn the user (except for BASH, which is always set by the calling BASH).
7314       if test "xDIRNAME" != xBASH; then
7315         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7316 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7317       fi
7318       # Try to locate tool using the code snippet
7319       for ac_prog in dirname
7320 do
7321   # Extract the first word of "$ac_prog", so it can be a program name with args.
7322 set dummy $ac_prog; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_path_DIRNAME+:} false; then :
7326   $as_echo_n "(cached) " >&6
7327 else
7328   case $DIRNAME in
7329   [\\/]* | ?:[\\/]*)
7330   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7331   ;;
7332   *)
7333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336   IFS=$as_save_IFS
7337   test -z "$as_dir" && as_dir=.
7338     for ac_exec_ext in '' $ac_executable_extensions; do
7339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342     break 2
7343   fi
7344 done
7345   done
7346 IFS=$as_save_IFS
7347 
7348   ;;
7349 esac
7350 fi
7351 DIRNAME=$ac_cv_path_DIRNAME
7352 if test -n "$DIRNAME"; then
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7354 $as_echo "$DIRNAME" >&6; }
7355 else
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359 
7360 
7361   test -n "$DIRNAME" && break
7362 done
7363 
7364     else
7365       # If it succeeded, then it was overridden by the user. We will use it
7366       # for the tool.
7367 
7368       # First remove it from the list of overridden variables, so we can test
7369       # for unknown variables in the end.
7370       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7371 
7372       # Check if we try to supply an empty value
7373       if test "x$DIRNAME" = x; then
7374         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7375 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7376         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7377 $as_echo_n "checking for DIRNAME... " >&6; }
7378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7379 $as_echo "disabled" >&6; }
7380       else
7381         # Check if the provided tool contains a complete path.
7382         tool_specified="$DIRNAME"
7383         tool_basename="${tool_specified##*/}"
7384         if test "x$tool_basename" = "x$tool_specified"; then
7385           # A command without a complete path is provided, search $PATH.
7386           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7387 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7388           # Extract the first word of "$tool_basename", so it can be a program name with args.
7389 set dummy $tool_basename; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_path_DIRNAME+:} false; then :
7393   $as_echo_n "(cached) " >&6
7394 else
7395   case $DIRNAME in
7396   [\\/]* | ?:[\\/]*)
7397   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7398   ;;
7399   *)
7400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405     for ac_exec_ext in '' $ac_executable_extensions; do
7406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412   done
7413 IFS=$as_save_IFS
7414 
7415   ;;
7416 esac
7417 fi
7418 DIRNAME=$ac_cv_path_DIRNAME
7419 if test -n "$DIRNAME"; then
7420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7421 $as_echo "$DIRNAME" >&6; }
7422 else
7423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7425 fi
7426 
7427 
7428           if test "x$DIRNAME" = x; then
7429             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7430           fi
7431         else
7432           # Otherwise we believe it is a complete path. Use it as it is.
7433           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7434 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7435           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7436 $as_echo_n "checking for DIRNAME... " >&6; }
7437           if test ! -x "$tool_specified"; then
7438             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7439 $as_echo "not found" >&6; }
7440             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7441           fi
7442           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7443 $as_echo "$tool_specified" >&6; }
7444         fi
7445       fi
7446     fi
7447 
7448   fi
7449 
7450 
7451 
7452   if test "x$DIRNAME" = x; then
7453     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7454   fi
7455 
7456 
7457 
7458 
7459 
7460   # Publish this variable in the help.
7461 
7462 
7463   if [ -z "${ECHO+x}" ]; then
7464     # The variable is not set by user, try to locate tool using the code snippet
7465     for ac_prog in echo
7466 do
7467   # Extract the first word of "$ac_prog", so it can be a program name with args.
7468 set dummy $ac_prog; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if ${ac_cv_path_ECHO+:} false; then :
7472   $as_echo_n "(cached) " >&6
7473 else
7474   case $ECHO in
7475   [\\/]* | ?:[\\/]*)
7476   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7477   ;;
7478   *)
7479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482   IFS=$as_save_IFS
7483   test -z "$as_dir" && as_dir=.
7484     for ac_exec_ext in '' $ac_executable_extensions; do
7485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488     break 2
7489   fi
7490 done
7491   done
7492 IFS=$as_save_IFS
7493 
7494   ;;
7495 esac
7496 fi
7497 ECHO=$ac_cv_path_ECHO
7498 if test -n "$ECHO"; then
7499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7500 $as_echo "$ECHO" >&6; }
7501 else
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7504 fi
7505 
7506 
7507   test -n "$ECHO" && break
7508 done
7509 
7510   else
7511     # The variable is set, but is it from the command line or the environment?
7512 
7513     # Try to remove the string !ECHO! from our list.
7514     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7515     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7516       # If it failed, the variable was not from the command line. Ignore it,
7517       # but warn the user (except for BASH, which is always set by the calling BASH).
7518       if test "xECHO" != xBASH; then
7519         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7520 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7521       fi
7522       # Try to locate tool using the code snippet
7523       for ac_prog in echo
7524 do
7525   # Extract the first word of "$ac_prog", so it can be a program name with args.
7526 set dummy $ac_prog; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_path_ECHO+:} false; then :
7530   $as_echo_n "(cached) " >&6
7531 else
7532   case $ECHO in
7533   [\\/]* | ?:[\\/]*)
7534   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7535   ;;
7536   *)
7537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540   IFS=$as_save_IFS
7541   test -z "$as_dir" && as_dir=.
7542     for ac_exec_ext in '' $ac_executable_extensions; do
7543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546     break 2
7547   fi
7548 done
7549   done
7550 IFS=$as_save_IFS
7551 
7552   ;;
7553 esac
7554 fi
7555 ECHO=$ac_cv_path_ECHO
7556 if test -n "$ECHO"; then
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7558 $as_echo "$ECHO" >&6; }
7559 else
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7562 fi
7563 
7564 
7565   test -n "$ECHO" && break
7566 done
7567 
7568     else
7569       # If it succeeded, then it was overridden by the user. We will use it
7570       # for the tool.
7571 
7572       # First remove it from the list of overridden variables, so we can test
7573       # for unknown variables in the end.
7574       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7575 
7576       # Check if we try to supply an empty value
7577       if test "x$ECHO" = x; then
7578         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7579 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7580         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7581 $as_echo_n "checking for ECHO... " >&6; }
7582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7583 $as_echo "disabled" >&6; }
7584       else
7585         # Check if the provided tool contains a complete path.
7586         tool_specified="$ECHO"
7587         tool_basename="${tool_specified##*/}"
7588         if test "x$tool_basename" = "x$tool_specified"; then
7589           # A command without a complete path is provided, search $PATH.
7590           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7591 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7592           # Extract the first word of "$tool_basename", so it can be a program name with args.
7593 set dummy $tool_basename; ac_word=$2
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595 $as_echo_n "checking for $ac_word... " >&6; }
7596 if ${ac_cv_path_ECHO+:} false; then :
7597   $as_echo_n "(cached) " >&6
7598 else
7599   case $ECHO in
7600   [\\/]* | ?:[\\/]*)
7601   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7602   ;;
7603   *)
7604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607   IFS=$as_save_IFS
7608   test -z "$as_dir" && as_dir=.
7609     for ac_exec_ext in '' $ac_executable_extensions; do
7610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7611     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613     break 2
7614   fi
7615 done
7616   done
7617 IFS=$as_save_IFS
7618 
7619   ;;
7620 esac
7621 fi
7622 ECHO=$ac_cv_path_ECHO
7623 if test -n "$ECHO"; then
7624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7625 $as_echo "$ECHO" >&6; }
7626 else
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7629 fi
7630 
7631 
7632           if test "x$ECHO" = x; then
7633             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7634           fi
7635         else
7636           # Otherwise we believe it is a complete path. Use it as it is.
7637           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7638 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7639           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7640 $as_echo_n "checking for ECHO... " >&6; }
7641           if test ! -x "$tool_specified"; then
7642             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7643 $as_echo "not found" >&6; }
7644             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7645           fi
7646           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7647 $as_echo "$tool_specified" >&6; }
7648         fi
7649       fi
7650     fi
7651 
7652   fi
7653 
7654 
7655 
7656   if test "x$ECHO" = x; then
7657     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7658   fi
7659 
7660 
7661 
7662 
7663 
7664   # Publish this variable in the help.
7665 
7666 
7667   if [ -z "${EXPR+x}" ]; then
7668     # The variable is not set by user, try to locate tool using the code snippet
7669     for ac_prog in expr
7670 do
7671   # Extract the first word of "$ac_prog", so it can be a program name with args.
7672 set dummy $ac_prog; ac_word=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if ${ac_cv_path_EXPR+:} false; then :
7676   $as_echo_n "(cached) " >&6
7677 else
7678   case $EXPR in
7679   [\\/]* | ?:[\\/]*)
7680   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7681   ;;
7682   *)
7683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686   IFS=$as_save_IFS
7687   test -z "$as_dir" && as_dir=.
7688     for ac_exec_ext in '' $ac_executable_extensions; do
7689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692     break 2
7693   fi
7694 done
7695   done
7696 IFS=$as_save_IFS
7697 
7698   ;;
7699 esac
7700 fi
7701 EXPR=$ac_cv_path_EXPR
7702 if test -n "$EXPR"; then
7703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7704 $as_echo "$EXPR" >&6; }
7705 else
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709 
7710 
7711   test -n "$EXPR" && break
7712 done
7713 
7714   else
7715     # The variable is set, but is it from the command line or the environment?
7716 
7717     # Try to remove the string !EXPR! from our list.
7718     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7719     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7720       # If it failed, the variable was not from the command line. Ignore it,
7721       # but warn the user (except for BASH, which is always set by the calling BASH).
7722       if test "xEXPR" != xBASH; then
7723         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7724 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7725       fi
7726       # Try to locate tool using the code snippet
7727       for ac_prog in expr
7728 do
7729   # Extract the first word of "$ac_prog", so it can be a program name with args.
7730 set dummy $ac_prog; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if ${ac_cv_path_EXPR+:} false; then :
7734   $as_echo_n "(cached) " >&6
7735 else
7736   case $EXPR in
7737   [\\/]* | ?:[\\/]*)
7738   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7739   ;;
7740   *)
7741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744   IFS=$as_save_IFS
7745   test -z "$as_dir" && as_dir=.
7746     for ac_exec_ext in '' $ac_executable_extensions; do
7747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7748     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750     break 2
7751   fi
7752 done
7753   done
7754 IFS=$as_save_IFS
7755 
7756   ;;
7757 esac
7758 fi
7759 EXPR=$ac_cv_path_EXPR
7760 if test -n "$EXPR"; then
7761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7762 $as_echo "$EXPR" >&6; }
7763 else
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7766 fi
7767 
7768 
7769   test -n "$EXPR" && break
7770 done
7771 
7772     else
7773       # If it succeeded, then it was overridden by the user. We will use it
7774       # for the tool.
7775 
7776       # First remove it from the list of overridden variables, so we can test
7777       # for unknown variables in the end.
7778       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7779 
7780       # Check if we try to supply an empty value
7781       if test "x$EXPR" = x; then
7782         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7783 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7784         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7785 $as_echo_n "checking for EXPR... " >&6; }
7786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7787 $as_echo "disabled" >&6; }
7788       else
7789         # Check if the provided tool contains a complete path.
7790         tool_specified="$EXPR"
7791         tool_basename="${tool_specified##*/}"
7792         if test "x$tool_basename" = "x$tool_specified"; then
7793           # A command without a complete path is provided, search $PATH.
7794           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7795 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7796           # Extract the first word of "$tool_basename", so it can be a program name with args.
7797 set dummy $tool_basename; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if ${ac_cv_path_EXPR+:} false; then :
7801   $as_echo_n "(cached) " >&6
7802 else
7803   case $EXPR in
7804   [\\/]* | ?:[\\/]*)
7805   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7806   ;;
7807   *)
7808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7810 do
7811   IFS=$as_save_IFS
7812   test -z "$as_dir" && as_dir=.
7813     for ac_exec_ext in '' $ac_executable_extensions; do
7814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7815     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817     break 2
7818   fi
7819 done
7820   done
7821 IFS=$as_save_IFS
7822 
7823   ;;
7824 esac
7825 fi
7826 EXPR=$ac_cv_path_EXPR
7827 if test -n "$EXPR"; then
7828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7829 $as_echo "$EXPR" >&6; }
7830 else
7831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7833 fi
7834 
7835 
7836           if test "x$EXPR" = x; then
7837             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7838           fi
7839         else
7840           # Otherwise we believe it is a complete path. Use it as it is.
7841           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7842 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7843           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7844 $as_echo_n "checking for EXPR... " >&6; }
7845           if test ! -x "$tool_specified"; then
7846             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7847 $as_echo "not found" >&6; }
7848             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7849           fi
7850           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7851 $as_echo "$tool_specified" >&6; }
7852         fi
7853       fi
7854     fi
7855 
7856   fi
7857 
7858 
7859 
7860   if test "x$EXPR" = x; then
7861     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7862   fi
7863 
7864 
7865 
7866 
7867 
7868   # Publish this variable in the help.
7869 
7870 
7871   if [ -z "${FILE+x}" ]; then
7872     # The variable is not set by user, try to locate tool using the code snippet
7873     for ac_prog in file
7874 do
7875   # Extract the first word of "$ac_prog", so it can be a program name with args.
7876 set dummy $ac_prog; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if ${ac_cv_path_FILE+:} false; then :
7880   $as_echo_n "(cached) " >&6
7881 else
7882   case $FILE in
7883   [\\/]* | ?:[\\/]*)
7884   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7885   ;;
7886   *)
7887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7889 do
7890   IFS=$as_save_IFS
7891   test -z "$as_dir" && as_dir=.
7892     for ac_exec_ext in '' $ac_executable_extensions; do
7893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7894     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896     break 2
7897   fi
7898 done
7899   done
7900 IFS=$as_save_IFS
7901 
7902   ;;
7903 esac
7904 fi
7905 FILE=$ac_cv_path_FILE
7906 if test -n "$FILE"; then
7907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7908 $as_echo "$FILE" >&6; }
7909 else
7910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7912 fi
7913 
7914 
7915   test -n "$FILE" && break
7916 done
7917 
7918   else
7919     # The variable is set, but is it from the command line or the environment?
7920 
7921     # Try to remove the string !FILE! from our list.
7922     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7923     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7924       # If it failed, the variable was not from the command line. Ignore it,
7925       # but warn the user (except for BASH, which is always set by the calling BASH).
7926       if test "xFILE" != xBASH; then
7927         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7928 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7929       fi
7930       # Try to locate tool using the code snippet
7931       for ac_prog in file
7932 do
7933   # Extract the first word of "$ac_prog", so it can be a program name with args.
7934 set dummy $ac_prog; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_path_FILE+:} false; then :
7938   $as_echo_n "(cached) " >&6
7939 else
7940   case $FILE in
7941   [\\/]* | ?:[\\/]*)
7942   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7943   ;;
7944   *)
7945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948   IFS=$as_save_IFS
7949   test -z "$as_dir" && as_dir=.
7950     for ac_exec_ext in '' $ac_executable_extensions; do
7951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954     break 2
7955   fi
7956 done
7957   done
7958 IFS=$as_save_IFS
7959 
7960   ;;
7961 esac
7962 fi
7963 FILE=$ac_cv_path_FILE
7964 if test -n "$FILE"; then
7965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7966 $as_echo "$FILE" >&6; }
7967 else
7968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7970 fi
7971 
7972 
7973   test -n "$FILE" && break
7974 done
7975 
7976     else
7977       # If it succeeded, then it was overridden by the user. We will use it
7978       # for the tool.
7979 
7980       # First remove it from the list of overridden variables, so we can test
7981       # for unknown variables in the end.
7982       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7983 
7984       # Check if we try to supply an empty value
7985       if test "x$FILE" = x; then
7986         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7987 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7988         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7989 $as_echo_n "checking for FILE... " >&6; }
7990         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7991 $as_echo "disabled" >&6; }
7992       else
7993         # Check if the provided tool contains a complete path.
7994         tool_specified="$FILE"
7995         tool_basename="${tool_specified##*/}"
7996         if test "x$tool_basename" = "x$tool_specified"; then
7997           # A command without a complete path is provided, search $PATH.
7998           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7999 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
8000           # Extract the first word of "$tool_basename", so it can be a program name with args.
8001 set dummy $tool_basename; ac_word=$2
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if ${ac_cv_path_FILE+:} false; then :
8005   $as_echo_n "(cached) " >&6
8006 else
8007   case $FILE in
8008   [\\/]* | ?:[\\/]*)
8009   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
8010   ;;
8011   *)
8012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015   IFS=$as_save_IFS
8016   test -z "$as_dir" && as_dir=.
8017     for ac_exec_ext in '' $ac_executable_extensions; do
8018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8019     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
8020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021     break 2
8022   fi
8023 done
8024   done
8025 IFS=$as_save_IFS
8026 
8027   ;;
8028 esac
8029 fi
8030 FILE=$ac_cv_path_FILE
8031 if test -n "$FILE"; then
8032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8033 $as_echo "$FILE" >&6; }
8034 else
8035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8037 fi
8038 
8039 
8040           if test "x$FILE" = x; then
8041             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8042           fi
8043         else
8044           # Otherwise we believe it is a complete path. Use it as it is.
8045           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
8046 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
8047           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8048 $as_echo_n "checking for FILE... " >&6; }
8049           if test ! -x "$tool_specified"; then
8050             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8051 $as_echo "not found" >&6; }
8052             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
8053           fi
8054           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8055 $as_echo "$tool_specified" >&6; }
8056         fi
8057       fi
8058     fi
8059 
8060   fi
8061 
8062 
8063 
8064   if test "x$FILE" = x; then
8065     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8066   fi
8067 
8068 
8069 
8070 
8071 
8072   # Publish this variable in the help.
8073 
8074 
8075   if [ -z "${FIND+x}" ]; then
8076     # The variable is not set by user, try to locate tool using the code snippet
8077     for ac_prog in find
8078 do
8079   # Extract the first word of "$ac_prog", so it can be a program name with args.
8080 set dummy $ac_prog; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if ${ac_cv_path_FIND+:} false; then :
8084   $as_echo_n "(cached) " >&6
8085 else
8086   case $FIND in
8087   [\\/]* | ?:[\\/]*)
8088   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8089   ;;
8090   *)
8091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094   IFS=$as_save_IFS
8095   test -z "$as_dir" && as_dir=.
8096     for ac_exec_ext in '' $ac_executable_extensions; do
8097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100     break 2
8101   fi
8102 done
8103   done
8104 IFS=$as_save_IFS
8105 
8106   ;;
8107 esac
8108 fi
8109 FIND=$ac_cv_path_FIND
8110 if test -n "$FIND"; then
8111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8112 $as_echo "$FIND" >&6; }
8113 else
8114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8116 fi
8117 
8118 
8119   test -n "$FIND" && break
8120 done
8121 
8122   else
8123     # The variable is set, but is it from the command line or the environment?
8124 
8125     # Try to remove the string !FIND! from our list.
8126     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8127     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8128       # If it failed, the variable was not from the command line. Ignore it,
8129       # but warn the user (except for BASH, which is always set by the calling BASH).
8130       if test "xFIND" != xBASH; then
8131         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8132 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8133       fi
8134       # Try to locate tool using the code snippet
8135       for ac_prog in find
8136 do
8137   # Extract the first word of "$ac_prog", so it can be a program name with args.
8138 set dummy $ac_prog; ac_word=$2
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140 $as_echo_n "checking for $ac_word... " >&6; }
8141 if ${ac_cv_path_FIND+:} false; then :
8142   $as_echo_n "(cached) " >&6
8143 else
8144   case $FIND in
8145   [\\/]* | ?:[\\/]*)
8146   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8147   ;;
8148   *)
8149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152   IFS=$as_save_IFS
8153   test -z "$as_dir" && as_dir=.
8154     for ac_exec_ext in '' $ac_executable_extensions; do
8155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8156     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158     break 2
8159   fi
8160 done
8161   done
8162 IFS=$as_save_IFS
8163 
8164   ;;
8165 esac
8166 fi
8167 FIND=$ac_cv_path_FIND
8168 if test -n "$FIND"; then
8169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8170 $as_echo "$FIND" >&6; }
8171 else
8172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 fi
8175 
8176 
8177   test -n "$FIND" && break
8178 done
8179 
8180     else
8181       # If it succeeded, then it was overridden by the user. We will use it
8182       # for the tool.
8183 
8184       # First remove it from the list of overridden variables, so we can test
8185       # for unknown variables in the end.
8186       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8187 
8188       # Check if we try to supply an empty value
8189       if test "x$FIND" = x; then
8190         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8191 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8193 $as_echo_n "checking for FIND... " >&6; }
8194         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8195 $as_echo "disabled" >&6; }
8196       else
8197         # Check if the provided tool contains a complete path.
8198         tool_specified="$FIND"
8199         tool_basename="${tool_specified##*/}"
8200         if test "x$tool_basename" = "x$tool_specified"; then
8201           # A command without a complete path is provided, search $PATH.
8202           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8203 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8204           # Extract the first word of "$tool_basename", so it can be a program name with args.
8205 set dummy $tool_basename; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if ${ac_cv_path_FIND+:} false; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   case $FIND in
8212   [\\/]* | ?:[\\/]*)
8213   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8214   ;;
8215   *)
8216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 for as_dir in $PATH
8218 do
8219   IFS=$as_save_IFS
8220   test -z "$as_dir" && as_dir=.
8221     for ac_exec_ext in '' $ac_executable_extensions; do
8222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8223     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225     break 2
8226   fi
8227 done
8228   done
8229 IFS=$as_save_IFS
8230 
8231   ;;
8232 esac
8233 fi
8234 FIND=$ac_cv_path_FIND
8235 if test -n "$FIND"; then
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8237 $as_echo "$FIND" >&6; }
8238 else
8239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8241 fi
8242 
8243 
8244           if test "x$FIND" = x; then
8245             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8246           fi
8247         else
8248           # Otherwise we believe it is a complete path. Use it as it is.
8249           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8250 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8251           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8252 $as_echo_n "checking for FIND... " >&6; }
8253           if test ! -x "$tool_specified"; then
8254             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8255 $as_echo "not found" >&6; }
8256             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8257           fi
8258           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8259 $as_echo "$tool_specified" >&6; }
8260         fi
8261       fi
8262     fi
8263 
8264   fi
8265 
8266 
8267 
8268   if test "x$FIND" = x; then
8269     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8270   fi
8271 
8272 
8273 
8274 
8275 
8276   # Publish this variable in the help.
8277 
8278 
8279   if [ -z "${HEAD+x}" ]; then
8280     # The variable is not set by user, try to locate tool using the code snippet
8281     for ac_prog in head
8282 do
8283   # Extract the first word of "$ac_prog", so it can be a program name with args.
8284 set dummy $ac_prog; ac_word=$2
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286 $as_echo_n "checking for $ac_word... " >&6; }
8287 if ${ac_cv_path_HEAD+:} false; then :
8288   $as_echo_n "(cached) " >&6
8289 else
8290   case $HEAD in
8291   [\\/]* | ?:[\\/]*)
8292   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8293   ;;
8294   *)
8295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8297 do
8298   IFS=$as_save_IFS
8299   test -z "$as_dir" && as_dir=.
8300     for ac_exec_ext in '' $ac_executable_extensions; do
8301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304     break 2
8305   fi
8306 done
8307   done
8308 IFS=$as_save_IFS
8309 
8310   ;;
8311 esac
8312 fi
8313 HEAD=$ac_cv_path_HEAD
8314 if test -n "$HEAD"; then
8315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8316 $as_echo "$HEAD" >&6; }
8317 else
8318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8320 fi
8321 
8322 
8323   test -n "$HEAD" && break
8324 done
8325 
8326   else
8327     # The variable is set, but is it from the command line or the environment?
8328 
8329     # Try to remove the string !HEAD! from our list.
8330     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8331     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8332       # If it failed, the variable was not from the command line. Ignore it,
8333       # but warn the user (except for BASH, which is always set by the calling BASH).
8334       if test "xHEAD" != xBASH; then
8335         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8336 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8337       fi
8338       # Try to locate tool using the code snippet
8339       for ac_prog in head
8340 do
8341   # Extract the first word of "$ac_prog", so it can be a program name with args.
8342 set dummy $ac_prog; ac_word=$2
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 $as_echo_n "checking for $ac_word... " >&6; }
8345 if ${ac_cv_path_HEAD+:} false; then :
8346   $as_echo_n "(cached) " >&6
8347 else
8348   case $HEAD in
8349   [\\/]* | ?:[\\/]*)
8350   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8351   ;;
8352   *)
8353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8355 do
8356   IFS=$as_save_IFS
8357   test -z "$as_dir" && as_dir=.
8358     for ac_exec_ext in '' $ac_executable_extensions; do
8359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8360     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362     break 2
8363   fi
8364 done
8365   done
8366 IFS=$as_save_IFS
8367 
8368   ;;
8369 esac
8370 fi
8371 HEAD=$ac_cv_path_HEAD
8372 if test -n "$HEAD"; then
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8374 $as_echo "$HEAD" >&6; }
8375 else
8376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8378 fi
8379 
8380 
8381   test -n "$HEAD" && break
8382 done
8383 
8384     else
8385       # If it succeeded, then it was overridden by the user. We will use it
8386       # for the tool.
8387 
8388       # First remove it from the list of overridden variables, so we can test
8389       # for unknown variables in the end.
8390       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8391 
8392       # Check if we try to supply an empty value
8393       if test "x$HEAD" = x; then
8394         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8395 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8396         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8397 $as_echo_n "checking for HEAD... " >&6; }
8398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8399 $as_echo "disabled" >&6; }
8400       else
8401         # Check if the provided tool contains a complete path.
8402         tool_specified="$HEAD"
8403         tool_basename="${tool_specified##*/}"
8404         if test "x$tool_basename" = "x$tool_specified"; then
8405           # A command without a complete path is provided, search $PATH.
8406           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8407 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8408           # Extract the first word of "$tool_basename", so it can be a program name with args.
8409 set dummy $tool_basename; ac_word=$2
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 $as_echo_n "checking for $ac_word... " >&6; }
8412 if ${ac_cv_path_HEAD+:} false; then :
8413   $as_echo_n "(cached) " >&6
8414 else
8415   case $HEAD in
8416   [\\/]* | ?:[\\/]*)
8417   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8418   ;;
8419   *)
8420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 for as_dir in $PATH
8422 do
8423   IFS=$as_save_IFS
8424   test -z "$as_dir" && as_dir=.
8425     for ac_exec_ext in '' $ac_executable_extensions; do
8426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8427     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429     break 2
8430   fi
8431 done
8432   done
8433 IFS=$as_save_IFS
8434 
8435   ;;
8436 esac
8437 fi
8438 HEAD=$ac_cv_path_HEAD
8439 if test -n "$HEAD"; then
8440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8441 $as_echo "$HEAD" >&6; }
8442 else
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444 $as_echo "no" >&6; }
8445 fi
8446 
8447 
8448           if test "x$HEAD" = x; then
8449             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8450           fi
8451         else
8452           # Otherwise we believe it is a complete path. Use it as it is.
8453           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8454 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8455           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8456 $as_echo_n "checking for HEAD... " >&6; }
8457           if test ! -x "$tool_specified"; then
8458             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8459 $as_echo "not found" >&6; }
8460             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8461           fi
8462           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8463 $as_echo "$tool_specified" >&6; }
8464         fi
8465       fi
8466     fi
8467 
8468   fi
8469 
8470 
8471 
8472   if test "x$HEAD" = x; then
8473     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8474   fi
8475 
8476 
8477 
8478 
8479 
8480   # Publish this variable in the help.
8481 
8482 
8483   if [ -z "${GUNZIP+x}" ]; then
8484     # The variable is not set by user, try to locate tool using the code snippet
8485     for ac_prog in gunzip
8486 do
8487   # Extract the first word of "$ac_prog", so it can be a program name with args.
8488 set dummy $ac_prog; ac_word=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if ${ac_cv_path_GUNZIP+:} false; then :
8492   $as_echo_n "(cached) " >&6
8493 else
8494   case $GUNZIP in
8495   [\\/]* | ?:[\\/]*)
8496   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8497   ;;
8498   *)
8499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8501 do
8502   IFS=$as_save_IFS
8503   test -z "$as_dir" && as_dir=.
8504     for ac_exec_ext in '' $ac_executable_extensions; do
8505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508     break 2
8509   fi
8510 done
8511   done
8512 IFS=$as_save_IFS
8513 
8514   ;;
8515 esac
8516 fi
8517 GUNZIP=$ac_cv_path_GUNZIP
8518 if test -n "$GUNZIP"; then
8519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8520 $as_echo "$GUNZIP" >&6; }
8521 else
8522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8524 fi
8525 
8526 
8527   test -n "$GUNZIP" && break
8528 done
8529 
8530   else
8531     # The variable is set, but is it from the command line or the environment?
8532 
8533     # Try to remove the string !GUNZIP! from our list.
8534     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8535     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8536       # If it failed, the variable was not from the command line. Ignore it,
8537       # but warn the user (except for BASH, which is always set by the calling BASH).
8538       if test "xGUNZIP" != xBASH; then
8539         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8540 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8541       fi
8542       # Try to locate tool using the code snippet
8543       for ac_prog in gunzip
8544 do
8545   # Extract the first word of "$ac_prog", so it can be a program name with args.
8546 set dummy $ac_prog; ac_word=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if ${ac_cv_path_GUNZIP+:} false; then :
8550   $as_echo_n "(cached) " >&6
8551 else
8552   case $GUNZIP in
8553   [\\/]* | ?:[\\/]*)
8554   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8555   ;;
8556   *)
8557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 for as_dir in $PATH
8559 do
8560   IFS=$as_save_IFS
8561   test -z "$as_dir" && as_dir=.
8562     for ac_exec_ext in '' $ac_executable_extensions; do
8563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8564     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566     break 2
8567   fi
8568 done
8569   done
8570 IFS=$as_save_IFS
8571 
8572   ;;
8573 esac
8574 fi
8575 GUNZIP=$ac_cv_path_GUNZIP
8576 if test -n "$GUNZIP"; then
8577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8578 $as_echo "$GUNZIP" >&6; }
8579 else
8580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8582 fi
8583 
8584 
8585   test -n "$GUNZIP" && break
8586 done
8587 
8588     else
8589       # If it succeeded, then it was overridden by the user. We will use it
8590       # for the tool.
8591 
8592       # First remove it from the list of overridden variables, so we can test
8593       # for unknown variables in the end.
8594       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8595 
8596       # Check if we try to supply an empty value
8597       if test "x$GUNZIP" = x; then
8598         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8599 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8600         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8601 $as_echo_n "checking for GUNZIP... " >&6; }
8602         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8603 $as_echo "disabled" >&6; }
8604       else
8605         # Check if the provided tool contains a complete path.
8606         tool_specified="$GUNZIP"
8607         tool_basename="${tool_specified##*/}"
8608         if test "x$tool_basename" = "x$tool_specified"; then
8609           # A command without a complete path is provided, search $PATH.
8610           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8611 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8612           # Extract the first word of "$tool_basename", so it can be a program name with args.
8613 set dummy $tool_basename; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if ${ac_cv_path_GUNZIP+:} false; then :
8617   $as_echo_n "(cached) " >&6
8618 else
8619   case $GUNZIP in
8620   [\\/]* | ?:[\\/]*)
8621   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8622   ;;
8623   *)
8624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8626 do
8627   IFS=$as_save_IFS
8628   test -z "$as_dir" && as_dir=.
8629     for ac_exec_ext in '' $ac_executable_extensions; do
8630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633     break 2
8634   fi
8635 done
8636   done
8637 IFS=$as_save_IFS
8638 
8639   ;;
8640 esac
8641 fi
8642 GUNZIP=$ac_cv_path_GUNZIP
8643 if test -n "$GUNZIP"; then
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8645 $as_echo "$GUNZIP" >&6; }
8646 else
8647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8649 fi
8650 
8651 
8652           if test "x$GUNZIP" = x; then
8653             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8654           fi
8655         else
8656           # Otherwise we believe it is a complete path. Use it as it is.
8657           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8658 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8659           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8660 $as_echo_n "checking for GUNZIP... " >&6; }
8661           if test ! -x "$tool_specified"; then
8662             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8663 $as_echo "not found" >&6; }
8664             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8665           fi
8666           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8667 $as_echo "$tool_specified" >&6; }
8668         fi
8669       fi
8670     fi
8671 
8672   fi
8673 
8674 
8675 
8676   if test "x$GUNZIP" = x; then
8677     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8678   fi
8679 
8680 
8681 
8682 
8683 
8684   # Publish this variable in the help.
8685 
8686 
8687   if [ -z "${GZIP+x}" ]; then
8688     # The variable is not set by user, try to locate tool using the code snippet
8689     for ac_prog in pigz gzip
8690 do
8691   # Extract the first word of "$ac_prog", so it can be a program name with args.
8692 set dummy $ac_prog; ac_word=$2
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 $as_echo_n "checking for $ac_word... " >&6; }
8695 if ${ac_cv_path_GZIP+:} false; then :
8696   $as_echo_n "(cached) " >&6
8697 else
8698   case $GZIP in
8699   [\\/]* | ?:[\\/]*)
8700   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8701   ;;
8702   *)
8703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in $PATH
8705 do
8706   IFS=$as_save_IFS
8707   test -z "$as_dir" && as_dir=.
8708     for ac_exec_ext in '' $ac_executable_extensions; do
8709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8710     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712     break 2
8713   fi
8714 done
8715   done
8716 IFS=$as_save_IFS
8717 
8718   ;;
8719 esac
8720 fi
8721 GZIP=$ac_cv_path_GZIP
8722 if test -n "$GZIP"; then
8723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8724 $as_echo "$GZIP" >&6; }
8725 else
8726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8728 fi
8729 
8730 
8731   test -n "$GZIP" && break
8732 done
8733 
8734   else
8735     # The variable is set, but is it from the command line or the environment?
8736 
8737     # Try to remove the string !GZIP! from our list.
8738     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8739     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8740       # If it failed, the variable was not from the command line. Ignore it,
8741       # but warn the user (except for BASH, which is always set by the calling BASH).
8742       if test "xGZIP" != xBASH; then
8743         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8744 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8745       fi
8746       # Try to locate tool using the code snippet
8747       for ac_prog in pigz gzip
8748 do
8749   # Extract the first word of "$ac_prog", so it can be a program name with args.
8750 set dummy $ac_prog; ac_word=$2
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752 $as_echo_n "checking for $ac_word... " >&6; }
8753 if ${ac_cv_path_GZIP+:} false; then :
8754   $as_echo_n "(cached) " >&6
8755 else
8756   case $GZIP in
8757   [\\/]* | ?:[\\/]*)
8758   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8759   ;;
8760   *)
8761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8763 do
8764   IFS=$as_save_IFS
8765   test -z "$as_dir" && as_dir=.
8766     for ac_exec_ext in '' $ac_executable_extensions; do
8767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8768     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770     break 2
8771   fi
8772 done
8773   done
8774 IFS=$as_save_IFS
8775 
8776   ;;
8777 esac
8778 fi
8779 GZIP=$ac_cv_path_GZIP
8780 if test -n "$GZIP"; then
8781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8782 $as_echo "$GZIP" >&6; }
8783 else
8784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785 $as_echo "no" >&6; }
8786 fi
8787 
8788 
8789   test -n "$GZIP" && break
8790 done
8791 
8792     else
8793       # If it succeeded, then it was overridden by the user. We will use it
8794       # for the tool.
8795 
8796       # First remove it from the list of overridden variables, so we can test
8797       # for unknown variables in the end.
8798       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8799 
8800       # Check if we try to supply an empty value
8801       if test "x$GZIP" = x; then
8802         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8803 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8804         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8805 $as_echo_n "checking for GZIP... " >&6; }
8806         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8807 $as_echo "disabled" >&6; }
8808       else
8809         # Check if the provided tool contains a complete path.
8810         tool_specified="$GZIP"
8811         tool_basename="${tool_specified##*/}"
8812         if test "x$tool_basename" = "x$tool_specified"; then
8813           # A command without a complete path is provided, search $PATH.
8814           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8815 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8816           # Extract the first word of "$tool_basename", so it can be a program name with args.
8817 set dummy $tool_basename; ac_word=$2
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8819 $as_echo_n "checking for $ac_word... " >&6; }
8820 if ${ac_cv_path_GZIP+:} false; then :
8821   $as_echo_n "(cached) " >&6
8822 else
8823   case $GZIP in
8824   [\\/]* | ?:[\\/]*)
8825   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8826   ;;
8827   *)
8828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8830 do
8831   IFS=$as_save_IFS
8832   test -z "$as_dir" && as_dir=.
8833     for ac_exec_ext in '' $ac_executable_extensions; do
8834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837     break 2
8838   fi
8839 done
8840   done
8841 IFS=$as_save_IFS
8842 
8843   ;;
8844 esac
8845 fi
8846 GZIP=$ac_cv_path_GZIP
8847 if test -n "$GZIP"; then
8848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8849 $as_echo "$GZIP" >&6; }
8850 else
8851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8853 fi
8854 
8855 
8856           if test "x$GZIP" = x; then
8857             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8858           fi
8859         else
8860           # Otherwise we believe it is a complete path. Use it as it is.
8861           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8862 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8863           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8864 $as_echo_n "checking for GZIP... " >&6; }
8865           if test ! -x "$tool_specified"; then
8866             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8867 $as_echo "not found" >&6; }
8868             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8869           fi
8870           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8871 $as_echo "$tool_specified" >&6; }
8872         fi
8873       fi
8874     fi
8875 
8876   fi
8877 
8878 
8879 
8880   if test "x$GZIP" = x; then
8881     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8882   fi
8883 
8884 
8885 
8886 
8887 
8888   # Publish this variable in the help.
8889 
8890 
8891   if [ -z "${LN+x}" ]; then
8892     # The variable is not set by user, try to locate tool using the code snippet
8893     for ac_prog in ln
8894 do
8895   # Extract the first word of "$ac_prog", so it can be a program name with args.
8896 set dummy $ac_prog; ac_word=$2
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if ${ac_cv_path_LN+:} false; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902   case $LN in
8903   [\\/]* | ?:[\\/]*)
8904   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8905   ;;
8906   *)
8907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908 for as_dir in $PATH
8909 do
8910   IFS=$as_save_IFS
8911   test -z "$as_dir" && as_dir=.
8912     for ac_exec_ext in '' $ac_executable_extensions; do
8913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8914     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8916     break 2
8917   fi
8918 done
8919   done
8920 IFS=$as_save_IFS
8921 
8922   ;;
8923 esac
8924 fi
8925 LN=$ac_cv_path_LN
8926 if test -n "$LN"; then
8927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8928 $as_echo "$LN" >&6; }
8929 else
8930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8932 fi
8933 
8934 
8935   test -n "$LN" && break
8936 done
8937 
8938   else
8939     # The variable is set, but is it from the command line or the environment?
8940 
8941     # Try to remove the string !LN! from our list.
8942     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8943     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8944       # If it failed, the variable was not from the command line. Ignore it,
8945       # but warn the user (except for BASH, which is always set by the calling BASH).
8946       if test "xLN" != xBASH; then
8947         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8948 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8949       fi
8950       # Try to locate tool using the code snippet
8951       for ac_prog in ln
8952 do
8953   # Extract the first word of "$ac_prog", so it can be a program name with args.
8954 set dummy $ac_prog; ac_word=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if ${ac_cv_path_LN+:} false; then :
8958   $as_echo_n "(cached) " >&6
8959 else
8960   case $LN in
8961   [\\/]* | ?:[\\/]*)
8962   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8963   ;;
8964   *)
8965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966 for as_dir in $PATH
8967 do
8968   IFS=$as_save_IFS
8969   test -z "$as_dir" && as_dir=.
8970     for ac_exec_ext in '' $ac_executable_extensions; do
8971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8972     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974     break 2
8975   fi
8976 done
8977   done
8978 IFS=$as_save_IFS
8979 
8980   ;;
8981 esac
8982 fi
8983 LN=$ac_cv_path_LN
8984 if test -n "$LN"; then
8985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8986 $as_echo "$LN" >&6; }
8987 else
8988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8990 fi
8991 
8992 
8993   test -n "$LN" && break
8994 done
8995 
8996     else
8997       # If it succeeded, then it was overridden by the user. We will use it
8998       # for the tool.
8999 
9000       # First remove it from the list of overridden variables, so we can test
9001       # for unknown variables in the end.
9002       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9003 
9004       # Check if we try to supply an empty value
9005       if test "x$LN" = x; then
9006         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
9007 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
9008         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9009 $as_echo_n "checking for LN... " >&6; }
9010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9011 $as_echo "disabled" >&6; }
9012       else
9013         # Check if the provided tool contains a complete path.
9014         tool_specified="$LN"
9015         tool_basename="${tool_specified##*/}"
9016         if test "x$tool_basename" = "x$tool_specified"; then
9017           # A command without a complete path is provided, search $PATH.
9018           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
9019 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
9020           # Extract the first word of "$tool_basename", so it can be a program name with args.
9021 set dummy $tool_basename; ac_word=$2
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9023 $as_echo_n "checking for $ac_word... " >&6; }
9024 if ${ac_cv_path_LN+:} false; then :
9025   $as_echo_n "(cached) " >&6
9026 else
9027   case $LN in
9028   [\\/]* | ?:[\\/]*)
9029   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9030   ;;
9031   *)
9032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9033 for as_dir in $PATH
9034 do
9035   IFS=$as_save_IFS
9036   test -z "$as_dir" && as_dir=.
9037     for ac_exec_ext in '' $ac_executable_extensions; do
9038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9039     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9041     break 2
9042   fi
9043 done
9044   done
9045 IFS=$as_save_IFS
9046 
9047   ;;
9048 esac
9049 fi
9050 LN=$ac_cv_path_LN
9051 if test -n "$LN"; then
9052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9053 $as_echo "$LN" >&6; }
9054 else
9055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056 $as_echo "no" >&6; }
9057 fi
9058 
9059 
9060           if test "x$LN" = x; then
9061             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9062           fi
9063         else
9064           # Otherwise we believe it is a complete path. Use it as it is.
9065           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9066 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9067           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9068 $as_echo_n "checking for LN... " >&6; }
9069           if test ! -x "$tool_specified"; then
9070             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9071 $as_echo "not found" >&6; }
9072             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9073           fi
9074           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9075 $as_echo "$tool_specified" >&6; }
9076         fi
9077       fi
9078     fi
9079 
9080   fi
9081 
9082 
9083 
9084   if test "x$LN" = x; then
9085     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9086   fi
9087 
9088 
9089 
9090 
9091 
9092   # Publish this variable in the help.
9093 
9094 
9095   if [ -z "${LS+x}" ]; then
9096     # The variable is not set by user, try to locate tool using the code snippet
9097     for ac_prog in ls
9098 do
9099   # Extract the first word of "$ac_prog", so it can be a program name with args.
9100 set dummy $ac_prog; ac_word=$2
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9102 $as_echo_n "checking for $ac_word... " >&6; }
9103 if ${ac_cv_path_LS+:} false; then :
9104   $as_echo_n "(cached) " >&6
9105 else
9106   case $LS in
9107   [\\/]* | ?:[\\/]*)
9108   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9109   ;;
9110   *)
9111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112 for as_dir in $PATH
9113 do
9114   IFS=$as_save_IFS
9115   test -z "$as_dir" && as_dir=.
9116     for ac_exec_ext in '' $ac_executable_extensions; do
9117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9118     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9120     break 2
9121   fi
9122 done
9123   done
9124 IFS=$as_save_IFS
9125 
9126   ;;
9127 esac
9128 fi
9129 LS=$ac_cv_path_LS
9130 if test -n "$LS"; then
9131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9132 $as_echo "$LS" >&6; }
9133 else
9134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135 $as_echo "no" >&6; }
9136 fi
9137 
9138 
9139   test -n "$LS" && break
9140 done
9141 
9142   else
9143     # The variable is set, but is it from the command line or the environment?
9144 
9145     # Try to remove the string !LS! from our list.
9146     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9147     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9148       # If it failed, the variable was not from the command line. Ignore it,
9149       # but warn the user (except for BASH, which is always set by the calling BASH).
9150       if test "xLS" != xBASH; then
9151         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9152 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9153       fi
9154       # Try to locate tool using the code snippet
9155       for ac_prog in ls
9156 do
9157   # Extract the first word of "$ac_prog", so it can be a program name with args.
9158 set dummy $ac_prog; ac_word=$2
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9160 $as_echo_n "checking for $ac_word... " >&6; }
9161 if ${ac_cv_path_LS+:} false; then :
9162   $as_echo_n "(cached) " >&6
9163 else
9164   case $LS in
9165   [\\/]* | ?:[\\/]*)
9166   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9167   ;;
9168   *)
9169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 for as_dir in $PATH
9171 do
9172   IFS=$as_save_IFS
9173   test -z "$as_dir" && as_dir=.
9174     for ac_exec_ext in '' $ac_executable_extensions; do
9175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9176     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178     break 2
9179   fi
9180 done
9181   done
9182 IFS=$as_save_IFS
9183 
9184   ;;
9185 esac
9186 fi
9187 LS=$ac_cv_path_LS
9188 if test -n "$LS"; then
9189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9190 $as_echo "$LS" >&6; }
9191 else
9192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 $as_echo "no" >&6; }
9194 fi
9195 
9196 
9197   test -n "$LS" && break
9198 done
9199 
9200     else
9201       # If it succeeded, then it was overridden by the user. We will use it
9202       # for the tool.
9203 
9204       # First remove it from the list of overridden variables, so we can test
9205       # for unknown variables in the end.
9206       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9207 
9208       # Check if we try to supply an empty value
9209       if test "x$LS" = x; then
9210         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9211 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9213 $as_echo_n "checking for LS... " >&6; }
9214         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9215 $as_echo "disabled" >&6; }
9216       else
9217         # Check if the provided tool contains a complete path.
9218         tool_specified="$LS"
9219         tool_basename="${tool_specified##*/}"
9220         if test "x$tool_basename" = "x$tool_specified"; then
9221           # A command without a complete path is provided, search $PATH.
9222           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9223 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9224           # Extract the first word of "$tool_basename", so it can be a program name with args.
9225 set dummy $tool_basename; ac_word=$2
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227 $as_echo_n "checking for $ac_word... " >&6; }
9228 if ${ac_cv_path_LS+:} false; then :
9229   $as_echo_n "(cached) " >&6
9230 else
9231   case $LS in
9232   [\\/]* | ?:[\\/]*)
9233   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9234   ;;
9235   *)
9236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237 for as_dir in $PATH
9238 do
9239   IFS=$as_save_IFS
9240   test -z "$as_dir" && as_dir=.
9241     for ac_exec_ext in '' $ac_executable_extensions; do
9242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9243     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245     break 2
9246   fi
9247 done
9248   done
9249 IFS=$as_save_IFS
9250 
9251   ;;
9252 esac
9253 fi
9254 LS=$ac_cv_path_LS
9255 if test -n "$LS"; then
9256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9257 $as_echo "$LS" >&6; }
9258 else
9259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 $as_echo "no" >&6; }
9261 fi
9262 
9263 
9264           if test "x$LS" = x; then
9265             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9266           fi
9267         else
9268           # Otherwise we believe it is a complete path. Use it as it is.
9269           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9270 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9271           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9272 $as_echo_n "checking for LS... " >&6; }
9273           if test ! -x "$tool_specified"; then
9274             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9275 $as_echo "not found" >&6; }
9276             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9277           fi
9278           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9279 $as_echo "$tool_specified" >&6; }
9280         fi
9281       fi
9282     fi
9283 
9284   fi
9285 
9286 
9287 
9288   if test "x$LS" = x; then
9289     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9290   fi
9291 
9292 
9293 
9294 
9295 
9296   # Publish this variable in the help.
9297 
9298 
9299   if [ -z "${MKDIR+x}" ]; then
9300     # The variable is not set by user, try to locate tool using the code snippet
9301     for ac_prog in mkdir
9302 do
9303   # Extract the first word of "$ac_prog", so it can be a program name with args.
9304 set dummy $ac_prog; ac_word=$2
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9306 $as_echo_n "checking for $ac_word... " >&6; }
9307 if ${ac_cv_path_MKDIR+:} false; then :
9308   $as_echo_n "(cached) " >&6
9309 else
9310   case $MKDIR in
9311   [\\/]* | ?:[\\/]*)
9312   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9313   ;;
9314   *)
9315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316 for as_dir in $PATH
9317 do
9318   IFS=$as_save_IFS
9319   test -z "$as_dir" && as_dir=.
9320     for ac_exec_ext in '' $ac_executable_extensions; do
9321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9322     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9324     break 2
9325   fi
9326 done
9327   done
9328 IFS=$as_save_IFS
9329 
9330   ;;
9331 esac
9332 fi
9333 MKDIR=$ac_cv_path_MKDIR
9334 if test -n "$MKDIR"; then
9335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9336 $as_echo "$MKDIR" >&6; }
9337 else
9338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 $as_echo "no" >&6; }
9340 fi
9341 
9342 
9343   test -n "$MKDIR" && break
9344 done
9345 
9346   else
9347     # The variable is set, but is it from the command line or the environment?
9348 
9349     # Try to remove the string !MKDIR! from our list.
9350     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9351     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9352       # If it failed, the variable was not from the command line. Ignore it,
9353       # but warn the user (except for BASH, which is always set by the calling BASH).
9354       if test "xMKDIR" != xBASH; then
9355         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9356 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9357       fi
9358       # Try to locate tool using the code snippet
9359       for ac_prog in mkdir
9360 do
9361   # Extract the first word of "$ac_prog", so it can be a program name with args.
9362 set dummy $ac_prog; ac_word=$2
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364 $as_echo_n "checking for $ac_word... " >&6; }
9365 if ${ac_cv_path_MKDIR+:} false; then :
9366   $as_echo_n "(cached) " >&6
9367 else
9368   case $MKDIR in
9369   [\\/]* | ?:[\\/]*)
9370   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9371   ;;
9372   *)
9373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374 for as_dir in $PATH
9375 do
9376   IFS=$as_save_IFS
9377   test -z "$as_dir" && as_dir=.
9378     for ac_exec_ext in '' $ac_executable_extensions; do
9379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9380     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9382     break 2
9383   fi
9384 done
9385   done
9386 IFS=$as_save_IFS
9387 
9388   ;;
9389 esac
9390 fi
9391 MKDIR=$ac_cv_path_MKDIR
9392 if test -n "$MKDIR"; then
9393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9394 $as_echo "$MKDIR" >&6; }
9395 else
9396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9398 fi
9399 
9400 
9401   test -n "$MKDIR" && break
9402 done
9403 
9404     else
9405       # If it succeeded, then it was overridden by the user. We will use it
9406       # for the tool.
9407 
9408       # First remove it from the list of overridden variables, so we can test
9409       # for unknown variables in the end.
9410       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9411 
9412       # Check if we try to supply an empty value
9413       if test "x$MKDIR" = x; then
9414         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9415 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9416         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9417 $as_echo_n "checking for MKDIR... " >&6; }
9418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9419 $as_echo "disabled" >&6; }
9420       else
9421         # Check if the provided tool contains a complete path.
9422         tool_specified="$MKDIR"
9423         tool_basename="${tool_specified##*/}"
9424         if test "x$tool_basename" = "x$tool_specified"; then
9425           # A command without a complete path is provided, search $PATH.
9426           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9427 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9428           # Extract the first word of "$tool_basename", so it can be a program name with args.
9429 set dummy $tool_basename; ac_word=$2
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431 $as_echo_n "checking for $ac_word... " >&6; }
9432 if ${ac_cv_path_MKDIR+:} false; then :
9433   $as_echo_n "(cached) " >&6
9434 else
9435   case $MKDIR in
9436   [\\/]* | ?:[\\/]*)
9437   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9438   ;;
9439   *)
9440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441 for as_dir in $PATH
9442 do
9443   IFS=$as_save_IFS
9444   test -z "$as_dir" && as_dir=.
9445     for ac_exec_ext in '' $ac_executable_extensions; do
9446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9447     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9449     break 2
9450   fi
9451 done
9452   done
9453 IFS=$as_save_IFS
9454 
9455   ;;
9456 esac
9457 fi
9458 MKDIR=$ac_cv_path_MKDIR
9459 if test -n "$MKDIR"; then
9460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9461 $as_echo "$MKDIR" >&6; }
9462 else
9463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 $as_echo "no" >&6; }
9465 fi
9466 
9467 
9468           if test "x$MKDIR" = x; then
9469             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9470           fi
9471         else
9472           # Otherwise we believe it is a complete path. Use it as it is.
9473           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9474 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9475           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9476 $as_echo_n "checking for MKDIR... " >&6; }
9477           if test ! -x "$tool_specified"; then
9478             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9479 $as_echo "not found" >&6; }
9480             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9481           fi
9482           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9483 $as_echo "$tool_specified" >&6; }
9484         fi
9485       fi
9486     fi
9487 
9488   fi
9489 
9490 
9491 
9492   if test "x$MKDIR" = x; then
9493     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9494   fi
9495 
9496 
9497 
9498 
9499 
9500   # Publish this variable in the help.
9501 
9502 
9503   if [ -z "${MKTEMP+x}" ]; then
9504     # The variable is not set by user, try to locate tool using the code snippet
9505     for ac_prog in mktemp
9506 do
9507   # Extract the first word of "$ac_prog", so it can be a program name with args.
9508 set dummy $ac_prog; ac_word=$2
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510 $as_echo_n "checking for $ac_word... " >&6; }
9511 if ${ac_cv_path_MKTEMP+:} false; then :
9512   $as_echo_n "(cached) " >&6
9513 else
9514   case $MKTEMP in
9515   [\\/]* | ?:[\\/]*)
9516   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9517   ;;
9518   *)
9519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 for as_dir in $PATH
9521 do
9522   IFS=$as_save_IFS
9523   test -z "$as_dir" && as_dir=.
9524     for ac_exec_ext in '' $ac_executable_extensions; do
9525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9526     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9528     break 2
9529   fi
9530 done
9531   done
9532 IFS=$as_save_IFS
9533 
9534   ;;
9535 esac
9536 fi
9537 MKTEMP=$ac_cv_path_MKTEMP
9538 if test -n "$MKTEMP"; then
9539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9540 $as_echo "$MKTEMP" >&6; }
9541 else
9542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543 $as_echo "no" >&6; }
9544 fi
9545 
9546 
9547   test -n "$MKTEMP" && break
9548 done
9549 
9550   else
9551     # The variable is set, but is it from the command line or the environment?
9552 
9553     # Try to remove the string !MKTEMP! from our list.
9554     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9555     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9556       # If it failed, the variable was not from the command line. Ignore it,
9557       # but warn the user (except for BASH, which is always set by the calling BASH).
9558       if test "xMKTEMP" != xBASH; then
9559         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9560 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9561       fi
9562       # Try to locate tool using the code snippet
9563       for ac_prog in mktemp
9564 do
9565   # Extract the first word of "$ac_prog", so it can be a program name with args.
9566 set dummy $ac_prog; ac_word=$2
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568 $as_echo_n "checking for $ac_word... " >&6; }
9569 if ${ac_cv_path_MKTEMP+:} false; then :
9570   $as_echo_n "(cached) " >&6
9571 else
9572   case $MKTEMP in
9573   [\\/]* | ?:[\\/]*)
9574   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9575   ;;
9576   *)
9577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9579 do
9580   IFS=$as_save_IFS
9581   test -z "$as_dir" && as_dir=.
9582     for ac_exec_ext in '' $ac_executable_extensions; do
9583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9584     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586     break 2
9587   fi
9588 done
9589   done
9590 IFS=$as_save_IFS
9591 
9592   ;;
9593 esac
9594 fi
9595 MKTEMP=$ac_cv_path_MKTEMP
9596 if test -n "$MKTEMP"; then
9597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9598 $as_echo "$MKTEMP" >&6; }
9599 else
9600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601 $as_echo "no" >&6; }
9602 fi
9603 
9604 
9605   test -n "$MKTEMP" && break
9606 done
9607 
9608     else
9609       # If it succeeded, then it was overridden by the user. We will use it
9610       # for the tool.
9611 
9612       # First remove it from the list of overridden variables, so we can test
9613       # for unknown variables in the end.
9614       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9615 
9616       # Check if we try to supply an empty value
9617       if test "x$MKTEMP" = x; then
9618         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9619 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9620         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9621 $as_echo_n "checking for MKTEMP... " >&6; }
9622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9623 $as_echo "disabled" >&6; }
9624       else
9625         # Check if the provided tool contains a complete path.
9626         tool_specified="$MKTEMP"
9627         tool_basename="${tool_specified##*/}"
9628         if test "x$tool_basename" = "x$tool_specified"; then
9629           # A command without a complete path is provided, search $PATH.
9630           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9631 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9632           # Extract the first word of "$tool_basename", so it can be a program name with args.
9633 set dummy $tool_basename; ac_word=$2
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9635 $as_echo_n "checking for $ac_word... " >&6; }
9636 if ${ac_cv_path_MKTEMP+:} false; then :
9637   $as_echo_n "(cached) " >&6
9638 else
9639   case $MKTEMP in
9640   [\\/]* | ?:[\\/]*)
9641   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9642   ;;
9643   *)
9644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645 for as_dir in $PATH
9646 do
9647   IFS=$as_save_IFS
9648   test -z "$as_dir" && as_dir=.
9649     for ac_exec_ext in '' $ac_executable_extensions; do
9650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9651     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653     break 2
9654   fi
9655 done
9656   done
9657 IFS=$as_save_IFS
9658 
9659   ;;
9660 esac
9661 fi
9662 MKTEMP=$ac_cv_path_MKTEMP
9663 if test -n "$MKTEMP"; then
9664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9665 $as_echo "$MKTEMP" >&6; }
9666 else
9667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668 $as_echo "no" >&6; }
9669 fi
9670 
9671 
9672           if test "x$MKTEMP" = x; then
9673             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9674           fi
9675         else
9676           # Otherwise we believe it is a complete path. Use it as it is.
9677           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9678 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9679           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9680 $as_echo_n "checking for MKTEMP... " >&6; }
9681           if test ! -x "$tool_specified"; then
9682             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9683 $as_echo "not found" >&6; }
9684             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9685           fi
9686           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9687 $as_echo "$tool_specified" >&6; }
9688         fi
9689       fi
9690     fi
9691 
9692   fi
9693 
9694 
9695 
9696   if test "x$MKTEMP" = x; then
9697     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9698   fi
9699 
9700 
9701 
9702 
9703 
9704   # Publish this variable in the help.
9705 
9706 
9707   if [ -z "${MV+x}" ]; then
9708     # The variable is not set by user, try to locate tool using the code snippet
9709     for ac_prog in mv
9710 do
9711   # Extract the first word of "$ac_prog", so it can be a program name with args.
9712 set dummy $ac_prog; ac_word=$2
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714 $as_echo_n "checking for $ac_word... " >&6; }
9715 if ${ac_cv_path_MV+:} false; then :
9716   $as_echo_n "(cached) " >&6
9717 else
9718   case $MV in
9719   [\\/]* | ?:[\\/]*)
9720   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9721   ;;
9722   *)
9723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724 for as_dir in $PATH
9725 do
9726   IFS=$as_save_IFS
9727   test -z "$as_dir" && as_dir=.
9728     for ac_exec_ext in '' $ac_executable_extensions; do
9729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9730     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9732     break 2
9733   fi
9734 done
9735   done
9736 IFS=$as_save_IFS
9737 
9738   ;;
9739 esac
9740 fi
9741 MV=$ac_cv_path_MV
9742 if test -n "$MV"; then
9743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9744 $as_echo "$MV" >&6; }
9745 else
9746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9748 fi
9749 
9750 
9751   test -n "$MV" && break
9752 done
9753 
9754   else
9755     # The variable is set, but is it from the command line or the environment?
9756 
9757     # Try to remove the string !MV! from our list.
9758     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9759     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9760       # If it failed, the variable was not from the command line. Ignore it,
9761       # but warn the user (except for BASH, which is always set by the calling BASH).
9762       if test "xMV" != xBASH; then
9763         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9764 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9765       fi
9766       # Try to locate tool using the code snippet
9767       for ac_prog in mv
9768 do
9769   # Extract the first word of "$ac_prog", so it can be a program name with args.
9770 set dummy $ac_prog; ac_word=$2
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772 $as_echo_n "checking for $ac_word... " >&6; }
9773 if ${ac_cv_path_MV+:} false; then :
9774   $as_echo_n "(cached) " >&6
9775 else
9776   case $MV in
9777   [\\/]* | ?:[\\/]*)
9778   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9779   ;;
9780   *)
9781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782 for as_dir in $PATH
9783 do
9784   IFS=$as_save_IFS
9785   test -z "$as_dir" && as_dir=.
9786     for ac_exec_ext in '' $ac_executable_extensions; do
9787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9788     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9790     break 2
9791   fi
9792 done
9793   done
9794 IFS=$as_save_IFS
9795 
9796   ;;
9797 esac
9798 fi
9799 MV=$ac_cv_path_MV
9800 if test -n "$MV"; then
9801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9802 $as_echo "$MV" >&6; }
9803 else
9804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805 $as_echo "no" >&6; }
9806 fi
9807 
9808 
9809   test -n "$MV" && break
9810 done
9811 
9812     else
9813       # If it succeeded, then it was overridden by the user. We will use it
9814       # for the tool.
9815 
9816       # First remove it from the list of overridden variables, so we can test
9817       # for unknown variables in the end.
9818       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9819 
9820       # Check if we try to supply an empty value
9821       if test "x$MV" = x; then
9822         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9823 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9824         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9825 $as_echo_n "checking for MV... " >&6; }
9826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9827 $as_echo "disabled" >&6; }
9828       else
9829         # Check if the provided tool contains a complete path.
9830         tool_specified="$MV"
9831         tool_basename="${tool_specified##*/}"
9832         if test "x$tool_basename" = "x$tool_specified"; then
9833           # A command without a complete path is provided, search $PATH.
9834           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9835 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9836           # Extract the first word of "$tool_basename", so it can be a program name with args.
9837 set dummy $tool_basename; ac_word=$2
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9839 $as_echo_n "checking for $ac_word... " >&6; }
9840 if ${ac_cv_path_MV+:} false; then :
9841   $as_echo_n "(cached) " >&6
9842 else
9843   case $MV in
9844   [\\/]* | ?:[\\/]*)
9845   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9846   ;;
9847   *)
9848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849 for as_dir in $PATH
9850 do
9851   IFS=$as_save_IFS
9852   test -z "$as_dir" && as_dir=.
9853     for ac_exec_ext in '' $ac_executable_extensions; do
9854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9855     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9857     break 2
9858   fi
9859 done
9860   done
9861 IFS=$as_save_IFS
9862 
9863   ;;
9864 esac
9865 fi
9866 MV=$ac_cv_path_MV
9867 if test -n "$MV"; then
9868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9869 $as_echo "$MV" >&6; }
9870 else
9871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872 $as_echo "no" >&6; }
9873 fi
9874 
9875 
9876           if test "x$MV" = x; then
9877             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9878           fi
9879         else
9880           # Otherwise we believe it is a complete path. Use it as it is.
9881           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9882 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9883           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9884 $as_echo_n "checking for MV... " >&6; }
9885           if test ! -x "$tool_specified"; then
9886             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9887 $as_echo "not found" >&6; }
9888             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9889           fi
9890           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9891 $as_echo "$tool_specified" >&6; }
9892         fi
9893       fi
9894     fi
9895 
9896   fi
9897 
9898 
9899 
9900   if test "x$MV" = x; then
9901     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9902   fi
9903 
9904 
9905 
9906 
9907 
9908   # Publish this variable in the help.
9909 
9910 
9911   if [ -z "${NAWK+x}" ]; then
9912     # The variable is not set by user, try to locate tool using the code snippet
9913     for ac_prog in nawk gawk awk
9914 do
9915   # Extract the first word of "$ac_prog", so it can be a program name with args.
9916 set dummy $ac_prog; ac_word=$2
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 $as_echo_n "checking for $ac_word... " >&6; }
9919 if ${ac_cv_path_NAWK+:} false; then :
9920   $as_echo_n "(cached) " >&6
9921 else
9922   case $NAWK in
9923   [\\/]* | ?:[\\/]*)
9924   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9925   ;;
9926   *)
9927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928 for as_dir in $PATH
9929 do
9930   IFS=$as_save_IFS
9931   test -z "$as_dir" && as_dir=.
9932     for ac_exec_ext in '' $ac_executable_extensions; do
9933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9934     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9936     break 2
9937   fi
9938 done
9939   done
9940 IFS=$as_save_IFS
9941 
9942   ;;
9943 esac
9944 fi
9945 NAWK=$ac_cv_path_NAWK
9946 if test -n "$NAWK"; then
9947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9948 $as_echo "$NAWK" >&6; }
9949 else
9950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9952 fi
9953 
9954 
9955   test -n "$NAWK" && break
9956 done
9957 
9958   else
9959     # The variable is set, but is it from the command line or the environment?
9960 
9961     # Try to remove the string !NAWK! from our list.
9962     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9963     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9964       # If it failed, the variable was not from the command line. Ignore it,
9965       # but warn the user (except for BASH, which is always set by the calling BASH).
9966       if test "xNAWK" != xBASH; then
9967         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9968 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9969       fi
9970       # Try to locate tool using the code snippet
9971       for ac_prog in nawk gawk awk
9972 do
9973   # Extract the first word of "$ac_prog", so it can be a program name with args.
9974 set dummy $ac_prog; ac_word=$2
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9976 $as_echo_n "checking for $ac_word... " >&6; }
9977 if ${ac_cv_path_NAWK+:} false; then :
9978   $as_echo_n "(cached) " >&6
9979 else
9980   case $NAWK in
9981   [\\/]* | ?:[\\/]*)
9982   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9983   ;;
9984   *)
9985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986 for as_dir in $PATH
9987 do
9988   IFS=$as_save_IFS
9989   test -z "$as_dir" && as_dir=.
9990     for ac_exec_ext in '' $ac_executable_extensions; do
9991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9992     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994     break 2
9995   fi
9996 done
9997   done
9998 IFS=$as_save_IFS
9999 
10000   ;;
10001 esac
10002 fi
10003 NAWK=$ac_cv_path_NAWK
10004 if test -n "$NAWK"; then
10005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10006 $as_echo "$NAWK" >&6; }
10007 else
10008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 $as_echo "no" >&6; }
10010 fi
10011 
10012 
10013   test -n "$NAWK" && break
10014 done
10015 
10016     else
10017       # If it succeeded, then it was overridden by the user. We will use it
10018       # for the tool.
10019 
10020       # First remove it from the list of overridden variables, so we can test
10021       # for unknown variables in the end.
10022       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10023 
10024       # Check if we try to supply an empty value
10025       if test "x$NAWK" = x; then
10026         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
10027 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
10028         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10029 $as_echo_n "checking for NAWK... " >&6; }
10030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10031 $as_echo "disabled" >&6; }
10032       else
10033         # Check if the provided tool contains a complete path.
10034         tool_specified="$NAWK"
10035         tool_basename="${tool_specified##*/}"
10036         if test "x$tool_basename" = "x$tool_specified"; then
10037           # A command without a complete path is provided, search $PATH.
10038           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
10039 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
10040           # Extract the first word of "$tool_basename", so it can be a program name with args.
10041 set dummy $tool_basename; ac_word=$2
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043 $as_echo_n "checking for $ac_word... " >&6; }
10044 if ${ac_cv_path_NAWK+:} false; then :
10045   $as_echo_n "(cached) " >&6
10046 else
10047   case $NAWK in
10048   [\\/]* | ?:[\\/]*)
10049   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10050   ;;
10051   *)
10052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10054 do
10055   IFS=$as_save_IFS
10056   test -z "$as_dir" && as_dir=.
10057     for ac_exec_ext in '' $ac_executable_extensions; do
10058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10059     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061     break 2
10062   fi
10063 done
10064   done
10065 IFS=$as_save_IFS
10066 
10067   ;;
10068 esac
10069 fi
10070 NAWK=$ac_cv_path_NAWK
10071 if test -n "$NAWK"; then
10072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10073 $as_echo "$NAWK" >&6; }
10074 else
10075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10077 fi
10078 
10079 
10080           if test "x$NAWK" = x; then
10081             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10082           fi
10083         else
10084           # Otherwise we believe it is a complete path. Use it as it is.
10085           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10086 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10087           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10088 $as_echo_n "checking for NAWK... " >&6; }
10089           if test ! -x "$tool_specified"; then
10090             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10091 $as_echo "not found" >&6; }
10092             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10093           fi
10094           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10095 $as_echo "$tool_specified" >&6; }
10096         fi
10097       fi
10098     fi
10099 
10100   fi
10101 
10102 
10103 
10104   if test "x$NAWK" = x; then
10105     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10106   fi
10107 
10108 
10109 
10110 
10111 
10112   # Publish this variable in the help.
10113 
10114 
10115   if [ -z "${PRINTF+x}" ]; then
10116     # The variable is not set by user, try to locate tool using the code snippet
10117     for ac_prog in printf
10118 do
10119   # Extract the first word of "$ac_prog", so it can be a program name with args.
10120 set dummy $ac_prog; ac_word=$2
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122 $as_echo_n "checking for $ac_word... " >&6; }
10123 if ${ac_cv_path_PRINTF+:} false; then :
10124   $as_echo_n "(cached) " >&6
10125 else
10126   case $PRINTF in
10127   [\\/]* | ?:[\\/]*)
10128   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10129   ;;
10130   *)
10131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10132 for as_dir in $PATH
10133 do
10134   IFS=$as_save_IFS
10135   test -z "$as_dir" && as_dir=.
10136     for ac_exec_ext in '' $ac_executable_extensions; do
10137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10138     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10140     break 2
10141   fi
10142 done
10143   done
10144 IFS=$as_save_IFS
10145 
10146   ;;
10147 esac
10148 fi
10149 PRINTF=$ac_cv_path_PRINTF
10150 if test -n "$PRINTF"; then
10151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10152 $as_echo "$PRINTF" >&6; }
10153 else
10154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155 $as_echo "no" >&6; }
10156 fi
10157 
10158 
10159   test -n "$PRINTF" && break
10160 done
10161 
10162   else
10163     # The variable is set, but is it from the command line or the environment?
10164 
10165     # Try to remove the string !PRINTF! from our list.
10166     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10167     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10168       # If it failed, the variable was not from the command line. Ignore it,
10169       # but warn the user (except for BASH, which is always set by the calling BASH).
10170       if test "xPRINTF" != xBASH; then
10171         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10172 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10173       fi
10174       # Try to locate tool using the code snippet
10175       for ac_prog in printf
10176 do
10177   # Extract the first word of "$ac_prog", so it can be a program name with args.
10178 set dummy $ac_prog; ac_word=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180 $as_echo_n "checking for $ac_word... " >&6; }
10181 if ${ac_cv_path_PRINTF+:} false; then :
10182   $as_echo_n "(cached) " >&6
10183 else
10184   case $PRINTF in
10185   [\\/]* | ?:[\\/]*)
10186   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10187   ;;
10188   *)
10189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190 for as_dir in $PATH
10191 do
10192   IFS=$as_save_IFS
10193   test -z "$as_dir" && as_dir=.
10194     for ac_exec_ext in '' $ac_executable_extensions; do
10195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10196     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10198     break 2
10199   fi
10200 done
10201   done
10202 IFS=$as_save_IFS
10203 
10204   ;;
10205 esac
10206 fi
10207 PRINTF=$ac_cv_path_PRINTF
10208 if test -n "$PRINTF"; then
10209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10210 $as_echo "$PRINTF" >&6; }
10211 else
10212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10214 fi
10215 
10216 
10217   test -n "$PRINTF" && break
10218 done
10219 
10220     else
10221       # If it succeeded, then it was overridden by the user. We will use it
10222       # for the tool.
10223 
10224       # First remove it from the list of overridden variables, so we can test
10225       # for unknown variables in the end.
10226       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10227 
10228       # Check if we try to supply an empty value
10229       if test "x$PRINTF" = x; then
10230         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10231 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10232         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10233 $as_echo_n "checking for PRINTF... " >&6; }
10234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10235 $as_echo "disabled" >&6; }
10236       else
10237         # Check if the provided tool contains a complete path.
10238         tool_specified="$PRINTF"
10239         tool_basename="${tool_specified##*/}"
10240         if test "x$tool_basename" = "x$tool_specified"; then
10241           # A command without a complete path is provided, search $PATH.
10242           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10243 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10244           # Extract the first word of "$tool_basename", so it can be a program name with args.
10245 set dummy $tool_basename; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if ${ac_cv_path_PRINTF+:} false; then :
10249   $as_echo_n "(cached) " >&6
10250 else
10251   case $PRINTF in
10252   [\\/]* | ?:[\\/]*)
10253   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10254   ;;
10255   *)
10256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in $PATH
10258 do
10259   IFS=$as_save_IFS
10260   test -z "$as_dir" && as_dir=.
10261     for ac_exec_ext in '' $ac_executable_extensions; do
10262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10263     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265     break 2
10266   fi
10267 done
10268   done
10269 IFS=$as_save_IFS
10270 
10271   ;;
10272 esac
10273 fi
10274 PRINTF=$ac_cv_path_PRINTF
10275 if test -n "$PRINTF"; then
10276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10277 $as_echo "$PRINTF" >&6; }
10278 else
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10281 fi
10282 
10283 
10284           if test "x$PRINTF" = x; then
10285             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10286           fi
10287         else
10288           # Otherwise we believe it is a complete path. Use it as it is.
10289           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10290 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10291           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10292 $as_echo_n "checking for PRINTF... " >&6; }
10293           if test ! -x "$tool_specified"; then
10294             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10295 $as_echo "not found" >&6; }
10296             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10297           fi
10298           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10299 $as_echo "$tool_specified" >&6; }
10300         fi
10301       fi
10302     fi
10303 
10304   fi
10305 
10306 
10307 
10308   if test "x$PRINTF" = x; then
10309     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10310   fi
10311 
10312 
10313 
10314 
10315 
10316   # Publish this variable in the help.
10317 
10318 
10319   if [ -z "${RM+x}" ]; then
10320     # The variable is not set by user, try to locate tool using the code snippet
10321     for ac_prog in rm
10322 do
10323   # Extract the first word of "$ac_prog", so it can be a program name with args.
10324 set dummy $ac_prog; ac_word=$2
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326 $as_echo_n "checking for $ac_word... " >&6; }
10327 if ${ac_cv_path_RM+:} false; then :
10328   $as_echo_n "(cached) " >&6
10329 else
10330   case $RM in
10331   [\\/]* | ?:[\\/]*)
10332   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10333   ;;
10334   *)
10335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338   IFS=$as_save_IFS
10339   test -z "$as_dir" && as_dir=.
10340     for ac_exec_ext in '' $ac_executable_extensions; do
10341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10342     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344     break 2
10345   fi
10346 done
10347   done
10348 IFS=$as_save_IFS
10349 
10350   ;;
10351 esac
10352 fi
10353 RM=$ac_cv_path_RM
10354 if test -n "$RM"; then
10355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10356 $as_echo "$RM" >&6; }
10357 else
10358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10360 fi
10361 
10362 
10363   test -n "$RM" && break
10364 done
10365 
10366   else
10367     # The variable is set, but is it from the command line or the environment?
10368 
10369     # Try to remove the string !RM! from our list.
10370     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10371     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10372       # If it failed, the variable was not from the command line. Ignore it,
10373       # but warn the user (except for BASH, which is always set by the calling BASH).
10374       if test "xRM" != xBASH; then
10375         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10376 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10377       fi
10378       # Try to locate tool using the code snippet
10379       for ac_prog in rm
10380 do
10381   # Extract the first word of "$ac_prog", so it can be a program name with args.
10382 set dummy $ac_prog; ac_word=$2
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10384 $as_echo_n "checking for $ac_word... " >&6; }
10385 if ${ac_cv_path_RM+:} false; then :
10386   $as_echo_n "(cached) " >&6
10387 else
10388   case $RM in
10389   [\\/]* | ?:[\\/]*)
10390   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10391   ;;
10392   *)
10393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394 for as_dir in $PATH
10395 do
10396   IFS=$as_save_IFS
10397   test -z "$as_dir" && as_dir=.
10398     for ac_exec_ext in '' $ac_executable_extensions; do
10399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10400     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10402     break 2
10403   fi
10404 done
10405   done
10406 IFS=$as_save_IFS
10407 
10408   ;;
10409 esac
10410 fi
10411 RM=$ac_cv_path_RM
10412 if test -n "$RM"; then
10413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10414 $as_echo "$RM" >&6; }
10415 else
10416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417 $as_echo "no" >&6; }
10418 fi
10419 
10420 
10421   test -n "$RM" && break
10422 done
10423 
10424     else
10425       # If it succeeded, then it was overridden by the user. We will use it
10426       # for the tool.
10427 
10428       # First remove it from the list of overridden variables, so we can test
10429       # for unknown variables in the end.
10430       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10431 
10432       # Check if we try to supply an empty value
10433       if test "x$RM" = x; then
10434         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10435 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10436         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10437 $as_echo_n "checking for RM... " >&6; }
10438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10439 $as_echo "disabled" >&6; }
10440       else
10441         # Check if the provided tool contains a complete path.
10442         tool_specified="$RM"
10443         tool_basename="${tool_specified##*/}"
10444         if test "x$tool_basename" = "x$tool_specified"; then
10445           # A command without a complete path is provided, search $PATH.
10446           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10447 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10448           # Extract the first word of "$tool_basename", so it can be a program name with args.
10449 set dummy $tool_basename; ac_word=$2
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451 $as_echo_n "checking for $ac_word... " >&6; }
10452 if ${ac_cv_path_RM+:} false; then :
10453   $as_echo_n "(cached) " >&6
10454 else
10455   case $RM in
10456   [\\/]* | ?:[\\/]*)
10457   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10458   ;;
10459   *)
10460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461 for as_dir in $PATH
10462 do
10463   IFS=$as_save_IFS
10464   test -z "$as_dir" && as_dir=.
10465     for ac_exec_ext in '' $ac_executable_extensions; do
10466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10467     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10469     break 2
10470   fi
10471 done
10472   done
10473 IFS=$as_save_IFS
10474 
10475   ;;
10476 esac
10477 fi
10478 RM=$ac_cv_path_RM
10479 if test -n "$RM"; then
10480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10481 $as_echo "$RM" >&6; }
10482 else
10483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; }
10485 fi
10486 
10487 
10488           if test "x$RM" = x; then
10489             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10490           fi
10491         else
10492           # Otherwise we believe it is a complete path. Use it as it is.
10493           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10494 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10495           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10496 $as_echo_n "checking for RM... " >&6; }
10497           if test ! -x "$tool_specified"; then
10498             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10499 $as_echo "not found" >&6; }
10500             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10501           fi
10502           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10503 $as_echo "$tool_specified" >&6; }
10504         fi
10505       fi
10506     fi
10507 
10508   fi
10509 
10510 
10511 
10512   if test "x$RM" = x; then
10513     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10514   fi
10515 
10516 
10517 
10518 
10519 
10520   # Publish this variable in the help.
10521 
10522 
10523   if [ -z "${RMDIR+x}" ]; then
10524     # The variable is not set by user, try to locate tool using the code snippet
10525     for ac_prog in rmdir
10526 do
10527   # Extract the first word of "$ac_prog", so it can be a program name with args.
10528 set dummy $ac_prog; ac_word=$2
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530 $as_echo_n "checking for $ac_word... " >&6; }
10531 if ${ac_cv_path_RMDIR+:} false; then :
10532   $as_echo_n "(cached) " >&6
10533 else
10534   case $RMDIR in
10535   [\\/]* | ?:[\\/]*)
10536   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10537   ;;
10538   *)
10539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10541 do
10542   IFS=$as_save_IFS
10543   test -z "$as_dir" && as_dir=.
10544     for ac_exec_ext in '' $ac_executable_extensions; do
10545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548     break 2
10549   fi
10550 done
10551   done
10552 IFS=$as_save_IFS
10553 
10554   ;;
10555 esac
10556 fi
10557 RMDIR=$ac_cv_path_RMDIR
10558 if test -n "$RMDIR"; then
10559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10560 $as_echo "$RMDIR" >&6; }
10561 else
10562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10564 fi
10565 
10566 
10567   test -n "$RMDIR" && break
10568 done
10569 
10570   else
10571     # The variable is set, but is it from the command line or the environment?
10572 
10573     # Try to remove the string !RMDIR! from our list.
10574     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10575     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10576       # If it failed, the variable was not from the command line. Ignore it,
10577       # but warn the user (except for BASH, which is always set by the calling BASH).
10578       if test "xRMDIR" != xBASH; then
10579         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10580 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10581       fi
10582       # Try to locate tool using the code snippet
10583       for ac_prog in rmdir
10584 do
10585   # Extract the first word of "$ac_prog", so it can be a program name with args.
10586 set dummy $ac_prog; ac_word=$2
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588 $as_echo_n "checking for $ac_word... " >&6; }
10589 if ${ac_cv_path_RMDIR+:} false; then :
10590   $as_echo_n "(cached) " >&6
10591 else
10592   case $RMDIR in
10593   [\\/]* | ?:[\\/]*)
10594   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10595   ;;
10596   *)
10597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10599 do
10600   IFS=$as_save_IFS
10601   test -z "$as_dir" && as_dir=.
10602     for ac_exec_ext in '' $ac_executable_extensions; do
10603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10604     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10606     break 2
10607   fi
10608 done
10609   done
10610 IFS=$as_save_IFS
10611 
10612   ;;
10613 esac
10614 fi
10615 RMDIR=$ac_cv_path_RMDIR
10616 if test -n "$RMDIR"; then
10617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10618 $as_echo "$RMDIR" >&6; }
10619 else
10620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621 $as_echo "no" >&6; }
10622 fi
10623 
10624 
10625   test -n "$RMDIR" && break
10626 done
10627 
10628     else
10629       # If it succeeded, then it was overridden by the user. We will use it
10630       # for the tool.
10631 
10632       # First remove it from the list of overridden variables, so we can test
10633       # for unknown variables in the end.
10634       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10635 
10636       # Check if we try to supply an empty value
10637       if test "x$RMDIR" = x; then
10638         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10639 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10641 $as_echo_n "checking for RMDIR... " >&6; }
10642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10643 $as_echo "disabled" >&6; }
10644       else
10645         # Check if the provided tool contains a complete path.
10646         tool_specified="$RMDIR"
10647         tool_basename="${tool_specified##*/}"
10648         if test "x$tool_basename" = "x$tool_specified"; then
10649           # A command without a complete path is provided, search $PATH.
10650           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10651 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10652           # Extract the first word of "$tool_basename", so it can be a program name with args.
10653 set dummy $tool_basename; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if ${ac_cv_path_RMDIR+:} false; then :
10657   $as_echo_n "(cached) " >&6
10658 else
10659   case $RMDIR in
10660   [\\/]* | ?:[\\/]*)
10661   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10662   ;;
10663   *)
10664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665 for as_dir in $PATH
10666 do
10667   IFS=$as_save_IFS
10668   test -z "$as_dir" && as_dir=.
10669     for ac_exec_ext in '' $ac_executable_extensions; do
10670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10671     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10673     break 2
10674   fi
10675 done
10676   done
10677 IFS=$as_save_IFS
10678 
10679   ;;
10680 esac
10681 fi
10682 RMDIR=$ac_cv_path_RMDIR
10683 if test -n "$RMDIR"; then
10684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10685 $as_echo "$RMDIR" >&6; }
10686 else
10687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; }
10689 fi
10690 
10691 
10692           if test "x$RMDIR" = x; then
10693             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10694           fi
10695         else
10696           # Otherwise we believe it is a complete path. Use it as it is.
10697           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10698 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10699           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10700 $as_echo_n "checking for RMDIR... " >&6; }
10701           if test ! -x "$tool_specified"; then
10702             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10703 $as_echo "not found" >&6; }
10704             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10705           fi
10706           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10707 $as_echo "$tool_specified" >&6; }
10708         fi
10709       fi
10710     fi
10711 
10712   fi
10713 
10714 
10715 
10716   if test "x$RMDIR" = x; then
10717     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10718   fi
10719 
10720 
10721 
10722 
10723 
10724   # Publish this variable in the help.
10725 
10726 
10727   if [ -z "${SH+x}" ]; then
10728     # The variable is not set by user, try to locate tool using the code snippet
10729     for ac_prog in sh
10730 do
10731   # Extract the first word of "$ac_prog", so it can be a program name with args.
10732 set dummy $ac_prog; ac_word=$2
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10734 $as_echo_n "checking for $ac_word... " >&6; }
10735 if ${ac_cv_path_SH+:} false; then :
10736   $as_echo_n "(cached) " >&6
10737 else
10738   case $SH in
10739   [\\/]* | ?:[\\/]*)
10740   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10741   ;;
10742   *)
10743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744 for as_dir in $PATH
10745 do
10746   IFS=$as_save_IFS
10747   test -z "$as_dir" && as_dir=.
10748     for ac_exec_ext in '' $ac_executable_extensions; do
10749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10750     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10752     break 2
10753   fi
10754 done
10755   done
10756 IFS=$as_save_IFS
10757 
10758   ;;
10759 esac
10760 fi
10761 SH=$ac_cv_path_SH
10762 if test -n "$SH"; then
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10764 $as_echo "$SH" >&6; }
10765 else
10766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767 $as_echo "no" >&6; }
10768 fi
10769 
10770 
10771   test -n "$SH" && break
10772 done
10773 
10774   else
10775     # The variable is set, but is it from the command line or the environment?
10776 
10777     # Try to remove the string !SH! from our list.
10778     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10779     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10780       # If it failed, the variable was not from the command line. Ignore it,
10781       # but warn the user (except for BASH, which is always set by the calling BASH).
10782       if test "xSH" != xBASH; then
10783         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10784 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10785       fi
10786       # Try to locate tool using the code snippet
10787       for ac_prog in sh
10788 do
10789   # Extract the first word of "$ac_prog", so it can be a program name with args.
10790 set dummy $ac_prog; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if ${ac_cv_path_SH+:} false; then :
10794   $as_echo_n "(cached) " >&6
10795 else
10796   case $SH in
10797   [\\/]* | ?:[\\/]*)
10798   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10799   ;;
10800   *)
10801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802 for as_dir in $PATH
10803 do
10804   IFS=$as_save_IFS
10805   test -z "$as_dir" && as_dir=.
10806     for ac_exec_ext in '' $ac_executable_extensions; do
10807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10808     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10810     break 2
10811   fi
10812 done
10813   done
10814 IFS=$as_save_IFS
10815 
10816   ;;
10817 esac
10818 fi
10819 SH=$ac_cv_path_SH
10820 if test -n "$SH"; then
10821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10822 $as_echo "$SH" >&6; }
10823 else
10824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825 $as_echo "no" >&6; }
10826 fi
10827 
10828 
10829   test -n "$SH" && break
10830 done
10831 
10832     else
10833       # If it succeeded, then it was overridden by the user. We will use it
10834       # for the tool.
10835 
10836       # First remove it from the list of overridden variables, so we can test
10837       # for unknown variables in the end.
10838       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10839 
10840       # Check if we try to supply an empty value
10841       if test "x$SH" = x; then
10842         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10843 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10844         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10845 $as_echo_n "checking for SH... " >&6; }
10846         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10847 $as_echo "disabled" >&6; }
10848       else
10849         # Check if the provided tool contains a complete path.
10850         tool_specified="$SH"
10851         tool_basename="${tool_specified##*/}"
10852         if test "x$tool_basename" = "x$tool_specified"; then
10853           # A command without a complete path is provided, search $PATH.
10854           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10855 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10856           # Extract the first word of "$tool_basename", so it can be a program name with args.
10857 set dummy $tool_basename; ac_word=$2
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859 $as_echo_n "checking for $ac_word... " >&6; }
10860 if ${ac_cv_path_SH+:} false; then :
10861   $as_echo_n "(cached) " >&6
10862 else
10863   case $SH in
10864   [\\/]* | ?:[\\/]*)
10865   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10866   ;;
10867   *)
10868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $PATH
10870 do
10871   IFS=$as_save_IFS
10872   test -z "$as_dir" && as_dir=.
10873     for ac_exec_ext in '' $ac_executable_extensions; do
10874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10875     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10877     break 2
10878   fi
10879 done
10880   done
10881 IFS=$as_save_IFS
10882 
10883   ;;
10884 esac
10885 fi
10886 SH=$ac_cv_path_SH
10887 if test -n "$SH"; then
10888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10889 $as_echo "$SH" >&6; }
10890 else
10891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892 $as_echo "no" >&6; }
10893 fi
10894 
10895 
10896           if test "x$SH" = x; then
10897             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10898           fi
10899         else
10900           # Otherwise we believe it is a complete path. Use it as it is.
10901           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10902 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10903           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10904 $as_echo_n "checking for SH... " >&6; }
10905           if test ! -x "$tool_specified"; then
10906             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10907 $as_echo "not found" >&6; }
10908             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10909           fi
10910           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10911 $as_echo "$tool_specified" >&6; }
10912         fi
10913       fi
10914     fi
10915 
10916   fi
10917 
10918 
10919 
10920   if test "x$SH" = x; then
10921     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10922   fi
10923 
10924 
10925 
10926 
10927 
10928   # Publish this variable in the help.
10929 
10930 
10931   if [ -z "${SORT+x}" ]; then
10932     # The variable is not set by user, try to locate tool using the code snippet
10933     for ac_prog in sort
10934 do
10935   # Extract the first word of "$ac_prog", so it can be a program name with args.
10936 set dummy $ac_prog; ac_word=$2
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938 $as_echo_n "checking for $ac_word... " >&6; }
10939 if ${ac_cv_path_SORT+:} false; then :
10940   $as_echo_n "(cached) " >&6
10941 else
10942   case $SORT in
10943   [\\/]* | ?:[\\/]*)
10944   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10945   ;;
10946   *)
10947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948 for as_dir in $PATH
10949 do
10950   IFS=$as_save_IFS
10951   test -z "$as_dir" && as_dir=.
10952     for ac_exec_ext in '' $ac_executable_extensions; do
10953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10954     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10956     break 2
10957   fi
10958 done
10959   done
10960 IFS=$as_save_IFS
10961 
10962   ;;
10963 esac
10964 fi
10965 SORT=$ac_cv_path_SORT
10966 if test -n "$SORT"; then
10967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10968 $as_echo "$SORT" >&6; }
10969 else
10970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10972 fi
10973 
10974 
10975   test -n "$SORT" && break
10976 done
10977 
10978   else
10979     # The variable is set, but is it from the command line or the environment?
10980 
10981     # Try to remove the string !SORT! from our list.
10982     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10983     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10984       # If it failed, the variable was not from the command line. Ignore it,
10985       # but warn the user (except for BASH, which is always set by the calling BASH).
10986       if test "xSORT" != xBASH; then
10987         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10988 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10989       fi
10990       # Try to locate tool using the code snippet
10991       for ac_prog in sort
10992 do
10993   # Extract the first word of "$ac_prog", so it can be a program name with args.
10994 set dummy $ac_prog; ac_word=$2
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996 $as_echo_n "checking for $ac_word... " >&6; }
10997 if ${ac_cv_path_SORT+:} false; then :
10998   $as_echo_n "(cached) " >&6
10999 else
11000   case $SORT in
11001   [\\/]* | ?:[\\/]*)
11002   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11003   ;;
11004   *)
11005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11006 for as_dir in $PATH
11007 do
11008   IFS=$as_save_IFS
11009   test -z "$as_dir" && as_dir=.
11010     for ac_exec_ext in '' $ac_executable_extensions; do
11011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11012     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11014     break 2
11015   fi
11016 done
11017   done
11018 IFS=$as_save_IFS
11019 
11020   ;;
11021 esac
11022 fi
11023 SORT=$ac_cv_path_SORT
11024 if test -n "$SORT"; then
11025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11026 $as_echo "$SORT" >&6; }
11027 else
11028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; }
11030 fi
11031 
11032 
11033   test -n "$SORT" && break
11034 done
11035 
11036     else
11037       # If it succeeded, then it was overridden by the user. We will use it
11038       # for the tool.
11039 
11040       # First remove it from the list of overridden variables, so we can test
11041       # for unknown variables in the end.
11042       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11043 
11044       # Check if we try to supply an empty value
11045       if test "x$SORT" = x; then
11046         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
11047 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
11048         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11049 $as_echo_n "checking for SORT... " >&6; }
11050         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11051 $as_echo "disabled" >&6; }
11052       else
11053         # Check if the provided tool contains a complete path.
11054         tool_specified="$SORT"
11055         tool_basename="${tool_specified##*/}"
11056         if test "x$tool_basename" = "x$tool_specified"; then
11057           # A command without a complete path is provided, search $PATH.
11058           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11059 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11060           # Extract the first word of "$tool_basename", so it can be a program name with args.
11061 set dummy $tool_basename; ac_word=$2
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063 $as_echo_n "checking for $ac_word... " >&6; }
11064 if ${ac_cv_path_SORT+:} false; then :
11065   $as_echo_n "(cached) " >&6
11066 else
11067   case $SORT in
11068   [\\/]* | ?:[\\/]*)
11069   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11070   ;;
11071   *)
11072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073 for as_dir in $PATH
11074 do
11075   IFS=$as_save_IFS
11076   test -z "$as_dir" && as_dir=.
11077     for ac_exec_ext in '' $ac_executable_extensions; do
11078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11079     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11081     break 2
11082   fi
11083 done
11084   done
11085 IFS=$as_save_IFS
11086 
11087   ;;
11088 esac
11089 fi
11090 SORT=$ac_cv_path_SORT
11091 if test -n "$SORT"; then
11092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11093 $as_echo "$SORT" >&6; }
11094 else
11095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096 $as_echo "no" >&6; }
11097 fi
11098 
11099 
11100           if test "x$SORT" = x; then
11101             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11102           fi
11103         else
11104           # Otherwise we believe it is a complete path. Use it as it is.
11105           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11106 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11107           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11108 $as_echo_n "checking for SORT... " >&6; }
11109           if test ! -x "$tool_specified"; then
11110             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11111 $as_echo "not found" >&6; }
11112             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11113           fi
11114           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11115 $as_echo "$tool_specified" >&6; }
11116         fi
11117       fi
11118     fi
11119 
11120   fi
11121 
11122 
11123 
11124   if test "x$SORT" = x; then
11125     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11126   fi
11127 
11128 
11129 
11130 
11131 
11132   # Publish this variable in the help.
11133 
11134 
11135   if [ -z "${TAIL+x}" ]; then
11136     # The variable is not set by user, try to locate tool using the code snippet
11137     for ac_prog in tail
11138 do
11139   # Extract the first word of "$ac_prog", so it can be a program name with args.
11140 set dummy $ac_prog; ac_word=$2
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11142 $as_echo_n "checking for $ac_word... " >&6; }
11143 if ${ac_cv_path_TAIL+:} false; then :
11144   $as_echo_n "(cached) " >&6
11145 else
11146   case $TAIL in
11147   [\\/]* | ?:[\\/]*)
11148   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11149   ;;
11150   *)
11151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in $PATH
11153 do
11154   IFS=$as_save_IFS
11155   test -z "$as_dir" && as_dir=.
11156     for ac_exec_ext in '' $ac_executable_extensions; do
11157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11158     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11160     break 2
11161   fi
11162 done
11163   done
11164 IFS=$as_save_IFS
11165 
11166   ;;
11167 esac
11168 fi
11169 TAIL=$ac_cv_path_TAIL
11170 if test -n "$TAIL"; then
11171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11172 $as_echo "$TAIL" >&6; }
11173 else
11174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175 $as_echo "no" >&6; }
11176 fi
11177 
11178 
11179   test -n "$TAIL" && break
11180 done
11181 
11182   else
11183     # The variable is set, but is it from the command line or the environment?
11184 
11185     # Try to remove the string !TAIL! from our list.
11186     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11187     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11188       # If it failed, the variable was not from the command line. Ignore it,
11189       # but warn the user (except for BASH, which is always set by the calling BASH).
11190       if test "xTAIL" != xBASH; then
11191         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11192 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11193       fi
11194       # Try to locate tool using the code snippet
11195       for ac_prog in tail
11196 do
11197   # Extract the first word of "$ac_prog", so it can be a program name with args.
11198 set dummy $ac_prog; ac_word=$2
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200 $as_echo_n "checking for $ac_word... " >&6; }
11201 if ${ac_cv_path_TAIL+:} false; then :
11202   $as_echo_n "(cached) " >&6
11203 else
11204   case $TAIL in
11205   [\\/]* | ?:[\\/]*)
11206   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11207   ;;
11208   *)
11209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210 for as_dir in $PATH
11211 do
11212   IFS=$as_save_IFS
11213   test -z "$as_dir" && as_dir=.
11214     for ac_exec_ext in '' $ac_executable_extensions; do
11215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11216     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11218     break 2
11219   fi
11220 done
11221   done
11222 IFS=$as_save_IFS
11223 
11224   ;;
11225 esac
11226 fi
11227 TAIL=$ac_cv_path_TAIL
11228 if test -n "$TAIL"; then
11229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11230 $as_echo "$TAIL" >&6; }
11231 else
11232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11233 $as_echo "no" >&6; }
11234 fi
11235 
11236 
11237   test -n "$TAIL" && break
11238 done
11239 
11240     else
11241       # If it succeeded, then it was overridden by the user. We will use it
11242       # for the tool.
11243 
11244       # First remove it from the list of overridden variables, so we can test
11245       # for unknown variables in the end.
11246       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11247 
11248       # Check if we try to supply an empty value
11249       if test "x$TAIL" = x; then
11250         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11251 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11253 $as_echo_n "checking for TAIL... " >&6; }
11254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11255 $as_echo "disabled" >&6; }
11256       else
11257         # Check if the provided tool contains a complete path.
11258         tool_specified="$TAIL"
11259         tool_basename="${tool_specified##*/}"
11260         if test "x$tool_basename" = "x$tool_specified"; then
11261           # A command without a complete path is provided, search $PATH.
11262           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11263 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11264           # Extract the first word of "$tool_basename", so it can be a program name with args.
11265 set dummy $tool_basename; ac_word=$2
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if ${ac_cv_path_TAIL+:} false; then :
11269   $as_echo_n "(cached) " >&6
11270 else
11271   case $TAIL in
11272   [\\/]* | ?:[\\/]*)
11273   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11274   ;;
11275   *)
11276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277 for as_dir in $PATH
11278 do
11279   IFS=$as_save_IFS
11280   test -z "$as_dir" && as_dir=.
11281     for ac_exec_ext in '' $ac_executable_extensions; do
11282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11283     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11285     break 2
11286   fi
11287 done
11288   done
11289 IFS=$as_save_IFS
11290 
11291   ;;
11292 esac
11293 fi
11294 TAIL=$ac_cv_path_TAIL
11295 if test -n "$TAIL"; then
11296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11297 $as_echo "$TAIL" >&6; }
11298 else
11299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300 $as_echo "no" >&6; }
11301 fi
11302 
11303 
11304           if test "x$TAIL" = x; then
11305             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11306           fi
11307         else
11308           # Otherwise we believe it is a complete path. Use it as it is.
11309           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11310 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11311           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11312 $as_echo_n "checking for TAIL... " >&6; }
11313           if test ! -x "$tool_specified"; then
11314             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11315 $as_echo "not found" >&6; }
11316             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11317           fi
11318           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11319 $as_echo "$tool_specified" >&6; }
11320         fi
11321       fi
11322     fi
11323 
11324   fi
11325 
11326 
11327 
11328   if test "x$TAIL" = x; then
11329     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11330   fi
11331 
11332 
11333 
11334 
11335 
11336   # Publish this variable in the help.
11337 
11338 
11339   if [ -z "${TAR+x}" ]; then
11340     # The variable is not set by user, try to locate tool using the code snippet
11341     for ac_prog in gtar tar
11342 do
11343   # Extract the first word of "$ac_prog", so it can be a program name with args.
11344 set dummy $ac_prog; ac_word=$2
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346 $as_echo_n "checking for $ac_word... " >&6; }
11347 if ${ac_cv_path_TAR+:} false; then :
11348   $as_echo_n "(cached) " >&6
11349 else
11350   case $TAR in
11351   [\\/]* | ?:[\\/]*)
11352   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11353   ;;
11354   *)
11355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356 for as_dir in $PATH
11357 do
11358   IFS=$as_save_IFS
11359   test -z "$as_dir" && as_dir=.
11360     for ac_exec_ext in '' $ac_executable_extensions; do
11361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11362     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11364     break 2
11365   fi
11366 done
11367   done
11368 IFS=$as_save_IFS
11369 
11370   ;;
11371 esac
11372 fi
11373 TAR=$ac_cv_path_TAR
11374 if test -n "$TAR"; then
11375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11376 $as_echo "$TAR" >&6; }
11377 else
11378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11380 fi
11381 
11382 
11383   test -n "$TAR" && break
11384 done
11385 
11386   else
11387     # The variable is set, but is it from the command line or the environment?
11388 
11389     # Try to remove the string !TAR! from our list.
11390     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11391     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11392       # If it failed, the variable was not from the command line. Ignore it,
11393       # but warn the user (except for BASH, which is always set by the calling BASH).
11394       if test "xTAR" != xBASH; then
11395         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11396 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11397       fi
11398       # Try to locate tool using the code snippet
11399       for ac_prog in gtar tar
11400 do
11401   # Extract the first word of "$ac_prog", so it can be a program name with args.
11402 set dummy $ac_prog; ac_word=$2
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11404 $as_echo_n "checking for $ac_word... " >&6; }
11405 if ${ac_cv_path_TAR+:} false; then :
11406   $as_echo_n "(cached) " >&6
11407 else
11408   case $TAR in
11409   [\\/]* | ?:[\\/]*)
11410   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11411   ;;
11412   *)
11413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11414 for as_dir in $PATH
11415 do
11416   IFS=$as_save_IFS
11417   test -z "$as_dir" && as_dir=.
11418     for ac_exec_ext in '' $ac_executable_extensions; do
11419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11420     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11422     break 2
11423   fi
11424 done
11425   done
11426 IFS=$as_save_IFS
11427 
11428   ;;
11429 esac
11430 fi
11431 TAR=$ac_cv_path_TAR
11432 if test -n "$TAR"; then
11433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11434 $as_echo "$TAR" >&6; }
11435 else
11436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437 $as_echo "no" >&6; }
11438 fi
11439 
11440 
11441   test -n "$TAR" && break
11442 done
11443 
11444     else
11445       # If it succeeded, then it was overridden by the user. We will use it
11446       # for the tool.
11447 
11448       # First remove it from the list of overridden variables, so we can test
11449       # for unknown variables in the end.
11450       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11451 
11452       # Check if we try to supply an empty value
11453       if test "x$TAR" = x; then
11454         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11455 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11457 $as_echo_n "checking for TAR... " >&6; }
11458         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11459 $as_echo "disabled" >&6; }
11460       else
11461         # Check if the provided tool contains a complete path.
11462         tool_specified="$TAR"
11463         tool_basename="${tool_specified##*/}"
11464         if test "x$tool_basename" = "x$tool_specified"; then
11465           # A command without a complete path is provided, search $PATH.
11466           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11467 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11468           # Extract the first word of "$tool_basename", so it can be a program name with args.
11469 set dummy $tool_basename; ac_word=$2
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471 $as_echo_n "checking for $ac_word... " >&6; }
11472 if ${ac_cv_path_TAR+:} false; then :
11473   $as_echo_n "(cached) " >&6
11474 else
11475   case $TAR in
11476   [\\/]* | ?:[\\/]*)
11477   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11478   ;;
11479   *)
11480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481 for as_dir in $PATH
11482 do
11483   IFS=$as_save_IFS
11484   test -z "$as_dir" && as_dir=.
11485     for ac_exec_ext in '' $ac_executable_extensions; do
11486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11487     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11489     break 2
11490   fi
11491 done
11492   done
11493 IFS=$as_save_IFS
11494 
11495   ;;
11496 esac
11497 fi
11498 TAR=$ac_cv_path_TAR
11499 if test -n "$TAR"; then
11500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11501 $as_echo "$TAR" >&6; }
11502 else
11503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11505 fi
11506 
11507 
11508           if test "x$TAR" = x; then
11509             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11510           fi
11511         else
11512           # Otherwise we believe it is a complete path. Use it as it is.
11513           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11514 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11515           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11516 $as_echo_n "checking for TAR... " >&6; }
11517           if test ! -x "$tool_specified"; then
11518             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11519 $as_echo "not found" >&6; }
11520             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11521           fi
11522           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11523 $as_echo "$tool_specified" >&6; }
11524         fi
11525       fi
11526     fi
11527 
11528   fi
11529 
11530 
11531 
11532   if test "x$TAR" = x; then
11533     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11534   fi
11535 
11536 
11537 
11538 
11539 
11540   # Publish this variable in the help.
11541 
11542 
11543   if [ -z "${TEE+x}" ]; then
11544     # The variable is not set by user, try to locate tool using the code snippet
11545     for ac_prog in tee
11546 do
11547   # Extract the first word of "$ac_prog", so it can be a program name with args.
11548 set dummy $ac_prog; ac_word=$2
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11550 $as_echo_n "checking for $ac_word... " >&6; }
11551 if ${ac_cv_path_TEE+:} false; then :
11552   $as_echo_n "(cached) " >&6
11553 else
11554   case $TEE in
11555   [\\/]* | ?:[\\/]*)
11556   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11557   ;;
11558   *)
11559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11560 for as_dir in $PATH
11561 do
11562   IFS=$as_save_IFS
11563   test -z "$as_dir" && as_dir=.
11564     for ac_exec_ext in '' $ac_executable_extensions; do
11565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11566     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11568     break 2
11569   fi
11570 done
11571   done
11572 IFS=$as_save_IFS
11573 
11574   ;;
11575 esac
11576 fi
11577 TEE=$ac_cv_path_TEE
11578 if test -n "$TEE"; then
11579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11580 $as_echo "$TEE" >&6; }
11581 else
11582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11584 fi
11585 
11586 
11587   test -n "$TEE" && break
11588 done
11589 
11590   else
11591     # The variable is set, but is it from the command line or the environment?
11592 
11593     # Try to remove the string !TEE! from our list.
11594     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11595     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11596       # If it failed, the variable was not from the command line. Ignore it,
11597       # but warn the user (except for BASH, which is always set by the calling BASH).
11598       if test "xTEE" != xBASH; then
11599         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11600 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11601       fi
11602       # Try to locate tool using the code snippet
11603       for ac_prog in tee
11604 do
11605   # Extract the first word of "$ac_prog", so it can be a program name with args.
11606 set dummy $ac_prog; ac_word=$2
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11608 $as_echo_n "checking for $ac_word... " >&6; }
11609 if ${ac_cv_path_TEE+:} false; then :
11610   $as_echo_n "(cached) " >&6
11611 else
11612   case $TEE in
11613   [\\/]* | ?:[\\/]*)
11614   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11615   ;;
11616   *)
11617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11619 do
11620   IFS=$as_save_IFS
11621   test -z "$as_dir" && as_dir=.
11622     for ac_exec_ext in '' $ac_executable_extensions; do
11623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11626     break 2
11627   fi
11628 done
11629   done
11630 IFS=$as_save_IFS
11631 
11632   ;;
11633 esac
11634 fi
11635 TEE=$ac_cv_path_TEE
11636 if test -n "$TEE"; then
11637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11638 $as_echo "$TEE" >&6; }
11639 else
11640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641 $as_echo "no" >&6; }
11642 fi
11643 
11644 
11645   test -n "$TEE" && break
11646 done
11647 
11648     else
11649       # If it succeeded, then it was overridden by the user. We will use it
11650       # for the tool.
11651 
11652       # First remove it from the list of overridden variables, so we can test
11653       # for unknown variables in the end.
11654       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11655 
11656       # Check if we try to supply an empty value
11657       if test "x$TEE" = x; then
11658         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11659 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11660         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11661 $as_echo_n "checking for TEE... " >&6; }
11662         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11663 $as_echo "disabled" >&6; }
11664       else
11665         # Check if the provided tool contains a complete path.
11666         tool_specified="$TEE"
11667         tool_basename="${tool_specified##*/}"
11668         if test "x$tool_basename" = "x$tool_specified"; then
11669           # A command without a complete path is provided, search $PATH.
11670           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11671 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11672           # Extract the first word of "$tool_basename", so it can be a program name with args.
11673 set dummy $tool_basename; ac_word=$2
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11675 $as_echo_n "checking for $ac_word... " >&6; }
11676 if ${ac_cv_path_TEE+:} false; then :
11677   $as_echo_n "(cached) " >&6
11678 else
11679   case $TEE in
11680   [\\/]* | ?:[\\/]*)
11681   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11682   ;;
11683   *)
11684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685 for as_dir in $PATH
11686 do
11687   IFS=$as_save_IFS
11688   test -z "$as_dir" && as_dir=.
11689     for ac_exec_ext in '' $ac_executable_extensions; do
11690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11691     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693     break 2
11694   fi
11695 done
11696   done
11697 IFS=$as_save_IFS
11698 
11699   ;;
11700 esac
11701 fi
11702 TEE=$ac_cv_path_TEE
11703 if test -n "$TEE"; then
11704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11705 $as_echo "$TEE" >&6; }
11706 else
11707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11709 fi
11710 
11711 
11712           if test "x$TEE" = x; then
11713             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11714           fi
11715         else
11716           # Otherwise we believe it is a complete path. Use it as it is.
11717           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11718 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11719           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11720 $as_echo_n "checking for TEE... " >&6; }
11721           if test ! -x "$tool_specified"; then
11722             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11723 $as_echo "not found" >&6; }
11724             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11725           fi
11726           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11727 $as_echo "$tool_specified" >&6; }
11728         fi
11729       fi
11730     fi
11731 
11732   fi
11733 
11734 
11735 
11736   if test "x$TEE" = x; then
11737     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11738   fi
11739 
11740 
11741 
11742 
11743 
11744   # Publish this variable in the help.
11745 
11746 
11747   if [ -z "${TOUCH+x}" ]; then
11748     # The variable is not set by user, try to locate tool using the code snippet
11749     for ac_prog in touch
11750 do
11751   # Extract the first word of "$ac_prog", so it can be a program name with args.
11752 set dummy $ac_prog; ac_word=$2
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754 $as_echo_n "checking for $ac_word... " >&6; }
11755 if ${ac_cv_path_TOUCH+:} false; then :
11756   $as_echo_n "(cached) " >&6
11757 else
11758   case $TOUCH in
11759   [\\/]* | ?:[\\/]*)
11760   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11761   ;;
11762   *)
11763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11765 do
11766   IFS=$as_save_IFS
11767   test -z "$as_dir" && as_dir=.
11768     for ac_exec_ext in '' $ac_executable_extensions; do
11769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11770     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11772     break 2
11773   fi
11774 done
11775   done
11776 IFS=$as_save_IFS
11777 
11778   ;;
11779 esac
11780 fi
11781 TOUCH=$ac_cv_path_TOUCH
11782 if test -n "$TOUCH"; then
11783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11784 $as_echo "$TOUCH" >&6; }
11785 else
11786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11787 $as_echo "no" >&6; }
11788 fi
11789 
11790 
11791   test -n "$TOUCH" && break
11792 done
11793 
11794   else
11795     # The variable is set, but is it from the command line or the environment?
11796 
11797     # Try to remove the string !TOUCH! from our list.
11798     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11799     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11800       # If it failed, the variable was not from the command line. Ignore it,
11801       # but warn the user (except for BASH, which is always set by the calling BASH).
11802       if test "xTOUCH" != xBASH; then
11803         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11804 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11805       fi
11806       # Try to locate tool using the code snippet
11807       for ac_prog in touch
11808 do
11809   # Extract the first word of "$ac_prog", so it can be a program name with args.
11810 set dummy $ac_prog; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if ${ac_cv_path_TOUCH+:} false; then :
11814   $as_echo_n "(cached) " >&6
11815 else
11816   case $TOUCH in
11817   [\\/]* | ?:[\\/]*)
11818   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11819   ;;
11820   *)
11821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11823 do
11824   IFS=$as_save_IFS
11825   test -z "$as_dir" && as_dir=.
11826     for ac_exec_ext in '' $ac_executable_extensions; do
11827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11828     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830     break 2
11831   fi
11832 done
11833   done
11834 IFS=$as_save_IFS
11835 
11836   ;;
11837 esac
11838 fi
11839 TOUCH=$ac_cv_path_TOUCH
11840 if test -n "$TOUCH"; then
11841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11842 $as_echo "$TOUCH" >&6; }
11843 else
11844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11846 fi
11847 
11848 
11849   test -n "$TOUCH" && break
11850 done
11851 
11852     else
11853       # If it succeeded, then it was overridden by the user. We will use it
11854       # for the tool.
11855 
11856       # First remove it from the list of overridden variables, so we can test
11857       # for unknown variables in the end.
11858       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11859 
11860       # Check if we try to supply an empty value
11861       if test "x$TOUCH" = x; then
11862         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11863 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11864         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11865 $as_echo_n "checking for TOUCH... " >&6; }
11866         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11867 $as_echo "disabled" >&6; }
11868       else
11869         # Check if the provided tool contains a complete path.
11870         tool_specified="$TOUCH"
11871         tool_basename="${tool_specified##*/}"
11872         if test "x$tool_basename" = "x$tool_specified"; then
11873           # A command without a complete path is provided, search $PATH.
11874           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11875 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11876           # Extract the first word of "$tool_basename", so it can be a program name with args.
11877 set dummy $tool_basename; ac_word=$2
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11879 $as_echo_n "checking for $ac_word... " >&6; }
11880 if ${ac_cv_path_TOUCH+:} false; then :
11881   $as_echo_n "(cached) " >&6
11882 else
11883   case $TOUCH in
11884   [\\/]* | ?:[\\/]*)
11885   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11886   ;;
11887   *)
11888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889 for as_dir in $PATH
11890 do
11891   IFS=$as_save_IFS
11892   test -z "$as_dir" && as_dir=.
11893     for ac_exec_ext in '' $ac_executable_extensions; do
11894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11895     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11897     break 2
11898   fi
11899 done
11900   done
11901 IFS=$as_save_IFS
11902 
11903   ;;
11904 esac
11905 fi
11906 TOUCH=$ac_cv_path_TOUCH
11907 if test -n "$TOUCH"; then
11908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11909 $as_echo "$TOUCH" >&6; }
11910 else
11911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912 $as_echo "no" >&6; }
11913 fi
11914 
11915 
11916           if test "x$TOUCH" = x; then
11917             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11918           fi
11919         else
11920           # Otherwise we believe it is a complete path. Use it as it is.
11921           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11922 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11923           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11924 $as_echo_n "checking for TOUCH... " >&6; }
11925           if test ! -x "$tool_specified"; then
11926             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11927 $as_echo "not found" >&6; }
11928             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11929           fi
11930           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11931 $as_echo "$tool_specified" >&6; }
11932         fi
11933       fi
11934     fi
11935 
11936   fi
11937 
11938 
11939 
11940   if test "x$TOUCH" = x; then
11941     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11942   fi
11943 
11944 
11945 
11946 
11947 
11948   # Publish this variable in the help.
11949 
11950 
11951   if [ -z "${TR+x}" ]; then
11952     # The variable is not set by user, try to locate tool using the code snippet
11953     for ac_prog in tr
11954 do
11955   # Extract the first word of "$ac_prog", so it can be a program name with args.
11956 set dummy $ac_prog; ac_word=$2
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11958 $as_echo_n "checking for $ac_word... " >&6; }
11959 if ${ac_cv_path_TR+:} false; then :
11960   $as_echo_n "(cached) " >&6
11961 else
11962   case $TR in
11963   [\\/]* | ?:[\\/]*)
11964   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11965   ;;
11966   *)
11967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH
11969 do
11970   IFS=$as_save_IFS
11971   test -z "$as_dir" && as_dir=.
11972     for ac_exec_ext in '' $ac_executable_extensions; do
11973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11974     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11976     break 2
11977   fi
11978 done
11979   done
11980 IFS=$as_save_IFS
11981 
11982   ;;
11983 esac
11984 fi
11985 TR=$ac_cv_path_TR
11986 if test -n "$TR"; then
11987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11988 $as_echo "$TR" >&6; }
11989 else
11990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11992 fi
11993 
11994 
11995   test -n "$TR" && break
11996 done
11997 
11998   else
11999     # The variable is set, but is it from the command line or the environment?
12000 
12001     # Try to remove the string !TR! from our list.
12002     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
12003     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12004       # If it failed, the variable was not from the command line. Ignore it,
12005       # but warn the user (except for BASH, which is always set by the calling BASH).
12006       if test "xTR" != xBASH; then
12007         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
12008 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
12009       fi
12010       # Try to locate tool using the code snippet
12011       for ac_prog in tr
12012 do
12013   # Extract the first word of "$ac_prog", so it can be a program name with args.
12014 set dummy $ac_prog; ac_word=$2
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016 $as_echo_n "checking for $ac_word... " >&6; }
12017 if ${ac_cv_path_TR+:} false; then :
12018   $as_echo_n "(cached) " >&6
12019 else
12020   case $TR in
12021   [\\/]* | ?:[\\/]*)
12022   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12023   ;;
12024   *)
12025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026 for as_dir in $PATH
12027 do
12028   IFS=$as_save_IFS
12029   test -z "$as_dir" && as_dir=.
12030     for ac_exec_ext in '' $ac_executable_extensions; do
12031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12032     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12034     break 2
12035   fi
12036 done
12037   done
12038 IFS=$as_save_IFS
12039 
12040   ;;
12041 esac
12042 fi
12043 TR=$ac_cv_path_TR
12044 if test -n "$TR"; then
12045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12046 $as_echo "$TR" >&6; }
12047 else
12048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049 $as_echo "no" >&6; }
12050 fi
12051 
12052 
12053   test -n "$TR" && break
12054 done
12055 
12056     else
12057       # If it succeeded, then it was overridden by the user. We will use it
12058       # for the tool.
12059 
12060       # First remove it from the list of overridden variables, so we can test
12061       # for unknown variables in the end.
12062       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12063 
12064       # Check if we try to supply an empty value
12065       if test "x$TR" = x; then
12066         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12067 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12068         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12069 $as_echo_n "checking for TR... " >&6; }
12070         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12071 $as_echo "disabled" >&6; }
12072       else
12073         # Check if the provided tool contains a complete path.
12074         tool_specified="$TR"
12075         tool_basename="${tool_specified##*/}"
12076         if test "x$tool_basename" = "x$tool_specified"; then
12077           # A command without a complete path is provided, search $PATH.
12078           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12079 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12080           # Extract the first word of "$tool_basename", so it can be a program name with args.
12081 set dummy $tool_basename; ac_word=$2
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12083 $as_echo_n "checking for $ac_word... " >&6; }
12084 if ${ac_cv_path_TR+:} false; then :
12085   $as_echo_n "(cached) " >&6
12086 else
12087   case $TR in
12088   [\\/]* | ?:[\\/]*)
12089   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12090   ;;
12091   *)
12092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12094 do
12095   IFS=$as_save_IFS
12096   test -z "$as_dir" && as_dir=.
12097     for ac_exec_ext in '' $ac_executable_extensions; do
12098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12099     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101     break 2
12102   fi
12103 done
12104   done
12105 IFS=$as_save_IFS
12106 
12107   ;;
12108 esac
12109 fi
12110 TR=$ac_cv_path_TR
12111 if test -n "$TR"; then
12112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12113 $as_echo "$TR" >&6; }
12114 else
12115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12117 fi
12118 
12119 
12120           if test "x$TR" = x; then
12121             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12122           fi
12123         else
12124           # Otherwise we believe it is a complete path. Use it as it is.
12125           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12126 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12127           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12128 $as_echo_n "checking for TR... " >&6; }
12129           if test ! -x "$tool_specified"; then
12130             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12131 $as_echo "not found" >&6; }
12132             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12133           fi
12134           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12135 $as_echo "$tool_specified" >&6; }
12136         fi
12137       fi
12138     fi
12139 
12140   fi
12141 
12142 
12143 
12144   if test "x$TR" = x; then
12145     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12146   fi
12147 
12148 
12149 
12150 
12151 
12152   # Publish this variable in the help.
12153 
12154 
12155   if [ -z "${UNAME+x}" ]; then
12156     # The variable is not set by user, try to locate tool using the code snippet
12157     for ac_prog in uname
12158 do
12159   # Extract the first word of "$ac_prog", so it can be a program name with args.
12160 set dummy $ac_prog; ac_word=$2
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12162 $as_echo_n "checking for $ac_word... " >&6; }
12163 if ${ac_cv_path_UNAME+:} false; then :
12164   $as_echo_n "(cached) " >&6
12165 else
12166   case $UNAME in
12167   [\\/]* | ?:[\\/]*)
12168   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12169   ;;
12170   *)
12171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in $PATH
12173 do
12174   IFS=$as_save_IFS
12175   test -z "$as_dir" && as_dir=.
12176     for ac_exec_ext in '' $ac_executable_extensions; do
12177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12178     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12180     break 2
12181   fi
12182 done
12183   done
12184 IFS=$as_save_IFS
12185 
12186   ;;
12187 esac
12188 fi
12189 UNAME=$ac_cv_path_UNAME
12190 if test -n "$UNAME"; then
12191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12192 $as_echo "$UNAME" >&6; }
12193 else
12194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; }
12196 fi
12197 
12198 
12199   test -n "$UNAME" && break
12200 done
12201 
12202   else
12203     # The variable is set, but is it from the command line or the environment?
12204 
12205     # Try to remove the string !UNAME! from our list.
12206     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12207     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12208       # If it failed, the variable was not from the command line. Ignore it,
12209       # but warn the user (except for BASH, which is always set by the calling BASH).
12210       if test "xUNAME" != xBASH; then
12211         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12212 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12213       fi
12214       # Try to locate tool using the code snippet
12215       for ac_prog in uname
12216 do
12217   # Extract the first word of "$ac_prog", so it can be a program name with args.
12218 set dummy $ac_prog; ac_word=$2
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12220 $as_echo_n "checking for $ac_word... " >&6; }
12221 if ${ac_cv_path_UNAME+:} false; then :
12222   $as_echo_n "(cached) " >&6
12223 else
12224   case $UNAME in
12225   [\\/]* | ?:[\\/]*)
12226   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12227   ;;
12228   *)
12229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230 for as_dir in $PATH
12231 do
12232   IFS=$as_save_IFS
12233   test -z "$as_dir" && as_dir=.
12234     for ac_exec_ext in '' $ac_executable_extensions; do
12235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12236     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12238     break 2
12239   fi
12240 done
12241   done
12242 IFS=$as_save_IFS
12243 
12244   ;;
12245 esac
12246 fi
12247 UNAME=$ac_cv_path_UNAME
12248 if test -n "$UNAME"; then
12249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12250 $as_echo "$UNAME" >&6; }
12251 else
12252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 $as_echo "no" >&6; }
12254 fi
12255 
12256 
12257   test -n "$UNAME" && break
12258 done
12259 
12260     else
12261       # If it succeeded, then it was overridden by the user. We will use it
12262       # for the tool.
12263 
12264       # First remove it from the list of overridden variables, so we can test
12265       # for unknown variables in the end.
12266       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12267 
12268       # Check if we try to supply an empty value
12269       if test "x$UNAME" = x; then
12270         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12271 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12272         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12273 $as_echo_n "checking for UNAME... " >&6; }
12274         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12275 $as_echo "disabled" >&6; }
12276       else
12277         # Check if the provided tool contains a complete path.
12278         tool_specified="$UNAME"
12279         tool_basename="${tool_specified##*/}"
12280         if test "x$tool_basename" = "x$tool_specified"; then
12281           # A command without a complete path is provided, search $PATH.
12282           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12283 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12284           # Extract the first word of "$tool_basename", so it can be a program name with args.
12285 set dummy $tool_basename; ac_word=$2
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12287 $as_echo_n "checking for $ac_word... " >&6; }
12288 if ${ac_cv_path_UNAME+:} false; then :
12289   $as_echo_n "(cached) " >&6
12290 else
12291   case $UNAME in
12292   [\\/]* | ?:[\\/]*)
12293   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12294   ;;
12295   *)
12296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12297 for as_dir in $PATH
12298 do
12299   IFS=$as_save_IFS
12300   test -z "$as_dir" && as_dir=.
12301     for ac_exec_ext in '' $ac_executable_extensions; do
12302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12303     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12305     break 2
12306   fi
12307 done
12308   done
12309 IFS=$as_save_IFS
12310 
12311   ;;
12312 esac
12313 fi
12314 UNAME=$ac_cv_path_UNAME
12315 if test -n "$UNAME"; then
12316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12317 $as_echo "$UNAME" >&6; }
12318 else
12319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320 $as_echo "no" >&6; }
12321 fi
12322 
12323 
12324           if test "x$UNAME" = x; then
12325             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12326           fi
12327         else
12328           # Otherwise we believe it is a complete path. Use it as it is.
12329           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12330 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12331           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12332 $as_echo_n "checking for UNAME... " >&6; }
12333           if test ! -x "$tool_specified"; then
12334             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12335 $as_echo "not found" >&6; }
12336             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12337           fi
12338           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12339 $as_echo "$tool_specified" >&6; }
12340         fi
12341       fi
12342     fi
12343 
12344   fi
12345 
12346 
12347 
12348   if test "x$UNAME" = x; then
12349     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12350   fi
12351 
12352 
12353 
12354 
12355 
12356   # Publish this variable in the help.
12357 
12358 
12359   if [ -z "${UNIQ+x}" ]; then
12360     # The variable is not set by user, try to locate tool using the code snippet
12361     for ac_prog in uniq
12362 do
12363   # Extract the first word of "$ac_prog", so it can be a program name with args.
12364 set dummy $ac_prog; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if ${ac_cv_path_UNIQ+:} false; then :
12368   $as_echo_n "(cached) " >&6
12369 else
12370   case $UNIQ in
12371   [\\/]* | ?:[\\/]*)
12372   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12373   ;;
12374   *)
12375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $PATH
12377 do
12378   IFS=$as_save_IFS
12379   test -z "$as_dir" && as_dir=.
12380     for ac_exec_ext in '' $ac_executable_extensions; do
12381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12382     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12384     break 2
12385   fi
12386 done
12387   done
12388 IFS=$as_save_IFS
12389 
12390   ;;
12391 esac
12392 fi
12393 UNIQ=$ac_cv_path_UNIQ
12394 if test -n "$UNIQ"; then
12395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12396 $as_echo "$UNIQ" >&6; }
12397 else
12398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12400 fi
12401 
12402 
12403   test -n "$UNIQ" && break
12404 done
12405 
12406   else
12407     # The variable is set, but is it from the command line or the environment?
12408 
12409     # Try to remove the string !UNIQ! from our list.
12410     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12411     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12412       # If it failed, the variable was not from the command line. Ignore it,
12413       # but warn the user (except for BASH, which is always set by the calling BASH).
12414       if test "xUNIQ" != xBASH; then
12415         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12416 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12417       fi
12418       # Try to locate tool using the code snippet
12419       for ac_prog in uniq
12420 do
12421   # Extract the first word of "$ac_prog", so it can be a program name with args.
12422 set dummy $ac_prog; ac_word=$2
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12424 $as_echo_n "checking for $ac_word... " >&6; }
12425 if ${ac_cv_path_UNIQ+:} false; then :
12426   $as_echo_n "(cached) " >&6
12427 else
12428   case $UNIQ in
12429   [\\/]* | ?:[\\/]*)
12430   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12431   ;;
12432   *)
12433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12435 do
12436   IFS=$as_save_IFS
12437   test -z "$as_dir" && as_dir=.
12438     for ac_exec_ext in '' $ac_executable_extensions; do
12439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12440     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442     break 2
12443   fi
12444 done
12445   done
12446 IFS=$as_save_IFS
12447 
12448   ;;
12449 esac
12450 fi
12451 UNIQ=$ac_cv_path_UNIQ
12452 if test -n "$UNIQ"; then
12453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12454 $as_echo "$UNIQ" >&6; }
12455 else
12456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12458 fi
12459 
12460 
12461   test -n "$UNIQ" && break
12462 done
12463 
12464     else
12465       # If it succeeded, then it was overridden by the user. We will use it
12466       # for the tool.
12467 
12468       # First remove it from the list of overridden variables, so we can test
12469       # for unknown variables in the end.
12470       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12471 
12472       # Check if we try to supply an empty value
12473       if test "x$UNIQ" = x; then
12474         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12475 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12476         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12477 $as_echo_n "checking for UNIQ... " >&6; }
12478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12479 $as_echo "disabled" >&6; }
12480       else
12481         # Check if the provided tool contains a complete path.
12482         tool_specified="$UNIQ"
12483         tool_basename="${tool_specified##*/}"
12484         if test "x$tool_basename" = "x$tool_specified"; then
12485           # A command without a complete path is provided, search $PATH.
12486           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12487 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12488           # Extract the first word of "$tool_basename", so it can be a program name with args.
12489 set dummy $tool_basename; ac_word=$2
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12491 $as_echo_n "checking for $ac_word... " >&6; }
12492 if ${ac_cv_path_UNIQ+:} false; then :
12493   $as_echo_n "(cached) " >&6
12494 else
12495   case $UNIQ in
12496   [\\/]* | ?:[\\/]*)
12497   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12498   ;;
12499   *)
12500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12501 for as_dir in $PATH
12502 do
12503   IFS=$as_save_IFS
12504   test -z "$as_dir" && as_dir=.
12505     for ac_exec_ext in '' $ac_executable_extensions; do
12506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12507     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12509     break 2
12510   fi
12511 done
12512   done
12513 IFS=$as_save_IFS
12514 
12515   ;;
12516 esac
12517 fi
12518 UNIQ=$ac_cv_path_UNIQ
12519 if test -n "$UNIQ"; then
12520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12521 $as_echo "$UNIQ" >&6; }
12522 else
12523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12524 $as_echo "no" >&6; }
12525 fi
12526 
12527 
12528           if test "x$UNIQ" = x; then
12529             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12530           fi
12531         else
12532           # Otherwise we believe it is a complete path. Use it as it is.
12533           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12534 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12535           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12536 $as_echo_n "checking for UNIQ... " >&6; }
12537           if test ! -x "$tool_specified"; then
12538             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12539 $as_echo "not found" >&6; }
12540             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12541           fi
12542           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12543 $as_echo "$tool_specified" >&6; }
12544         fi
12545       fi
12546     fi
12547 
12548   fi
12549 
12550 
12551 
12552   if test "x$UNIQ" = x; then
12553     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12554   fi
12555 
12556 
12557 
12558 
12559 
12560   # Publish this variable in the help.
12561 
12562 
12563   if [ -z "${WC+x}" ]; then
12564     # The variable is not set by user, try to locate tool using the code snippet
12565     for ac_prog in wc
12566 do
12567   # Extract the first word of "$ac_prog", so it can be a program name with args.
12568 set dummy $ac_prog; ac_word=$2
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570 $as_echo_n "checking for $ac_word... " >&6; }
12571 if ${ac_cv_path_WC+:} false; then :
12572   $as_echo_n "(cached) " >&6
12573 else
12574   case $WC in
12575   [\\/]* | ?:[\\/]*)
12576   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12577   ;;
12578   *)
12579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12580 for as_dir in $PATH
12581 do
12582   IFS=$as_save_IFS
12583   test -z "$as_dir" && as_dir=.
12584     for ac_exec_ext in '' $ac_executable_extensions; do
12585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12586     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12588     break 2
12589   fi
12590 done
12591   done
12592 IFS=$as_save_IFS
12593 
12594   ;;
12595 esac
12596 fi
12597 WC=$ac_cv_path_WC
12598 if test -n "$WC"; then
12599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12600 $as_echo "$WC" >&6; }
12601 else
12602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603 $as_echo "no" >&6; }
12604 fi
12605 
12606 
12607   test -n "$WC" && break
12608 done
12609 
12610   else
12611     # The variable is set, but is it from the command line or the environment?
12612 
12613     # Try to remove the string !WC! from our list.
12614     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12615     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12616       # If it failed, the variable was not from the command line. Ignore it,
12617       # but warn the user (except for BASH, which is always set by the calling BASH).
12618       if test "xWC" != xBASH; then
12619         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12620 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12621       fi
12622       # Try to locate tool using the code snippet
12623       for ac_prog in wc
12624 do
12625   # Extract the first word of "$ac_prog", so it can be a program name with args.
12626 set dummy $ac_prog; ac_word=$2
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628 $as_echo_n "checking for $ac_word... " >&6; }
12629 if ${ac_cv_path_WC+:} false; then :
12630   $as_echo_n "(cached) " >&6
12631 else
12632   case $WC in
12633   [\\/]* | ?:[\\/]*)
12634   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12635   ;;
12636   *)
12637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638 for as_dir in $PATH
12639 do
12640   IFS=$as_save_IFS
12641   test -z "$as_dir" && as_dir=.
12642     for ac_exec_ext in '' $ac_executable_extensions; do
12643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12644     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12646     break 2
12647   fi
12648 done
12649   done
12650 IFS=$as_save_IFS
12651 
12652   ;;
12653 esac
12654 fi
12655 WC=$ac_cv_path_WC
12656 if test -n "$WC"; then
12657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12658 $as_echo "$WC" >&6; }
12659 else
12660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661 $as_echo "no" >&6; }
12662 fi
12663 
12664 
12665   test -n "$WC" && break
12666 done
12667 
12668     else
12669       # If it succeeded, then it was overridden by the user. We will use it
12670       # for the tool.
12671 
12672       # First remove it from the list of overridden variables, so we can test
12673       # for unknown variables in the end.
12674       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12675 
12676       # Check if we try to supply an empty value
12677       if test "x$WC" = x; then
12678         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12679 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12680         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12681 $as_echo_n "checking for WC... " >&6; }
12682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12683 $as_echo "disabled" >&6; }
12684       else
12685         # Check if the provided tool contains a complete path.
12686         tool_specified="$WC"
12687         tool_basename="${tool_specified##*/}"
12688         if test "x$tool_basename" = "x$tool_specified"; then
12689           # A command without a complete path is provided, search $PATH.
12690           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12691 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12692           # Extract the first word of "$tool_basename", so it can be a program name with args.
12693 set dummy $tool_basename; ac_word=$2
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12695 $as_echo_n "checking for $ac_word... " >&6; }
12696 if ${ac_cv_path_WC+:} false; then :
12697   $as_echo_n "(cached) " >&6
12698 else
12699   case $WC in
12700   [\\/]* | ?:[\\/]*)
12701   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12702   ;;
12703   *)
12704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705 for as_dir in $PATH
12706 do
12707   IFS=$as_save_IFS
12708   test -z "$as_dir" && as_dir=.
12709     for ac_exec_ext in '' $ac_executable_extensions; do
12710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12711     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12713     break 2
12714   fi
12715 done
12716   done
12717 IFS=$as_save_IFS
12718 
12719   ;;
12720 esac
12721 fi
12722 WC=$ac_cv_path_WC
12723 if test -n "$WC"; then
12724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12725 $as_echo "$WC" >&6; }
12726 else
12727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728 $as_echo "no" >&6; }
12729 fi
12730 
12731 
12732           if test "x$WC" = x; then
12733             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12734           fi
12735         else
12736           # Otherwise we believe it is a complete path. Use it as it is.
12737           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12738 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12739           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12740 $as_echo_n "checking for WC... " >&6; }
12741           if test ! -x "$tool_specified"; then
12742             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12743 $as_echo "not found" >&6; }
12744             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12745           fi
12746           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12747 $as_echo "$tool_specified" >&6; }
12748         fi
12749       fi
12750     fi
12751 
12752   fi
12753 
12754 
12755 
12756   if test "x$WC" = x; then
12757     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12758   fi
12759 
12760 
12761 
12762 
12763 
12764   # Publish this variable in the help.
12765 
12766 
12767   if [ -z "${WHICH+x}" ]; then
12768     # The variable is not set by user, try to locate tool using the code snippet
12769     for ac_prog in which
12770 do
12771   # Extract the first word of "$ac_prog", so it can be a program name with args.
12772 set dummy $ac_prog; ac_word=$2
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774 $as_echo_n "checking for $ac_word... " >&6; }
12775 if ${ac_cv_path_WHICH+:} false; then :
12776   $as_echo_n "(cached) " >&6
12777 else
12778   case $WHICH in
12779   [\\/]* | ?:[\\/]*)
12780   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12781   ;;
12782   *)
12783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12785 do
12786   IFS=$as_save_IFS
12787   test -z "$as_dir" && as_dir=.
12788     for ac_exec_ext in '' $ac_executable_extensions; do
12789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12790     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792     break 2
12793   fi
12794 done
12795   done
12796 IFS=$as_save_IFS
12797 
12798   ;;
12799 esac
12800 fi
12801 WHICH=$ac_cv_path_WHICH
12802 if test -n "$WHICH"; then
12803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12804 $as_echo "$WHICH" >&6; }
12805 else
12806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12808 fi
12809 
12810 
12811   test -n "$WHICH" && break
12812 done
12813 
12814   else
12815     # The variable is set, but is it from the command line or the environment?
12816 
12817     # Try to remove the string !WHICH! from our list.
12818     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12819     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12820       # If it failed, the variable was not from the command line. Ignore it,
12821       # but warn the user (except for BASH, which is always set by the calling BASH).
12822       if test "xWHICH" != xBASH; then
12823         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12824 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12825       fi
12826       # Try to locate tool using the code snippet
12827       for ac_prog in which
12828 do
12829   # Extract the first word of "$ac_prog", so it can be a program name with args.
12830 set dummy $ac_prog; ac_word=$2
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12832 $as_echo_n "checking for $ac_word... " >&6; }
12833 if ${ac_cv_path_WHICH+:} false; then :
12834   $as_echo_n "(cached) " >&6
12835 else
12836   case $WHICH in
12837   [\\/]* | ?:[\\/]*)
12838   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12839   ;;
12840   *)
12841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12843 do
12844   IFS=$as_save_IFS
12845   test -z "$as_dir" && as_dir=.
12846     for ac_exec_ext in '' $ac_executable_extensions; do
12847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12848     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850     break 2
12851   fi
12852 done
12853   done
12854 IFS=$as_save_IFS
12855 
12856   ;;
12857 esac
12858 fi
12859 WHICH=$ac_cv_path_WHICH
12860 if test -n "$WHICH"; then
12861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12862 $as_echo "$WHICH" >&6; }
12863 else
12864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12866 fi
12867 
12868 
12869   test -n "$WHICH" && break
12870 done
12871 
12872     else
12873       # If it succeeded, then it was overridden by the user. We will use it
12874       # for the tool.
12875 
12876       # First remove it from the list of overridden variables, so we can test
12877       # for unknown variables in the end.
12878       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12879 
12880       # Check if we try to supply an empty value
12881       if test "x$WHICH" = x; then
12882         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12883 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12884         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12885 $as_echo_n "checking for WHICH... " >&6; }
12886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12887 $as_echo "disabled" >&6; }
12888       else
12889         # Check if the provided tool contains a complete path.
12890         tool_specified="$WHICH"
12891         tool_basename="${tool_specified##*/}"
12892         if test "x$tool_basename" = "x$tool_specified"; then
12893           # A command without a complete path is provided, search $PATH.
12894           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12895 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12896           # Extract the first word of "$tool_basename", so it can be a program name with args.
12897 set dummy $tool_basename; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899 $as_echo_n "checking for $ac_word... " >&6; }
12900 if ${ac_cv_path_WHICH+:} false; then :
12901   $as_echo_n "(cached) " >&6
12902 else
12903   case $WHICH in
12904   [\\/]* | ?:[\\/]*)
12905   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12906   ;;
12907   *)
12908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12910 do
12911   IFS=$as_save_IFS
12912   test -z "$as_dir" && as_dir=.
12913     for ac_exec_ext in '' $ac_executable_extensions; do
12914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12915     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12917     break 2
12918   fi
12919 done
12920   done
12921 IFS=$as_save_IFS
12922 
12923   ;;
12924 esac
12925 fi
12926 WHICH=$ac_cv_path_WHICH
12927 if test -n "$WHICH"; then
12928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12929 $as_echo "$WHICH" >&6; }
12930 else
12931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12933 fi
12934 
12935 
12936           if test "x$WHICH" = x; then
12937             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12938           fi
12939         else
12940           # Otherwise we believe it is a complete path. Use it as it is.
12941           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12942 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12943           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12944 $as_echo_n "checking for WHICH... " >&6; }
12945           if test ! -x "$tool_specified"; then
12946             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12947 $as_echo "not found" >&6; }
12948             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12949           fi
12950           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12951 $as_echo "$tool_specified" >&6; }
12952         fi
12953       fi
12954     fi
12955 
12956   fi
12957 
12958 
12959 
12960   if test "x$WHICH" = x; then
12961     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12962   fi
12963 
12964 
12965 
12966 
12967 
12968   # Publish this variable in the help.
12969 
12970 
12971   if [ -z "${XARGS+x}" ]; then
12972     # The variable is not set by user, try to locate tool using the code snippet
12973     for ac_prog in xargs
12974 do
12975   # Extract the first word of "$ac_prog", so it can be a program name with args.
12976 set dummy $ac_prog; ac_word=$2
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12978 $as_echo_n "checking for $ac_word... " >&6; }
12979 if ${ac_cv_path_XARGS+:} false; then :
12980   $as_echo_n "(cached) " >&6
12981 else
12982   case $XARGS in
12983   [\\/]* | ?:[\\/]*)
12984   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12985   ;;
12986   *)
12987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12988 for as_dir in $PATH
12989 do
12990   IFS=$as_save_IFS
12991   test -z "$as_dir" && as_dir=.
12992     for ac_exec_ext in '' $ac_executable_extensions; do
12993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12994     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12996     break 2
12997   fi
12998 done
12999   done
13000 IFS=$as_save_IFS
13001 
13002   ;;
13003 esac
13004 fi
13005 XARGS=$ac_cv_path_XARGS
13006 if test -n "$XARGS"; then
13007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13008 $as_echo "$XARGS" >&6; }
13009 else
13010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13012 fi
13013 
13014 
13015   test -n "$XARGS" && break
13016 done
13017 
13018   else
13019     # The variable is set, but is it from the command line or the environment?
13020 
13021     # Try to remove the string !XARGS! from our list.
13022     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
13023     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13024       # If it failed, the variable was not from the command line. Ignore it,
13025       # but warn the user (except for BASH, which is always set by the calling BASH).
13026       if test "xXARGS" != xBASH; then
13027         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
13028 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
13029       fi
13030       # Try to locate tool using the code snippet
13031       for ac_prog in xargs
13032 do
13033   # Extract the first word of "$ac_prog", so it can be a program name with args.
13034 set dummy $ac_prog; ac_word=$2
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036 $as_echo_n "checking for $ac_word... " >&6; }
13037 if ${ac_cv_path_XARGS+:} false; then :
13038   $as_echo_n "(cached) " >&6
13039 else
13040   case $XARGS in
13041   [\\/]* | ?:[\\/]*)
13042   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13043   ;;
13044   *)
13045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13047 do
13048   IFS=$as_save_IFS
13049   test -z "$as_dir" && as_dir=.
13050     for ac_exec_ext in '' $ac_executable_extensions; do
13051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13052     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13054     break 2
13055   fi
13056 done
13057   done
13058 IFS=$as_save_IFS
13059 
13060   ;;
13061 esac
13062 fi
13063 XARGS=$ac_cv_path_XARGS
13064 if test -n "$XARGS"; then
13065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13066 $as_echo "$XARGS" >&6; }
13067 else
13068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13070 fi
13071 
13072 
13073   test -n "$XARGS" && break
13074 done
13075 
13076     else
13077       # If it succeeded, then it was overridden by the user. We will use it
13078       # for the tool.
13079 
13080       # First remove it from the list of overridden variables, so we can test
13081       # for unknown variables in the end.
13082       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13083 
13084       # Check if we try to supply an empty value
13085       if test "x$XARGS" = x; then
13086         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13087 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13088         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13089 $as_echo_n "checking for XARGS... " >&6; }
13090         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13091 $as_echo "disabled" >&6; }
13092       else
13093         # Check if the provided tool contains a complete path.
13094         tool_specified="$XARGS"
13095         tool_basename="${tool_specified##*/}"
13096         if test "x$tool_basename" = "x$tool_specified"; then
13097           # A command without a complete path is provided, search $PATH.
13098           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13099 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13100           # Extract the first word of "$tool_basename", so it can be a program name with args.
13101 set dummy $tool_basename; ac_word=$2
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103 $as_echo_n "checking for $ac_word... " >&6; }
13104 if ${ac_cv_path_XARGS+:} false; then :
13105   $as_echo_n "(cached) " >&6
13106 else
13107   case $XARGS in
13108   [\\/]* | ?:[\\/]*)
13109   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13110   ;;
13111   *)
13112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13114 do
13115   IFS=$as_save_IFS
13116   test -z "$as_dir" && as_dir=.
13117     for ac_exec_ext in '' $ac_executable_extensions; do
13118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13119     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13121     break 2
13122   fi
13123 done
13124   done
13125 IFS=$as_save_IFS
13126 
13127   ;;
13128 esac
13129 fi
13130 XARGS=$ac_cv_path_XARGS
13131 if test -n "$XARGS"; then
13132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13133 $as_echo "$XARGS" >&6; }
13134 else
13135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13137 fi
13138 
13139 
13140           if test "x$XARGS" = x; then
13141             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13142           fi
13143         else
13144           # Otherwise we believe it is a complete path. Use it as it is.
13145           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13146 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13147           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13148 $as_echo_n "checking for XARGS... " >&6; }
13149           if test ! -x "$tool_specified"; then
13150             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13151 $as_echo "not found" >&6; }
13152             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13153           fi
13154           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13155 $as_echo "$tool_specified" >&6; }
13156         fi
13157       fi
13158     fi
13159 
13160   fi
13161 
13162 
13163 
13164   if test "x$XARGS" = x; then
13165     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13166   fi
13167 
13168 
13169 
13170   # Then required tools that require some special treatment.
13171 
13172 
13173   # Publish this variable in the help.
13174 
13175 
13176   if [ -z "${AWK+x}" ]; then
13177     # The variable is not set by user, try to locate tool using the code snippet
13178     for ac_prog in gawk mawk nawk awk
13179 do
13180   # Extract the first word of "$ac_prog", so it can be a program name with args.
13181 set dummy $ac_prog; ac_word=$2
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183 $as_echo_n "checking for $ac_word... " >&6; }
13184 if ${ac_cv_prog_AWK+:} false; then :
13185   $as_echo_n "(cached) " >&6
13186 else
13187   if test -n "$AWK"; then
13188   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13189 else
13190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191 for as_dir in $PATH
13192 do
13193   IFS=$as_save_IFS
13194   test -z "$as_dir" && as_dir=.
13195     for ac_exec_ext in '' $ac_executable_extensions; do
13196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13197     ac_cv_prog_AWK="$ac_prog"
13198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13199     break 2
13200   fi
13201 done
13202   done
13203 IFS=$as_save_IFS
13204 
13205 fi
13206 fi
13207 AWK=$ac_cv_prog_AWK
13208 if test -n "$AWK"; then
13209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13210 $as_echo "$AWK" >&6; }
13211 else
13212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213 $as_echo "no" >&6; }
13214 fi
13215 
13216 
13217   test -n "$AWK" && break
13218 done
13219 
13220   else
13221     # The variable is set, but is it from the command line or the environment?
13222 
13223     # Try to remove the string !AWK! from our list.
13224     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13225     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13226       # If it failed, the variable was not from the command line. Ignore it,
13227       # but warn the user (except for BASH, which is always set by the calling BASH).
13228       if test "xAWK" != xBASH; then
13229         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13230 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13231       fi
13232       # Try to locate tool using the code snippet
13233       for ac_prog in gawk mawk nawk awk
13234 do
13235   # Extract the first word of "$ac_prog", so it can be a program name with args.
13236 set dummy $ac_prog; ac_word=$2
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238 $as_echo_n "checking for $ac_word... " >&6; }
13239 if ${ac_cv_prog_AWK+:} false; then :
13240   $as_echo_n "(cached) " >&6
13241 else
13242   if test -n "$AWK"; then
13243   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13244 else
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13247 do
13248   IFS=$as_save_IFS
13249   test -z "$as_dir" && as_dir=.
13250     for ac_exec_ext in '' $ac_executable_extensions; do
13251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13252     ac_cv_prog_AWK="$ac_prog"
13253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254     break 2
13255   fi
13256 done
13257   done
13258 IFS=$as_save_IFS
13259 
13260 fi
13261 fi
13262 AWK=$ac_cv_prog_AWK
13263 if test -n "$AWK"; then
13264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13265 $as_echo "$AWK" >&6; }
13266 else
13267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13269 fi
13270 
13271 
13272   test -n "$AWK" && break
13273 done
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$AWK" = x; then
13285         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13286 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13288 $as_echo_n "checking for AWK... " >&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="$AWK"
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 AWK=$tool_basename" >&5
13298 $as_echo "$as_me: Will search for user supplied tool AWK=$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_AWK+:} false; then :
13304   $as_echo_n "(cached) " >&6
13305 else
13306   case $AWK in
13307   [\\/]* | ?:[\\/]*)
13308   ac_cv_path_AWK="$AWK" # 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_AWK="$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 AWK=$ac_cv_path_AWK
13330 if test -n "$AWK"; then
13331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13332 $as_echo "$AWK" >&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$AWK" = 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 AWK=$tool_specified" >&5
13345 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13346           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13347 $as_echo_n "checking for AWK... " >&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 AWK=$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$AWK" = x; then
13363     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13364   fi
13365 
13366 
13367 
13368 
13369   # Publish this variable in the help.
13370 
13371 
13372   if [ -z "${GREP+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 grep that handles long lines and -e" >&5
13375 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13376 if ${ac_cv_path_GREP+:} false; then :
13377   $as_echo_n "(cached) " >&6
13378 else
13379   if test -z "$GREP"; then
13380   ac_path_GREP_found=false
13381   # Loop through the user's path and test for each of PROGNAME-LIST
13382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13384 do
13385   IFS=$as_save_IFS
13386   test -z "$as_dir" && as_dir=.
13387     for ac_prog in grep ggrep; do
13388     for ac_exec_ext in '' $ac_executable_extensions; do
13389       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13390       as_fn_executable_p "$ac_path_GREP" || continue
13391 # Check for GNU ac_path_GREP and select it if it is found.
13392   # Check for GNU $ac_path_GREP
13393 case `"$ac_path_GREP" --version 2>&1` in
13394 *GNU*)
13395   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13396 *)
13397   ac_count=0
13398   $as_echo_n 0123456789 >"conftest.in"
13399   while :
13400   do
13401     cat "conftest.in" "conftest.in" >"conftest.tmp"
13402     mv "conftest.tmp" "conftest.in"
13403     cp "conftest.in" "conftest.nl"
13404     $as_echo 'GREP' >> "conftest.nl"
13405     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13406     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13407     as_fn_arith $ac_count + 1 && ac_count=$as_val
13408     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13409       # Best one so far, save it but keep looking for a better one
13410       ac_cv_path_GREP="$ac_path_GREP"
13411       ac_path_GREP_max=$ac_count
13412     fi
13413     # 10*(2^10) chars as input seems more than enough
13414     test $ac_count -gt 10 && break
13415   done
13416   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13417 esac
13418 
13419       $ac_path_GREP_found && break 3
13420     done
13421   done
13422   done
13423 IFS=$as_save_IFS
13424   if test -z "$ac_cv_path_GREP"; then
13425     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13426   fi
13427 else
13428   ac_cv_path_GREP=$GREP
13429 fi
13430 
13431 fi
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13433 $as_echo "$ac_cv_path_GREP" >&6; }
13434  GREP="$ac_cv_path_GREP"
13435 
13436 
13437   else
13438     # The variable is set, but is it from the command line or the environment?
13439 
13440     # Try to remove the string !GREP! from our list.
13441     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13442     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13443       # If it failed, the variable was not from the command line. Ignore it,
13444       # but warn the user (except for BASH, which is always set by the calling BASH).
13445       if test "xGREP" != xBASH; then
13446         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13447 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13448       fi
13449       # Try to locate tool using the code snippet
13450       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13451 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13452 if ${ac_cv_path_GREP+:} false; then :
13453   $as_echo_n "(cached) " >&6
13454 else
13455   if test -z "$GREP"; then
13456   ac_path_GREP_found=false
13457   # Loop through the user's path and test for each of PROGNAME-LIST
13458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13460 do
13461   IFS=$as_save_IFS
13462   test -z "$as_dir" && as_dir=.
13463     for ac_prog in grep ggrep; do
13464     for ac_exec_ext in '' $ac_executable_extensions; do
13465       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13466       as_fn_executable_p "$ac_path_GREP" || continue
13467 # Check for GNU ac_path_GREP and select it if it is found.
13468   # Check for GNU $ac_path_GREP
13469 case `"$ac_path_GREP" --version 2>&1` in
13470 *GNU*)
13471   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13472 *)
13473   ac_count=0
13474   $as_echo_n 0123456789 >"conftest.in"
13475   while :
13476   do
13477     cat "conftest.in" "conftest.in" >"conftest.tmp"
13478     mv "conftest.tmp" "conftest.in"
13479     cp "conftest.in" "conftest.nl"
13480     $as_echo 'GREP' >> "conftest.nl"
13481     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13482     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13483     as_fn_arith $ac_count + 1 && ac_count=$as_val
13484     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13485       # Best one so far, save it but keep looking for a better one
13486       ac_cv_path_GREP="$ac_path_GREP"
13487       ac_path_GREP_max=$ac_count
13488     fi
13489     # 10*(2^10) chars as input seems more than enough
13490     test $ac_count -gt 10 && break
13491   done
13492   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13493 esac
13494 
13495       $ac_path_GREP_found && break 3
13496     done
13497   done
13498   done
13499 IFS=$as_save_IFS
13500   if test -z "$ac_cv_path_GREP"; then
13501     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13502   fi
13503 else
13504   ac_cv_path_GREP=$GREP
13505 fi
13506 
13507 fi
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13509 $as_echo "$ac_cv_path_GREP" >&6; }
13510  GREP="$ac_cv_path_GREP"
13511 
13512 
13513     else
13514       # If it succeeded, then it was overridden by the user. We will use it
13515       # for the tool.
13516 
13517       # First remove it from the list of overridden variables, so we can test
13518       # for unknown variables in the end.
13519       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13520 
13521       # Check if we try to supply an empty value
13522       if test "x$GREP" = x; then
13523         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13524 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13525         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13526 $as_echo_n "checking for GREP... " >&6; }
13527         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13528 $as_echo "disabled" >&6; }
13529       else
13530         # Check if the provided tool contains a complete path.
13531         tool_specified="$GREP"
13532         tool_basename="${tool_specified##*/}"
13533         if test "x$tool_basename" = "x$tool_specified"; then
13534           # A command without a complete path is provided, search $PATH.
13535           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13536 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13537           # Extract the first word of "$tool_basename", so it can be a program name with args.
13538 set dummy $tool_basename; ac_word=$2
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13540 $as_echo_n "checking for $ac_word... " >&6; }
13541 if ${ac_cv_path_GREP+:} false; then :
13542   $as_echo_n "(cached) " >&6
13543 else
13544   case $GREP in
13545   [\\/]* | ?:[\\/]*)
13546   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13547   ;;
13548   *)
13549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13550 for as_dir in $PATH
13551 do
13552   IFS=$as_save_IFS
13553   test -z "$as_dir" && as_dir=.
13554     for ac_exec_ext in '' $ac_executable_extensions; do
13555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13556     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13558     break 2
13559   fi
13560 done
13561   done
13562 IFS=$as_save_IFS
13563 
13564   ;;
13565 esac
13566 fi
13567 GREP=$ac_cv_path_GREP
13568 if test -n "$GREP"; then
13569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13570 $as_echo "$GREP" >&6; }
13571 else
13572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 $as_echo "no" >&6; }
13574 fi
13575 
13576 
13577           if test "x$GREP" = x; then
13578             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13579           fi
13580         else
13581           # Otherwise we believe it is a complete path. Use it as it is.
13582           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13583 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13584           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13585 $as_echo_n "checking for GREP... " >&6; }
13586           if test ! -x "$tool_specified"; then
13587             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13588 $as_echo "not found" >&6; }
13589             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13590           fi
13591           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13592 $as_echo "$tool_specified" >&6; }
13593         fi
13594       fi
13595     fi
13596 
13597   fi
13598 
13599 
13600   if test "x$GREP" = x; then
13601     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13602   fi
13603 
13604 
13605 
13606 
13607   # Publish this variable in the help.
13608 
13609 
13610   if [ -z "${EGREP+x}" ]; then
13611     # The variable is not set by user, try to locate tool using the code snippet
13612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13613 $as_echo_n "checking for egrep... " >&6; }
13614 if ${ac_cv_path_EGREP+:} false; then :
13615   $as_echo_n "(cached) " >&6
13616 else
13617   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13618    then ac_cv_path_EGREP="$GREP -E"
13619    else
13620      if test -z "$EGREP"; then
13621   ac_path_EGREP_found=false
13622   # Loop through the user's path and test for each of PROGNAME-LIST
13623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13624 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13625 do
13626   IFS=$as_save_IFS
13627   test -z "$as_dir" && as_dir=.
13628     for ac_prog in egrep; do
13629     for ac_exec_ext in '' $ac_executable_extensions; do
13630       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13631       as_fn_executable_p "$ac_path_EGREP" || continue
13632 # Check for GNU ac_path_EGREP and select it if it is found.
13633   # Check for GNU $ac_path_EGREP
13634 case `"$ac_path_EGREP" --version 2>&1` in
13635 *GNU*)
13636   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13637 *)
13638   ac_count=0
13639   $as_echo_n 0123456789 >"conftest.in"
13640   while :
13641   do
13642     cat "conftest.in" "conftest.in" >"conftest.tmp"
13643     mv "conftest.tmp" "conftest.in"
13644     cp "conftest.in" "conftest.nl"
13645     $as_echo 'EGREP' >> "conftest.nl"
13646     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13647     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13648     as_fn_arith $ac_count + 1 && ac_count=$as_val
13649     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13650       # Best one so far, save it but keep looking for a better one
13651       ac_cv_path_EGREP="$ac_path_EGREP"
13652       ac_path_EGREP_max=$ac_count
13653     fi
13654     # 10*(2^10) chars as input seems more than enough
13655     test $ac_count -gt 10 && break
13656   done
13657   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13658 esac
13659 
13660       $ac_path_EGREP_found && break 3
13661     done
13662   done
13663   done
13664 IFS=$as_save_IFS
13665   if test -z "$ac_cv_path_EGREP"; then
13666     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13667   fi
13668 else
13669   ac_cv_path_EGREP=$EGREP
13670 fi
13671 
13672    fi
13673 fi
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13675 $as_echo "$ac_cv_path_EGREP" >&6; }
13676  EGREP="$ac_cv_path_EGREP"
13677 
13678 
13679   else
13680     # The variable is set, but is it from the command line or the environment?
13681 
13682     # Try to remove the string !EGREP! from our list.
13683     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13684     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13685       # If it failed, the variable was not from the command line. Ignore it,
13686       # but warn the user (except for BASH, which is always set by the calling BASH).
13687       if test "xEGREP" != xBASH; then
13688         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13689 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13690       fi
13691       # Try to locate tool using the code snippet
13692       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13693 $as_echo_n "checking for egrep... " >&6; }
13694 if ${ac_cv_path_EGREP+:} false; then :
13695   $as_echo_n "(cached) " >&6
13696 else
13697   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13698    then ac_cv_path_EGREP="$GREP -E"
13699    else
13700      if test -z "$EGREP"; then
13701   ac_path_EGREP_found=false
13702   # Loop through the user's path and test for each of PROGNAME-LIST
13703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13705 do
13706   IFS=$as_save_IFS
13707   test -z "$as_dir" && as_dir=.
13708     for ac_prog in egrep; do
13709     for ac_exec_ext in '' $ac_executable_extensions; do
13710       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13711       as_fn_executable_p "$ac_path_EGREP" || continue
13712 # Check for GNU ac_path_EGREP and select it if it is found.
13713   # Check for GNU $ac_path_EGREP
13714 case `"$ac_path_EGREP" --version 2>&1` in
13715 *GNU*)
13716   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13717 *)
13718   ac_count=0
13719   $as_echo_n 0123456789 >"conftest.in"
13720   while :
13721   do
13722     cat "conftest.in" "conftest.in" >"conftest.tmp"
13723     mv "conftest.tmp" "conftest.in"
13724     cp "conftest.in" "conftest.nl"
13725     $as_echo 'EGREP' >> "conftest.nl"
13726     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13727     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13728     as_fn_arith $ac_count + 1 && ac_count=$as_val
13729     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13730       # Best one so far, save it but keep looking for a better one
13731       ac_cv_path_EGREP="$ac_path_EGREP"
13732       ac_path_EGREP_max=$ac_count
13733     fi
13734     # 10*(2^10) chars as input seems more than enough
13735     test $ac_count -gt 10 && break
13736   done
13737   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13738 esac
13739 
13740       $ac_path_EGREP_found && break 3
13741     done
13742   done
13743   done
13744 IFS=$as_save_IFS
13745   if test -z "$ac_cv_path_EGREP"; then
13746     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13747   fi
13748 else
13749   ac_cv_path_EGREP=$EGREP
13750 fi
13751 
13752    fi
13753 fi
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13755 $as_echo "$ac_cv_path_EGREP" >&6; }
13756  EGREP="$ac_cv_path_EGREP"
13757 
13758 
13759     else
13760       # If it succeeded, then it was overridden by the user. We will use it
13761       # for the tool.
13762 
13763       # First remove it from the list of overridden variables, so we can test
13764       # for unknown variables in the end.
13765       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13766 
13767       # Check if we try to supply an empty value
13768       if test "x$EGREP" = x; then
13769         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13770 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13771         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13772 $as_echo_n "checking for EGREP... " >&6; }
13773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13774 $as_echo "disabled" >&6; }
13775       else
13776         # Check if the provided tool contains a complete path.
13777         tool_specified="$EGREP"
13778         tool_basename="${tool_specified##*/}"
13779         if test "x$tool_basename" = "x$tool_specified"; then
13780           # A command without a complete path is provided, search $PATH.
13781           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13782 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13783           # Extract the first word of "$tool_basename", so it can be a program name with args.
13784 set dummy $tool_basename; ac_word=$2
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13786 $as_echo_n "checking for $ac_word... " >&6; }
13787 if ${ac_cv_path_EGREP+:} false; then :
13788   $as_echo_n "(cached) " >&6
13789 else
13790   case $EGREP in
13791   [\\/]* | ?:[\\/]*)
13792   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13793   ;;
13794   *)
13795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13796 for as_dir in $PATH
13797 do
13798   IFS=$as_save_IFS
13799   test -z "$as_dir" && as_dir=.
13800     for ac_exec_ext in '' $ac_executable_extensions; do
13801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13802     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13804     break 2
13805   fi
13806 done
13807   done
13808 IFS=$as_save_IFS
13809 
13810   ;;
13811 esac
13812 fi
13813 EGREP=$ac_cv_path_EGREP
13814 if test -n "$EGREP"; then
13815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13816 $as_echo "$EGREP" >&6; }
13817 else
13818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13819 $as_echo "no" >&6; }
13820 fi
13821 
13822 
13823           if test "x$EGREP" = x; then
13824             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13825           fi
13826         else
13827           # Otherwise we believe it is a complete path. Use it as it is.
13828           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13829 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13830           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13831 $as_echo_n "checking for EGREP... " >&6; }
13832           if test ! -x "$tool_specified"; then
13833             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13834 $as_echo "not found" >&6; }
13835             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13836           fi
13837           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13838 $as_echo "$tool_specified" >&6; }
13839         fi
13840       fi
13841     fi
13842 
13843   fi
13844 
13845 
13846   if test "x$EGREP" = x; then
13847     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13848   fi
13849 
13850 
13851 
13852 
13853   # Publish this variable in the help.
13854 
13855 
13856   if [ -z "${FGREP+x}" ]; then
13857     # The variable is not set by user, try to locate tool using the code snippet
13858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13859 $as_echo_n "checking for fgrep... " >&6; }
13860 if ${ac_cv_path_FGREP+:} false; then :
13861   $as_echo_n "(cached) " >&6
13862 else
13863   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13864    then ac_cv_path_FGREP="$GREP -F"
13865    else
13866      if test -z "$FGREP"; then
13867   ac_path_FGREP_found=false
13868   # Loop through the user's path and test for each of PROGNAME-LIST
13869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13870 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13871 do
13872   IFS=$as_save_IFS
13873   test -z "$as_dir" && as_dir=.
13874     for ac_prog in fgrep; do
13875     for ac_exec_ext in '' $ac_executable_extensions; do
13876       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13877       as_fn_executable_p "$ac_path_FGREP" || continue
13878 # Check for GNU ac_path_FGREP and select it if it is found.
13879   # Check for GNU $ac_path_FGREP
13880 case `"$ac_path_FGREP" --version 2>&1` in
13881 *GNU*)
13882   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13883 *)
13884   ac_count=0
13885   $as_echo_n 0123456789 >"conftest.in"
13886   while :
13887   do
13888     cat "conftest.in" "conftest.in" >"conftest.tmp"
13889     mv "conftest.tmp" "conftest.in"
13890     cp "conftest.in" "conftest.nl"
13891     $as_echo 'FGREP' >> "conftest.nl"
13892     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13893     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13894     as_fn_arith $ac_count + 1 && ac_count=$as_val
13895     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13896       # Best one so far, save it but keep looking for a better one
13897       ac_cv_path_FGREP="$ac_path_FGREP"
13898       ac_path_FGREP_max=$ac_count
13899     fi
13900     # 10*(2^10) chars as input seems more than enough
13901     test $ac_count -gt 10 && break
13902   done
13903   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13904 esac
13905 
13906       $ac_path_FGREP_found && break 3
13907     done
13908   done
13909   done
13910 IFS=$as_save_IFS
13911   if test -z "$ac_cv_path_FGREP"; then
13912     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13913   fi
13914 else
13915   ac_cv_path_FGREP=$FGREP
13916 fi
13917 
13918    fi
13919 fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13921 $as_echo "$ac_cv_path_FGREP" >&6; }
13922  FGREP="$ac_cv_path_FGREP"
13923 
13924 
13925   else
13926     # The variable is set, but is it from the command line or the environment?
13927 
13928     # Try to remove the string !FGREP! from our list.
13929     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13930     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13931       # If it failed, the variable was not from the command line. Ignore it,
13932       # but warn the user (except for BASH, which is always set by the calling BASH).
13933       if test "xFGREP" != xBASH; then
13934         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13935 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13936       fi
13937       # Try to locate tool using the code snippet
13938       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13939 $as_echo_n "checking for fgrep... " >&6; }
13940 if ${ac_cv_path_FGREP+:} false; then :
13941   $as_echo_n "(cached) " >&6
13942 else
13943   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13944    then ac_cv_path_FGREP="$GREP -F"
13945    else
13946      if test -z "$FGREP"; then
13947   ac_path_FGREP_found=false
13948   # Loop through the user's path and test for each of PROGNAME-LIST
13949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13951 do
13952   IFS=$as_save_IFS
13953   test -z "$as_dir" && as_dir=.
13954     for ac_prog in fgrep; do
13955     for ac_exec_ext in '' $ac_executable_extensions; do
13956       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13957       as_fn_executable_p "$ac_path_FGREP" || continue
13958 # Check for GNU ac_path_FGREP and select it if it is found.
13959   # Check for GNU $ac_path_FGREP
13960 case `"$ac_path_FGREP" --version 2>&1` in
13961 *GNU*)
13962   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13963 *)
13964   ac_count=0
13965   $as_echo_n 0123456789 >"conftest.in"
13966   while :
13967   do
13968     cat "conftest.in" "conftest.in" >"conftest.tmp"
13969     mv "conftest.tmp" "conftest.in"
13970     cp "conftest.in" "conftest.nl"
13971     $as_echo 'FGREP' >> "conftest.nl"
13972     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13973     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13974     as_fn_arith $ac_count + 1 && ac_count=$as_val
13975     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13976       # Best one so far, save it but keep looking for a better one
13977       ac_cv_path_FGREP="$ac_path_FGREP"
13978       ac_path_FGREP_max=$ac_count
13979     fi
13980     # 10*(2^10) chars as input seems more than enough
13981     test $ac_count -gt 10 && break
13982   done
13983   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13984 esac
13985 
13986       $ac_path_FGREP_found && break 3
13987     done
13988   done
13989   done
13990 IFS=$as_save_IFS
13991   if test -z "$ac_cv_path_FGREP"; then
13992     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13993   fi
13994 else
13995   ac_cv_path_FGREP=$FGREP
13996 fi
13997 
13998    fi
13999 fi
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14001 $as_echo "$ac_cv_path_FGREP" >&6; }
14002  FGREP="$ac_cv_path_FGREP"
14003 
14004 
14005     else
14006       # If it succeeded, then it was overridden by the user. We will use it
14007       # for the tool.
14008 
14009       # First remove it from the list of overridden variables, so we can test
14010       # for unknown variables in the end.
14011       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14012 
14013       # Check if we try to supply an empty value
14014       if test "x$FGREP" = x; then
14015         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
14016 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
14017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14018 $as_echo_n "checking for FGREP... " >&6; }
14019         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14020 $as_echo "disabled" >&6; }
14021       else
14022         # Check if the provided tool contains a complete path.
14023         tool_specified="$FGREP"
14024         tool_basename="${tool_specified##*/}"
14025         if test "x$tool_basename" = "x$tool_specified"; then
14026           # A command without a complete path is provided, search $PATH.
14027           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
14028 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
14029           # Extract the first word of "$tool_basename", so it can be a program name with args.
14030 set dummy $tool_basename; ac_word=$2
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14032 $as_echo_n "checking for $ac_word... " >&6; }
14033 if ${ac_cv_path_FGREP+:} false; then :
14034   $as_echo_n "(cached) " >&6
14035 else
14036   case $FGREP in
14037   [\\/]* | ?:[\\/]*)
14038   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
14039   ;;
14040   *)
14041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14042 for as_dir in $PATH
14043 do
14044   IFS=$as_save_IFS
14045   test -z "$as_dir" && as_dir=.
14046     for ac_exec_ext in '' $ac_executable_extensions; do
14047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14048     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
14049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14050     break 2
14051   fi
14052 done
14053   done
14054 IFS=$as_save_IFS
14055 
14056   ;;
14057 esac
14058 fi
14059 FGREP=$ac_cv_path_FGREP
14060 if test -n "$FGREP"; then
14061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14062 $as_echo "$FGREP" >&6; }
14063 else
14064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065 $as_echo "no" >&6; }
14066 fi
14067 
14068 
14069           if test "x$FGREP" = x; then
14070             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14071           fi
14072         else
14073           # Otherwise we believe it is a complete path. Use it as it is.
14074           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14075 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14076           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14077 $as_echo_n "checking for FGREP... " >&6; }
14078           if test ! -x "$tool_specified"; then
14079             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14080 $as_echo "not found" >&6; }
14081             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14082           fi
14083           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14084 $as_echo "$tool_specified" >&6; }
14085         fi
14086       fi
14087     fi
14088 
14089   fi
14090 
14091 
14092   if test "x$FGREP" = x; then
14093     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14094   fi
14095 
14096 
14097 
14098 
14099   # Publish this variable in the help.
14100 
14101 
14102   if [ -z "${SED+x}" ]; then
14103     # The variable is not set by user, try to locate tool using the code snippet
14104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14105 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14106 if ${ac_cv_path_SED+:} false; then :
14107   $as_echo_n "(cached) " >&6
14108 else
14109             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14110      for ac_i in 1 2 3 4 5 6 7; do
14111        ac_script="$ac_script$as_nl$ac_script"
14112      done
14113      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14114      { ac_script=; unset ac_script;}
14115      if test -z "$SED"; then
14116   ac_path_SED_found=false
14117   # Loop through the user's path and test for each of PROGNAME-LIST
14118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14119 for as_dir in $PATH
14120 do
14121   IFS=$as_save_IFS
14122   test -z "$as_dir" && as_dir=.
14123     for ac_prog in sed gsed; do
14124     for ac_exec_ext in '' $ac_executable_extensions; do
14125       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14126       as_fn_executable_p "$ac_path_SED" || continue
14127 # Check for GNU ac_path_SED and select it if it is found.
14128   # Check for GNU $ac_path_SED
14129 case `"$ac_path_SED" --version 2>&1` in
14130 *GNU*)
14131   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14132 *)
14133   ac_count=0
14134   $as_echo_n 0123456789 >"conftest.in"
14135   while :
14136   do
14137     cat "conftest.in" "conftest.in" >"conftest.tmp"
14138     mv "conftest.tmp" "conftest.in"
14139     cp "conftest.in" "conftest.nl"
14140     $as_echo '' >> "conftest.nl"
14141     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14142     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14143     as_fn_arith $ac_count + 1 && ac_count=$as_val
14144     if test $ac_count -gt ${ac_path_SED_max-0}; then
14145       # Best one so far, save it but keep looking for a better one
14146       ac_cv_path_SED="$ac_path_SED"
14147       ac_path_SED_max=$ac_count
14148     fi
14149     # 10*(2^10) chars as input seems more than enough
14150     test $ac_count -gt 10 && break
14151   done
14152   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14153 esac
14154 
14155       $ac_path_SED_found && break 3
14156     done
14157   done
14158   done
14159 IFS=$as_save_IFS
14160   if test -z "$ac_cv_path_SED"; then
14161     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14162   fi
14163 else
14164   ac_cv_path_SED=$SED
14165 fi
14166 
14167 fi
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14169 $as_echo "$ac_cv_path_SED" >&6; }
14170  SED="$ac_cv_path_SED"
14171   rm -f conftest.sed
14172 
14173   else
14174     # The variable is set, but is it from the command line or the environment?
14175 
14176     # Try to remove the string !SED! from our list.
14177     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14178     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14179       # If it failed, the variable was not from the command line. Ignore it,
14180       # but warn the user (except for BASH, which is always set by the calling BASH).
14181       if test "xSED" != xBASH; then
14182         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14183 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14184       fi
14185       # Try to locate tool using the code snippet
14186       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14187 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14188 if ${ac_cv_path_SED+:} false; then :
14189   $as_echo_n "(cached) " >&6
14190 else
14191             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14192      for ac_i in 1 2 3 4 5 6 7; do
14193        ac_script="$ac_script$as_nl$ac_script"
14194      done
14195      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14196      { ac_script=; unset ac_script;}
14197      if test -z "$SED"; then
14198   ac_path_SED_found=false
14199   # Loop through the user's path and test for each of PROGNAME-LIST
14200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14201 for as_dir in $PATH
14202 do
14203   IFS=$as_save_IFS
14204   test -z "$as_dir" && as_dir=.
14205     for ac_prog in sed gsed; do
14206     for ac_exec_ext in '' $ac_executable_extensions; do
14207       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14208       as_fn_executable_p "$ac_path_SED" || continue
14209 # Check for GNU ac_path_SED and select it if it is found.
14210   # Check for GNU $ac_path_SED
14211 case `"$ac_path_SED" --version 2>&1` in
14212 *GNU*)
14213   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14214 *)
14215   ac_count=0
14216   $as_echo_n 0123456789 >"conftest.in"
14217   while :
14218   do
14219     cat "conftest.in" "conftest.in" >"conftest.tmp"
14220     mv "conftest.tmp" "conftest.in"
14221     cp "conftest.in" "conftest.nl"
14222     $as_echo '' >> "conftest.nl"
14223     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14224     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14225     as_fn_arith $ac_count + 1 && ac_count=$as_val
14226     if test $ac_count -gt ${ac_path_SED_max-0}; then
14227       # Best one so far, save it but keep looking for a better one
14228       ac_cv_path_SED="$ac_path_SED"
14229       ac_path_SED_max=$ac_count
14230     fi
14231     # 10*(2^10) chars as input seems more than enough
14232     test $ac_count -gt 10 && break
14233   done
14234   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14235 esac
14236 
14237       $ac_path_SED_found && break 3
14238     done
14239   done
14240   done
14241 IFS=$as_save_IFS
14242   if test -z "$ac_cv_path_SED"; then
14243     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14244   fi
14245 else
14246   ac_cv_path_SED=$SED
14247 fi
14248 
14249 fi
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14251 $as_echo "$ac_cv_path_SED" >&6; }
14252  SED="$ac_cv_path_SED"
14253   rm -f conftest.sed
14254 
14255     else
14256       # If it succeeded, then it was overridden by the user. We will use it
14257       # for the tool.
14258 
14259       # First remove it from the list of overridden variables, so we can test
14260       # for unknown variables in the end.
14261       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14262 
14263       # Check if we try to supply an empty value
14264       if test "x$SED" = x; then
14265         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14266 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14268 $as_echo_n "checking for SED... " >&6; }
14269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14270 $as_echo "disabled" >&6; }
14271       else
14272         # Check if the provided tool contains a complete path.
14273         tool_specified="$SED"
14274         tool_basename="${tool_specified##*/}"
14275         if test "x$tool_basename" = "x$tool_specified"; then
14276           # A command without a complete path is provided, search $PATH.
14277           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14278 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14279           # Extract the first word of "$tool_basename", so it can be a program name with args.
14280 set dummy $tool_basename; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282 $as_echo_n "checking for $ac_word... " >&6; }
14283 if ${ac_cv_path_SED+:} false; then :
14284   $as_echo_n "(cached) " >&6
14285 else
14286   case $SED in
14287   [\\/]* | ?:[\\/]*)
14288   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14289   ;;
14290   *)
14291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292 for as_dir in $PATH
14293 do
14294   IFS=$as_save_IFS
14295   test -z "$as_dir" && as_dir=.
14296     for ac_exec_ext in '' $ac_executable_extensions; do
14297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14298     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14300     break 2
14301   fi
14302 done
14303   done
14304 IFS=$as_save_IFS
14305 
14306   ;;
14307 esac
14308 fi
14309 SED=$ac_cv_path_SED
14310 if test -n "$SED"; then
14311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14312 $as_echo "$SED" >&6; }
14313 else
14314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14316 fi
14317 
14318 
14319           if test "x$SED" = x; then
14320             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14321           fi
14322         else
14323           # Otherwise we believe it is a complete path. Use it as it is.
14324           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14325 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14326           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14327 $as_echo_n "checking for SED... " >&6; }
14328           if test ! -x "$tool_specified"; then
14329             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14330 $as_echo "not found" >&6; }
14331             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14332           fi
14333           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14334 $as_echo "$tool_specified" >&6; }
14335         fi
14336       fi
14337     fi
14338 
14339   fi
14340 
14341 
14342   if test "x$SED" = x; then
14343     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14344   fi
14345 
14346 
14347 
14348   # Always force rm.
14349   RM="$RM -f"
14350 
14351   # pwd behaves differently on various platforms and some don't support the -L flag.
14352   # Always use the bash builtin pwd to get uniform behavior.
14353   THEPWDCMD=pwd
14354 
14355   # These are not required on all platforms
14356 
14357 
14358   # Publish this variable in the help.
14359 
14360 
14361   if [ -z "${CYGPATH+x}" ]; then
14362     # The variable is not set by user, try to locate tool using the code snippet
14363     for ac_prog in cygpath
14364 do
14365   # Extract the first word of "$ac_prog", so it can be a program name with args.
14366 set dummy $ac_prog; ac_word=$2
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14368 $as_echo_n "checking for $ac_word... " >&6; }
14369 if ${ac_cv_path_CYGPATH+:} false; then :
14370   $as_echo_n "(cached) " >&6
14371 else
14372   case $CYGPATH in
14373   [\\/]* | ?:[\\/]*)
14374   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14375   ;;
14376   *)
14377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378 for as_dir in $PATH
14379 do
14380   IFS=$as_save_IFS
14381   test -z "$as_dir" && as_dir=.
14382     for ac_exec_ext in '' $ac_executable_extensions; do
14383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14384     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14386     break 2
14387   fi
14388 done
14389   done
14390 IFS=$as_save_IFS
14391 
14392   ;;
14393 esac
14394 fi
14395 CYGPATH=$ac_cv_path_CYGPATH
14396 if test -n "$CYGPATH"; then
14397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14398 $as_echo "$CYGPATH" >&6; }
14399 else
14400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401 $as_echo "no" >&6; }
14402 fi
14403 
14404 
14405   test -n "$CYGPATH" && break
14406 done
14407 
14408   else
14409     # The variable is set, but is it from the command line or the environment?
14410 
14411     # Try to remove the string !CYGPATH! from our list.
14412     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14413     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14414       # If it failed, the variable was not from the command line. Ignore it,
14415       # but warn the user (except for BASH, which is always set by the calling BASH).
14416       if test "xCYGPATH" != xBASH; then
14417         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14418 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14419       fi
14420       # Try to locate tool using the code snippet
14421       for ac_prog in cygpath
14422 do
14423   # Extract the first word of "$ac_prog", so it can be a program name with args.
14424 set dummy $ac_prog; ac_word=$2
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14426 $as_echo_n "checking for $ac_word... " >&6; }
14427 if ${ac_cv_path_CYGPATH+:} false; then :
14428   $as_echo_n "(cached) " >&6
14429 else
14430   case $CYGPATH in
14431   [\\/]* | ?:[\\/]*)
14432   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14433   ;;
14434   *)
14435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14436 for as_dir in $PATH
14437 do
14438   IFS=$as_save_IFS
14439   test -z "$as_dir" && as_dir=.
14440     for ac_exec_ext in '' $ac_executable_extensions; do
14441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14442     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14444     break 2
14445   fi
14446 done
14447   done
14448 IFS=$as_save_IFS
14449 
14450   ;;
14451 esac
14452 fi
14453 CYGPATH=$ac_cv_path_CYGPATH
14454 if test -n "$CYGPATH"; then
14455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14456 $as_echo "$CYGPATH" >&6; }
14457 else
14458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14459 $as_echo "no" >&6; }
14460 fi
14461 
14462 
14463   test -n "$CYGPATH" && break
14464 done
14465 
14466     else
14467       # If it succeeded, then it was overridden by the user. We will use it
14468       # for the tool.
14469 
14470       # First remove it from the list of overridden variables, so we can test
14471       # for unknown variables in the end.
14472       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14473 
14474       # Check if we try to supply an empty value
14475       if test "x$CYGPATH" = x; then
14476         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14477 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14478         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14479 $as_echo_n "checking for CYGPATH... " >&6; }
14480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14481 $as_echo "disabled" >&6; }
14482       else
14483         # Check if the provided tool contains a complete path.
14484         tool_specified="$CYGPATH"
14485         tool_basename="${tool_specified##*/}"
14486         if test "x$tool_basename" = "x$tool_specified"; then
14487           # A command without a complete path is provided, search $PATH.
14488           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14489 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14490           # Extract the first word of "$tool_basename", so it can be a program name with args.
14491 set dummy $tool_basename; ac_word=$2
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14493 $as_echo_n "checking for $ac_word... " >&6; }
14494 if ${ac_cv_path_CYGPATH+:} false; then :
14495   $as_echo_n "(cached) " >&6
14496 else
14497   case $CYGPATH in
14498   [\\/]* | ?:[\\/]*)
14499   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14500   ;;
14501   *)
14502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14503 for as_dir in $PATH
14504 do
14505   IFS=$as_save_IFS
14506   test -z "$as_dir" && as_dir=.
14507     for ac_exec_ext in '' $ac_executable_extensions; do
14508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14509     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14511     break 2
14512   fi
14513 done
14514   done
14515 IFS=$as_save_IFS
14516 
14517   ;;
14518 esac
14519 fi
14520 CYGPATH=$ac_cv_path_CYGPATH
14521 if test -n "$CYGPATH"; then
14522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14523 $as_echo "$CYGPATH" >&6; }
14524 else
14525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14526 $as_echo "no" >&6; }
14527 fi
14528 
14529 
14530           if test "x$CYGPATH" = x; then
14531             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14532           fi
14533         else
14534           # Otherwise we believe it is a complete path. Use it as it is.
14535           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14536 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14537           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14538 $as_echo_n "checking for CYGPATH... " >&6; }
14539           if test ! -x "$tool_specified"; then
14540             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14541 $as_echo "not found" >&6; }
14542             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14543           fi
14544           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14545 $as_echo "$tool_specified" >&6; }
14546         fi
14547       fi
14548     fi
14549 
14550   fi
14551 
14552 
14553 
14554 
14555   # Publish this variable in the help.
14556 
14557 
14558   if [ -z "${READLINK+x}" ]; then
14559     # The variable is not set by user, try to locate tool using the code snippet
14560     for ac_prog in greadlink readlink
14561 do
14562   # Extract the first word of "$ac_prog", so it can be a program name with args.
14563 set dummy $ac_prog; ac_word=$2
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14565 $as_echo_n "checking for $ac_word... " >&6; }
14566 if ${ac_cv_path_READLINK+:} false; then :
14567   $as_echo_n "(cached) " >&6
14568 else
14569   case $READLINK in
14570   [\\/]* | ?:[\\/]*)
14571   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14572   ;;
14573   *)
14574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14575 for as_dir in $PATH
14576 do
14577   IFS=$as_save_IFS
14578   test -z "$as_dir" && as_dir=.
14579     for ac_exec_ext in '' $ac_executable_extensions; do
14580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14581     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14583     break 2
14584   fi
14585 done
14586   done
14587 IFS=$as_save_IFS
14588 
14589   ;;
14590 esac
14591 fi
14592 READLINK=$ac_cv_path_READLINK
14593 if test -n "$READLINK"; then
14594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14595 $as_echo "$READLINK" >&6; }
14596 else
14597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598 $as_echo "no" >&6; }
14599 fi
14600 
14601 
14602   test -n "$READLINK" && break
14603 done
14604 
14605   else
14606     # The variable is set, but is it from the command line or the environment?
14607 
14608     # Try to remove the string !READLINK! from our list.
14609     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14610     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14611       # If it failed, the variable was not from the command line. Ignore it,
14612       # but warn the user (except for BASH, which is always set by the calling BASH).
14613       if test "xREADLINK" != xBASH; then
14614         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14615 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14616       fi
14617       # Try to locate tool using the code snippet
14618       for ac_prog in greadlink readlink
14619 do
14620   # Extract the first word of "$ac_prog", so it can be a program name with args.
14621 set dummy $ac_prog; ac_word=$2
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14623 $as_echo_n "checking for $ac_word... " >&6; }
14624 if ${ac_cv_path_READLINK+:} false; then :
14625   $as_echo_n "(cached) " >&6
14626 else
14627   case $READLINK in
14628   [\\/]* | ?:[\\/]*)
14629   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14630   ;;
14631   *)
14632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14633 for as_dir in $PATH
14634 do
14635   IFS=$as_save_IFS
14636   test -z "$as_dir" && as_dir=.
14637     for ac_exec_ext in '' $ac_executable_extensions; do
14638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14639     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14641     break 2
14642   fi
14643 done
14644   done
14645 IFS=$as_save_IFS
14646 
14647   ;;
14648 esac
14649 fi
14650 READLINK=$ac_cv_path_READLINK
14651 if test -n "$READLINK"; then
14652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14653 $as_echo "$READLINK" >&6; }
14654 else
14655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14656 $as_echo "no" >&6; }
14657 fi
14658 
14659 
14660   test -n "$READLINK" && break
14661 done
14662 
14663     else
14664       # If it succeeded, then it was overridden by the user. We will use it
14665       # for the tool.
14666 
14667       # First remove it from the list of overridden variables, so we can test
14668       # for unknown variables in the end.
14669       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14670 
14671       # Check if we try to supply an empty value
14672       if test "x$READLINK" = x; then
14673         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14674 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14675         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14676 $as_echo_n "checking for READLINK... " >&6; }
14677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14678 $as_echo "disabled" >&6; }
14679       else
14680         # Check if the provided tool contains a complete path.
14681         tool_specified="$READLINK"
14682         tool_basename="${tool_specified##*/}"
14683         if test "x$tool_basename" = "x$tool_specified"; then
14684           # A command without a complete path is provided, search $PATH.
14685           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14686 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14687           # Extract the first word of "$tool_basename", so it can be a program name with args.
14688 set dummy $tool_basename; ac_word=$2
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14690 $as_echo_n "checking for $ac_word... " >&6; }
14691 if ${ac_cv_path_READLINK+:} false; then :
14692   $as_echo_n "(cached) " >&6
14693 else
14694   case $READLINK in
14695   [\\/]* | ?:[\\/]*)
14696   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14697   ;;
14698   *)
14699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14700 for as_dir in $PATH
14701 do
14702   IFS=$as_save_IFS
14703   test -z "$as_dir" && as_dir=.
14704     for ac_exec_ext in '' $ac_executable_extensions; do
14705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14706     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14708     break 2
14709   fi
14710 done
14711   done
14712 IFS=$as_save_IFS
14713 
14714   ;;
14715 esac
14716 fi
14717 READLINK=$ac_cv_path_READLINK
14718 if test -n "$READLINK"; then
14719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14720 $as_echo "$READLINK" >&6; }
14721 else
14722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14723 $as_echo "no" >&6; }
14724 fi
14725 
14726 
14727           if test "x$READLINK" = x; then
14728             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14729           fi
14730         else
14731           # Otherwise we believe it is a complete path. Use it as it is.
14732           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14733 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14734           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14735 $as_echo_n "checking for READLINK... " >&6; }
14736           if test ! -x "$tool_specified"; then
14737             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14738 $as_echo "not found" >&6; }
14739             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14740           fi
14741           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14742 $as_echo "$tool_specified" >&6; }
14743         fi
14744       fi
14745     fi
14746 
14747   fi
14748 
14749 
14750 
14751 
14752   # Publish this variable in the help.
14753 
14754 
14755   if [ -z "${DF+x}" ]; then
14756     # The variable is not set by user, try to locate tool using the code snippet
14757     for ac_prog in df
14758 do
14759   # Extract the first word of "$ac_prog", so it can be a program name with args.
14760 set dummy $ac_prog; ac_word=$2
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14762 $as_echo_n "checking for $ac_word... " >&6; }
14763 if ${ac_cv_path_DF+:} false; then :
14764   $as_echo_n "(cached) " >&6
14765 else
14766   case $DF in
14767   [\\/]* | ?:[\\/]*)
14768   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14769   ;;
14770   *)
14771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14772 for as_dir in $PATH
14773 do
14774   IFS=$as_save_IFS
14775   test -z "$as_dir" && as_dir=.
14776     for ac_exec_ext in '' $ac_executable_extensions; do
14777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14778     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14780     break 2
14781   fi
14782 done
14783   done
14784 IFS=$as_save_IFS
14785 
14786   ;;
14787 esac
14788 fi
14789 DF=$ac_cv_path_DF
14790 if test -n "$DF"; then
14791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14792 $as_echo "$DF" >&6; }
14793 else
14794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14795 $as_echo "no" >&6; }
14796 fi
14797 
14798 
14799   test -n "$DF" && break
14800 done
14801 
14802   else
14803     # The variable is set, but is it from the command line or the environment?
14804 
14805     # Try to remove the string !DF! from our list.
14806     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14807     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14808       # If it failed, the variable was not from the command line. Ignore it,
14809       # but warn the user (except for BASH, which is always set by the calling BASH).
14810       if test "xDF" != xBASH; then
14811         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14812 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14813       fi
14814       # Try to locate tool using the code snippet
14815       for ac_prog in df
14816 do
14817   # Extract the first word of "$ac_prog", so it can be a program name with args.
14818 set dummy $ac_prog; ac_word=$2
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14820 $as_echo_n "checking for $ac_word... " >&6; }
14821 if ${ac_cv_path_DF+:} false; then :
14822   $as_echo_n "(cached) " >&6
14823 else
14824   case $DF in
14825   [\\/]* | ?:[\\/]*)
14826   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14827   ;;
14828   *)
14829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14830 for as_dir in $PATH
14831 do
14832   IFS=$as_save_IFS
14833   test -z "$as_dir" && as_dir=.
14834     for ac_exec_ext in '' $ac_executable_extensions; do
14835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14836     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14838     break 2
14839   fi
14840 done
14841   done
14842 IFS=$as_save_IFS
14843 
14844   ;;
14845 esac
14846 fi
14847 DF=$ac_cv_path_DF
14848 if test -n "$DF"; then
14849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14850 $as_echo "$DF" >&6; }
14851 else
14852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14853 $as_echo "no" >&6; }
14854 fi
14855 
14856 
14857   test -n "$DF" && break
14858 done
14859 
14860     else
14861       # If it succeeded, then it was overridden by the user. We will use it
14862       # for the tool.
14863 
14864       # First remove it from the list of overridden variables, so we can test
14865       # for unknown variables in the end.
14866       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14867 
14868       # Check if we try to supply an empty value
14869       if test "x$DF" = x; then
14870         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14871 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14873 $as_echo_n "checking for DF... " >&6; }
14874         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14875 $as_echo "disabled" >&6; }
14876       else
14877         # Check if the provided tool contains a complete path.
14878         tool_specified="$DF"
14879         tool_basename="${tool_specified##*/}"
14880         if test "x$tool_basename" = "x$tool_specified"; then
14881           # A command without a complete path is provided, search $PATH.
14882           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14883 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14884           # Extract the first word of "$tool_basename", so it can be a program name with args.
14885 set dummy $tool_basename; ac_word=$2
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14887 $as_echo_n "checking for $ac_word... " >&6; }
14888 if ${ac_cv_path_DF+:} false; then :
14889   $as_echo_n "(cached) " >&6
14890 else
14891   case $DF in
14892   [\\/]* | ?:[\\/]*)
14893   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14894   ;;
14895   *)
14896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14897 for as_dir in $PATH
14898 do
14899   IFS=$as_save_IFS
14900   test -z "$as_dir" && as_dir=.
14901     for ac_exec_ext in '' $ac_executable_extensions; do
14902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14903     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14905     break 2
14906   fi
14907 done
14908   done
14909 IFS=$as_save_IFS
14910 
14911   ;;
14912 esac
14913 fi
14914 DF=$ac_cv_path_DF
14915 if test -n "$DF"; then
14916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14917 $as_echo "$DF" >&6; }
14918 else
14919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14920 $as_echo "no" >&6; }
14921 fi
14922 
14923 
14924           if test "x$DF" = x; then
14925             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14926           fi
14927         else
14928           # Otherwise we believe it is a complete path. Use it as it is.
14929           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14930 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14931           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14932 $as_echo_n "checking for DF... " >&6; }
14933           if test ! -x "$tool_specified"; then
14934             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14935 $as_echo "not found" >&6; }
14936             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14937           fi
14938           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14939 $as_echo "$tool_specified" >&6; }
14940         fi
14941       fi
14942     fi
14943 
14944   fi
14945 
14946 
14947 
14948 
14949   # Publish this variable in the help.
14950 
14951 
14952   if [ -z "${CPIO+x}" ]; then
14953     # The variable is not set by user, try to locate tool using the code snippet
14954     for ac_prog in cpio bsdcpio
14955 do
14956   # Extract the first word of "$ac_prog", so it can be a program name with args.
14957 set dummy $ac_prog; ac_word=$2
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14959 $as_echo_n "checking for $ac_word... " >&6; }
14960 if ${ac_cv_path_CPIO+:} false; then :
14961   $as_echo_n "(cached) " >&6
14962 else
14963   case $CPIO in
14964   [\\/]* | ?:[\\/]*)
14965   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14966   ;;
14967   *)
14968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14969 for as_dir in $PATH
14970 do
14971   IFS=$as_save_IFS
14972   test -z "$as_dir" && as_dir=.
14973     for ac_exec_ext in '' $ac_executable_extensions; do
14974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14975     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14977     break 2
14978   fi
14979 done
14980   done
14981 IFS=$as_save_IFS
14982 
14983   ;;
14984 esac
14985 fi
14986 CPIO=$ac_cv_path_CPIO
14987 if test -n "$CPIO"; then
14988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14989 $as_echo "$CPIO" >&6; }
14990 else
14991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14992 $as_echo "no" >&6; }
14993 fi
14994 
14995 
14996   test -n "$CPIO" && break
14997 done
14998 
14999   else
15000     # The variable is set, but is it from the command line or the environment?
15001 
15002     # Try to remove the string !CPIO! from our list.
15003     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
15004     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15005       # If it failed, the variable was not from the command line. Ignore it,
15006       # but warn the user (except for BASH, which is always set by the calling BASH).
15007       if test "xCPIO" != xBASH; then
15008         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
15009 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
15010       fi
15011       # Try to locate tool using the code snippet
15012       for ac_prog in cpio bsdcpio
15013 do
15014   # Extract the first word of "$ac_prog", so it can be a program name with args.
15015 set dummy $ac_prog; ac_word=$2
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15017 $as_echo_n "checking for $ac_word... " >&6; }
15018 if ${ac_cv_path_CPIO+:} false; then :
15019   $as_echo_n "(cached) " >&6
15020 else
15021   case $CPIO in
15022   [\\/]* | ?:[\\/]*)
15023   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15024   ;;
15025   *)
15026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15027 for as_dir in $PATH
15028 do
15029   IFS=$as_save_IFS
15030   test -z "$as_dir" && as_dir=.
15031     for ac_exec_ext in '' $ac_executable_extensions; do
15032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15033     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15035     break 2
15036   fi
15037 done
15038   done
15039 IFS=$as_save_IFS
15040 
15041   ;;
15042 esac
15043 fi
15044 CPIO=$ac_cv_path_CPIO
15045 if test -n "$CPIO"; then
15046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15047 $as_echo "$CPIO" >&6; }
15048 else
15049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15050 $as_echo "no" >&6; }
15051 fi
15052 
15053 
15054   test -n "$CPIO" && break
15055 done
15056 
15057     else
15058       # If it succeeded, then it was overridden by the user. We will use it
15059       # for the tool.
15060 
15061       # First remove it from the list of overridden variables, so we can test
15062       # for unknown variables in the end.
15063       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15064 
15065       # Check if we try to supply an empty value
15066       if test "x$CPIO" = x; then
15067         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15068 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15070 $as_echo_n "checking for CPIO... " >&6; }
15071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15072 $as_echo "disabled" >&6; }
15073       else
15074         # Check if the provided tool contains a complete path.
15075         tool_specified="$CPIO"
15076         tool_basename="${tool_specified##*/}"
15077         if test "x$tool_basename" = "x$tool_specified"; then
15078           # A command without a complete path is provided, search $PATH.
15079           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15080 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15081           # Extract the first word of "$tool_basename", so it can be a program name with args.
15082 set dummy $tool_basename; ac_word=$2
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15084 $as_echo_n "checking for $ac_word... " >&6; }
15085 if ${ac_cv_path_CPIO+:} false; then :
15086   $as_echo_n "(cached) " >&6
15087 else
15088   case $CPIO in
15089   [\\/]* | ?:[\\/]*)
15090   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15091   ;;
15092   *)
15093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15094 for as_dir in $PATH
15095 do
15096   IFS=$as_save_IFS
15097   test -z "$as_dir" && as_dir=.
15098     for ac_exec_ext in '' $ac_executable_extensions; do
15099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15100     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15102     break 2
15103   fi
15104 done
15105   done
15106 IFS=$as_save_IFS
15107 
15108   ;;
15109 esac
15110 fi
15111 CPIO=$ac_cv_path_CPIO
15112 if test -n "$CPIO"; then
15113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15114 $as_echo "$CPIO" >&6; }
15115 else
15116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15117 $as_echo "no" >&6; }
15118 fi
15119 
15120 
15121           if test "x$CPIO" = x; then
15122             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15123           fi
15124         else
15125           # Otherwise we believe it is a complete path. Use it as it is.
15126           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15127 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15128           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15129 $as_echo_n "checking for CPIO... " >&6; }
15130           if test ! -x "$tool_specified"; then
15131             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15132 $as_echo "not found" >&6; }
15133             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15134           fi
15135           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15136 $as_echo "$tool_specified" >&6; }
15137         fi
15138       fi
15139     fi
15140 
15141   fi
15142 
15143 
15144 
15145 
15146   # Publish this variable in the help.
15147 
15148 
15149   if [ -z "${NICE+x}" ]; then
15150     # The variable is not set by user, try to locate tool using the code snippet
15151     for ac_prog in nice
15152 do
15153   # Extract the first word of "$ac_prog", so it can be a program name with args.
15154 set dummy $ac_prog; ac_word=$2
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15156 $as_echo_n "checking for $ac_word... " >&6; }
15157 if ${ac_cv_path_NICE+:} false; then :
15158   $as_echo_n "(cached) " >&6
15159 else
15160   case $NICE in
15161   [\\/]* | ?:[\\/]*)
15162   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15163   ;;
15164   *)
15165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15166 for as_dir in $PATH
15167 do
15168   IFS=$as_save_IFS
15169   test -z "$as_dir" && as_dir=.
15170     for ac_exec_ext in '' $ac_executable_extensions; do
15171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15172     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15174     break 2
15175   fi
15176 done
15177   done
15178 IFS=$as_save_IFS
15179 
15180   ;;
15181 esac
15182 fi
15183 NICE=$ac_cv_path_NICE
15184 if test -n "$NICE"; then
15185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15186 $as_echo "$NICE" >&6; }
15187 else
15188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15189 $as_echo "no" >&6; }
15190 fi
15191 
15192 
15193   test -n "$NICE" && break
15194 done
15195 
15196   else
15197     # The variable is set, but is it from the command line or the environment?
15198 
15199     # Try to remove the string !NICE! from our list.
15200     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15201     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15202       # If it failed, the variable was not from the command line. Ignore it,
15203       # but warn the user (except for BASH, which is always set by the calling BASH).
15204       if test "xNICE" != xBASH; then
15205         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15206 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15207       fi
15208       # Try to locate tool using the code snippet
15209       for ac_prog in nice
15210 do
15211   # Extract the first word of "$ac_prog", so it can be a program name with args.
15212 set dummy $ac_prog; ac_word=$2
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15214 $as_echo_n "checking for $ac_word... " >&6; }
15215 if ${ac_cv_path_NICE+:} false; then :
15216   $as_echo_n "(cached) " >&6
15217 else
15218   case $NICE in
15219   [\\/]* | ?:[\\/]*)
15220   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15221   ;;
15222   *)
15223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15224 for as_dir in $PATH
15225 do
15226   IFS=$as_save_IFS
15227   test -z "$as_dir" && as_dir=.
15228     for ac_exec_ext in '' $ac_executable_extensions; do
15229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15230     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15232     break 2
15233   fi
15234 done
15235   done
15236 IFS=$as_save_IFS
15237 
15238   ;;
15239 esac
15240 fi
15241 NICE=$ac_cv_path_NICE
15242 if test -n "$NICE"; then
15243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15244 $as_echo "$NICE" >&6; }
15245 else
15246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15247 $as_echo "no" >&6; }
15248 fi
15249 
15250 
15251   test -n "$NICE" && break
15252 done
15253 
15254     else
15255       # If it succeeded, then it was overridden by the user. We will use it
15256       # for the tool.
15257 
15258       # First remove it from the list of overridden variables, so we can test
15259       # for unknown variables in the end.
15260       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15261 
15262       # Check if we try to supply an empty value
15263       if test "x$NICE" = x; then
15264         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15265 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15266         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15267 $as_echo_n "checking for NICE... " >&6; }
15268         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15269 $as_echo "disabled" >&6; }
15270       else
15271         # Check if the provided tool contains a complete path.
15272         tool_specified="$NICE"
15273         tool_basename="${tool_specified##*/}"
15274         if test "x$tool_basename" = "x$tool_specified"; then
15275           # A command without a complete path is provided, search $PATH.
15276           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15277 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15278           # Extract the first word of "$tool_basename", so it can be a program name with args.
15279 set dummy $tool_basename; ac_word=$2
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15281 $as_echo_n "checking for $ac_word... " >&6; }
15282 if ${ac_cv_path_NICE+:} false; then :
15283   $as_echo_n "(cached) " >&6
15284 else
15285   case $NICE in
15286   [\\/]* | ?:[\\/]*)
15287   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15288   ;;
15289   *)
15290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15291 for as_dir in $PATH
15292 do
15293   IFS=$as_save_IFS
15294   test -z "$as_dir" && as_dir=.
15295     for ac_exec_ext in '' $ac_executable_extensions; do
15296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15297     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15299     break 2
15300   fi
15301 done
15302   done
15303 IFS=$as_save_IFS
15304 
15305   ;;
15306 esac
15307 fi
15308 NICE=$ac_cv_path_NICE
15309 if test -n "$NICE"; then
15310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15311 $as_echo "$NICE" >&6; }
15312 else
15313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15314 $as_echo "no" >&6; }
15315 fi
15316 
15317 
15318           if test "x$NICE" = x; then
15319             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15320           fi
15321         else
15322           # Otherwise we believe it is a complete path. Use it as it is.
15323           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15324 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15325           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15326 $as_echo_n "checking for NICE... " >&6; }
15327           if test ! -x "$tool_specified"; then
15328             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15329 $as_echo "not found" >&6; }
15330             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15331           fi
15332           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15333 $as_echo "$tool_specified" >&6; }
15334         fi
15335       fi
15336     fi
15337 
15338   fi
15339 
15340 
15341 
15342 
15343 # Now we can determine OpenJDK build and target platforms. This is required to
15344 # have early on.
15345 # Make sure we can run config.sub.
15346 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15347   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15348 
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15350 $as_echo_n "checking build system type... " >&6; }
15351 if ${ac_cv_build+:} false; then :
15352   $as_echo_n "(cached) " >&6
15353 else
15354   ac_build_alias=$build_alias
15355 test "x$ac_build_alias" = x &&
15356   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15357 test "x$ac_build_alias" = x &&
15358   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15359 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15360   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15361 
15362 fi
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15364 $as_echo "$ac_cv_build" >&6; }
15365 case $ac_cv_build in
15366 *-*-*) ;;
15367 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15368 esac
15369 build=$ac_cv_build
15370 ac_save_IFS=$IFS; IFS='-'
15371 set x $ac_cv_build
15372 shift
15373 build_cpu=$1
15374 build_vendor=$2
15375 shift; shift
15376 # Remember, the first character of IFS is used to create $*,
15377 # except with old shells:
15378 build_os=$*
15379 IFS=$ac_save_IFS
15380 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15381 
15382 
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15384 $as_echo_n "checking host system type... " >&6; }
15385 if ${ac_cv_host+:} false; then :
15386   $as_echo_n "(cached) " >&6
15387 else
15388   if test "x$host_alias" = x; then
15389   ac_cv_host=$ac_cv_build
15390 else
15391   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15392     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15393 fi
15394 
15395 fi
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15397 $as_echo "$ac_cv_host" >&6; }
15398 case $ac_cv_host in
15399 *-*-*) ;;
15400 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15401 esac
15402 host=$ac_cv_host
15403 ac_save_IFS=$IFS; IFS='-'
15404 set x $ac_cv_host
15405 shift
15406 host_cpu=$1
15407 host_vendor=$2
15408 shift; shift
15409 # Remember, the first character of IFS is used to create $*,
15410 # except with old shells:
15411 host_os=$*
15412 IFS=$ac_save_IFS
15413 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15414 
15415 
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15417 $as_echo_n "checking target system type... " >&6; }
15418 if ${ac_cv_target+:} false; then :
15419   $as_echo_n "(cached) " >&6
15420 else
15421   if test "x$target_alias" = x; then
15422   ac_cv_target=$ac_cv_host
15423 else
15424   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15425     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15426 fi
15427 
15428 fi
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15430 $as_echo "$ac_cv_target" >&6; }
15431 case $ac_cv_target in
15432 *-*-*) ;;
15433 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15434 esac
15435 target=$ac_cv_target
15436 ac_save_IFS=$IFS; IFS='-'
15437 set x $ac_cv_target
15438 shift
15439 target_cpu=$1
15440 target_vendor=$2
15441 shift; shift
15442 # Remember, the first character of IFS is used to create $*,
15443 # except with old shells:
15444 target_os=$*
15445 IFS=$ac_save_IFS
15446 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15447 
15448 
15449 # The aliases save the names the user supplied, while $host etc.
15450 # will get canonicalized.
15451 test -n "$target_alias" &&
15452   test "$program_prefix$program_suffix$program_transform_name" = \
15453     NONENONEs,x,x, &&
15454   program_prefix=${target_alias}-
15455 
15456   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15457   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15458   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15459   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15460   # to use the configure naming style.
15461 
15462 
15463 
15464 
15465 
15466   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15467   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15468   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15469   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15470   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15471   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15472 
15473 
15474 
15475   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15476 
15477   case "$build_os" in
15478     *linux*)
15479       VAR_OS=linux
15480       VAR_OS_TYPE=unix
15481       ;;
15482     *solaris*)
15483       VAR_OS=solaris
15484       VAR_OS_TYPE=unix
15485       ;;
15486     *darwin*)
15487       VAR_OS=macosx
15488       VAR_OS_TYPE=unix
15489       ;;
15490     *bsd*)
15491       VAR_OS=bsd
15492       VAR_OS_TYPE=unix
15493       ;;
15494     *cygwin*)
15495       VAR_OS=windows
15496       VAR_OS_ENV=windows.cygwin
15497       ;;
15498     *mingw*)
15499       VAR_OS=windows
15500       VAR_OS_ENV=windows.msys
15501       ;;
15502     *aix*)
15503       VAR_OS=aix
15504       VAR_OS_TYPE=unix
15505       ;;
15506     *)
15507       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15508       ;;
15509   esac
15510 
15511 
15512   # First argument is the cpu name from the trip/quad
15513   case "$build_cpu" in
15514     x86_64)
15515       VAR_CPU=x86_64
15516       VAR_CPU_ARCH=x86
15517       VAR_CPU_BITS=64
15518       VAR_CPU_ENDIAN=little
15519       ;;
15520     i?86)
15521       VAR_CPU=x86
15522       VAR_CPU_ARCH=x86
15523       VAR_CPU_BITS=32
15524       VAR_CPU_ENDIAN=little
15525       ;;
15526     arm*)
15527       VAR_CPU=arm
15528       VAR_CPU_ARCH=arm
15529       VAR_CPU_BITS=32
15530       VAR_CPU_ENDIAN=little
15531       ;;
15532     aarch64)
15533       VAR_CPU=aarch64
15534       VAR_CPU_ARCH=aarch64
15535       VAR_CPU_BITS=64
15536       VAR_CPU_ENDIAN=little
15537       ;;
15538     powerpc)
15539       VAR_CPU=ppc
15540       VAR_CPU_ARCH=ppc
15541       VAR_CPU_BITS=32
15542       VAR_CPU_ENDIAN=big
15543       ;;
15544     powerpc64)
15545       VAR_CPU=ppc64
15546       VAR_CPU_ARCH=ppc
15547       VAR_CPU_BITS=64
15548       VAR_CPU_ENDIAN=big
15549       ;;
15550     powerpc64le)
15551       VAR_CPU=ppc64le
15552       VAR_CPU_ARCH=ppc
15553       VAR_CPU_BITS=64
15554       VAR_CPU_ENDIAN=little
15555       ;;
15556     s390)
15557       VAR_CPU=s390
15558       VAR_CPU_ARCH=s390
15559       VAR_CPU_BITS=32
15560       VAR_CPU_ENDIAN=big
15561       ;;
15562     s390x)
15563       VAR_CPU=s390x
15564       VAR_CPU_ARCH=s390
15565       VAR_CPU_BITS=64
15566       VAR_CPU_ENDIAN=big
15567       ;;
15568     sparc)
15569       VAR_CPU=sparc
15570       VAR_CPU_ARCH=sparc
15571       VAR_CPU_BITS=32
15572       VAR_CPU_ENDIAN=big
15573       ;;
15574     sparcv9|sparc64)
15575       VAR_CPU=sparcv9
15576       VAR_CPU_ARCH=sparc
15577       VAR_CPU_BITS=64
15578       VAR_CPU_ENDIAN=big
15579       ;;
15580     *)
15581       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15582       ;;
15583   esac
15584 
15585   # ..and setup our own variables. (Do this explicitely to facilitate searching)
15586   OPENJDK_BUILD_OS="$VAR_OS"
15587   if test "x$VAR_OS_TYPE" != x; then
15588     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15589   else
15590     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15591   fi
15592   if test "x$VAR_OS_ENV" != x; then
15593     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15594   else
15595     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15596   fi
15597   OPENJDK_BUILD_CPU="$VAR_CPU"
15598   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15599   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15600   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15601 
15602 
15603 
15604 
15605 
15606 
15607 
15608 
15609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15610 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15612 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15613 
15614   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15615 
15616   case "$host_os" in
15617     *linux*)
15618       VAR_OS=linux
15619       VAR_OS_TYPE=unix
15620       ;;
15621     *solaris*)
15622       VAR_OS=solaris
15623       VAR_OS_TYPE=unix
15624       ;;
15625     *darwin*)
15626       VAR_OS=macosx
15627       VAR_OS_TYPE=unix
15628       ;;
15629     *bsd*)
15630       VAR_OS=bsd
15631       VAR_OS_TYPE=unix
15632       ;;
15633     *cygwin*)
15634       VAR_OS=windows
15635       VAR_OS_ENV=windows.cygwin
15636       ;;
15637     *mingw*)
15638       VAR_OS=windows
15639       VAR_OS_ENV=windows.msys
15640       ;;
15641     *aix*)
15642       VAR_OS=aix
15643       VAR_OS_TYPE=unix
15644       ;;
15645     *)
15646       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15647       ;;
15648   esac
15649 
15650 
15651   # First argument is the cpu name from the trip/quad
15652   case "$host_cpu" in
15653     x86_64)
15654       VAR_CPU=x86_64
15655       VAR_CPU_ARCH=x86
15656       VAR_CPU_BITS=64
15657       VAR_CPU_ENDIAN=little
15658       ;;
15659     i?86)
15660       VAR_CPU=x86
15661       VAR_CPU_ARCH=x86
15662       VAR_CPU_BITS=32
15663       VAR_CPU_ENDIAN=little
15664       ;;
15665     arm*)
15666       VAR_CPU=arm
15667       VAR_CPU_ARCH=arm
15668       VAR_CPU_BITS=32
15669       VAR_CPU_ENDIAN=little
15670       ;;
15671     aarch64)
15672       VAR_CPU=aarch64
15673       VAR_CPU_ARCH=aarch64
15674       VAR_CPU_BITS=64
15675       VAR_CPU_ENDIAN=little
15676       ;;
15677     powerpc)
15678       VAR_CPU=ppc
15679       VAR_CPU_ARCH=ppc
15680       VAR_CPU_BITS=32
15681       VAR_CPU_ENDIAN=big
15682       ;;
15683     powerpc64)
15684       VAR_CPU=ppc64
15685       VAR_CPU_ARCH=ppc
15686       VAR_CPU_BITS=64
15687       VAR_CPU_ENDIAN=big
15688       ;;
15689     powerpc64le)
15690       VAR_CPU=ppc64le
15691       VAR_CPU_ARCH=ppc
15692       VAR_CPU_BITS=64
15693       VAR_CPU_ENDIAN=little
15694       ;;
15695     s390)
15696       VAR_CPU=s390
15697       VAR_CPU_ARCH=s390
15698       VAR_CPU_BITS=32
15699       VAR_CPU_ENDIAN=big
15700       ;;
15701     s390x)
15702       VAR_CPU=s390x
15703       VAR_CPU_ARCH=s390
15704       VAR_CPU_BITS=64
15705       VAR_CPU_ENDIAN=big
15706       ;;
15707     sparc)
15708       VAR_CPU=sparc
15709       VAR_CPU_ARCH=sparc
15710       VAR_CPU_BITS=32
15711       VAR_CPU_ENDIAN=big
15712       ;;
15713     sparcv9|sparc64)
15714       VAR_CPU=sparcv9
15715       VAR_CPU_ARCH=sparc
15716       VAR_CPU_BITS=64
15717       VAR_CPU_ENDIAN=big
15718       ;;
15719     *)
15720       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
15721       ;;
15722   esac
15723 
15724   # ... and setup our own variables. (Do this explicitely to facilitate searching)
15725   OPENJDK_TARGET_OS="$VAR_OS"
15726   if test "x$VAR_OS_TYPE" != x; then
15727     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
15728   else
15729     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
15730   fi
15731   if test "x$VAR_OS_ENV" != x; then
15732     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
15733   else
15734     OPENJDK_TARGET_OS_ENV="$VAR_OS"
15735   fi
15736   OPENJDK_TARGET_CPU="$VAR_CPU"
15737   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
15738   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
15739   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15740 
15741 
15742 
15743 
15744 
15745 
15746 
15747 
15748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
15749 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
15750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
15751 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
15752 
15753 
15754 
15755 # Check whether --with-target-bits was given.
15756 if test "${with_target_bits+set}" = set; then :
15757   withval=$with_target_bits;
15758 fi
15759 
15760 
15761   # We have three types of compiles:
15762   # native  == normal compilation, target system == build system
15763   # cross   == traditional cross compilation, target system != build system; special toolchain needed
15764   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
15765   #
15766   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
15767     # We're doing a proper cross-compilation
15768     COMPILE_TYPE="cross"
15769   else
15770     COMPILE_TYPE="native"
15771   fi
15772 
15773   if test "x$with_target_bits" != x; then
15774     if test "x$COMPILE_TYPE" = "xcross"; then
15775       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
15776     fi
15777 
15778     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15779       # A reduced build is requested
15780       COMPILE_TYPE="reduced"
15781       OPENJDK_TARGET_CPU_BITS=32
15782       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
15783         OPENJDK_TARGET_CPU=x86
15784       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
15785         OPENJDK_TARGET_CPU=sparc
15786       else
15787         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
15788       fi
15789     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
15790       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
15791     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
15792       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
15793 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
15794     else
15795       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
15796     fi
15797   fi
15798 
15799 
15800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
15801 $as_echo_n "checking compilation type... " >&6; }
15802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
15803 $as_echo "$COMPILE_TYPE" >&6; }
15804 
15805 
15806   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
15807     REQUIRED_OS_NAME=SunOS
15808     REQUIRED_OS_VERSION=5.10
15809   fi
15810   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
15811     REQUIRED_OS_NAME=Linux
15812     REQUIRED_OS_VERSION=2.6
15813   fi
15814   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15815     REQUIRED_OS_NAME=Windows
15816     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
15817       REQUIRED_OS_VERSION=5.2
15818     else
15819       REQUIRED_OS_VERSION=5.1
15820     fi
15821   fi
15822   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15823     REQUIRED_OS_NAME=Darwin
15824     REQUIRED_OS_VERSION=11.2
15825   fi
15826   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
15827     REQUIRED_OS_NAME=AIX
15828     REQUIRED_OS_VERSION=7.1
15829   fi
15830 
15831 
15832 
15833 
15834 
15835 
15836   # Also store the legacy naming of the cpu.
15837   # Ie i586 and amd64 instead of x86 and x86_64
15838   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
15839   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15840     OPENJDK_TARGET_CPU_LEGACY="i586"
15841   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15842     # On all platforms except MacOSX replace x86_64 with amd64.
15843     OPENJDK_TARGET_CPU_LEGACY="amd64"
15844   fi
15845 
15846 
15847   # And the second legacy naming of the cpu.
15848   # Ie i386 and amd64 instead of x86 and x86_64.
15849   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
15850   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15851     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
15852   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15853     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
15854   fi
15855 
15856 
15857   # This is the name of the cpu (but using i386 and amd64 instead of
15858   # x86 and x86_64, respectively), preceeded by a /, to be used when
15859   # locating libraries. On macosx, it's empty, though.
15860   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
15861   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15862     OPENJDK_TARGET_CPU_LIBDIR=""
15863   fi
15864 
15865 
15866   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15867   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15868   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
15869   OPENJDK_TARGET_CPU_ISADIR=""
15870   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15871     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15872       OPENJDK_TARGET_CPU_ISADIR="/amd64"
15873     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15874       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
15875     fi
15876   fi
15877 
15878 
15879   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
15880   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
15881   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
15882     # On linux only, we replace x86 with i386.
15883     OPENJDK_TARGET_CPU_OSARCH="i386"
15884   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15885     # On all platforms except macosx, we replace x86_64 with amd64.
15886     OPENJDK_TARGET_CPU_OSARCH="amd64"
15887   fi
15888 
15889 
15890   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
15891   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15892     OPENJDK_TARGET_CPU_JLI="i386"
15893   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15894     # On all platforms except macosx, we replace x86_64 with amd64.
15895     OPENJDK_TARGET_CPU_JLI="amd64"
15896   fi
15897   # Now setup the -D flags for building libjli.
15898   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
15899   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15900     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
15901       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
15902     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
15903       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
15904     fi
15905   fi
15906 
15907 
15908   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15909       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
15910   else
15911       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
15912   fi
15913 
15914 
15915   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
15916   # Macosx is osx and x86_64 is x64
15917   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15918     OPENJDK_TARGET_OS_BUNDLE="osx"
15919   else
15920     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
15921   fi
15922   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15923     OPENJDK_TARGET_CPU_BUNDLE="x64"
15924   else
15925     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
15926   fi
15927   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
15928 
15929 
15930 
15931 
15932   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15933     A_LP64="LP64:="
15934     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15935     # unpack200.exe
15936     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
15937       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
15938     fi
15939   fi
15940   LP64=$A_LP64
15941 
15942 
15943   if test "x$COMPILE_TYPE" = "xcross"; then
15944     # FIXME: ... or should this include reduced builds..?
15945     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15946   else
15947     DEFINE_CROSS_COMPILE_ARCH=""
15948   fi
15949 
15950 
15951   # Convert openjdk platform names to hotspot names
15952 
15953   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
15954   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15955     HOTSPOT_TARGET_OS=bsd
15956   fi
15957 
15958 
15959   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
15960   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
15961     HOTSPOT_TARGET_OS_TYPE=posix
15962   fi
15963 
15964 
15965   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
15966   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15967     HOTSPOT_TARGET_CPU=x86_32
15968   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15969     HOTSPOT_TARGET_CPU=sparc
15970   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15971     HOTSPOT_TARGET_CPU=ppc_64
15972   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15973     HOTSPOT_TARGET_CPU=ppc_64
15974   fi
15975 
15976 
15977   # This is identical with OPENJDK_*, but define anyway for consistency.
15978   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
15979 
15980 
15981   # Setup HOTSPOT_TARGET_CPU_DEFINE
15982   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15983     HOTSPOT_TARGET_CPU_DEFINE=IA32
15984   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15985     HOTSPOT_TARGET_CPU_DEFINE=AMD64
15986   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15987     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15988   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15989     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
15990   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15991     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15992   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15993     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15994 
15995   # The cpu defines below are for zero, we don't support them directly.
15996   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
15997     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15998   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
15999     HOTSPOT_TARGET_CPU_DEFINE=PPC32
16000   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
16001     HOTSPOT_TARGET_CPU_DEFINE=S390
16002   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
16003     HOTSPOT_TARGET_CPU_DEFINE=S390
16004   elif test "x$OPENJDK_TARGET_CPU" != x; then
16005     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16006   fi
16007 
16008 
16009 
16010 
16011   # Also store the legacy naming of the cpu.
16012   # Ie i586 and amd64 instead of x86 and x86_64
16013   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16014   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16015     OPENJDK_BUILD_CPU_LEGACY="i586"
16016   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16017     # On all platforms except MacOSX replace x86_64 with amd64.
16018     OPENJDK_BUILD_CPU_LEGACY="amd64"
16019   fi
16020 
16021 
16022   # And the second legacy naming of the cpu.
16023   # Ie i386 and amd64 instead of x86 and x86_64.
16024   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16025   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16026     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
16027   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16028     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
16029   fi
16030 
16031 
16032   # This is the name of the cpu (but using i386 and amd64 instead of
16033   # x86 and x86_64, respectively), preceeded by a /, to be used when
16034   # locating libraries. On macosx, it's empty, though.
16035   OPENJDK_BUILD_CPU_LIBDIR="/$OPENJDK_BUILD_CPU_LEGACY_LIB"
16036   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16037     OPENJDK_BUILD_CPU_LIBDIR=""
16038   fi
16039 
16040 
16041   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16042   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16043   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
16044   OPENJDK_BUILD_CPU_ISADIR=""
16045   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16046     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16047       OPENJDK_BUILD_CPU_ISADIR="/amd64"
16048     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16049       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
16050     fi
16051   fi
16052 
16053 
16054   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
16055   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
16056   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
16057     # On linux only, we replace x86 with i386.
16058     OPENJDK_BUILD_CPU_OSARCH="i386"
16059   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16060     # On all platforms except macosx, we replace x86_64 with amd64.
16061     OPENJDK_BUILD_CPU_OSARCH="amd64"
16062   fi
16063 
16064 
16065   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16066   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16067     OPENJDK_BUILD_CPU_JLI="i386"
16068   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16069     # On all platforms except macosx, we replace x86_64 with amd64.
16070     OPENJDK_BUILD_CPU_JLI="amd64"
16071   fi
16072   # Now setup the -D flags for building libjli.
16073   OPENJDK_BUILD_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_BUILD_CPU_JLI\"'"
16074   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16075     if test "x$OPENJDK_BUILD_CPU_ARCH" = xsparc; then
16076       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
16077     elif test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then
16078       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
16079     fi
16080   fi
16081 
16082 
16083   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16084       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
16085   else
16086       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
16087   fi
16088 
16089 
16090   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16091   # Macosx is osx and x86_64 is x64
16092   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16093     OPENJDK_BUILD_OS_BUNDLE="osx"
16094   else
16095     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16096   fi
16097   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16098     OPENJDK_BUILD_CPU_BUNDLE="x64"
16099   else
16100     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16101   fi
16102   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16103 
16104 
16105 
16106 
16107   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16108     A_LP64="LP64:="
16109     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16110     # unpack200.exe
16111     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16112       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16113     fi
16114   fi
16115   LP64=$A_LP64
16116 
16117 
16118   if test "x$COMPILE_TYPE" = "xcross"; then
16119     # FIXME: ... or should this include reduced builds..?
16120     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16121   else
16122     DEFINE_CROSS_COMPILE_ARCH=""
16123   fi
16124 
16125 
16126   # Convert openjdk platform names to hotspot names
16127 
16128   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16129   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16130     HOTSPOT_BUILD_OS=bsd
16131   fi
16132 
16133 
16134   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16135   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16136     HOTSPOT_BUILD_OS_TYPE=posix
16137   fi
16138 
16139 
16140   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16141   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16142     HOTSPOT_BUILD_CPU=x86_32
16143   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16144     HOTSPOT_BUILD_CPU=sparc
16145   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16146     HOTSPOT_BUILD_CPU=ppc_64
16147   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16148     HOTSPOT_BUILD_CPU=ppc_64
16149   fi
16150 
16151 
16152   # This is identical with OPENJDK_*, but define anyway for consistency.
16153   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16154 
16155 
16156   # Setup HOTSPOT_BUILD_CPU_DEFINE
16157   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16158     HOTSPOT_BUILD_CPU_DEFINE=IA32
16159   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16160     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16161   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16162     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16163   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16164     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16165   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16166     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16167   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16168     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16169 
16170   # The cpu defines below are for zero, we don't support them directly.
16171   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16172     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16173   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16174     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16175   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16176     HOTSPOT_BUILD_CPU_DEFINE=S390
16177   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16178     HOTSPOT_BUILD_CPU_DEFINE=S390
16179   elif test "x$OPENJDK_BUILD_CPU" != x; then
16180     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16181   fi
16182 
16183 
16184 
16185 
16186   # ZERO_ARCHDEF is used to enable architecture-specific code.
16187   # This is used in legacy hotspot build.
16188   ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE"
16189 
16190 
16191 
16192 
16193 
16194 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16195 
16196   # Save the current directory this script was started from
16197   CURDIR="$PWD"
16198 
16199   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16200   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16201   # was not available at that time.
16202   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16203   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16204     ORIGINAL_PATH="$REWRITTEN_PATH"
16205     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16206 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16207   fi
16208 
16209   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16210     PATH_SEP=";"
16211 
16212   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16213   if test $SRC_ROOT_LENGTH -gt 100; then
16214     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16215   fi
16216 
16217   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16219 $as_echo_n "checking cygwin release... " >&6; }
16220     CYGWIN_VERSION=`$UNAME -r`
16221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16222 $as_echo "$CYGWIN_VERSION" >&6; }
16223     WINDOWS_ENV_VENDOR='cygwin'
16224     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16225 
16226     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16227     if test "x$CYGWIN_VERSION_OLD" != x; then
16228       { $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
16229 $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;}
16230       as_fn_error $? "Cannot continue" "$LINENO" 5
16231     fi
16232     if test "x$CYGPATH" = x; then
16233       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16234     fi
16235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16236 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16237     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16238     cygwin_winpath_root=`cd / ; cmd /c cd | $GREP ".*"`
16239     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16240     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16242 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16243     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16244     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16245     if test "x$test_cygdrive_prefix" = x; then
16246       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16247     fi
16248   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16250 $as_echo_n "checking msys release... " >&6; }
16251     MSYS_VERSION=`$UNAME -r`
16252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16253 $as_echo "$MSYS_VERSION" >&6; }
16254 
16255     WINDOWS_ENV_VENDOR='msys'
16256     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16257 
16258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16259 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16260     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16261     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16262 
16263   windows_path="$MSYS_ROOT_PATH"
16264   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16265     unix_path=`$CYGPATH -u "$windows_path"`
16266     MSYS_ROOT_PATH="$unix_path"
16267   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16268     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16269     MSYS_ROOT_PATH="$unix_path"
16270   fi
16271 
16272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16273 $as_echo "$MSYS_ROOT_PATH" >&6; }
16274     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16275   else
16276     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16277   fi
16278 
16279   # Test if windows or unix (cygwin/msys) find is first in path.
16280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16281 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16282   FIND_BINARY_OUTPUT=`find --version 2>&1`
16283   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16285 $as_echo "unix style" >&6; }
16286   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16288 $as_echo "Windows" >&6; }
16289     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16290 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16291     { $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
16292 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16293     as_fn_error $? "Cannot continue" "$LINENO" 5
16294   else
16295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16296 $as_echo "unknown" >&6; }
16297     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16298 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16299   fi
16300 
16301   else
16302     PATH_SEP=":"
16303   fi
16304 
16305 
16306   # We get the top-level directory from the supporting wrappers.
16307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16308 $as_echo_n "checking for top-level directory... " >&6; }
16309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16310 $as_echo "$TOPDIR" >&6; }
16311 
16312 
16313   # Save the original version of TOPDIR for string comparisons
16314   ORIGINAL_TOPDIR="$TOPDIR"
16315 
16316 
16317   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16318 
16319   # Only process if variable expands to non-empty
16320 
16321   if test "x$CURDIR" != x; then
16322     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16323 
16324   # Input might be given as Windows format, start by converting to
16325   # unix format.
16326   path="$CURDIR"
16327   new_path=`$CYGPATH -u "$path"`
16328 
16329   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16330   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16331   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16332   # "foo.exe" is OK but "foo" is an error.
16333   #
16334   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16335   # It is also a way to make sure we got the proper file name for the real test later on.
16336   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16337   if test "x$test_shortpath" = x; then
16338     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16339 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16340     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16341   fi
16342 
16343   # Call helper function which possibly converts this using DOS-style short mode.
16344   # If so, the updated path is stored in $new_path.
16345 
16346   input_path="$new_path"
16347   # Check if we need to convert this using DOS-style short mode. If the path
16348   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16349   # take no chances and rewrite it.
16350   # Note: m4 eats our [], so we need to use [ and ] instead.
16351   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16352   if test "x$has_forbidden_chars" != x; then
16353     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16354     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16355     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16356     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16357       # Going to short mode and back again did indeed matter. Since short mode is
16358       # case insensitive, let's make it lowercase to improve readability.
16359       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16360       # Now convert it back to Unix-style (cygpath)
16361       input_path=`$CYGPATH -u "$shortmode_path"`
16362       new_path="$input_path"
16363     fi
16364   fi
16365 
16366   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16367   if test "x$test_cygdrive_prefix" = x; then
16368     # As a simple fix, exclude /usr/bin since it's not a real path.
16369     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16370       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16371       # a path prefixed by /cygdrive for fixpath to work.
16372       new_path="$CYGWIN_ROOT_PATH$input_path"
16373     fi
16374   fi
16375 
16376 
16377   if test "x$path" != "x$new_path"; then
16378     CURDIR="$new_path"
16379     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16380 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16381   fi
16382 
16383     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16384 
16385   path="$CURDIR"
16386   has_colon=`$ECHO $path | $GREP ^.:`
16387   new_path="$path"
16388   if test "x$has_colon" = x; then
16389     # Not in mixed or Windows style, start by that.
16390     new_path=`cmd //c echo $path`
16391   fi
16392 
16393 
16394   input_path="$new_path"
16395   # Check if we need to convert this using DOS-style short mode. If the path
16396   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16397   # take no chances and rewrite it.
16398   # Note: m4 eats our [], so we need to use [ and ] instead.
16399   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16400   if test "x$has_forbidden_chars" != x; then
16401     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16402     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16403   fi
16404 
16405 
16406   windows_path="$new_path"
16407   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16408     unix_path=`$CYGPATH -u "$windows_path"`
16409     new_path="$unix_path"
16410   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16411     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16412     new_path="$unix_path"
16413   fi
16414 
16415   if test "x$path" != "x$new_path"; then
16416     CURDIR="$new_path"
16417     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16418 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16419   fi
16420 
16421   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16422   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16423 
16424     else
16425       # We're on a unix platform. Hooray! :)
16426       path="$CURDIR"
16427       has_space=`$ECHO "$path" | $GREP " "`
16428       if test "x$has_space" != x; then
16429         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16430 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16431         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16432       fi
16433 
16434       # Use eval to expand a potential ~
16435       eval path="$path"
16436       if test ! -f "$path" && test ! -d "$path"; then
16437         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16438       fi
16439 
16440       if test -d "$path"; then
16441         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16442       else
16443         dir="`$DIRNAME "$path"`"
16444         base="`$BASENAME "$path"`"
16445         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16446       fi
16447     fi
16448   fi
16449 
16450 
16451   # Only process if variable expands to non-empty
16452 
16453   if test "x$TOPDIR" != x; then
16454     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16455 
16456   # Input might be given as Windows format, start by converting to
16457   # unix format.
16458   path="$TOPDIR"
16459   new_path=`$CYGPATH -u "$path"`
16460 
16461   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16462   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16463   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16464   # "foo.exe" is OK but "foo" is an error.
16465   #
16466   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16467   # It is also a way to make sure we got the proper file name for the real test later on.
16468   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16469   if test "x$test_shortpath" = x; then
16470     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16471 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16472     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16473   fi
16474 
16475   # Call helper function which possibly converts this using DOS-style short mode.
16476   # If so, the updated path is stored in $new_path.
16477 
16478   input_path="$new_path"
16479   # Check if we need to convert this using DOS-style short mode. If the path
16480   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16481   # take no chances and rewrite it.
16482   # Note: m4 eats our [], so we need to use [ and ] instead.
16483   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16484   if test "x$has_forbidden_chars" != x; then
16485     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16486     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16487     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16488     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16489       # Going to short mode and back again did indeed matter. Since short mode is
16490       # case insensitive, let's make it lowercase to improve readability.
16491       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16492       # Now convert it back to Unix-style (cygpath)
16493       input_path=`$CYGPATH -u "$shortmode_path"`
16494       new_path="$input_path"
16495     fi
16496   fi
16497 
16498   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16499   if test "x$test_cygdrive_prefix" = x; then
16500     # As a simple fix, exclude /usr/bin since it's not a real path.
16501     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16502       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16503       # a path prefixed by /cygdrive for fixpath to work.
16504       new_path="$CYGWIN_ROOT_PATH$input_path"
16505     fi
16506   fi
16507 
16508 
16509   if test "x$path" != "x$new_path"; then
16510     TOPDIR="$new_path"
16511     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16512 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16513   fi
16514 
16515     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16516 
16517   path="$TOPDIR"
16518   has_colon=`$ECHO $path | $GREP ^.:`
16519   new_path="$path"
16520   if test "x$has_colon" = x; then
16521     # Not in mixed or Windows style, start by that.
16522     new_path=`cmd //c echo $path`
16523   fi
16524 
16525 
16526   input_path="$new_path"
16527   # Check if we need to convert this using DOS-style short mode. If the path
16528   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16529   # take no chances and rewrite it.
16530   # Note: m4 eats our [], so we need to use [ and ] instead.
16531   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16532   if test "x$has_forbidden_chars" != x; then
16533     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16534     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16535   fi
16536 
16537 
16538   windows_path="$new_path"
16539   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16540     unix_path=`$CYGPATH -u "$windows_path"`
16541     new_path="$unix_path"
16542   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16543     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16544     new_path="$unix_path"
16545   fi
16546 
16547   if test "x$path" != "x$new_path"; then
16548     TOPDIR="$new_path"
16549     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16550 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16551   fi
16552 
16553   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16554   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16555 
16556     else
16557       # We're on a unix platform. Hooray! :)
16558       path="$TOPDIR"
16559       has_space=`$ECHO "$path" | $GREP " "`
16560       if test "x$has_space" != x; then
16561         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16562 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16563         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16564       fi
16565 
16566       # Use eval to expand a potential ~
16567       eval path="$path"
16568       if test ! -f "$path" && test ! -d "$path"; then
16569         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16570       fi
16571 
16572       if test -d "$path"; then
16573         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16574       else
16575         dir="`$DIRNAME "$path"`"
16576         base="`$BASENAME "$path"`"
16577         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16578       fi
16579     fi
16580   fi
16581 
16582   # SRC_ROOT is a traditional alias for TOPDIR.
16583   SRC_ROOT=$TOPDIR
16584 
16585   # Calculate a canonical version of TOPDIR for string comparisons
16586   CANONICAL_TOPDIR=$TOPDIR
16587 
16588   if test "x$OPENJDK_BUILD_OS" != xwindows; then
16589     # Follow a chain of symbolic links. Use readlink
16590     # where it exists, else fall back to horribly
16591     # complicated shell code.
16592     if test "x$READLINK_TESTED" != yes; then
16593       # On MacOSX there is a readlink tool with a different
16594       # purpose than the GNU readlink tool. Check the found readlink.
16595       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
16596       if test "x$ISGNU" = x; then
16597         # A readlink that we do not know how to use.
16598         # Are there other non-GNU readlinks out there?
16599         READLINK_TESTED=yes
16600         READLINK=
16601       fi
16602     fi
16603 
16604     if test "x$READLINK" != x; then
16605       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
16606     else
16607       # Save the current directory for restoring afterwards
16608       STARTDIR=$PWD
16609       COUNTER=0
16610       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
16611       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
16612       cd $sym_link_dir
16613       # Use -P flag to resolve symlinks in directories.
16614       cd `$THEPWDCMD -P`
16615       sym_link_dir=`$THEPWDCMD -P`
16616       # Resolve file symlinks
16617       while test $COUNTER -lt 20; do
16618         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
16619         if test "x$ISLINK" == x; then
16620           # This is not a symbolic link! We are done!
16621           break
16622         fi
16623         # Again resolve directory symlinks since the target of the just found
16624         # link could be in a different directory
16625         cd `$DIRNAME $ISLINK`
16626         sym_link_dir=`$THEPWDCMD -P`
16627         sym_link_file=`$BASENAME $ISLINK`
16628         let COUNTER=COUNTER+1
16629       done
16630       cd $STARTDIR
16631       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
16632     fi
16633   fi
16634 
16635 
16636 
16637   # Locate the directory of this script.
16638   AUTOCONF_DIR=$TOPDIR/common/autoconf
16639 
16640   # Setup username (for use in adhoc version strings etc)
16641   # Outer [ ] to quote m4.
16642    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16643 
16644 
16645 
16646 # Check if it's a pure open build or if custom sources are to be used.
16647 
16648   # Check whether --enable-openjdk-only was given.
16649 if test "${enable_openjdk_only+set}" = set; then :
16650   enableval=$enable_openjdk_only;
16651 else
16652   enable_openjdk_only="no"
16653 fi
16654 
16655 
16656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16657 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16659 $as_echo "$enable_openjdk_only" >&6; }
16660   if test "x$enable_openjdk_only" = "xyes"; then
16661     SUPPRESS_CUSTOM_EXTENSIONS="true"
16662   elif test "x$enable_openjdk_only" = "xno"; then
16663     SUPPRESS_CUSTOM_EXTENSIONS="false"
16664   else
16665     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16666   fi
16667 
16668   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16669   # the IncludeCustomExtension macro.
16670 
16671 
16672 # Check whether --with-custom-make-dir was given.
16673 if test "${with_custom_make_dir+set}" = set; then :
16674   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
16675 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16676 fi
16677 
16678 
16679 
16680 
16681 # These are needed to be able to create a configuration name (and thus the output directory)
16682 
16683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16684 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16685 
16686 # Check whether --with-jdk-variant was given.
16687 if test "${with_jdk_variant+set}" = set; then :
16688   withval=$with_jdk_variant;
16689 fi
16690 
16691 
16692   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16693     JDK_VARIANT="normal"
16694   else
16695     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16696   fi
16697 
16698 
16699 
16700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16701 $as_echo "$JDK_VARIANT" >&6; }
16702 
16703 
16704   DEBUG_LEVEL="release"
16705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16706 $as_echo_n "checking which debug level to use... " >&6; }
16707   # Check whether --enable-debug was given.
16708 if test "${enable_debug+set}" = set; then :
16709   enableval=$enable_debug;
16710         ENABLE_DEBUG="${enableval}"
16711         DEBUG_LEVEL="fastdebug"
16712 
16713 else
16714   ENABLE_DEBUG="no"
16715 fi
16716 
16717 
16718 
16719 # Check whether --with-debug-level was given.
16720 if test "${with_debug_level+set}" = set; then :
16721   withval=$with_debug_level;
16722         DEBUG_LEVEL="${withval}"
16723         if test "x$ENABLE_DEBUG" = xyes; then
16724           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16725         fi
16726 
16727 fi
16728 
16729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16730 $as_echo "$DEBUG_LEVEL" >&6; }
16731 
16732   if test "x$DEBUG_LEVEL" != xrelease && \
16733       test "x$DEBUG_LEVEL" != xoptimized && \
16734       test "x$DEBUG_LEVEL" != xfastdebug && \
16735       test "x$DEBUG_LEVEL" != xslowdebug; then
16736     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16737   fi
16738 
16739   # Translate DEBUG_LEVEL to debug level used by Hotspot
16740   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16741   if test "x$DEBUG_LEVEL" = xrelease; then
16742     HOTSPOT_DEBUG_LEVEL="product"
16743   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16744     HOTSPOT_DEBUG_LEVEL="debug"
16745   fi
16746 
16747   if test "x$DEBUG_LEVEL" = xoptimized; then
16748     # The debug level 'optimized' is a little special because it is currently only
16749     # applicable to the HotSpot build where it means to build a completely
16750     # optimized version of the VM without any debugging code (like for the
16751     # 'release' debug level which is called 'product' in the HotSpot build) but
16752     # with the exception that it can contain additional code which is otherwise
16753     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16754     # test new and/or experimental features which are not intended for customer
16755     # shipment. Because these new features need to be tested and benchmarked in
16756     # real world scenarios, we want to build the containing JDK at the 'release'
16757     # debug level.
16758     DEBUG_LEVEL="release"
16759   fi
16760 
16761 
16762 
16763 
16764 
16765 
16766 # Check whether --with-jvm-variants was given.
16767 if test "${with_jvm_variants+set}" = set; then :
16768   withval=$with_jvm_variants;
16769 fi
16770 
16771 
16772   if test "x$with_jvm_variants" = x; then
16773     with_jvm_variants="server"
16774   fi
16775   JVM_VARIANTS_OPT="$with_jvm_variants"
16776 
16777   # Has the user listed more than one variant?
16778   # Additional [] needed to keep m4 from mangling shell constructs.
16779   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
16780     BUILDING_MULTIPLE_JVM_VARIANTS=true
16781   else
16782     BUILDING_MULTIPLE_JVM_VARIANTS=false
16783   fi
16784   # Replace the commas with AND for use in the build directory name.
16785   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
16786 
16787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
16788 $as_echo_n "checking which variants of the JVM to build... " >&6; }
16789   # JVM_VARIANTS is a space-separated list.
16790   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
16791   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
16792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
16793 $as_echo "$JVM_VARIANTS" >&6; }
16794 
16795   # Check that the selected variants are valid
16796 
16797   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
16798   # Notice that the original variant failes on SLES 10 and 11
16799   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
16800   STACK=${JVM_VARIANTS// /$'\n'}
16801   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16802   if test "x$INVALID_VARIANTS" != x; then
16803     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
16804 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
16805     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
16806   fi
16807 
16808   # All "special" variants share the same output directory ("server")
16809   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
16810   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
16811   STACK=${JVM_VARIANTS// /$'\n'}
16812   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16813   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
16814     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
16815   fi
16816 
16817 
16818 
16819 
16820   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
16821     # zero behaves as a platform and rewrites these values. This is really weird. :(
16822     # We are guaranteed that we do not build any other variants when building zero.
16823     HOTSPOT_TARGET_CPU=zero
16824     HOTSPOT_TARGET_CPU_ARCH=zero
16825   fi
16826 
16827 
16828 # With basic setup done, call the custom early hook.
16829 
16830 
16831 # Check if we have devkits, extra paths or sysroot set.
16832 
16833 
16834 # Check whether --with-devkit was given.
16835 if test "${with_devkit+set}" = set; then :
16836   withval=$with_devkit;
16837 
16838   # Only process if variable expands to non-empty
16839 
16840   if test "x$with_devkit" != x; then
16841     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16842 
16843   # Input might be given as Windows format, start by converting to
16844   # unix format.
16845   path="$with_devkit"
16846   new_path=`$CYGPATH -u "$path"`
16847 
16848   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16849   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16850   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16851   # "foo.exe" is OK but "foo" is an error.
16852   #
16853   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16854   # It is also a way to make sure we got the proper file name for the real test later on.
16855   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16856   if test "x$test_shortpath" = x; then
16857     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16858 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16859     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
16860   fi
16861 
16862   # Call helper function which possibly converts this using DOS-style short mode.
16863   # If so, the updated path is stored in $new_path.
16864 
16865   input_path="$new_path"
16866   # Check if we need to convert this using DOS-style short mode. If the path
16867   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16868   # take no chances and rewrite it.
16869   # Note: m4 eats our [], so we need to use [ and ] instead.
16870   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16871   if test "x$has_forbidden_chars" != x; then
16872     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16873     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16874     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16875     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16876       # Going to short mode and back again did indeed matter. Since short mode is
16877       # case insensitive, let's make it lowercase to improve readability.
16878       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16879       # Now convert it back to Unix-style (cygpath)
16880       input_path=`$CYGPATH -u "$shortmode_path"`
16881       new_path="$input_path"
16882     fi
16883   fi
16884 
16885   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16886   if test "x$test_cygdrive_prefix" = x; then
16887     # As a simple fix, exclude /usr/bin since it's not a real path.
16888     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16889       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16890       # a path prefixed by /cygdrive for fixpath to work.
16891       new_path="$CYGWIN_ROOT_PATH$input_path"
16892     fi
16893   fi
16894 
16895 
16896   if test "x$path" != "x$new_path"; then
16897     with_devkit="$new_path"
16898     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16899 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16900   fi
16901 
16902     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16903 
16904   path="$with_devkit"
16905   has_colon=`$ECHO $path | $GREP ^.:`
16906   new_path="$path"
16907   if test "x$has_colon" = x; then
16908     # Not in mixed or Windows style, start by that.
16909     new_path=`cmd //c echo $path`
16910   fi
16911 
16912 
16913   input_path="$new_path"
16914   # Check if we need to convert this using DOS-style short mode. If the path
16915   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16916   # take no chances and rewrite it.
16917   # Note: m4 eats our [], so we need to use [ and ] instead.
16918   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16919   if test "x$has_forbidden_chars" != x; then
16920     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16921     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16922   fi
16923 
16924 
16925   windows_path="$new_path"
16926   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16927     unix_path=`$CYGPATH -u "$windows_path"`
16928     new_path="$unix_path"
16929   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16930     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16931     new_path="$unix_path"
16932   fi
16933 
16934   if test "x$path" != "x$new_path"; then
16935     with_devkit="$new_path"
16936     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16937 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16938   fi
16939 
16940   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16941   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16942 
16943     else
16944       # We're on a unix platform. Hooray! :)
16945       path="$with_devkit"
16946       has_space=`$ECHO "$path" | $GREP " "`
16947       if test "x$has_space" != x; then
16948         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16949 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16950         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16951       fi
16952 
16953       # Use eval to expand a potential ~
16954       eval path="$path"
16955       if test ! -f "$path" && test ! -d "$path"; then
16956         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
16957       fi
16958 
16959       if test -d "$path"; then
16960         with_devkit="`cd "$path"; $THEPWDCMD -L`"
16961       else
16962         dir="`$DIRNAME "$path"`"
16963         base="`$BASENAME "$path"`"
16964         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
16965       fi
16966     fi
16967   fi
16968 
16969         DEVKIT_ROOT="$with_devkit"
16970         # Check for a meta data info file in the root of the devkit
16971         if test -f "$DEVKIT_ROOT/devkit.info"; then
16972           . $DEVKIT_ROOT/devkit.info
16973           # This potentially sets the following:
16974           # A descriptive name of the devkit
16975 
16976   if test "x$DEVKIT_NAME" = x; then
16977     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
16978   fi
16979 
16980           # Corresponds to --with-extra-path
16981 
16982   if test "x$DEVKIT_EXTRA_PATH" = x; then
16983     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
16984   fi
16985 
16986           # Corresponds to --with-toolchain-path
16987 
16988   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16989     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
16990   fi
16991 
16992           # Corresponds to --with-sysroot
16993 
16994   if test "x$DEVKIT_SYSROOT" = x; then
16995     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
16996   fi
16997 
16998 
16999           # Identifies the Visual Studio version in the devkit
17000 
17001   if test "x$DEVKIT_VS_VERSION" = x; then
17002     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
17003   fi
17004 
17005           # The Visual Studio include environment variable
17006 
17007   if test "x$DEVKIT_VS_INCLUDE" = x; then
17008     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
17009   fi
17010 
17011           # The Visual Studio lib environment variable
17012 
17013   if test "x$DEVKIT_VS_LIB" = x; then
17014     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
17015   fi
17016 
17017           # Corresponds to --with-msvcr-dll
17018 
17019   if test "x$DEVKIT_MSVCR_DLL" = x; then
17020     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
17021   fi
17022 
17023           # Corresponds to --with-msvcp-dll
17024 
17025   if test "x$DEVKIT_MSVCP_DLL" = x; then
17026     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
17027   fi
17028 
17029         fi
17030 
17031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
17032 $as_echo_n "checking for devkit... " >&6; }
17033         if test "x$DEVKIT_NAME" != x; then
17034           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
17035 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
17036         else
17037           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17038 $as_echo "$DEVKIT_ROOT" >&6; }
17039         fi
17040 
17041 
17042   if test "x$DEVKIT_EXTRA_PATH" != x; then
17043     if test "x$EXTRA_PATH" = x; then
17044       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17045     else
17046       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17047     fi
17048   fi
17049 
17050 
17051         # Fallback default of just /bin if DEVKIT_PATH is not defined
17052         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17053           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17054         fi
17055 
17056   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17057     if test "x$TOOLCHAIN_PATH" = x; then
17058       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17059     else
17060       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17061     fi
17062   fi
17063 
17064 
17065         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17066         # places for backwards compatiblity.
17067         if test "x$DEVKIT_SYSROOT" != x; then
17068           SYSROOT="$DEVKIT_SYSROOT"
17069         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17070           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17071         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17072           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17073         fi
17074 
17075 
17076 fi
17077 
17078 
17079   # You can force the sysroot if the sysroot encoded into the compiler tools
17080   # is not correct.
17081 
17082 # Check whether --with-sys-root was given.
17083 if test "${with_sys_root+set}" = set; then :
17084   withval=$with_sys_root; SYSROOT=$with_sys_root
17085 
17086 fi
17087 
17088 
17089 
17090 # Check whether --with-sysroot was given.
17091 if test "${with_sysroot+set}" = set; then :
17092   withval=$with_sysroot; SYSROOT=$with_sysroot
17093 
17094 fi
17095 
17096 
17097 
17098 # Check whether --with-tools-dir was given.
17099 if test "${with_tools_dir+set}" = set; then :
17100   withval=$with_tools_dir;
17101   if test "x$with_tools_dir" != x; then
17102     if test "x$TOOLCHAIN_PATH" = x; then
17103       TOOLCHAIN_PATH="$with_tools_dir"
17104     else
17105       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17106     fi
17107   fi
17108 
17109 
17110 fi
17111 
17112 
17113 
17114 # Check whether --with-toolchain-path was given.
17115 if test "${with_toolchain_path+set}" = set; then :
17116   withval=$with_toolchain_path;
17117   if test "x$with_toolchain_path" != x; then
17118     if test "x$TOOLCHAIN_PATH" = x; then
17119       TOOLCHAIN_PATH="$with_toolchain_path"
17120     else
17121       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17122     fi
17123   fi
17124 
17125 
17126 fi
17127 
17128 
17129 
17130 # Check whether --with-extra-path was given.
17131 if test "${with_extra_path+set}" = set; then :
17132   withval=$with_extra_path;
17133   if test "x$with_extra_path" != x; then
17134     if test "x$EXTRA_PATH" = x; then
17135       EXTRA_PATH="$with_extra_path"
17136     else
17137       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17138     fi
17139   fi
17140 
17141 
17142 fi
17143 
17144 
17145   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17146     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17147     # If not, detect if Xcode is installed by running xcodebuild -version
17148     # if no Xcode installed, xcodebuild exits with 1
17149     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17150     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17151       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17152       # fall back on the stub binary in /usr/bin/xcodebuild
17153       # Extract the first word of "xcodebuild", so it can be a program name with args.
17154 set dummy xcodebuild; ac_word=$2
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17156 $as_echo_n "checking for $ac_word... " >&6; }
17157 if ${ac_cv_path_XCODEBUILD+:} false; then :
17158   $as_echo_n "(cached) " >&6
17159 else
17160   case $XCODEBUILD in
17161   [\\/]* | ?:[\\/]*)
17162   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17163   ;;
17164   *)
17165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17166 for as_dir in $TOOLCHAIN_PATH
17167 do
17168   IFS=$as_save_IFS
17169   test -z "$as_dir" && as_dir=.
17170     for ac_exec_ext in '' $ac_executable_extensions; do
17171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17172     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17174     break 2
17175   fi
17176 done
17177   done
17178 IFS=$as_save_IFS
17179 
17180   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17181   ;;
17182 esac
17183 fi
17184 XCODEBUILD=$ac_cv_path_XCODEBUILD
17185 if test -n "$XCODEBUILD"; then
17186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17187 $as_echo "$XCODEBUILD" >&6; }
17188 else
17189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17190 $as_echo "no" >&6; }
17191 fi
17192 
17193 
17194     else
17195       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17196       # when only the command line tools are installed there are no SDKs, so headers
17197       # are copied into the system frameworks
17198       XCODEBUILD=
17199 
17200     fi
17201 
17202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17203 $as_echo_n "checking for sdk name... " >&6; }
17204 
17205 # Check whether --with-sdk-name was given.
17206 if test "${with_sdk_name+set}" = set; then :
17207   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17208 
17209 fi
17210 
17211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17212 $as_echo "$SDKNAME" >&6; }
17213 
17214     # if toolchain path is specified then don't rely on system headers, they may not compile
17215     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17216     test -z "$TOOLCHAIN_PATH" && \
17217       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17218 
17219     if test -z "$SYSROOT"; then
17220       if test -n "$XCODEBUILD"; then
17221         # if we don't have system headers, use default SDK name (last resort)
17222         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17223           SDKNAME=${SDKNAME:-macosx}
17224         fi
17225 
17226         if test -n "$SDKNAME"; then
17227           # Call xcodebuild to determine SYSROOT
17228           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17229         fi
17230       else
17231         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17232           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
17233         fi
17234       fi
17235     else
17236       # warn user if --with-sdk-name was also set
17237       if test -n "$with_sdk_name"; then
17238         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17239 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17240       fi
17241     fi
17242 
17243     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17244       # If no system framework headers, then SYSROOT must be set, or we won't build
17245       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
17246     fi
17247 
17248     # Perform a basic sanity test
17249     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17250       if test -z "$SYSROOT"; then
17251         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
17252       else
17253         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17254       fi
17255     fi
17256 
17257     # set SDKROOT too, Xcode tools will pick it up
17258     SDKROOT=$SYSROOT
17259 
17260   fi
17261 
17262   # Prepend the extra path to the global path
17263 
17264   if test "x$EXTRA_PATH" != x; then
17265     if test "x$PATH" = x; then
17266       PATH="$EXTRA_PATH"
17267     else
17268       PATH="$EXTRA_PATH:$PATH"
17269     fi
17270   fi
17271 
17272 
17273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17274 $as_echo_n "checking for sysroot... " >&6; }
17275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17276 $as_echo "$SYSROOT" >&6; }
17277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17278 $as_echo_n "checking for toolchain path... " >&6; }
17279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17280 $as_echo "$TOOLCHAIN_PATH" >&6; }
17281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17282 $as_echo_n "checking for extra path... " >&6; }
17283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17284 $as_echo "$EXTRA_PATH" >&6; }
17285 
17286 
17287 # To properly create a configuration name, we need to have the OpenJDK target
17288 # and options (variants and debug level) parsed.
17289 
17290 
17291 
17292 # Check whether --with-conf-name was given.
17293 if test "${with_conf_name+set}" = set; then :
17294   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17295 fi
17296 
17297 
17298   # Test from where we are running configure, in or outside of src root.
17299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17300 $as_echo_n "checking where to store configuration... " >&6; }
17301   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
17302       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
17303       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
17304     # We are running configure from the src root.
17305     # Create a default ./build/target-variant-debuglevel output root.
17306     if test "x${CONF_NAME}" = x; then
17307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17308 $as_echo "in default location" >&6; }
17309       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17310     else
17311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17312 $as_echo "in build directory with custom name" >&6; }
17313     fi
17314     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
17315     $MKDIR -p "$OUTPUT_ROOT"
17316     if test ! -d "$OUTPUT_ROOT"; then
17317       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
17318     fi
17319   else
17320     # We are running configure from outside of the src dir.
17321     # Then use the current directory as output dir!
17322     # If configuration is situated in normal build directory, just use the build
17323     # directory name as configuration name, otherwise use the complete path.
17324     if test "x${CONF_NAME}" = x; then
17325       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
17326     fi
17327     OUTPUT_ROOT="$CURDIR"
17328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17329 $as_echo "in current directory" >&6; }
17330 
17331     # WARNING: This might be a bad thing to do. You need to be sure you want to
17332     # have a configuration in this directory. Do some sanity checks!
17333 
17334     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
17335       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17336       # other files
17337       files_present=`$LS $OUTPUT_ROOT`
17338       # Configure has already touched config.log and confdefs.h in the current dir when this check
17339       # is performed.
17340       filtered_files=`$ECHO "$files_present" \
17341           | $SED -e 's/config.log//g' \
17342               -e 's/configure.log//g' \
17343               -e 's/confdefs.h//g' \
17344               -e 's/ //g' \
17345           | $TR -d '\n'`
17346       if test "x$filtered_files" != x; then
17347         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17348 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17349         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17350 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17351         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17352 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17353         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17354 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17355         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17356 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17357         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
17358 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
17359         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17360 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17361         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17362       fi
17363     fi
17364   fi
17365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17366 $as_echo_n "checking what configuration name to use... " >&6; }
17367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17368 $as_echo "$CONF_NAME" >&6; }
17369 
17370 
17371   # Only process if variable expands to non-empty
17372 
17373   if test "x$OUTPUT_ROOT" != x; then
17374     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17375 
17376   # Input might be given as Windows format, start by converting to
17377   # unix format.
17378   path="$OUTPUT_ROOT"
17379   new_path=`$CYGPATH -u "$path"`
17380 
17381   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17382   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17383   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17384   # "foo.exe" is OK but "foo" is an error.
17385   #
17386   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17387   # It is also a way to make sure we got the proper file name for the real test later on.
17388   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17389   if test "x$test_shortpath" = x; then
17390     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17391 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17392     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
17393   fi
17394 
17395   # Call helper function which possibly converts this using DOS-style short mode.
17396   # If so, the updated path is stored in $new_path.
17397 
17398   input_path="$new_path"
17399   # Check if we need to convert this using DOS-style short mode. If the path
17400   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17401   # take no chances and rewrite it.
17402   # Note: m4 eats our [], so we need to use [ and ] instead.
17403   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17404   if test "x$has_forbidden_chars" != x; then
17405     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17406     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17407     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17408     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17409       # Going to short mode and back again did indeed matter. Since short mode is
17410       # case insensitive, let's make it lowercase to improve readability.
17411       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17412       # Now convert it back to Unix-style (cygpath)
17413       input_path=`$CYGPATH -u "$shortmode_path"`
17414       new_path="$input_path"
17415     fi
17416   fi
17417 
17418   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17419   if test "x$test_cygdrive_prefix" = x; then
17420     # As a simple fix, exclude /usr/bin since it's not a real path.
17421     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17422       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17423       # a path prefixed by /cygdrive for fixpath to work.
17424       new_path="$CYGWIN_ROOT_PATH$input_path"
17425     fi
17426   fi
17427 
17428 
17429   if test "x$path" != "x$new_path"; then
17430     OUTPUT_ROOT="$new_path"
17431     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17432 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17433   fi
17434 
17435     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17436 
17437   path="$OUTPUT_ROOT"
17438   has_colon=`$ECHO $path | $GREP ^.:`
17439   new_path="$path"
17440   if test "x$has_colon" = x; then
17441     # Not in mixed or Windows style, start by that.
17442     new_path=`cmd //c echo $path`
17443   fi
17444 
17445 
17446   input_path="$new_path"
17447   # Check if we need to convert this using DOS-style short mode. If the path
17448   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17449   # take no chances and rewrite it.
17450   # Note: m4 eats our [], so we need to use [ and ] instead.
17451   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17452   if test "x$has_forbidden_chars" != x; then
17453     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17454     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17455   fi
17456 
17457 
17458   windows_path="$new_path"
17459   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17460     unix_path=`$CYGPATH -u "$windows_path"`
17461     new_path="$unix_path"
17462   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17463     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17464     new_path="$unix_path"
17465   fi
17466 
17467   if test "x$path" != "x$new_path"; then
17468     OUTPUT_ROOT="$new_path"
17469     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17470 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17471   fi
17472 
17473   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17474   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17475 
17476     else
17477       # We're on a unix platform. Hooray! :)
17478       path="$OUTPUT_ROOT"
17479       has_space=`$ECHO "$path" | $GREP " "`
17480       if test "x$has_space" != x; then
17481         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17482 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17483         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17484       fi
17485 
17486       # Use eval to expand a potential ~
17487       eval path="$path"
17488       if test ! -f "$path" && test ! -d "$path"; then
17489         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
17490       fi
17491 
17492       if test -d "$path"; then
17493         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
17494       else
17495         dir="`$DIRNAME "$path"`"
17496         base="`$BASENAME "$path"`"
17497         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
17498       fi
17499     fi
17500   fi
17501 
17502 
17503   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
17504   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17505 
17506   SPEC=$OUTPUT_ROOT/spec.gmk
17507 
17508   CONF_NAME=$CONF_NAME
17509 
17510   OUTPUT_ROOT=$OUTPUT_ROOT
17511 
17512 
17513 
17514   # The spec.gmk file contains all variables for the make system.
17515   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17516 
17517   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17518   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17519 
17520   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17521   ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17522 
17523   # The compare.sh is used to compare the build output to other builds.
17524   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17525 
17526   # The generated Makefile knows where the spec.gmk is and where the source is.
17527   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
17528   # which will look for generated configurations
17529   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
17530 
17531 
17532 
17533 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17534 
17535   for ac_prog in apt-get yum port pkgutil pkgadd
17536 do
17537   # Extract the first word of "$ac_prog", so it can be a program name with args.
17538 set dummy $ac_prog; ac_word=$2
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17540 $as_echo_n "checking for $ac_word... " >&6; }
17541 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17542   $as_echo_n "(cached) " >&6
17543 else
17544   if test -n "$PKGHANDLER"; then
17545   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17546 else
17547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17548 for as_dir in $PATH
17549 do
17550   IFS=$as_save_IFS
17551   test -z "$as_dir" && as_dir=.
17552     for ac_exec_ext in '' $ac_executable_extensions; do
17553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17554     ac_cv_prog_PKGHANDLER="$ac_prog"
17555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17556     break 2
17557   fi
17558 done
17559   done
17560 IFS=$as_save_IFS
17561 
17562 fi
17563 fi
17564 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17565 if test -n "$PKGHANDLER"; then
17566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17567 $as_echo "$PKGHANDLER" >&6; }
17568 else
17569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17570 $as_echo "no" >&6; }
17571 fi
17572 
17573 
17574   test -n "$PKGHANDLER" && break
17575 done
17576 
17577 
17578 
17579 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17580 
17581 
17582 
17583   # Publish this variable in the help.
17584 
17585 
17586   if [ -z "${MAKE+x}" ]; then
17587     # The variable is not set by user, try to locate tool using the code snippet
17588 
17589     # Try our hardest to locate a correct version of GNU make
17590     for ac_prog in gmake
17591 do
17592   # Extract the first word of "$ac_prog", so it can be a program name with args.
17593 set dummy $ac_prog; ac_word=$2
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17595 $as_echo_n "checking for $ac_word... " >&6; }
17596 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17597   $as_echo_n "(cached) " >&6
17598 else
17599   case $CHECK_GMAKE in
17600   [\\/]* | ?:[\\/]*)
17601   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17602   ;;
17603   *)
17604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17605 for as_dir in $PATH
17606 do
17607   IFS=$as_save_IFS
17608   test -z "$as_dir" && as_dir=.
17609     for ac_exec_ext in '' $ac_executable_extensions; do
17610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17611     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17613     break 2
17614   fi
17615 done
17616   done
17617 IFS=$as_save_IFS
17618 
17619   ;;
17620 esac
17621 fi
17622 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17623 if test -n "$CHECK_GMAKE"; then
17624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17625 $as_echo "$CHECK_GMAKE" >&6; }
17626 else
17627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17628 $as_echo "no" >&6; }
17629 fi
17630 
17631 
17632   test -n "$CHECK_GMAKE" && break
17633 done
17634 
17635 
17636   MAKE_CANDIDATE=""$CHECK_GMAKE""
17637   DESCRIPTION="gmake in PATH"
17638 
17639   # On Cygwin, we require a newer version of make than on other platforms
17640   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17641     MAKE_VERSION_EXPR="-e 4\."
17642     MAKE_REQUIRED_VERSION="4.0"
17643    else
17644     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17645     MAKE_REQUIRED_VERSION="3.81"
17646   fi
17647 
17648   if test "x$MAKE_CANDIDATE" != x; then
17649     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17650 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17651     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17652     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17653     if test "x$IS_GNU_MAKE" = x; then
17654       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17655 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17656     else
17657       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17658       if test "x$IS_MODERN_MAKE" = x; then
17659         { $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
17660 $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;}
17661       else
17662         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17663           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17664             MAKE_EXPECTED_ENV='cygwin'
17665           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17666             MAKE_EXPECTED_ENV='msys'
17667           else
17668             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17669           fi
17670           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17671           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17672         else
17673           # Not relevant for non-Windows
17674           IS_MAKE_CORRECT_ENV=true
17675         fi
17676         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17677           { $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
17678 $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;}
17679         else
17680           FOUND_MAKE=$MAKE_CANDIDATE
17681 
17682   # Only process if variable expands to non-empty
17683 
17684   if test "x$FOUND_MAKE" != x; then
17685     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17686 
17687   # First separate the path from the arguments. This will split at the first
17688   # space.
17689   complete="$FOUND_MAKE"
17690   path="${complete%% *}"
17691   tmp="$complete EOL"
17692   arguments="${tmp#* }"
17693 
17694   # Input might be given as Windows format, start by converting to
17695   # unix format.
17696   new_path=`$CYGPATH -u "$path"`
17697 
17698   # Now try to locate executable using which
17699   new_path=`$WHICH "$new_path" 2> /dev/null`
17700   # bat and cmd files are not always considered executable in cygwin causing which
17701   # to not find them
17702   if test "x$new_path" = x \
17703       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17704       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17705     new_path=`$CYGPATH -u "$path"`
17706   fi
17707   if test "x$new_path" = x; then
17708     # Oops. Which didn't find the executable.
17709     # The splitting of arguments from the executable at a space might have been incorrect,
17710     # since paths with space are more likely in Windows. Give it another try with the whole
17711     # argument.
17712     path="$complete"
17713     arguments="EOL"
17714     new_path=`$CYGPATH -u "$path"`
17715     new_path=`$WHICH "$new_path" 2> /dev/null`
17716     # bat and cmd files are not always considered executable in cygwin causing which
17717     # to not find them
17718     if test "x$new_path" = x \
17719         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17720         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17721       new_path=`$CYGPATH -u "$path"`
17722     fi
17723     if test "x$new_path" = x; then
17724       # It's still not found. Now this is an unrecoverable error.
17725       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17726 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17727       has_space=`$ECHO "$complete" | $GREP " "`
17728       if test "x$has_space" != x; then
17729         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17730 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17731       fi
17732       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17733     fi
17734   fi
17735 
17736   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17737   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17738   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17739   # "foo.exe" is OK but "foo" is an error.
17740   #
17741   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17742   # It is also a way to make sure we got the proper file name for the real test later on.
17743   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17744   if test "x$test_shortpath" = x; then
17745     # Short path failed, file does not exist as specified.
17746     # Try adding .exe or .cmd
17747     if test -f "${new_path}.exe"; then
17748       input_to_shortpath="${new_path}.exe"
17749     elif test -f "${new_path}.cmd"; then
17750       input_to_shortpath="${new_path}.cmd"
17751     else
17752       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17753 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17754       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17755 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17756       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17757     fi
17758   else
17759     input_to_shortpath="$new_path"
17760   fi
17761 
17762   # Call helper function which possibly converts this using DOS-style short mode.
17763   # If so, the updated path is stored in $new_path.
17764   new_path="$input_to_shortpath"
17765 
17766   input_path="$input_to_shortpath"
17767   # Check if we need to convert this using DOS-style short mode. If the path
17768   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17769   # take no chances and rewrite it.
17770   # Note: m4 eats our [], so we need to use [ and ] instead.
17771   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17772   if test "x$has_forbidden_chars" != x; then
17773     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17774     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17775     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17776     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17777       # Going to short mode and back again did indeed matter. Since short mode is
17778       # case insensitive, let's make it lowercase to improve readability.
17779       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17780       # Now convert it back to Unix-style (cygpath)
17781       input_path=`$CYGPATH -u "$shortmode_path"`
17782       new_path="$input_path"
17783     fi
17784   fi
17785 
17786   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17787   if test "x$test_cygdrive_prefix" = x; then
17788     # As a simple fix, exclude /usr/bin since it's not a real path.
17789     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17790       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17791       # a path prefixed by /cygdrive for fixpath to work.
17792       new_path="$CYGWIN_ROOT_PATH$input_path"
17793     fi
17794   fi
17795 
17796   # remove trailing .exe if any
17797   new_path="${new_path/%.exe/}"
17798 
17799     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17800 
17801   # First separate the path from the arguments. This will split at the first
17802   # space.
17803   complete="$FOUND_MAKE"
17804   path="${complete%% *}"
17805   tmp="$complete EOL"
17806   arguments="${tmp#* }"
17807 
17808   # Input might be given as Windows format, start by converting to
17809   # unix format.
17810   new_path="$path"
17811 
17812   windows_path="$new_path"
17813   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17814     unix_path=`$CYGPATH -u "$windows_path"`
17815     new_path="$unix_path"
17816   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17817     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17818     new_path="$unix_path"
17819   fi
17820 
17821 
17822   # Now try to locate executable using which
17823   new_path=`$WHICH "$new_path" 2> /dev/null`
17824 
17825   if test "x$new_path" = x; then
17826     # Oops. Which didn't find the executable.
17827     # The splitting of arguments from the executable at a space might have been incorrect,
17828     # since paths with space are more likely in Windows. Give it another try with the whole
17829     # argument.
17830     path="$complete"
17831     arguments="EOL"
17832     new_path="$path"
17833 
17834   windows_path="$new_path"
17835   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17836     unix_path=`$CYGPATH -u "$windows_path"`
17837     new_path="$unix_path"
17838   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17839     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17840     new_path="$unix_path"
17841   fi
17842 
17843 
17844     new_path=`$WHICH "$new_path" 2> /dev/null`
17845     # bat and cmd files are not always considered executable in MSYS causing which
17846     # to not find them
17847     if test "x$new_path" = x \
17848         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17849         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17850       new_path="$path"
17851 
17852   windows_path="$new_path"
17853   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17854     unix_path=`$CYGPATH -u "$windows_path"`
17855     new_path="$unix_path"
17856   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17857     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17858     new_path="$unix_path"
17859   fi
17860 
17861     fi
17862 
17863     if test "x$new_path" = x; then
17864       # It's still not found. Now this is an unrecoverable error.
17865       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17866 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17867       has_space=`$ECHO "$complete" | $GREP " "`
17868       if test "x$has_space" != x; then
17869         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17870 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17871       fi
17872       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17873     fi
17874   fi
17875 
17876   # Now new_path has a complete unix path to the binary
17877   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17878     # Keep paths in /bin as-is, but remove trailing .exe if any
17879     new_path="${new_path/%.exe/}"
17880     # Do not save /bin paths to all_fixpath_prefixes!
17881   else
17882     # Not in mixed or Windows style, start by that.
17883     new_path=`cmd //c echo $new_path`
17884 
17885   input_path="$new_path"
17886   # Check if we need to convert this using DOS-style short mode. If the path
17887   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17888   # take no chances and rewrite it.
17889   # Note: m4 eats our [], so we need to use [ and ] instead.
17890   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17891   if test "x$has_forbidden_chars" != x; then
17892     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17893     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17894   fi
17895 
17896     # Output is in $new_path
17897 
17898   windows_path="$new_path"
17899   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17900     unix_path=`$CYGPATH -u "$windows_path"`
17901     new_path="$unix_path"
17902   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17903     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17904     new_path="$unix_path"
17905   fi
17906 
17907     # remove trailing .exe if any
17908     new_path="${new_path/%.exe/}"
17909 
17910     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17911     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17912   fi
17913 
17914     else
17915       # We're on a unix platform. Hooray! :)
17916       # First separate the path from the arguments. This will split at the first
17917       # space.
17918       complete="$FOUND_MAKE"
17919       path="${complete%% *}"
17920       tmp="$complete EOL"
17921       arguments="${tmp#* }"
17922 
17923       # Cannot rely on the command "which" here since it doesn't always work.
17924       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17925       if test -z "$is_absolute_path"; then
17926         # Path to executable is not absolute. Find it.
17927         IFS_save="$IFS"
17928         IFS=:
17929         for p in $PATH; do
17930           if test -f "$p/$path" && test -x "$p/$path"; then
17931             new_path="$p/$path"
17932             break
17933           fi
17934         done
17935         IFS="$IFS_save"
17936       else
17937         # This is an absolute path, we can use it without further modifications.
17938         new_path="$path"
17939       fi
17940 
17941       if test "x$new_path" = x; then
17942         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17943 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17944         has_space=`$ECHO "$complete" | $GREP " "`
17945         if test "x$has_space" != x; then
17946           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17947 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17948         fi
17949         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17950       fi
17951     fi
17952 
17953     # Now join together the path and the arguments once again
17954     if test "x$arguments" != xEOL; then
17955       new_complete="$new_path ${arguments% *}"
17956     else
17957       new_complete="$new_path"
17958     fi
17959 
17960     if test "x$complete" != "x$new_complete"; then
17961       FOUND_MAKE="$new_complete"
17962       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17963 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17964     fi
17965   fi
17966 
17967         fi
17968       fi
17969     fi
17970   fi
17971 
17972 
17973     if test "x$FOUND_MAKE" = x; then
17974       for ac_prog in make
17975 do
17976   # Extract the first word of "$ac_prog", so it can be a program name with args.
17977 set dummy $ac_prog; ac_word=$2
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17979 $as_echo_n "checking for $ac_word... " >&6; }
17980 if ${ac_cv_path_CHECK_MAKE+:} false; then :
17981   $as_echo_n "(cached) " >&6
17982 else
17983   case $CHECK_MAKE in
17984   [\\/]* | ?:[\\/]*)
17985   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
17986   ;;
17987   *)
17988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17989 for as_dir in $PATH
17990 do
17991   IFS=$as_save_IFS
17992   test -z "$as_dir" && as_dir=.
17993     for ac_exec_ext in '' $ac_executable_extensions; do
17994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17995     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
17996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17997     break 2
17998   fi
17999 done
18000   done
18001 IFS=$as_save_IFS
18002 
18003   ;;
18004 esac
18005 fi
18006 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18007 if test -n "$CHECK_MAKE"; then
18008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18009 $as_echo "$CHECK_MAKE" >&6; }
18010 else
18011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18012 $as_echo "no" >&6; }
18013 fi
18014 
18015 
18016   test -n "$CHECK_MAKE" && break
18017 done
18018 
18019 
18020   MAKE_CANDIDATE=""$CHECK_MAKE""
18021   DESCRIPTION="make in PATH"
18022 
18023   # On Cygwin, we require a newer version of make than on other platforms
18024   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18025     MAKE_VERSION_EXPR="-e 4\."
18026     MAKE_REQUIRED_VERSION="4.0"
18027    else
18028     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18029     MAKE_REQUIRED_VERSION="3.81"
18030   fi
18031 
18032   if test "x$MAKE_CANDIDATE" != x; then
18033     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18034 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18035     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18036     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18037     if test "x$IS_GNU_MAKE" = x; then
18038       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18039 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18040     else
18041       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18042       if test "x$IS_MODERN_MAKE" = x; then
18043         { $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
18044 $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;}
18045       else
18046         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18047           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18048             MAKE_EXPECTED_ENV='cygwin'
18049           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18050             MAKE_EXPECTED_ENV='msys'
18051           else
18052             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18053           fi
18054           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18055           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18056         else
18057           # Not relevant for non-Windows
18058           IS_MAKE_CORRECT_ENV=true
18059         fi
18060         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18061           { $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
18062 $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;}
18063         else
18064           FOUND_MAKE=$MAKE_CANDIDATE
18065 
18066   # Only process if variable expands to non-empty
18067 
18068   if test "x$FOUND_MAKE" != x; then
18069     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18070 
18071   # First separate the path from the arguments. This will split at the first
18072   # space.
18073   complete="$FOUND_MAKE"
18074   path="${complete%% *}"
18075   tmp="$complete EOL"
18076   arguments="${tmp#* }"
18077 
18078   # Input might be given as Windows format, start by converting to
18079   # unix format.
18080   new_path=`$CYGPATH -u "$path"`
18081 
18082   # Now try to locate executable using which
18083   new_path=`$WHICH "$new_path" 2> /dev/null`
18084   # bat and cmd files are not always considered executable in cygwin causing which
18085   # to not find them
18086   if test "x$new_path" = x \
18087       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18088       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18089     new_path=`$CYGPATH -u "$path"`
18090   fi
18091   if test "x$new_path" = x; then
18092     # Oops. Which didn't find the executable.
18093     # The splitting of arguments from the executable at a space might have been incorrect,
18094     # since paths with space are more likely in Windows. Give it another try with the whole
18095     # argument.
18096     path="$complete"
18097     arguments="EOL"
18098     new_path=`$CYGPATH -u "$path"`
18099     new_path=`$WHICH "$new_path" 2> /dev/null`
18100     # bat and cmd files are not always considered executable in cygwin causing which
18101     # to not find them
18102     if test "x$new_path" = x \
18103         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18104         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18105       new_path=`$CYGPATH -u "$path"`
18106     fi
18107     if test "x$new_path" = x; then
18108       # It's still not found. Now this is an unrecoverable error.
18109       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18110 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18111       has_space=`$ECHO "$complete" | $GREP " "`
18112       if test "x$has_space" != x; then
18113         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18114 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18115       fi
18116       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18117     fi
18118   fi
18119 
18120   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18121   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18122   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18123   # "foo.exe" is OK but "foo" is an error.
18124   #
18125   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18126   # It is also a way to make sure we got the proper file name for the real test later on.
18127   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18128   if test "x$test_shortpath" = x; then
18129     # Short path failed, file does not exist as specified.
18130     # Try adding .exe or .cmd
18131     if test -f "${new_path}.exe"; then
18132       input_to_shortpath="${new_path}.exe"
18133     elif test -f "${new_path}.cmd"; then
18134       input_to_shortpath="${new_path}.cmd"
18135     else
18136       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18137 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18138       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18139 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18140       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18141     fi
18142   else
18143     input_to_shortpath="$new_path"
18144   fi
18145 
18146   # Call helper function which possibly converts this using DOS-style short mode.
18147   # If so, the updated path is stored in $new_path.
18148   new_path="$input_to_shortpath"
18149 
18150   input_path="$input_to_shortpath"
18151   # Check if we need to convert this using DOS-style short mode. If the path
18152   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18153   # take no chances and rewrite it.
18154   # Note: m4 eats our [], so we need to use [ and ] instead.
18155   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18156   if test "x$has_forbidden_chars" != x; then
18157     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18158     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18159     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18160     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18161       # Going to short mode and back again did indeed matter. Since short mode is
18162       # case insensitive, let's make it lowercase to improve readability.
18163       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18164       # Now convert it back to Unix-style (cygpath)
18165       input_path=`$CYGPATH -u "$shortmode_path"`
18166       new_path="$input_path"
18167     fi
18168   fi
18169 
18170   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18171   if test "x$test_cygdrive_prefix" = x; then
18172     # As a simple fix, exclude /usr/bin since it's not a real path.
18173     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18174       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18175       # a path prefixed by /cygdrive for fixpath to work.
18176       new_path="$CYGWIN_ROOT_PATH$input_path"
18177     fi
18178   fi
18179 
18180   # remove trailing .exe if any
18181   new_path="${new_path/%.exe/}"
18182 
18183     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18184 
18185   # First separate the path from the arguments. This will split at the first
18186   # space.
18187   complete="$FOUND_MAKE"
18188   path="${complete%% *}"
18189   tmp="$complete EOL"
18190   arguments="${tmp#* }"
18191 
18192   # Input might be given as Windows format, start by converting to
18193   # unix format.
18194   new_path="$path"
18195 
18196   windows_path="$new_path"
18197   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18198     unix_path=`$CYGPATH -u "$windows_path"`
18199     new_path="$unix_path"
18200   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18201     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18202     new_path="$unix_path"
18203   fi
18204 
18205 
18206   # Now try to locate executable using which
18207   new_path=`$WHICH "$new_path" 2> /dev/null`
18208 
18209   if test "x$new_path" = x; then
18210     # Oops. Which didn't find the executable.
18211     # The splitting of arguments from the executable at a space might have been incorrect,
18212     # since paths with space are more likely in Windows. Give it another try with the whole
18213     # argument.
18214     path="$complete"
18215     arguments="EOL"
18216     new_path="$path"
18217 
18218   windows_path="$new_path"
18219   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18220     unix_path=`$CYGPATH -u "$windows_path"`
18221     new_path="$unix_path"
18222   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18223     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18224     new_path="$unix_path"
18225   fi
18226 
18227 
18228     new_path=`$WHICH "$new_path" 2> /dev/null`
18229     # bat and cmd files are not always considered executable in MSYS causing which
18230     # to not find them
18231     if test "x$new_path" = x \
18232         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18233         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18234       new_path="$path"
18235 
18236   windows_path="$new_path"
18237   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18238     unix_path=`$CYGPATH -u "$windows_path"`
18239     new_path="$unix_path"
18240   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18241     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18242     new_path="$unix_path"
18243   fi
18244 
18245     fi
18246 
18247     if test "x$new_path" = x; then
18248       # It's still not found. Now this is an unrecoverable error.
18249       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18250 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18251       has_space=`$ECHO "$complete" | $GREP " "`
18252       if test "x$has_space" != x; then
18253         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18254 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18255       fi
18256       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18257     fi
18258   fi
18259 
18260   # Now new_path has a complete unix path to the binary
18261   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18262     # Keep paths in /bin as-is, but remove trailing .exe if any
18263     new_path="${new_path/%.exe/}"
18264     # Do not save /bin paths to all_fixpath_prefixes!
18265   else
18266     # Not in mixed or Windows style, start by that.
18267     new_path=`cmd //c echo $new_path`
18268 
18269   input_path="$new_path"
18270   # Check if we need to convert this using DOS-style short mode. If the path
18271   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18272   # take no chances and rewrite it.
18273   # Note: m4 eats our [], so we need to use [ and ] instead.
18274   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18275   if test "x$has_forbidden_chars" != x; then
18276     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18277     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18278   fi
18279 
18280     # Output is in $new_path
18281 
18282   windows_path="$new_path"
18283   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18284     unix_path=`$CYGPATH -u "$windows_path"`
18285     new_path="$unix_path"
18286   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18287     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18288     new_path="$unix_path"
18289   fi
18290 
18291     # remove trailing .exe if any
18292     new_path="${new_path/%.exe/}"
18293 
18294     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18295     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18296   fi
18297 
18298     else
18299       # We're on a unix platform. Hooray! :)
18300       # First separate the path from the arguments. This will split at the first
18301       # space.
18302       complete="$FOUND_MAKE"
18303       path="${complete%% *}"
18304       tmp="$complete EOL"
18305       arguments="${tmp#* }"
18306 
18307       # Cannot rely on the command "which" here since it doesn't always work.
18308       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18309       if test -z "$is_absolute_path"; then
18310         # Path to executable is not absolute. Find it.
18311         IFS_save="$IFS"
18312         IFS=:
18313         for p in $PATH; do
18314           if test -f "$p/$path" && test -x "$p/$path"; then
18315             new_path="$p/$path"
18316             break
18317           fi
18318         done
18319         IFS="$IFS_save"
18320       else
18321         # This is an absolute path, we can use it without further modifications.
18322         new_path="$path"
18323       fi
18324 
18325       if test "x$new_path" = x; then
18326         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18327 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18328         has_space=`$ECHO "$complete" | $GREP " "`
18329         if test "x$has_space" != x; then
18330           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18331 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18332         fi
18333         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18334       fi
18335     fi
18336 
18337     # Now join together the path and the arguments once again
18338     if test "x$arguments" != xEOL; then
18339       new_complete="$new_path ${arguments% *}"
18340     else
18341       new_complete="$new_path"
18342     fi
18343 
18344     if test "x$complete" != "x$new_complete"; then
18345       FOUND_MAKE="$new_complete"
18346       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18347 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18348     fi
18349   fi
18350 
18351         fi
18352       fi
18353     fi
18354   fi
18355 
18356     fi
18357 
18358     if test "x$FOUND_MAKE" = x; then
18359       if test "x$TOOLCHAIN_PATH" != x; then
18360         # We have a toolchain path, check that as well before giving up.
18361         OLD_PATH=$PATH
18362         PATH=$TOOLCHAIN_PATH:$PATH
18363         for ac_prog in gmake
18364 do
18365   # Extract the first word of "$ac_prog", so it can be a program name with args.
18366 set dummy $ac_prog; ac_word=$2
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18368 $as_echo_n "checking for $ac_word... " >&6; }
18369 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18370   $as_echo_n "(cached) " >&6
18371 else
18372   case $CHECK_TOOLSDIR_GMAKE in
18373   [\\/]* | ?:[\\/]*)
18374   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18375   ;;
18376   *)
18377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18378 for as_dir in $PATH
18379 do
18380   IFS=$as_save_IFS
18381   test -z "$as_dir" && as_dir=.
18382     for ac_exec_ext in '' $ac_executable_extensions; do
18383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18384     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18386     break 2
18387   fi
18388 done
18389   done
18390 IFS=$as_save_IFS
18391 
18392   ;;
18393 esac
18394 fi
18395 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18396 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18398 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18399 else
18400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18401 $as_echo "no" >&6; }
18402 fi
18403 
18404 
18405   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18406 done
18407 
18408 
18409   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18410   DESCRIPTION="gmake in tools-dir"
18411 
18412   # On Cygwin, we require a newer version of make than on other platforms
18413   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18414     MAKE_VERSION_EXPR="-e 4\."
18415     MAKE_REQUIRED_VERSION="4.0"
18416    else
18417     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18418     MAKE_REQUIRED_VERSION="3.81"
18419   fi
18420 
18421   if test "x$MAKE_CANDIDATE" != x; then
18422     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18423 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18424     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18425     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18426     if test "x$IS_GNU_MAKE" = x; then
18427       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18428 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18429     else
18430       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18431       if test "x$IS_MODERN_MAKE" = x; then
18432         { $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
18433 $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;}
18434       else
18435         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18436           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18437             MAKE_EXPECTED_ENV='cygwin'
18438           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18439             MAKE_EXPECTED_ENV='msys'
18440           else
18441             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18442           fi
18443           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18444           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18445         else
18446           # Not relevant for non-Windows
18447           IS_MAKE_CORRECT_ENV=true
18448         fi
18449         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18450           { $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
18451 $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;}
18452         else
18453           FOUND_MAKE=$MAKE_CANDIDATE
18454 
18455   # Only process if variable expands to non-empty
18456 
18457   if test "x$FOUND_MAKE" != x; then
18458     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18459 
18460   # First separate the path from the arguments. This will split at the first
18461   # space.
18462   complete="$FOUND_MAKE"
18463   path="${complete%% *}"
18464   tmp="$complete EOL"
18465   arguments="${tmp#* }"
18466 
18467   # Input might be given as Windows format, start by converting to
18468   # unix format.
18469   new_path=`$CYGPATH -u "$path"`
18470 
18471   # Now try to locate executable using which
18472   new_path=`$WHICH "$new_path" 2> /dev/null`
18473   # bat and cmd files are not always considered executable in cygwin causing which
18474   # to not find them
18475   if test "x$new_path" = x \
18476       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18477       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18478     new_path=`$CYGPATH -u "$path"`
18479   fi
18480   if test "x$new_path" = x; then
18481     # Oops. Which didn't find the executable.
18482     # The splitting of arguments from the executable at a space might have been incorrect,
18483     # since paths with space are more likely in Windows. Give it another try with the whole
18484     # argument.
18485     path="$complete"
18486     arguments="EOL"
18487     new_path=`$CYGPATH -u "$path"`
18488     new_path=`$WHICH "$new_path" 2> /dev/null`
18489     # bat and cmd files are not always considered executable in cygwin causing which
18490     # to not find them
18491     if test "x$new_path" = x \
18492         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18493         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18494       new_path=`$CYGPATH -u "$path"`
18495     fi
18496     if test "x$new_path" = x; then
18497       # It's still not found. Now this is an unrecoverable error.
18498       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18499 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18500       has_space=`$ECHO "$complete" | $GREP " "`
18501       if test "x$has_space" != x; then
18502         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18503 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18504       fi
18505       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18506     fi
18507   fi
18508 
18509   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18510   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18511   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18512   # "foo.exe" is OK but "foo" is an error.
18513   #
18514   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18515   # It is also a way to make sure we got the proper file name for the real test later on.
18516   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18517   if test "x$test_shortpath" = x; then
18518     # Short path failed, file does not exist as specified.
18519     # Try adding .exe or .cmd
18520     if test -f "${new_path}.exe"; then
18521       input_to_shortpath="${new_path}.exe"
18522     elif test -f "${new_path}.cmd"; then
18523       input_to_shortpath="${new_path}.cmd"
18524     else
18525       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18526 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18527       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18528 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18529       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18530     fi
18531   else
18532     input_to_shortpath="$new_path"
18533   fi
18534 
18535   # Call helper function which possibly converts this using DOS-style short mode.
18536   # If so, the updated path is stored in $new_path.
18537   new_path="$input_to_shortpath"
18538 
18539   input_path="$input_to_shortpath"
18540   # Check if we need to convert this using DOS-style short mode. If the path
18541   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18542   # take no chances and rewrite it.
18543   # Note: m4 eats our [], so we need to use [ and ] instead.
18544   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18545   if test "x$has_forbidden_chars" != x; then
18546     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18547     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18548     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18549     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18550       # Going to short mode and back again did indeed matter. Since short mode is
18551       # case insensitive, let's make it lowercase to improve readability.
18552       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18553       # Now convert it back to Unix-style (cygpath)
18554       input_path=`$CYGPATH -u "$shortmode_path"`
18555       new_path="$input_path"
18556     fi
18557   fi
18558 
18559   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18560   if test "x$test_cygdrive_prefix" = x; then
18561     # As a simple fix, exclude /usr/bin since it's not a real path.
18562     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18563       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18564       # a path prefixed by /cygdrive for fixpath to work.
18565       new_path="$CYGWIN_ROOT_PATH$input_path"
18566     fi
18567   fi
18568 
18569   # remove trailing .exe if any
18570   new_path="${new_path/%.exe/}"
18571 
18572     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18573 
18574   # First separate the path from the arguments. This will split at the first
18575   # space.
18576   complete="$FOUND_MAKE"
18577   path="${complete%% *}"
18578   tmp="$complete EOL"
18579   arguments="${tmp#* }"
18580 
18581   # Input might be given as Windows format, start by converting to
18582   # unix format.
18583   new_path="$path"
18584 
18585   windows_path="$new_path"
18586   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18587     unix_path=`$CYGPATH -u "$windows_path"`
18588     new_path="$unix_path"
18589   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18590     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18591     new_path="$unix_path"
18592   fi
18593 
18594 
18595   # Now try to locate executable using which
18596   new_path=`$WHICH "$new_path" 2> /dev/null`
18597 
18598   if test "x$new_path" = x; then
18599     # Oops. Which didn't find the executable.
18600     # The splitting of arguments from the executable at a space might have been incorrect,
18601     # since paths with space are more likely in Windows. Give it another try with the whole
18602     # argument.
18603     path="$complete"
18604     arguments="EOL"
18605     new_path="$path"
18606 
18607   windows_path="$new_path"
18608   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18609     unix_path=`$CYGPATH -u "$windows_path"`
18610     new_path="$unix_path"
18611   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18612     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18613     new_path="$unix_path"
18614   fi
18615 
18616 
18617     new_path=`$WHICH "$new_path" 2> /dev/null`
18618     # bat and cmd files are not always considered executable in MSYS causing which
18619     # to not find them
18620     if test "x$new_path" = x \
18621         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18622         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18623       new_path="$path"
18624 
18625   windows_path="$new_path"
18626   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18627     unix_path=`$CYGPATH -u "$windows_path"`
18628     new_path="$unix_path"
18629   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18630     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18631     new_path="$unix_path"
18632   fi
18633 
18634     fi
18635 
18636     if test "x$new_path" = x; then
18637       # It's still not found. Now this is an unrecoverable error.
18638       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18639 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18640       has_space=`$ECHO "$complete" | $GREP " "`
18641       if test "x$has_space" != x; then
18642         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18643 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18644       fi
18645       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18646     fi
18647   fi
18648 
18649   # Now new_path has a complete unix path to the binary
18650   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18651     # Keep paths in /bin as-is, but remove trailing .exe if any
18652     new_path="${new_path/%.exe/}"
18653     # Do not save /bin paths to all_fixpath_prefixes!
18654   else
18655     # Not in mixed or Windows style, start by that.
18656     new_path=`cmd //c echo $new_path`
18657 
18658   input_path="$new_path"
18659   # Check if we need to convert this using DOS-style short mode. If the path
18660   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18661   # take no chances and rewrite it.
18662   # Note: m4 eats our [], so we need to use [ and ] instead.
18663   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18664   if test "x$has_forbidden_chars" != x; then
18665     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18666     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18667   fi
18668 
18669     # Output is in $new_path
18670 
18671   windows_path="$new_path"
18672   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18673     unix_path=`$CYGPATH -u "$windows_path"`
18674     new_path="$unix_path"
18675   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18676     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18677     new_path="$unix_path"
18678   fi
18679 
18680     # remove trailing .exe if any
18681     new_path="${new_path/%.exe/}"
18682 
18683     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18684     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18685   fi
18686 
18687     else
18688       # We're on a unix platform. Hooray! :)
18689       # First separate the path from the arguments. This will split at the first
18690       # space.
18691       complete="$FOUND_MAKE"
18692       path="${complete%% *}"
18693       tmp="$complete EOL"
18694       arguments="${tmp#* }"
18695 
18696       # Cannot rely on the command "which" here since it doesn't always work.
18697       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18698       if test -z "$is_absolute_path"; then
18699         # Path to executable is not absolute. Find it.
18700         IFS_save="$IFS"
18701         IFS=:
18702         for p in $PATH; do
18703           if test -f "$p/$path" && test -x "$p/$path"; then
18704             new_path="$p/$path"
18705             break
18706           fi
18707         done
18708         IFS="$IFS_save"
18709       else
18710         # This is an absolute path, we can use it without further modifications.
18711         new_path="$path"
18712       fi
18713 
18714       if test "x$new_path" = x; then
18715         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18716 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18717         has_space=`$ECHO "$complete" | $GREP " "`
18718         if test "x$has_space" != x; then
18719           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18720 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18721         fi
18722         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18723       fi
18724     fi
18725 
18726     # Now join together the path and the arguments once again
18727     if test "x$arguments" != xEOL; then
18728       new_complete="$new_path ${arguments% *}"
18729     else
18730       new_complete="$new_path"
18731     fi
18732 
18733     if test "x$complete" != "x$new_complete"; then
18734       FOUND_MAKE="$new_complete"
18735       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18736 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18737     fi
18738   fi
18739 
18740         fi
18741       fi
18742     fi
18743   fi
18744 
18745         if test "x$FOUND_MAKE" = x; then
18746           for ac_prog in make
18747 do
18748   # Extract the first word of "$ac_prog", so it can be a program name with args.
18749 set dummy $ac_prog; ac_word=$2
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18751 $as_echo_n "checking for $ac_word... " >&6; }
18752 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
18753   $as_echo_n "(cached) " >&6
18754 else
18755   case $CHECK_TOOLSDIR_MAKE in
18756   [\\/]* | ?:[\\/]*)
18757   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
18758   ;;
18759   *)
18760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18761 for as_dir in $PATH
18762 do
18763   IFS=$as_save_IFS
18764   test -z "$as_dir" && as_dir=.
18765     for ac_exec_ext in '' $ac_executable_extensions; do
18766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18767     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
18768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18769     break 2
18770   fi
18771 done
18772   done
18773 IFS=$as_save_IFS
18774 
18775   ;;
18776 esac
18777 fi
18778 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
18779 if test -n "$CHECK_TOOLSDIR_MAKE"; then
18780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
18781 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
18782 else
18783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18784 $as_echo "no" >&6; }
18785 fi
18786 
18787 
18788   test -n "$CHECK_TOOLSDIR_MAKE" && break
18789 done
18790 
18791 
18792   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
18793   DESCRIPTION="make in tools-dir"
18794 
18795   # On Cygwin, we require a newer version of make than on other platforms
18796   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18797     MAKE_VERSION_EXPR="-e 4\."
18798     MAKE_REQUIRED_VERSION="4.0"
18799    else
18800     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18801     MAKE_REQUIRED_VERSION="3.81"
18802   fi
18803 
18804   if test "x$MAKE_CANDIDATE" != x; then
18805     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18806 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18807     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18808     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18809     if test "x$IS_GNU_MAKE" = x; then
18810       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18811 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18812     else
18813       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18814       if test "x$IS_MODERN_MAKE" = x; then
18815         { $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
18816 $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;}
18817       else
18818         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18819           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18820             MAKE_EXPECTED_ENV='cygwin'
18821           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18822             MAKE_EXPECTED_ENV='msys'
18823           else
18824             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18825           fi
18826           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18827           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18828         else
18829           # Not relevant for non-Windows
18830           IS_MAKE_CORRECT_ENV=true
18831         fi
18832         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18833           { $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
18834 $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;}
18835         else
18836           FOUND_MAKE=$MAKE_CANDIDATE
18837 
18838   # Only process if variable expands to non-empty
18839 
18840   if test "x$FOUND_MAKE" != x; then
18841     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18842 
18843   # First separate the path from the arguments. This will split at the first
18844   # space.
18845   complete="$FOUND_MAKE"
18846   path="${complete%% *}"
18847   tmp="$complete EOL"
18848   arguments="${tmp#* }"
18849 
18850   # Input might be given as Windows format, start by converting to
18851   # unix format.
18852   new_path=`$CYGPATH -u "$path"`
18853 
18854   # Now try to locate executable using which
18855   new_path=`$WHICH "$new_path" 2> /dev/null`
18856   # bat and cmd files are not always considered executable in cygwin causing which
18857   # to not find them
18858   if test "x$new_path" = x \
18859       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18860       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18861     new_path=`$CYGPATH -u "$path"`
18862   fi
18863   if test "x$new_path" = x; then
18864     # Oops. Which didn't find the executable.
18865     # The splitting of arguments from the executable at a space might have been incorrect,
18866     # since paths with space are more likely in Windows. Give it another try with the whole
18867     # argument.
18868     path="$complete"
18869     arguments="EOL"
18870     new_path=`$CYGPATH -u "$path"`
18871     new_path=`$WHICH "$new_path" 2> /dev/null`
18872     # bat and cmd files are not always considered executable in cygwin causing which
18873     # to not find them
18874     if test "x$new_path" = x \
18875         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18876         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18877       new_path=`$CYGPATH -u "$path"`
18878     fi
18879     if test "x$new_path" = x; then
18880       # It's still not found. Now this is an unrecoverable error.
18881       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18882 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18883       has_space=`$ECHO "$complete" | $GREP " "`
18884       if test "x$has_space" != x; then
18885         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18886 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18887       fi
18888       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18889     fi
18890   fi
18891 
18892   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18893   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18894   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18895   # "foo.exe" is OK but "foo" is an error.
18896   #
18897   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18898   # It is also a way to make sure we got the proper file name for the real test later on.
18899   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18900   if test "x$test_shortpath" = x; then
18901     # Short path failed, file does not exist as specified.
18902     # Try adding .exe or .cmd
18903     if test -f "${new_path}.exe"; then
18904       input_to_shortpath="${new_path}.exe"
18905     elif test -f "${new_path}.cmd"; then
18906       input_to_shortpath="${new_path}.cmd"
18907     else
18908       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18909 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18910       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18911 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18912       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18913     fi
18914   else
18915     input_to_shortpath="$new_path"
18916   fi
18917 
18918   # Call helper function which possibly converts this using DOS-style short mode.
18919   # If so, the updated path is stored in $new_path.
18920   new_path="$input_to_shortpath"
18921 
18922   input_path="$input_to_shortpath"
18923   # Check if we need to convert this using DOS-style short mode. If the path
18924   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18925   # take no chances and rewrite it.
18926   # Note: m4 eats our [], so we need to use [ and ] instead.
18927   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18928   if test "x$has_forbidden_chars" != x; then
18929     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18930     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18931     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18932     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18933       # Going to short mode and back again did indeed matter. Since short mode is
18934       # case insensitive, let's make it lowercase to improve readability.
18935       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18936       # Now convert it back to Unix-style (cygpath)
18937       input_path=`$CYGPATH -u "$shortmode_path"`
18938       new_path="$input_path"
18939     fi
18940   fi
18941 
18942   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18943   if test "x$test_cygdrive_prefix" = x; then
18944     # As a simple fix, exclude /usr/bin since it's not a real path.
18945     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18946       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18947       # a path prefixed by /cygdrive for fixpath to work.
18948       new_path="$CYGWIN_ROOT_PATH$input_path"
18949     fi
18950   fi
18951 
18952   # remove trailing .exe if any
18953   new_path="${new_path/%.exe/}"
18954 
18955     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18956 
18957   # First separate the path from the arguments. This will split at the first
18958   # space.
18959   complete="$FOUND_MAKE"
18960   path="${complete%% *}"
18961   tmp="$complete EOL"
18962   arguments="${tmp#* }"
18963 
18964   # Input might be given as Windows format, start by converting to
18965   # unix format.
18966   new_path="$path"
18967 
18968   windows_path="$new_path"
18969   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18970     unix_path=`$CYGPATH -u "$windows_path"`
18971     new_path="$unix_path"
18972   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18973     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18974     new_path="$unix_path"
18975   fi
18976 
18977 
18978   # Now try to locate executable using which
18979   new_path=`$WHICH "$new_path" 2> /dev/null`
18980 
18981   if test "x$new_path" = x; then
18982     # Oops. Which didn't find the executable.
18983     # The splitting of arguments from the executable at a space might have been incorrect,
18984     # since paths with space are more likely in Windows. Give it another try with the whole
18985     # argument.
18986     path="$complete"
18987     arguments="EOL"
18988     new_path="$path"
18989 
18990   windows_path="$new_path"
18991   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18992     unix_path=`$CYGPATH -u "$windows_path"`
18993     new_path="$unix_path"
18994   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18995     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18996     new_path="$unix_path"
18997   fi
18998 
18999 
19000     new_path=`$WHICH "$new_path" 2> /dev/null`
19001     # bat and cmd files are not always considered executable in MSYS causing which
19002     # to not find them
19003     if test "x$new_path" = x \
19004         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19005         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19006       new_path="$path"
19007 
19008   windows_path="$new_path"
19009   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19010     unix_path=`$CYGPATH -u "$windows_path"`
19011     new_path="$unix_path"
19012   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19013     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19014     new_path="$unix_path"
19015   fi
19016 
19017     fi
19018 
19019     if test "x$new_path" = x; then
19020       # It's still not found. Now this is an unrecoverable error.
19021       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19022 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19023       has_space=`$ECHO "$complete" | $GREP " "`
19024       if test "x$has_space" != x; then
19025         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19026 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19027       fi
19028       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19029     fi
19030   fi
19031 
19032   # Now new_path has a complete unix path to the binary
19033   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19034     # Keep paths in /bin as-is, but remove trailing .exe if any
19035     new_path="${new_path/%.exe/}"
19036     # Do not save /bin paths to all_fixpath_prefixes!
19037   else
19038     # Not in mixed or Windows style, start by that.
19039     new_path=`cmd //c echo $new_path`
19040 
19041   input_path="$new_path"
19042   # Check if we need to convert this using DOS-style short mode. If the path
19043   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19044   # take no chances and rewrite it.
19045   # Note: m4 eats our [], so we need to use [ and ] instead.
19046   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19047   if test "x$has_forbidden_chars" != x; then
19048     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19049     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19050   fi
19051 
19052     # Output is in $new_path
19053 
19054   windows_path="$new_path"
19055   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19056     unix_path=`$CYGPATH -u "$windows_path"`
19057     new_path="$unix_path"
19058   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19059     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19060     new_path="$unix_path"
19061   fi
19062 
19063     # remove trailing .exe if any
19064     new_path="${new_path/%.exe/}"
19065 
19066     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19067     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19068   fi
19069 
19070     else
19071       # We're on a unix platform. Hooray! :)
19072       # First separate the path from the arguments. This will split at the first
19073       # space.
19074       complete="$FOUND_MAKE"
19075       path="${complete%% *}"
19076       tmp="$complete EOL"
19077       arguments="${tmp#* }"
19078 
19079       # Cannot rely on the command "which" here since it doesn't always work.
19080       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19081       if test -z "$is_absolute_path"; then
19082         # Path to executable is not absolute. Find it.
19083         IFS_save="$IFS"
19084         IFS=:
19085         for p in $PATH; do
19086           if test -f "$p/$path" && test -x "$p/$path"; then
19087             new_path="$p/$path"
19088             break
19089           fi
19090         done
19091         IFS="$IFS_save"
19092       else
19093         # This is an absolute path, we can use it without further modifications.
19094         new_path="$path"
19095       fi
19096 
19097       if test "x$new_path" = x; then
19098         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19099 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19100         has_space=`$ECHO "$complete" | $GREP " "`
19101         if test "x$has_space" != x; then
19102           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19103 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19104         fi
19105         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19106       fi
19107     fi
19108 
19109     # Now join together the path and the arguments once again
19110     if test "x$arguments" != xEOL; then
19111       new_complete="$new_path ${arguments% *}"
19112     else
19113       new_complete="$new_path"
19114     fi
19115 
19116     if test "x$complete" != "x$new_complete"; then
19117       FOUND_MAKE="$new_complete"
19118       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19119 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19120     fi
19121   fi
19122 
19123         fi
19124       fi
19125     fi
19126   fi
19127 
19128         fi
19129         PATH=$OLD_PATH
19130       fi
19131     fi
19132 
19133     if test "x$FOUND_MAKE" = x; then
19134       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
19135     fi
19136 
19137   else
19138     # The variable is set, but is it from the command line or the environment?
19139 
19140     # Try to remove the string !MAKE! from our list.
19141     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19142     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19143       # If it failed, the variable was not from the command line. Ignore it,
19144       # but warn the user (except for BASH, which is always set by the calling BASH).
19145       if test "xMAKE" != xBASH; then
19146         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19147 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19148       fi
19149       # Try to locate tool using the code snippet
19150 
19151     # Try our hardest to locate a correct version of GNU make
19152     for ac_prog in gmake
19153 do
19154   # Extract the first word of "$ac_prog", so it can be a program name with args.
19155 set dummy $ac_prog; ac_word=$2
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19157 $as_echo_n "checking for $ac_word... " >&6; }
19158 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19159   $as_echo_n "(cached) " >&6
19160 else
19161   case $CHECK_GMAKE in
19162   [\\/]* | ?:[\\/]*)
19163   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19164   ;;
19165   *)
19166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19167 for as_dir in $PATH
19168 do
19169   IFS=$as_save_IFS
19170   test -z "$as_dir" && as_dir=.
19171     for ac_exec_ext in '' $ac_executable_extensions; do
19172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19173     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19175     break 2
19176   fi
19177 done
19178   done
19179 IFS=$as_save_IFS
19180 
19181   ;;
19182 esac
19183 fi
19184 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19185 if test -n "$CHECK_GMAKE"; then
19186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19187 $as_echo "$CHECK_GMAKE" >&6; }
19188 else
19189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19190 $as_echo "no" >&6; }
19191 fi
19192 
19193 
19194   test -n "$CHECK_GMAKE" && break
19195 done
19196 
19197 
19198   MAKE_CANDIDATE=""$CHECK_GMAKE""
19199   DESCRIPTION="gmake in PATH"
19200 
19201   # On Cygwin, we require a newer version of make than on other platforms
19202   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19203     MAKE_VERSION_EXPR="-e 4\."
19204     MAKE_REQUIRED_VERSION="4.0"
19205    else
19206     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19207     MAKE_REQUIRED_VERSION="3.81"
19208   fi
19209 
19210   if test "x$MAKE_CANDIDATE" != x; then
19211     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19212 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19213     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19214     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19215     if test "x$IS_GNU_MAKE" = x; then
19216       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19217 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19218     else
19219       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19220       if test "x$IS_MODERN_MAKE" = x; then
19221         { $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
19222 $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;}
19223       else
19224         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19225           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19226             MAKE_EXPECTED_ENV='cygwin'
19227           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19228             MAKE_EXPECTED_ENV='msys'
19229           else
19230             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19231           fi
19232           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19233           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19234         else
19235           # Not relevant for non-Windows
19236           IS_MAKE_CORRECT_ENV=true
19237         fi
19238         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19239           { $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
19240 $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;}
19241         else
19242           FOUND_MAKE=$MAKE_CANDIDATE
19243 
19244   # Only process if variable expands to non-empty
19245 
19246   if test "x$FOUND_MAKE" != x; then
19247     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19248 
19249   # First separate the path from the arguments. This will split at the first
19250   # space.
19251   complete="$FOUND_MAKE"
19252   path="${complete%% *}"
19253   tmp="$complete EOL"
19254   arguments="${tmp#* }"
19255 
19256   # Input might be given as Windows format, start by converting to
19257   # unix format.
19258   new_path=`$CYGPATH -u "$path"`
19259 
19260   # Now try to locate executable using which
19261   new_path=`$WHICH "$new_path" 2> /dev/null`
19262   # bat and cmd files are not always considered executable in cygwin causing which
19263   # to not find them
19264   if test "x$new_path" = x \
19265       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19266       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19267     new_path=`$CYGPATH -u "$path"`
19268   fi
19269   if test "x$new_path" = x; then
19270     # Oops. Which didn't find the executable.
19271     # The splitting of arguments from the executable at a space might have been incorrect,
19272     # since paths with space are more likely in Windows. Give it another try with the whole
19273     # argument.
19274     path="$complete"
19275     arguments="EOL"
19276     new_path=`$CYGPATH -u "$path"`
19277     new_path=`$WHICH "$new_path" 2> /dev/null`
19278     # bat and cmd files are not always considered executable in cygwin causing which
19279     # to not find them
19280     if test "x$new_path" = x \
19281         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19282         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19283       new_path=`$CYGPATH -u "$path"`
19284     fi
19285     if test "x$new_path" = x; then
19286       # It's still not found. Now this is an unrecoverable error.
19287       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19288 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19289       has_space=`$ECHO "$complete" | $GREP " "`
19290       if test "x$has_space" != x; then
19291         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19292 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19293       fi
19294       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19295     fi
19296   fi
19297 
19298   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19299   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19300   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19301   # "foo.exe" is OK but "foo" is an error.
19302   #
19303   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19304   # It is also a way to make sure we got the proper file name for the real test later on.
19305   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19306   if test "x$test_shortpath" = x; then
19307     # Short path failed, file does not exist as specified.
19308     # Try adding .exe or .cmd
19309     if test -f "${new_path}.exe"; then
19310       input_to_shortpath="${new_path}.exe"
19311     elif test -f "${new_path}.cmd"; then
19312       input_to_shortpath="${new_path}.cmd"
19313     else
19314       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19315 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19316       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19317 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19318       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19319     fi
19320   else
19321     input_to_shortpath="$new_path"
19322   fi
19323 
19324   # Call helper function which possibly converts this using DOS-style short mode.
19325   # If so, the updated path is stored in $new_path.
19326   new_path="$input_to_shortpath"
19327 
19328   input_path="$input_to_shortpath"
19329   # Check if we need to convert this using DOS-style short mode. If the path
19330   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19331   # take no chances and rewrite it.
19332   # Note: m4 eats our [], so we need to use [ and ] instead.
19333   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19334   if test "x$has_forbidden_chars" != x; then
19335     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19336     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19337     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19338     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19339       # Going to short mode and back again did indeed matter. Since short mode is
19340       # case insensitive, let's make it lowercase to improve readability.
19341       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19342       # Now convert it back to Unix-style (cygpath)
19343       input_path=`$CYGPATH -u "$shortmode_path"`
19344       new_path="$input_path"
19345     fi
19346   fi
19347 
19348   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19349   if test "x$test_cygdrive_prefix" = x; then
19350     # As a simple fix, exclude /usr/bin since it's not a real path.
19351     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19352       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19353       # a path prefixed by /cygdrive for fixpath to work.
19354       new_path="$CYGWIN_ROOT_PATH$input_path"
19355     fi
19356   fi
19357 
19358   # remove trailing .exe if any
19359   new_path="${new_path/%.exe/}"
19360 
19361     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19362 
19363   # First separate the path from the arguments. This will split at the first
19364   # space.
19365   complete="$FOUND_MAKE"
19366   path="${complete%% *}"
19367   tmp="$complete EOL"
19368   arguments="${tmp#* }"
19369 
19370   # Input might be given as Windows format, start by converting to
19371   # unix format.
19372   new_path="$path"
19373 
19374   windows_path="$new_path"
19375   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19376     unix_path=`$CYGPATH -u "$windows_path"`
19377     new_path="$unix_path"
19378   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19379     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19380     new_path="$unix_path"
19381   fi
19382 
19383 
19384   # Now try to locate executable using which
19385   new_path=`$WHICH "$new_path" 2> /dev/null`
19386 
19387   if test "x$new_path" = x; then
19388     # Oops. Which didn't find the executable.
19389     # The splitting of arguments from the executable at a space might have been incorrect,
19390     # since paths with space are more likely in Windows. Give it another try with the whole
19391     # argument.
19392     path="$complete"
19393     arguments="EOL"
19394     new_path="$path"
19395 
19396   windows_path="$new_path"
19397   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19398     unix_path=`$CYGPATH -u "$windows_path"`
19399     new_path="$unix_path"
19400   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19401     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19402     new_path="$unix_path"
19403   fi
19404 
19405 
19406     new_path=`$WHICH "$new_path" 2> /dev/null`
19407     # bat and cmd files are not always considered executable in MSYS causing which
19408     # to not find them
19409     if test "x$new_path" = x \
19410         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19411         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19412       new_path="$path"
19413 
19414   windows_path="$new_path"
19415   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19416     unix_path=`$CYGPATH -u "$windows_path"`
19417     new_path="$unix_path"
19418   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19419     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19420     new_path="$unix_path"
19421   fi
19422 
19423     fi
19424 
19425     if test "x$new_path" = x; then
19426       # It's still not found. Now this is an unrecoverable error.
19427       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19428 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19429       has_space=`$ECHO "$complete" | $GREP " "`
19430       if test "x$has_space" != x; then
19431         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19432 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19433       fi
19434       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19435     fi
19436   fi
19437 
19438   # Now new_path has a complete unix path to the binary
19439   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19440     # Keep paths in /bin as-is, but remove trailing .exe if any
19441     new_path="${new_path/%.exe/}"
19442     # Do not save /bin paths to all_fixpath_prefixes!
19443   else
19444     # Not in mixed or Windows style, start by that.
19445     new_path=`cmd //c echo $new_path`
19446 
19447   input_path="$new_path"
19448   # Check if we need to convert this using DOS-style short mode. If the path
19449   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19450   # take no chances and rewrite it.
19451   # Note: m4 eats our [], so we need to use [ and ] instead.
19452   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19453   if test "x$has_forbidden_chars" != x; then
19454     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19455     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19456   fi
19457 
19458     # Output is in $new_path
19459 
19460   windows_path="$new_path"
19461   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19462     unix_path=`$CYGPATH -u "$windows_path"`
19463     new_path="$unix_path"
19464   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19465     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19466     new_path="$unix_path"
19467   fi
19468 
19469     # remove trailing .exe if any
19470     new_path="${new_path/%.exe/}"
19471 
19472     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19473     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19474   fi
19475 
19476     else
19477       # We're on a unix platform. Hooray! :)
19478       # First separate the path from the arguments. This will split at the first
19479       # space.
19480       complete="$FOUND_MAKE"
19481       path="${complete%% *}"
19482       tmp="$complete EOL"
19483       arguments="${tmp#* }"
19484 
19485       # Cannot rely on the command "which" here since it doesn't always work.
19486       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19487       if test -z "$is_absolute_path"; then
19488         # Path to executable is not absolute. Find it.
19489         IFS_save="$IFS"
19490         IFS=:
19491         for p in $PATH; do
19492           if test -f "$p/$path" && test -x "$p/$path"; then
19493             new_path="$p/$path"
19494             break
19495           fi
19496         done
19497         IFS="$IFS_save"
19498       else
19499         # This is an absolute path, we can use it without further modifications.
19500         new_path="$path"
19501       fi
19502 
19503       if test "x$new_path" = x; then
19504         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19505 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19506         has_space=`$ECHO "$complete" | $GREP " "`
19507         if test "x$has_space" != x; then
19508           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19509 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19510         fi
19511         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19512       fi
19513     fi
19514 
19515     # Now join together the path and the arguments once again
19516     if test "x$arguments" != xEOL; then
19517       new_complete="$new_path ${arguments% *}"
19518     else
19519       new_complete="$new_path"
19520     fi
19521 
19522     if test "x$complete" != "x$new_complete"; then
19523       FOUND_MAKE="$new_complete"
19524       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19525 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19526     fi
19527   fi
19528 
19529         fi
19530       fi
19531     fi
19532   fi
19533 
19534 
19535     if test "x$FOUND_MAKE" = x; then
19536       for ac_prog in make
19537 do
19538   # Extract the first word of "$ac_prog", so it can be a program name with args.
19539 set dummy $ac_prog; ac_word=$2
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19541 $as_echo_n "checking for $ac_word... " >&6; }
19542 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19543   $as_echo_n "(cached) " >&6
19544 else
19545   case $CHECK_MAKE in
19546   [\\/]* | ?:[\\/]*)
19547   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19548   ;;
19549   *)
19550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19551 for as_dir in $PATH
19552 do
19553   IFS=$as_save_IFS
19554   test -z "$as_dir" && as_dir=.
19555     for ac_exec_ext in '' $ac_executable_extensions; do
19556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19557     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19559     break 2
19560   fi
19561 done
19562   done
19563 IFS=$as_save_IFS
19564 
19565   ;;
19566 esac
19567 fi
19568 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19569 if test -n "$CHECK_MAKE"; then
19570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19571 $as_echo "$CHECK_MAKE" >&6; }
19572 else
19573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19574 $as_echo "no" >&6; }
19575 fi
19576 
19577 
19578   test -n "$CHECK_MAKE" && break
19579 done
19580 
19581 
19582   MAKE_CANDIDATE=""$CHECK_MAKE""
19583   DESCRIPTION="make in PATH"
19584 
19585   # On Cygwin, we require a newer version of make than on other platforms
19586   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19587     MAKE_VERSION_EXPR="-e 4\."
19588     MAKE_REQUIRED_VERSION="4.0"
19589    else
19590     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19591     MAKE_REQUIRED_VERSION="3.81"
19592   fi
19593 
19594   if test "x$MAKE_CANDIDATE" != x; then
19595     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19596 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19597     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19598     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19599     if test "x$IS_GNU_MAKE" = x; then
19600       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19601 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19602     else
19603       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19604       if test "x$IS_MODERN_MAKE" = x; then
19605         { $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
19606 $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;}
19607       else
19608         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19609           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19610             MAKE_EXPECTED_ENV='cygwin'
19611           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19612             MAKE_EXPECTED_ENV='msys'
19613           else
19614             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19615           fi
19616           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19617           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19618         else
19619           # Not relevant for non-Windows
19620           IS_MAKE_CORRECT_ENV=true
19621         fi
19622         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19623           { $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
19624 $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;}
19625         else
19626           FOUND_MAKE=$MAKE_CANDIDATE
19627 
19628   # Only process if variable expands to non-empty
19629 
19630   if test "x$FOUND_MAKE" != x; then
19631     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19632 
19633   # First separate the path from the arguments. This will split at the first
19634   # space.
19635   complete="$FOUND_MAKE"
19636   path="${complete%% *}"
19637   tmp="$complete EOL"
19638   arguments="${tmp#* }"
19639 
19640   # Input might be given as Windows format, start by converting to
19641   # unix format.
19642   new_path=`$CYGPATH -u "$path"`
19643 
19644   # Now try to locate executable using which
19645   new_path=`$WHICH "$new_path" 2> /dev/null`
19646   # bat and cmd files are not always considered executable in cygwin causing which
19647   # to not find them
19648   if test "x$new_path" = x \
19649       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19650       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19651     new_path=`$CYGPATH -u "$path"`
19652   fi
19653   if test "x$new_path" = x; then
19654     # Oops. Which didn't find the executable.
19655     # The splitting of arguments from the executable at a space might have been incorrect,
19656     # since paths with space are more likely in Windows. Give it another try with the whole
19657     # argument.
19658     path="$complete"
19659     arguments="EOL"
19660     new_path=`$CYGPATH -u "$path"`
19661     new_path=`$WHICH "$new_path" 2> /dev/null`
19662     # bat and cmd files are not always considered executable in cygwin causing which
19663     # to not find them
19664     if test "x$new_path" = x \
19665         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19666         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19667       new_path=`$CYGPATH -u "$path"`
19668     fi
19669     if test "x$new_path" = x; then
19670       # It's still not found. Now this is an unrecoverable error.
19671       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19672 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19673       has_space=`$ECHO "$complete" | $GREP " "`
19674       if test "x$has_space" != x; then
19675         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19676 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19677       fi
19678       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19679     fi
19680   fi
19681 
19682   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19683   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19684   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19685   # "foo.exe" is OK but "foo" is an error.
19686   #
19687   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19688   # It is also a way to make sure we got the proper file name for the real test later on.
19689   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19690   if test "x$test_shortpath" = x; then
19691     # Short path failed, file does not exist as specified.
19692     # Try adding .exe or .cmd
19693     if test -f "${new_path}.exe"; then
19694       input_to_shortpath="${new_path}.exe"
19695     elif test -f "${new_path}.cmd"; then
19696       input_to_shortpath="${new_path}.cmd"
19697     else
19698       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19699 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19700       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19701 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19702       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19703     fi
19704   else
19705     input_to_shortpath="$new_path"
19706   fi
19707 
19708   # Call helper function which possibly converts this using DOS-style short mode.
19709   # If so, the updated path is stored in $new_path.
19710   new_path="$input_to_shortpath"
19711 
19712   input_path="$input_to_shortpath"
19713   # Check if we need to convert this using DOS-style short mode. If the path
19714   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19715   # take no chances and rewrite it.
19716   # Note: m4 eats our [], so we need to use [ and ] instead.
19717   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19718   if test "x$has_forbidden_chars" != x; then
19719     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19720     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19721     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19722     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19723       # Going to short mode and back again did indeed matter. Since short mode is
19724       # case insensitive, let's make it lowercase to improve readability.
19725       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19726       # Now convert it back to Unix-style (cygpath)
19727       input_path=`$CYGPATH -u "$shortmode_path"`
19728       new_path="$input_path"
19729     fi
19730   fi
19731 
19732   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19733   if test "x$test_cygdrive_prefix" = x; then
19734     # As a simple fix, exclude /usr/bin since it's not a real path.
19735     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19736       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19737       # a path prefixed by /cygdrive for fixpath to work.
19738       new_path="$CYGWIN_ROOT_PATH$input_path"
19739     fi
19740   fi
19741 
19742   # remove trailing .exe if any
19743   new_path="${new_path/%.exe/}"
19744 
19745     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19746 
19747   # First separate the path from the arguments. This will split at the first
19748   # space.
19749   complete="$FOUND_MAKE"
19750   path="${complete%% *}"
19751   tmp="$complete EOL"
19752   arguments="${tmp#* }"
19753 
19754   # Input might be given as Windows format, start by converting to
19755   # unix format.
19756   new_path="$path"
19757 
19758   windows_path="$new_path"
19759   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19760     unix_path=`$CYGPATH -u "$windows_path"`
19761     new_path="$unix_path"
19762   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19763     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19764     new_path="$unix_path"
19765   fi
19766 
19767 
19768   # Now try to locate executable using which
19769   new_path=`$WHICH "$new_path" 2> /dev/null`
19770 
19771   if test "x$new_path" = x; then
19772     # Oops. Which didn't find the executable.
19773     # The splitting of arguments from the executable at a space might have been incorrect,
19774     # since paths with space are more likely in Windows. Give it another try with the whole
19775     # argument.
19776     path="$complete"
19777     arguments="EOL"
19778     new_path="$path"
19779 
19780   windows_path="$new_path"
19781   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19782     unix_path=`$CYGPATH -u "$windows_path"`
19783     new_path="$unix_path"
19784   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19785     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19786     new_path="$unix_path"
19787   fi
19788 
19789 
19790     new_path=`$WHICH "$new_path" 2> /dev/null`
19791     # bat and cmd files are not always considered executable in MSYS causing which
19792     # to not find them
19793     if test "x$new_path" = x \
19794         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19795         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19796       new_path="$path"
19797 
19798   windows_path="$new_path"
19799   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19800     unix_path=`$CYGPATH -u "$windows_path"`
19801     new_path="$unix_path"
19802   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19803     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19804     new_path="$unix_path"
19805   fi
19806 
19807     fi
19808 
19809     if test "x$new_path" = x; then
19810       # It's still not found. Now this is an unrecoverable error.
19811       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19812 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19813       has_space=`$ECHO "$complete" | $GREP " "`
19814       if test "x$has_space" != x; then
19815         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19816 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19817       fi
19818       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19819     fi
19820   fi
19821 
19822   # Now new_path has a complete unix path to the binary
19823   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19824     # Keep paths in /bin as-is, but remove trailing .exe if any
19825     new_path="${new_path/%.exe/}"
19826     # Do not save /bin paths to all_fixpath_prefixes!
19827   else
19828     # Not in mixed or Windows style, start by that.
19829     new_path=`cmd //c echo $new_path`
19830 
19831   input_path="$new_path"
19832   # Check if we need to convert this using DOS-style short mode. If the path
19833   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19834   # take no chances and rewrite it.
19835   # Note: m4 eats our [], so we need to use [ and ] instead.
19836   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19837   if test "x$has_forbidden_chars" != x; then
19838     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19839     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19840   fi
19841 
19842     # Output is in $new_path
19843 
19844   windows_path="$new_path"
19845   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19846     unix_path=`$CYGPATH -u "$windows_path"`
19847     new_path="$unix_path"
19848   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19849     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19850     new_path="$unix_path"
19851   fi
19852 
19853     # remove trailing .exe if any
19854     new_path="${new_path/%.exe/}"
19855 
19856     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19857     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19858   fi
19859 
19860     else
19861       # We're on a unix platform. Hooray! :)
19862       # First separate the path from the arguments. This will split at the first
19863       # space.
19864       complete="$FOUND_MAKE"
19865       path="${complete%% *}"
19866       tmp="$complete EOL"
19867       arguments="${tmp#* }"
19868 
19869       # Cannot rely on the command "which" here since it doesn't always work.
19870       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19871       if test -z "$is_absolute_path"; then
19872         # Path to executable is not absolute. Find it.
19873         IFS_save="$IFS"
19874         IFS=:
19875         for p in $PATH; do
19876           if test -f "$p/$path" && test -x "$p/$path"; then
19877             new_path="$p/$path"
19878             break
19879           fi
19880         done
19881         IFS="$IFS_save"
19882       else
19883         # This is an absolute path, we can use it without further modifications.
19884         new_path="$path"
19885       fi
19886 
19887       if test "x$new_path" = x; then
19888         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19889 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19890         has_space=`$ECHO "$complete" | $GREP " "`
19891         if test "x$has_space" != x; then
19892           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19893 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19894         fi
19895         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19896       fi
19897     fi
19898 
19899     # Now join together the path and the arguments once again
19900     if test "x$arguments" != xEOL; then
19901       new_complete="$new_path ${arguments% *}"
19902     else
19903       new_complete="$new_path"
19904     fi
19905 
19906     if test "x$complete" != "x$new_complete"; then
19907       FOUND_MAKE="$new_complete"
19908       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19909 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19910     fi
19911   fi
19912 
19913         fi
19914       fi
19915     fi
19916   fi
19917 
19918     fi
19919 
19920     if test "x$FOUND_MAKE" = x; then
19921       if test "x$TOOLCHAIN_PATH" != x; then
19922         # We have a toolchain path, check that as well before giving up.
19923         OLD_PATH=$PATH
19924         PATH=$TOOLCHAIN_PATH:$PATH
19925         for ac_prog in gmake
19926 do
19927   # Extract the first word of "$ac_prog", so it can be a program name with args.
19928 set dummy $ac_prog; ac_word=$2
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19930 $as_echo_n "checking for $ac_word... " >&6; }
19931 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
19932   $as_echo_n "(cached) " >&6
19933 else
19934   case $CHECK_TOOLSDIR_GMAKE in
19935   [\\/]* | ?:[\\/]*)
19936   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
19937   ;;
19938   *)
19939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19940 for as_dir in $PATH
19941 do
19942   IFS=$as_save_IFS
19943   test -z "$as_dir" && as_dir=.
19944     for ac_exec_ext in '' $ac_executable_extensions; do
19945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19946     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19948     break 2
19949   fi
19950 done
19951   done
19952 IFS=$as_save_IFS
19953 
19954   ;;
19955 esac
19956 fi
19957 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
19958 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
19959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
19960 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
19961 else
19962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19963 $as_echo "no" >&6; }
19964 fi
19965 
19966 
19967   test -n "$CHECK_TOOLSDIR_GMAKE" && break
19968 done
19969 
19970 
19971   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
19972   DESCRIPTION="gmake in tools-dir"
19973 
19974   # On Cygwin, we require a newer version of make than on other platforms
19975   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19976     MAKE_VERSION_EXPR="-e 4\."
19977     MAKE_REQUIRED_VERSION="4.0"
19978    else
19979     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19980     MAKE_REQUIRED_VERSION="3.81"
19981   fi
19982 
19983   if test "x$MAKE_CANDIDATE" != x; then
19984     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19985 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19986     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19987     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19988     if test "x$IS_GNU_MAKE" = x; then
19989       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19990 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19991     else
19992       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19993       if test "x$IS_MODERN_MAKE" = x; then
19994         { $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
19995 $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;}
19996       else
19997         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19998           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19999             MAKE_EXPECTED_ENV='cygwin'
20000           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20001             MAKE_EXPECTED_ENV='msys'
20002           else
20003             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20004           fi
20005           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20006           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20007         else
20008           # Not relevant for non-Windows
20009           IS_MAKE_CORRECT_ENV=true
20010         fi
20011         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20012           { $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
20013 $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;}
20014         else
20015           FOUND_MAKE=$MAKE_CANDIDATE
20016 
20017   # Only process if variable expands to non-empty
20018 
20019   if test "x$FOUND_MAKE" != x; then
20020     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20021 
20022   # First separate the path from the arguments. This will split at the first
20023   # space.
20024   complete="$FOUND_MAKE"
20025   path="${complete%% *}"
20026   tmp="$complete EOL"
20027   arguments="${tmp#* }"
20028 
20029   # Input might be given as Windows format, start by converting to
20030   # unix format.
20031   new_path=`$CYGPATH -u "$path"`
20032 
20033   # Now try to locate executable using which
20034   new_path=`$WHICH "$new_path" 2> /dev/null`
20035   # bat and cmd files are not always considered executable in cygwin causing which
20036   # to not find them
20037   if test "x$new_path" = x \
20038       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20039       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20040     new_path=`$CYGPATH -u "$path"`
20041   fi
20042   if test "x$new_path" = x; then
20043     # Oops. Which didn't find the executable.
20044     # The splitting of arguments from the executable at a space might have been incorrect,
20045     # since paths with space are more likely in Windows. Give it another try with the whole
20046     # argument.
20047     path="$complete"
20048     arguments="EOL"
20049     new_path=`$CYGPATH -u "$path"`
20050     new_path=`$WHICH "$new_path" 2> /dev/null`
20051     # bat and cmd files are not always considered executable in cygwin causing which
20052     # to not find them
20053     if test "x$new_path" = x \
20054         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20055         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20056       new_path=`$CYGPATH -u "$path"`
20057     fi
20058     if test "x$new_path" = x; then
20059       # It's still not found. Now this is an unrecoverable error.
20060       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20061 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20062       has_space=`$ECHO "$complete" | $GREP " "`
20063       if test "x$has_space" != x; then
20064         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20065 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20066       fi
20067       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20068     fi
20069   fi
20070 
20071   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20072   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20073   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20074   # "foo.exe" is OK but "foo" is an error.
20075   #
20076   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20077   # It is also a way to make sure we got the proper file name for the real test later on.
20078   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20079   if test "x$test_shortpath" = x; then
20080     # Short path failed, file does not exist as specified.
20081     # Try adding .exe or .cmd
20082     if test -f "${new_path}.exe"; then
20083       input_to_shortpath="${new_path}.exe"
20084     elif test -f "${new_path}.cmd"; then
20085       input_to_shortpath="${new_path}.cmd"
20086     else
20087       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20088 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20089       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20090 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20091       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20092     fi
20093   else
20094     input_to_shortpath="$new_path"
20095   fi
20096 
20097   # Call helper function which possibly converts this using DOS-style short mode.
20098   # If so, the updated path is stored in $new_path.
20099   new_path="$input_to_shortpath"
20100 
20101   input_path="$input_to_shortpath"
20102   # Check if we need to convert this using DOS-style short mode. If the path
20103   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20104   # take no chances and rewrite it.
20105   # Note: m4 eats our [], so we need to use [ and ] instead.
20106   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20107   if test "x$has_forbidden_chars" != x; then
20108     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20109     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20110     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20111     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20112       # Going to short mode and back again did indeed matter. Since short mode is
20113       # case insensitive, let's make it lowercase to improve readability.
20114       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20115       # Now convert it back to Unix-style (cygpath)
20116       input_path=`$CYGPATH -u "$shortmode_path"`
20117       new_path="$input_path"
20118     fi
20119   fi
20120 
20121   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20122   if test "x$test_cygdrive_prefix" = x; then
20123     # As a simple fix, exclude /usr/bin since it's not a real path.
20124     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20125       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20126       # a path prefixed by /cygdrive for fixpath to work.
20127       new_path="$CYGWIN_ROOT_PATH$input_path"
20128     fi
20129   fi
20130 
20131   # remove trailing .exe if any
20132   new_path="${new_path/%.exe/}"
20133 
20134     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20135 
20136   # First separate the path from the arguments. This will split at the first
20137   # space.
20138   complete="$FOUND_MAKE"
20139   path="${complete%% *}"
20140   tmp="$complete EOL"
20141   arguments="${tmp#* }"
20142 
20143   # Input might be given as Windows format, start by converting to
20144   # unix format.
20145   new_path="$path"
20146 
20147   windows_path="$new_path"
20148   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20149     unix_path=`$CYGPATH -u "$windows_path"`
20150     new_path="$unix_path"
20151   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20152     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20153     new_path="$unix_path"
20154   fi
20155 
20156 
20157   # Now try to locate executable using which
20158   new_path=`$WHICH "$new_path" 2> /dev/null`
20159 
20160   if test "x$new_path" = x; then
20161     # Oops. Which didn't find the executable.
20162     # The splitting of arguments from the executable at a space might have been incorrect,
20163     # since paths with space are more likely in Windows. Give it another try with the whole
20164     # argument.
20165     path="$complete"
20166     arguments="EOL"
20167     new_path="$path"
20168 
20169   windows_path="$new_path"
20170   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20171     unix_path=`$CYGPATH -u "$windows_path"`
20172     new_path="$unix_path"
20173   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20174     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20175     new_path="$unix_path"
20176   fi
20177 
20178 
20179     new_path=`$WHICH "$new_path" 2> /dev/null`
20180     # bat and cmd files are not always considered executable in MSYS causing which
20181     # to not find them
20182     if test "x$new_path" = x \
20183         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20184         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20185       new_path="$path"
20186 
20187   windows_path="$new_path"
20188   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20189     unix_path=`$CYGPATH -u "$windows_path"`
20190     new_path="$unix_path"
20191   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20192     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20193     new_path="$unix_path"
20194   fi
20195 
20196     fi
20197 
20198     if test "x$new_path" = x; then
20199       # It's still not found. Now this is an unrecoverable error.
20200       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20201 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20202       has_space=`$ECHO "$complete" | $GREP " "`
20203       if test "x$has_space" != x; then
20204         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20205 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20206       fi
20207       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20208     fi
20209   fi
20210 
20211   # Now new_path has a complete unix path to the binary
20212   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20213     # Keep paths in /bin as-is, but remove trailing .exe if any
20214     new_path="${new_path/%.exe/}"
20215     # Do not save /bin paths to all_fixpath_prefixes!
20216   else
20217     # Not in mixed or Windows style, start by that.
20218     new_path=`cmd //c echo $new_path`
20219 
20220   input_path="$new_path"
20221   # Check if we need to convert this using DOS-style short mode. If the path
20222   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20223   # take no chances and rewrite it.
20224   # Note: m4 eats our [], so we need to use [ and ] instead.
20225   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20226   if test "x$has_forbidden_chars" != x; then
20227     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20228     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20229   fi
20230 
20231     # Output is in $new_path
20232 
20233   windows_path="$new_path"
20234   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20235     unix_path=`$CYGPATH -u "$windows_path"`
20236     new_path="$unix_path"
20237   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20238     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20239     new_path="$unix_path"
20240   fi
20241 
20242     # remove trailing .exe if any
20243     new_path="${new_path/%.exe/}"
20244 
20245     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20246     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20247   fi
20248 
20249     else
20250       # We're on a unix platform. Hooray! :)
20251       # First separate the path from the arguments. This will split at the first
20252       # space.
20253       complete="$FOUND_MAKE"
20254       path="${complete%% *}"
20255       tmp="$complete EOL"
20256       arguments="${tmp#* }"
20257 
20258       # Cannot rely on the command "which" here since it doesn't always work.
20259       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20260       if test -z "$is_absolute_path"; then
20261         # Path to executable is not absolute. Find it.
20262         IFS_save="$IFS"
20263         IFS=:
20264         for p in $PATH; do
20265           if test -f "$p/$path" && test -x "$p/$path"; then
20266             new_path="$p/$path"
20267             break
20268           fi
20269         done
20270         IFS="$IFS_save"
20271       else
20272         # This is an absolute path, we can use it without further modifications.
20273         new_path="$path"
20274       fi
20275 
20276       if test "x$new_path" = x; then
20277         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20278 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20279         has_space=`$ECHO "$complete" | $GREP " "`
20280         if test "x$has_space" != x; then
20281           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20282 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20283         fi
20284         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20285       fi
20286     fi
20287 
20288     # Now join together the path and the arguments once again
20289     if test "x$arguments" != xEOL; then
20290       new_complete="$new_path ${arguments% *}"
20291     else
20292       new_complete="$new_path"
20293     fi
20294 
20295     if test "x$complete" != "x$new_complete"; then
20296       FOUND_MAKE="$new_complete"
20297       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20298 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20299     fi
20300   fi
20301 
20302         fi
20303       fi
20304     fi
20305   fi
20306 
20307         if test "x$FOUND_MAKE" = x; then
20308           for ac_prog in make
20309 do
20310   # Extract the first word of "$ac_prog", so it can be a program name with args.
20311 set dummy $ac_prog; ac_word=$2
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20313 $as_echo_n "checking for $ac_word... " >&6; }
20314 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20315   $as_echo_n "(cached) " >&6
20316 else
20317   case $CHECK_TOOLSDIR_MAKE in
20318   [\\/]* | ?:[\\/]*)
20319   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20320   ;;
20321   *)
20322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20323 for as_dir in $PATH
20324 do
20325   IFS=$as_save_IFS
20326   test -z "$as_dir" && as_dir=.
20327     for ac_exec_ext in '' $ac_executable_extensions; do
20328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20329     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20331     break 2
20332   fi
20333 done
20334   done
20335 IFS=$as_save_IFS
20336 
20337   ;;
20338 esac
20339 fi
20340 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20341 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20343 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20344 else
20345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20346 $as_echo "no" >&6; }
20347 fi
20348 
20349 
20350   test -n "$CHECK_TOOLSDIR_MAKE" && break
20351 done
20352 
20353 
20354   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20355   DESCRIPTION="make in tools-dir"
20356 
20357   # On Cygwin, we require a newer version of make than on other platforms
20358   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20359     MAKE_VERSION_EXPR="-e 4\."
20360     MAKE_REQUIRED_VERSION="4.0"
20361    else
20362     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20363     MAKE_REQUIRED_VERSION="3.81"
20364   fi
20365 
20366   if test "x$MAKE_CANDIDATE" != x; then
20367     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20368 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20369     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20370     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20371     if test "x$IS_GNU_MAKE" = x; then
20372       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20373 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20374     else
20375       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20376       if test "x$IS_MODERN_MAKE" = x; then
20377         { $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
20378 $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;}
20379       else
20380         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20381           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20382             MAKE_EXPECTED_ENV='cygwin'
20383           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20384             MAKE_EXPECTED_ENV='msys'
20385           else
20386             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20387           fi
20388           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20389           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20390         else
20391           # Not relevant for non-Windows
20392           IS_MAKE_CORRECT_ENV=true
20393         fi
20394         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20395           { $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
20396 $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;}
20397         else
20398           FOUND_MAKE=$MAKE_CANDIDATE
20399 
20400   # Only process if variable expands to non-empty
20401 
20402   if test "x$FOUND_MAKE" != x; then
20403     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20404 
20405   # First separate the path from the arguments. This will split at the first
20406   # space.
20407   complete="$FOUND_MAKE"
20408   path="${complete%% *}"
20409   tmp="$complete EOL"
20410   arguments="${tmp#* }"
20411 
20412   # Input might be given as Windows format, start by converting to
20413   # unix format.
20414   new_path=`$CYGPATH -u "$path"`
20415 
20416   # Now try to locate executable using which
20417   new_path=`$WHICH "$new_path" 2> /dev/null`
20418   # bat and cmd files are not always considered executable in cygwin causing which
20419   # to not find them
20420   if test "x$new_path" = x \
20421       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20422       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20423     new_path=`$CYGPATH -u "$path"`
20424   fi
20425   if test "x$new_path" = x; then
20426     # Oops. Which didn't find the executable.
20427     # The splitting of arguments from the executable at a space might have been incorrect,
20428     # since paths with space are more likely in Windows. Give it another try with the whole
20429     # argument.
20430     path="$complete"
20431     arguments="EOL"
20432     new_path=`$CYGPATH -u "$path"`
20433     new_path=`$WHICH "$new_path" 2> /dev/null`
20434     # bat and cmd files are not always considered executable in cygwin causing which
20435     # to not find them
20436     if test "x$new_path" = x \
20437         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20438         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20439       new_path=`$CYGPATH -u "$path"`
20440     fi
20441     if test "x$new_path" = x; then
20442       # It's still not found. Now this is an unrecoverable error.
20443       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20444 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20445       has_space=`$ECHO "$complete" | $GREP " "`
20446       if test "x$has_space" != x; then
20447         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20448 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20449       fi
20450       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20451     fi
20452   fi
20453 
20454   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20455   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20456   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20457   # "foo.exe" is OK but "foo" is an error.
20458   #
20459   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20460   # It is also a way to make sure we got the proper file name for the real test later on.
20461   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20462   if test "x$test_shortpath" = x; then
20463     # Short path failed, file does not exist as specified.
20464     # Try adding .exe or .cmd
20465     if test -f "${new_path}.exe"; then
20466       input_to_shortpath="${new_path}.exe"
20467     elif test -f "${new_path}.cmd"; then
20468       input_to_shortpath="${new_path}.cmd"
20469     else
20470       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20471 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20472       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20473 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20474       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20475     fi
20476   else
20477     input_to_shortpath="$new_path"
20478   fi
20479 
20480   # Call helper function which possibly converts this using DOS-style short mode.
20481   # If so, the updated path is stored in $new_path.
20482   new_path="$input_to_shortpath"
20483 
20484   input_path="$input_to_shortpath"
20485   # Check if we need to convert this using DOS-style short mode. If the path
20486   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20487   # take no chances and rewrite it.
20488   # Note: m4 eats our [], so we need to use [ and ] instead.
20489   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20490   if test "x$has_forbidden_chars" != x; then
20491     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20492     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20493     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20494     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20495       # Going to short mode and back again did indeed matter. Since short mode is
20496       # case insensitive, let's make it lowercase to improve readability.
20497       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20498       # Now convert it back to Unix-style (cygpath)
20499       input_path=`$CYGPATH -u "$shortmode_path"`
20500       new_path="$input_path"
20501     fi
20502   fi
20503 
20504   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20505   if test "x$test_cygdrive_prefix" = x; then
20506     # As a simple fix, exclude /usr/bin since it's not a real path.
20507     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20508       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20509       # a path prefixed by /cygdrive for fixpath to work.
20510       new_path="$CYGWIN_ROOT_PATH$input_path"
20511     fi
20512   fi
20513 
20514   # remove trailing .exe if any
20515   new_path="${new_path/%.exe/}"
20516 
20517     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20518 
20519   # First separate the path from the arguments. This will split at the first
20520   # space.
20521   complete="$FOUND_MAKE"
20522   path="${complete%% *}"
20523   tmp="$complete EOL"
20524   arguments="${tmp#* }"
20525 
20526   # Input might be given as Windows format, start by converting to
20527   # unix format.
20528   new_path="$path"
20529 
20530   windows_path="$new_path"
20531   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20532     unix_path=`$CYGPATH -u "$windows_path"`
20533     new_path="$unix_path"
20534   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20535     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20536     new_path="$unix_path"
20537   fi
20538 
20539 
20540   # Now try to locate executable using which
20541   new_path=`$WHICH "$new_path" 2> /dev/null`
20542 
20543   if test "x$new_path" = x; then
20544     # Oops. Which didn't find the executable.
20545     # The splitting of arguments from the executable at a space might have been incorrect,
20546     # since paths with space are more likely in Windows. Give it another try with the whole
20547     # argument.
20548     path="$complete"
20549     arguments="EOL"
20550     new_path="$path"
20551 
20552   windows_path="$new_path"
20553   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20554     unix_path=`$CYGPATH -u "$windows_path"`
20555     new_path="$unix_path"
20556   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20557     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20558     new_path="$unix_path"
20559   fi
20560 
20561 
20562     new_path=`$WHICH "$new_path" 2> /dev/null`
20563     # bat and cmd files are not always considered executable in MSYS causing which
20564     # to not find them
20565     if test "x$new_path" = x \
20566         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20567         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20568       new_path="$path"
20569 
20570   windows_path="$new_path"
20571   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20572     unix_path=`$CYGPATH -u "$windows_path"`
20573     new_path="$unix_path"
20574   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20575     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20576     new_path="$unix_path"
20577   fi
20578 
20579     fi
20580 
20581     if test "x$new_path" = x; then
20582       # It's still not found. Now this is an unrecoverable error.
20583       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20584 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20585       has_space=`$ECHO "$complete" | $GREP " "`
20586       if test "x$has_space" != x; then
20587         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20588 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20589       fi
20590       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20591     fi
20592   fi
20593 
20594   # Now new_path has a complete unix path to the binary
20595   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20596     # Keep paths in /bin as-is, but remove trailing .exe if any
20597     new_path="${new_path/%.exe/}"
20598     # Do not save /bin paths to all_fixpath_prefixes!
20599   else
20600     # Not in mixed or Windows style, start by that.
20601     new_path=`cmd //c echo $new_path`
20602 
20603   input_path="$new_path"
20604   # Check if we need to convert this using DOS-style short mode. If the path
20605   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20606   # take no chances and rewrite it.
20607   # Note: m4 eats our [], so we need to use [ and ] instead.
20608   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20609   if test "x$has_forbidden_chars" != x; then
20610     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20611     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20612   fi
20613 
20614     # Output is in $new_path
20615 
20616   windows_path="$new_path"
20617   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20618     unix_path=`$CYGPATH -u "$windows_path"`
20619     new_path="$unix_path"
20620   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20621     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20622     new_path="$unix_path"
20623   fi
20624 
20625     # remove trailing .exe if any
20626     new_path="${new_path/%.exe/}"
20627 
20628     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20629     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20630   fi
20631 
20632     else
20633       # We're on a unix platform. Hooray! :)
20634       # First separate the path from the arguments. This will split at the first
20635       # space.
20636       complete="$FOUND_MAKE"
20637       path="${complete%% *}"
20638       tmp="$complete EOL"
20639       arguments="${tmp#* }"
20640 
20641       # Cannot rely on the command "which" here since it doesn't always work.
20642       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20643       if test -z "$is_absolute_path"; then
20644         # Path to executable is not absolute. Find it.
20645         IFS_save="$IFS"
20646         IFS=:
20647         for p in $PATH; do
20648           if test -f "$p/$path" && test -x "$p/$path"; then
20649             new_path="$p/$path"
20650             break
20651           fi
20652         done
20653         IFS="$IFS_save"
20654       else
20655         # This is an absolute path, we can use it without further modifications.
20656         new_path="$path"
20657       fi
20658 
20659       if test "x$new_path" = x; then
20660         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20661 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20662         has_space=`$ECHO "$complete" | $GREP " "`
20663         if test "x$has_space" != x; then
20664           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20665 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20666         fi
20667         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20668       fi
20669     fi
20670 
20671     # Now join together the path and the arguments once again
20672     if test "x$arguments" != xEOL; then
20673       new_complete="$new_path ${arguments% *}"
20674     else
20675       new_complete="$new_path"
20676     fi
20677 
20678     if test "x$complete" != "x$new_complete"; then
20679       FOUND_MAKE="$new_complete"
20680       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20681 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20682     fi
20683   fi
20684 
20685         fi
20686       fi
20687     fi
20688   fi
20689 
20690         fi
20691         PATH=$OLD_PATH
20692       fi
20693     fi
20694 
20695     if test "x$FOUND_MAKE" = x; then
20696       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
20697     fi
20698 
20699     else
20700       # If it succeeded, then it was overridden by the user. We will use it
20701       # for the tool.
20702 
20703       # First remove it from the list of overridden variables, so we can test
20704       # for unknown variables in the end.
20705       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20706 
20707       # Check if we try to supply an empty value
20708       if test "x$MAKE" = x; then
20709         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20710 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20711         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20712 $as_echo_n "checking for MAKE... " >&6; }
20713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20714 $as_echo "disabled" >&6; }
20715       else
20716         # Check if the provided tool contains a complete path.
20717         tool_specified="$MAKE"
20718         tool_basename="${tool_specified##*/}"
20719         if test "x$tool_basename" = "x$tool_specified"; then
20720           # A command without a complete path is provided, search $PATH.
20721           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20722 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20723           # Extract the first word of "$tool_basename", so it can be a program name with args.
20724 set dummy $tool_basename; ac_word=$2
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20726 $as_echo_n "checking for $ac_word... " >&6; }
20727 if ${ac_cv_path_MAKE+:} false; then :
20728   $as_echo_n "(cached) " >&6
20729 else
20730   case $MAKE in
20731   [\\/]* | ?:[\\/]*)
20732   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20733   ;;
20734   *)
20735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20736 for as_dir in $PATH
20737 do
20738   IFS=$as_save_IFS
20739   test -z "$as_dir" && as_dir=.
20740     for ac_exec_ext in '' $ac_executable_extensions; do
20741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20742     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20744     break 2
20745   fi
20746 done
20747   done
20748 IFS=$as_save_IFS
20749 
20750   ;;
20751 esac
20752 fi
20753 MAKE=$ac_cv_path_MAKE
20754 if test -n "$MAKE"; then
20755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
20756 $as_echo "$MAKE" >&6; }
20757 else
20758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20759 $as_echo "no" >&6; }
20760 fi
20761 
20762 
20763           if test "x$MAKE" = x; then
20764             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20765           fi
20766         else
20767           # Otherwise we believe it is a complete path. Use it as it is.
20768           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
20769 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
20770           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20771 $as_echo_n "checking for MAKE... " >&6; }
20772           if test ! -x "$tool_specified"; then
20773             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20774 $as_echo "not found" >&6; }
20775             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
20776           fi
20777           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20778 $as_echo "$tool_specified" >&6; }
20779         fi
20780       fi
20781     fi
20782 
20783     # If MAKE was set by user, verify the version
20784 
20785   MAKE_CANDIDATE=""$MAKE""
20786   DESCRIPTION="user supplied MAKE=$MAKE"
20787 
20788   # On Cygwin, we require a newer version of make than on other platforms
20789   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20790     MAKE_VERSION_EXPR="-e 4\."
20791     MAKE_REQUIRED_VERSION="4.0"
20792    else
20793     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20794     MAKE_REQUIRED_VERSION="3.81"
20795   fi
20796 
20797   if test "x$MAKE_CANDIDATE" != x; then
20798     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20799 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20800     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20801     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20802     if test "x$IS_GNU_MAKE" = x; then
20803       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20804 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20805     else
20806       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20807       if test "x$IS_MODERN_MAKE" = x; then
20808         { $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
20809 $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;}
20810       else
20811         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20812           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20813             MAKE_EXPECTED_ENV='cygwin'
20814           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20815             MAKE_EXPECTED_ENV='msys'
20816           else
20817             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20818           fi
20819           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20820           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20821         else
20822           # Not relevant for non-Windows
20823           IS_MAKE_CORRECT_ENV=true
20824         fi
20825         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20826           { $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
20827 $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;}
20828         else
20829           FOUND_MAKE=$MAKE_CANDIDATE
20830 
20831   # Only process if variable expands to non-empty
20832 
20833   if test "x$FOUND_MAKE" != x; then
20834     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20835 
20836   # First separate the path from the arguments. This will split at the first
20837   # space.
20838   complete="$FOUND_MAKE"
20839   path="${complete%% *}"
20840   tmp="$complete EOL"
20841   arguments="${tmp#* }"
20842 
20843   # Input might be given as Windows format, start by converting to
20844   # unix format.
20845   new_path=`$CYGPATH -u "$path"`
20846 
20847   # Now try to locate executable using which
20848   new_path=`$WHICH "$new_path" 2> /dev/null`
20849   # bat and cmd files are not always considered executable in cygwin causing which
20850   # to not find them
20851   if test "x$new_path" = x \
20852       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20853       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20854     new_path=`$CYGPATH -u "$path"`
20855   fi
20856   if test "x$new_path" = x; then
20857     # Oops. Which didn't find the executable.
20858     # The splitting of arguments from the executable at a space might have been incorrect,
20859     # since paths with space are more likely in Windows. Give it another try with the whole
20860     # argument.
20861     path="$complete"
20862     arguments="EOL"
20863     new_path=`$CYGPATH -u "$path"`
20864     new_path=`$WHICH "$new_path" 2> /dev/null`
20865     # bat and cmd files are not always considered executable in cygwin causing which
20866     # to not find them
20867     if test "x$new_path" = x \
20868         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20869         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20870       new_path=`$CYGPATH -u "$path"`
20871     fi
20872     if test "x$new_path" = x; then
20873       # It's still not found. Now this is an unrecoverable error.
20874       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20875 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20876       has_space=`$ECHO "$complete" | $GREP " "`
20877       if test "x$has_space" != x; then
20878         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20879 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20880       fi
20881       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20882     fi
20883   fi
20884 
20885   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20886   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20887   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20888   # "foo.exe" is OK but "foo" is an error.
20889   #
20890   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20891   # It is also a way to make sure we got the proper file name for the real test later on.
20892   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20893   if test "x$test_shortpath" = x; then
20894     # Short path failed, file does not exist as specified.
20895     # Try adding .exe or .cmd
20896     if test -f "${new_path}.exe"; then
20897       input_to_shortpath="${new_path}.exe"
20898     elif test -f "${new_path}.cmd"; then
20899       input_to_shortpath="${new_path}.cmd"
20900     else
20901       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20902 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20903       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20904 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20905       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20906     fi
20907   else
20908     input_to_shortpath="$new_path"
20909   fi
20910 
20911   # Call helper function which possibly converts this using DOS-style short mode.
20912   # If so, the updated path is stored in $new_path.
20913   new_path="$input_to_shortpath"
20914 
20915   input_path="$input_to_shortpath"
20916   # Check if we need to convert this using DOS-style short mode. If the path
20917   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20918   # take no chances and rewrite it.
20919   # Note: m4 eats our [], so we need to use [ and ] instead.
20920   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20921   if test "x$has_forbidden_chars" != x; then
20922     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20923     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20924     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20925     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20926       # Going to short mode and back again did indeed matter. Since short mode is
20927       # case insensitive, let's make it lowercase to improve readability.
20928       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20929       # Now convert it back to Unix-style (cygpath)
20930       input_path=`$CYGPATH -u "$shortmode_path"`
20931       new_path="$input_path"
20932     fi
20933   fi
20934 
20935   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20936   if test "x$test_cygdrive_prefix" = x; then
20937     # As a simple fix, exclude /usr/bin since it's not a real path.
20938     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20939       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20940       # a path prefixed by /cygdrive for fixpath to work.
20941       new_path="$CYGWIN_ROOT_PATH$input_path"
20942     fi
20943   fi
20944 
20945   # remove trailing .exe if any
20946   new_path="${new_path/%.exe/}"
20947 
20948     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20949 
20950   # First separate the path from the arguments. This will split at the first
20951   # space.
20952   complete="$FOUND_MAKE"
20953   path="${complete%% *}"
20954   tmp="$complete EOL"
20955   arguments="${tmp#* }"
20956 
20957   # Input might be given as Windows format, start by converting to
20958   # unix format.
20959   new_path="$path"
20960 
20961   windows_path="$new_path"
20962   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20963     unix_path=`$CYGPATH -u "$windows_path"`
20964     new_path="$unix_path"
20965   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20966     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20967     new_path="$unix_path"
20968   fi
20969 
20970 
20971   # Now try to locate executable using which
20972   new_path=`$WHICH "$new_path" 2> /dev/null`
20973 
20974   if test "x$new_path" = x; then
20975     # Oops. Which didn't find the executable.
20976     # The splitting of arguments from the executable at a space might have been incorrect,
20977     # since paths with space are more likely in Windows. Give it another try with the whole
20978     # argument.
20979     path="$complete"
20980     arguments="EOL"
20981     new_path="$path"
20982 
20983   windows_path="$new_path"
20984   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20985     unix_path=`$CYGPATH -u "$windows_path"`
20986     new_path="$unix_path"
20987   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20988     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20989     new_path="$unix_path"
20990   fi
20991 
20992 
20993     new_path=`$WHICH "$new_path" 2> /dev/null`
20994     # bat and cmd files are not always considered executable in MSYS causing which
20995     # to not find them
20996     if test "x$new_path" = x \
20997         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20998         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20999       new_path="$path"
21000 
21001   windows_path="$new_path"
21002   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21003     unix_path=`$CYGPATH -u "$windows_path"`
21004     new_path="$unix_path"
21005   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21006     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21007     new_path="$unix_path"
21008   fi
21009 
21010     fi
21011 
21012     if test "x$new_path" = x; then
21013       # It's still not found. Now this is an unrecoverable error.
21014       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21015 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21016       has_space=`$ECHO "$complete" | $GREP " "`
21017       if test "x$has_space" != x; then
21018         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21019 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21020       fi
21021       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21022     fi
21023   fi
21024 
21025   # Now new_path has a complete unix path to the binary
21026   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
21027     # Keep paths in /bin as-is, but remove trailing .exe if any
21028     new_path="${new_path/%.exe/}"
21029     # Do not save /bin paths to all_fixpath_prefixes!
21030   else
21031     # Not in mixed or Windows style, start by that.
21032     new_path=`cmd //c echo $new_path`
21033 
21034   input_path="$new_path"
21035   # Check if we need to convert this using DOS-style short mode. If the path
21036   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21037   # take no chances and rewrite it.
21038   # Note: m4 eats our [], so we need to use [ and ] instead.
21039   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21040   if test "x$has_forbidden_chars" != x; then
21041     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21042     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21043   fi
21044 
21045     # Output is in $new_path
21046 
21047   windows_path="$new_path"
21048   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21049     unix_path=`$CYGPATH -u "$windows_path"`
21050     new_path="$unix_path"
21051   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21052     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21053     new_path="$unix_path"
21054   fi
21055 
21056     # remove trailing .exe if any
21057     new_path="${new_path/%.exe/}"
21058 
21059     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21060     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21061   fi
21062 
21063     else
21064       # We're on a unix platform. Hooray! :)
21065       # First separate the path from the arguments. This will split at the first
21066       # space.
21067       complete="$FOUND_MAKE"
21068       path="${complete%% *}"
21069       tmp="$complete EOL"
21070       arguments="${tmp#* }"
21071 
21072       # Cannot rely on the command "which" here since it doesn't always work.
21073       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21074       if test -z "$is_absolute_path"; then
21075         # Path to executable is not absolute. Find it.
21076         IFS_save="$IFS"
21077         IFS=:
21078         for p in $PATH; do
21079           if test -f "$p/$path" && test -x "$p/$path"; then
21080             new_path="$p/$path"
21081             break
21082           fi
21083         done
21084         IFS="$IFS_save"
21085       else
21086         # This is an absolute path, we can use it without further modifications.
21087         new_path="$path"
21088       fi
21089 
21090       if test "x$new_path" = x; then
21091         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21092 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21093         has_space=`$ECHO "$complete" | $GREP " "`
21094         if test "x$has_space" != x; then
21095           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21096 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21097         fi
21098         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21099       fi
21100     fi
21101 
21102     # Now join together the path and the arguments once again
21103     if test "x$arguments" != xEOL; then
21104       new_complete="$new_path ${arguments% *}"
21105     else
21106       new_complete="$new_path"
21107     fi
21108 
21109     if test "x$complete" != "x$new_complete"; then
21110       FOUND_MAKE="$new_complete"
21111       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21112 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21113     fi
21114   fi
21115 
21116         fi
21117       fi
21118     fi
21119   fi
21120 
21121     if test "x$FOUND_MAKE" = x; then
21122       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21123     fi
21124 
21125   fi
21126 
21127 
21128   MAKE=$FOUND_MAKE
21129 
21130   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21131 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21132 
21133 
21134   # Check if make supports the output sync option and if so, setup using it.
21135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21136 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21137   if $MAKE --version -O > /dev/null 2>&1; then
21138     OUTPUT_SYNC_SUPPORTED=true
21139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21140 $as_echo "yes" >&6; }
21141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21142 $as_echo_n "checking for output-sync value... " >&6; }
21143 
21144 # Check whether --with-output-sync was given.
21145 if test "${with_output_sync+set}" = set; then :
21146   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21147 fi
21148 
21149     if test "x$OUTPUT_SYNC" = "x"; then
21150       OUTPUT_SYNC=none
21151     fi
21152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21153 $as_echo "$OUTPUT_SYNC" >&6; }
21154     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21155       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21156     fi
21157   else
21158     OUTPUT_SYNC_SUPPORTED=false
21159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21160 $as_echo "no" >&6; }
21161   fi
21162 
21163 
21164 
21165 
21166 
21167 
21168   # Test if find supports -delete
21169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21170 $as_echo_n "checking if find supports -delete... " >&6; }
21171   FIND_DELETE="-delete"
21172 
21173   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21174 
21175   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21176 
21177   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21178   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21179     # No, it does not.
21180     $RM $DELETEDIR/TestIfFindSupportsDelete
21181     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21182       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21183       FIND_DELETE="-print | $XARGS $RM"
21184     else
21185       FIND_DELETE="-exec $RM \{\} \+"
21186     fi
21187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21188 $as_echo "no" >&6; }
21189   else
21190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21191 $as_echo "yes" >&6; }
21192   fi
21193   $RMDIR $DELETEDIR
21194 
21195 
21196 
21197   # Test which kind of tar was found
21198   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21199     TAR_TYPE="gnu"
21200   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21201     TAR_TYPE="bsd"
21202   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21203     TAR_TYPE="solaris"
21204   fi
21205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21206 $as_echo_n "checking what type of tar was found... " >&6; }
21207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21208 $as_echo "$TAR_TYPE" >&6; }
21209 
21210   TAR_CREATE_FILE_PARAM=""
21211 
21212   if test "x$TAR_TYPE" = "xgnu"; then
21213     TAR_INCLUDE_PARAM="T"
21214     TAR_SUPPORTS_TRANSFORM="true"
21215     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21216       # When using gnu tar for Solaris targets, need to use compatibility mode
21217       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21218     fi
21219   else
21220     TAR_INCLUDE_PARAM="I"
21221     TAR_SUPPORTS_TRANSFORM="false"
21222   fi
21223 
21224 
21225 
21226 
21227 
21228 
21229   # These tools might not be installed by default,
21230   # need hint on how to install them.
21231 
21232 
21233 
21234   # Publish this variable in the help.
21235 
21236 
21237   if [ -z "${UNZIP+x}" ]; then
21238     # The variable is not set by user, try to locate tool using the code snippet
21239     for ac_prog in unzip
21240 do
21241   # Extract the first word of "$ac_prog", so it can be a program name with args.
21242 set dummy $ac_prog; ac_word=$2
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21244 $as_echo_n "checking for $ac_word... " >&6; }
21245 if ${ac_cv_path_UNZIP+:} false; then :
21246   $as_echo_n "(cached) " >&6
21247 else
21248   case $UNZIP in
21249   [\\/]* | ?:[\\/]*)
21250   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21251   ;;
21252   *)
21253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21254 for as_dir in $PATH
21255 do
21256   IFS=$as_save_IFS
21257   test -z "$as_dir" && as_dir=.
21258     for ac_exec_ext in '' $ac_executable_extensions; do
21259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21260     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21262     break 2
21263   fi
21264 done
21265   done
21266 IFS=$as_save_IFS
21267 
21268   ;;
21269 esac
21270 fi
21271 UNZIP=$ac_cv_path_UNZIP
21272 if test -n "$UNZIP"; then
21273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21274 $as_echo "$UNZIP" >&6; }
21275 else
21276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21277 $as_echo "no" >&6; }
21278 fi
21279 
21280 
21281   test -n "$UNZIP" && break
21282 done
21283 
21284   else
21285     # The variable is set, but is it from the command line or the environment?
21286 
21287     # Try to remove the string !UNZIP! from our list.
21288     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21289     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21290       # If it failed, the variable was not from the command line. Ignore it,
21291       # but warn the user (except for BASH, which is always set by the calling BASH).
21292       if test "xUNZIP" != xBASH; then
21293         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21294 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21295       fi
21296       # Try to locate tool using the code snippet
21297       for ac_prog in unzip
21298 do
21299   # Extract the first word of "$ac_prog", so it can be a program name with args.
21300 set dummy $ac_prog; ac_word=$2
21301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21302 $as_echo_n "checking for $ac_word... " >&6; }
21303 if ${ac_cv_path_UNZIP+:} false; then :
21304   $as_echo_n "(cached) " >&6
21305 else
21306   case $UNZIP in
21307   [\\/]* | ?:[\\/]*)
21308   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21309   ;;
21310   *)
21311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21312 for as_dir in $PATH
21313 do
21314   IFS=$as_save_IFS
21315   test -z "$as_dir" && as_dir=.
21316     for ac_exec_ext in '' $ac_executable_extensions; do
21317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21318     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21320     break 2
21321   fi
21322 done
21323   done
21324 IFS=$as_save_IFS
21325 
21326   ;;
21327 esac
21328 fi
21329 UNZIP=$ac_cv_path_UNZIP
21330 if test -n "$UNZIP"; then
21331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21332 $as_echo "$UNZIP" >&6; }
21333 else
21334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21335 $as_echo "no" >&6; }
21336 fi
21337 
21338 
21339   test -n "$UNZIP" && break
21340 done
21341 
21342     else
21343       # If it succeeded, then it was overridden by the user. We will use it
21344       # for the tool.
21345 
21346       # First remove it from the list of overridden variables, so we can test
21347       # for unknown variables in the end.
21348       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21349 
21350       # Check if we try to supply an empty value
21351       if test "x$UNZIP" = x; then
21352         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21353 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21355 $as_echo_n "checking for UNZIP... " >&6; }
21356         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21357 $as_echo "disabled" >&6; }
21358       else
21359         # Check if the provided tool contains a complete path.
21360         tool_specified="$UNZIP"
21361         tool_basename="${tool_specified##*/}"
21362         if test "x$tool_basename" = "x$tool_specified"; then
21363           # A command without a complete path is provided, search $PATH.
21364           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21365 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21366           # Extract the first word of "$tool_basename", so it can be a program name with args.
21367 set dummy $tool_basename; ac_word=$2
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21369 $as_echo_n "checking for $ac_word... " >&6; }
21370 if ${ac_cv_path_UNZIP+:} false; then :
21371   $as_echo_n "(cached) " >&6
21372 else
21373   case $UNZIP in
21374   [\\/]* | ?:[\\/]*)
21375   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21376   ;;
21377   *)
21378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21379 for as_dir in $PATH
21380 do
21381   IFS=$as_save_IFS
21382   test -z "$as_dir" && as_dir=.
21383     for ac_exec_ext in '' $ac_executable_extensions; do
21384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21385     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21387     break 2
21388   fi
21389 done
21390   done
21391 IFS=$as_save_IFS
21392 
21393   ;;
21394 esac
21395 fi
21396 UNZIP=$ac_cv_path_UNZIP
21397 if test -n "$UNZIP"; then
21398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21399 $as_echo "$UNZIP" >&6; }
21400 else
21401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21402 $as_echo "no" >&6; }
21403 fi
21404 
21405 
21406           if test "x$UNZIP" = x; then
21407             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21408           fi
21409         else
21410           # Otherwise we believe it is a complete path. Use it as it is.
21411           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21412 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21413           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21414 $as_echo_n "checking for UNZIP... " >&6; }
21415           if test ! -x "$tool_specified"; then
21416             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21417 $as_echo "not found" >&6; }
21418             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21419           fi
21420           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21421 $as_echo "$tool_specified" >&6; }
21422         fi
21423       fi
21424     fi
21425 
21426   fi
21427 
21428 
21429 
21430   if test "x$UNZIP" = x; then
21431     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21432   fi
21433 
21434 
21435 
21436 
21437 
21438   # Publish this variable in the help.
21439 
21440 
21441   if [ -z "${ZIP+x}" ]; then
21442     # The variable is not set by user, try to locate tool using the code snippet
21443     for ac_prog in zip
21444 do
21445   # Extract the first word of "$ac_prog", so it can be a program name with args.
21446 set dummy $ac_prog; ac_word=$2
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21448 $as_echo_n "checking for $ac_word... " >&6; }
21449 if ${ac_cv_path_ZIP+:} false; then :
21450   $as_echo_n "(cached) " >&6
21451 else
21452   case $ZIP in
21453   [\\/]* | ?:[\\/]*)
21454   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
21455   ;;
21456   *)
21457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21458 for as_dir in $PATH
21459 do
21460   IFS=$as_save_IFS
21461   test -z "$as_dir" && as_dir=.
21462     for ac_exec_ext in '' $ac_executable_extensions; do
21463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21464     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
21465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21466     break 2
21467   fi
21468 done
21469   done
21470 IFS=$as_save_IFS
21471 
21472   ;;
21473 esac
21474 fi
21475 ZIP=$ac_cv_path_ZIP
21476 if test -n "$ZIP"; then
21477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
21478 $as_echo "$ZIP" >&6; }
21479 else
21480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21481 $as_echo "no" >&6; }
21482 fi
21483 
21484 
21485   test -n "$ZIP" && break
21486 done
21487 
21488   else
21489     # The variable is set, but is it from the command line or the environment?
21490 
21491     # Try to remove the string !ZIP! from our list.
21492     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
21493     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21494       # If it failed, the variable was not from the command line. Ignore it,
21495       # but warn the user (except for BASH, which is always set by the calling BASH).
21496       if test "xZIP" != xBASH; then
21497         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
21498 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
21499       fi
21500       # Try to locate tool using the code snippet
21501       for ac_prog in zip
21502 do
21503   # Extract the first word of "$ac_prog", so it can be a program name with args.
21504 set dummy $ac_prog; ac_word=$2
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21506 $as_echo_n "checking for $ac_word... " >&6; }
21507 if ${ac_cv_path_ZIP+:} false; then :
21508   $as_echo_n "(cached) " >&6
21509 else
21510   case $ZIP in
21511   [\\/]* | ?:[\\/]*)
21512   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
21513   ;;
21514   *)
21515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21516 for as_dir in $PATH
21517 do
21518   IFS=$as_save_IFS
21519   test -z "$as_dir" && as_dir=.
21520     for ac_exec_ext in '' $ac_executable_extensions; do
21521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21522     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
21523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21524     break 2
21525   fi
21526 done
21527   done
21528 IFS=$as_save_IFS
21529 
21530   ;;
21531 esac
21532 fi
21533 ZIP=$ac_cv_path_ZIP
21534 if test -n "$ZIP"; then
21535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
21536 $as_echo "$ZIP" >&6; }
21537 else
21538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21539 $as_echo "no" >&6; }
21540 fi
21541 
21542 
21543   test -n "$ZIP" && break
21544 done
21545 
21546     else
21547       # If it succeeded, then it was overridden by the user. We will use it
21548       # for the tool.
21549 
21550       # First remove it from the list of overridden variables, so we can test
21551       # for unknown variables in the end.
21552       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21553 
21554       # Check if we try to supply an empty value
21555       if test "x$ZIP" = x; then
21556         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
21557 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
21558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
21559 $as_echo_n "checking for ZIP... " >&6; }
21560         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21561 $as_echo "disabled" >&6; }
21562       else
21563         # Check if the provided tool contains a complete path.
21564         tool_specified="$ZIP"
21565         tool_basename="${tool_specified##*/}"
21566         if test "x$tool_basename" = "x$tool_specified"; then
21567           # A command without a complete path is provided, search $PATH.
21568           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
21569 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
21570           # Extract the first word of "$tool_basename", so it can be a program name with args.
21571 set dummy $tool_basename; ac_word=$2
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21573 $as_echo_n "checking for $ac_word... " >&6; }
21574 if ${ac_cv_path_ZIP+:} false; then :
21575   $as_echo_n "(cached) " >&6
21576 else
21577   case $ZIP in
21578   [\\/]* | ?:[\\/]*)
21579   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
21580   ;;
21581   *)
21582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21583 for as_dir in $PATH
21584 do
21585   IFS=$as_save_IFS
21586   test -z "$as_dir" && as_dir=.
21587     for ac_exec_ext in '' $ac_executable_extensions; do
21588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21589     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
21590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21591     break 2
21592   fi
21593 done
21594   done
21595 IFS=$as_save_IFS
21596 
21597   ;;
21598 esac
21599 fi
21600 ZIP=$ac_cv_path_ZIP
21601 if test -n "$ZIP"; then
21602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
21603 $as_echo "$ZIP" >&6; }
21604 else
21605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21606 $as_echo "no" >&6; }
21607 fi
21608 
21609 
21610           if test "x$ZIP" = x; then
21611             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21612           fi
21613         else
21614           # Otherwise we believe it is a complete path. Use it as it is.
21615           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
21616 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
21617           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
21618 $as_echo_n "checking for ZIP... " >&6; }
21619           if test ! -x "$tool_specified"; then
21620             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21621 $as_echo "not found" >&6; }
21622             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21623           fi
21624           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21625 $as_echo "$tool_specified" >&6; }
21626         fi
21627       fi
21628     fi
21629 
21630   fi
21631 
21632 
21633 
21634   if test "x$ZIP" = x; then
21635     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
21636   fi
21637 
21638 
21639 
21640   # Non-required basic tools
21641 
21642 
21643 
21644   # Publish this variable in the help.
21645 
21646 
21647   if [ -z "${LDD+x}" ]; then
21648     # The variable is not set by user, try to locate tool using the code snippet
21649     for ac_prog in ldd
21650 do
21651   # Extract the first word of "$ac_prog", so it can be a program name with args.
21652 set dummy $ac_prog; ac_word=$2
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21654 $as_echo_n "checking for $ac_word... " >&6; }
21655 if ${ac_cv_path_LDD+:} false; then :
21656   $as_echo_n "(cached) " >&6
21657 else
21658   case $LDD in
21659   [\\/]* | ?:[\\/]*)
21660   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21661   ;;
21662   *)
21663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21664 for as_dir in $PATH
21665 do
21666   IFS=$as_save_IFS
21667   test -z "$as_dir" && as_dir=.
21668     for ac_exec_ext in '' $ac_executable_extensions; do
21669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21670     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21672     break 2
21673   fi
21674 done
21675   done
21676 IFS=$as_save_IFS
21677 
21678   ;;
21679 esac
21680 fi
21681 LDD=$ac_cv_path_LDD
21682 if test -n "$LDD"; then
21683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21684 $as_echo "$LDD" >&6; }
21685 else
21686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21687 $as_echo "no" >&6; }
21688 fi
21689 
21690 
21691   test -n "$LDD" && break
21692 done
21693 
21694   else
21695     # The variable is set, but is it from the command line or the environment?
21696 
21697     # Try to remove the string !LDD! from our list.
21698     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21699     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21700       # If it failed, the variable was not from the command line. Ignore it,
21701       # but warn the user (except for BASH, which is always set by the calling BASH).
21702       if test "xLDD" != xBASH; then
21703         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21704 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
21705       fi
21706       # Try to locate tool using the code snippet
21707       for ac_prog in ldd
21708 do
21709   # Extract the first word of "$ac_prog", so it can be a program name with args.
21710 set dummy $ac_prog; ac_word=$2
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21712 $as_echo_n "checking for $ac_word... " >&6; }
21713 if ${ac_cv_path_LDD+:} false; then :
21714   $as_echo_n "(cached) " >&6
21715 else
21716   case $LDD in
21717   [\\/]* | ?:[\\/]*)
21718   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21719   ;;
21720   *)
21721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21722 for as_dir in $PATH
21723 do
21724   IFS=$as_save_IFS
21725   test -z "$as_dir" && as_dir=.
21726     for ac_exec_ext in '' $ac_executable_extensions; do
21727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21728     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21730     break 2
21731   fi
21732 done
21733   done
21734 IFS=$as_save_IFS
21735 
21736   ;;
21737 esac
21738 fi
21739 LDD=$ac_cv_path_LDD
21740 if test -n "$LDD"; then
21741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21742 $as_echo "$LDD" >&6; }
21743 else
21744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21745 $as_echo "no" >&6; }
21746 fi
21747 
21748 
21749   test -n "$LDD" && break
21750 done
21751 
21752     else
21753       # If it succeeded, then it was overridden by the user. We will use it
21754       # for the tool.
21755 
21756       # First remove it from the list of overridden variables, so we can test
21757       # for unknown variables in the end.
21758       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21759 
21760       # Check if we try to supply an empty value
21761       if test "x$LDD" = x; then
21762         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
21763 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
21764         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21765 $as_echo_n "checking for LDD... " >&6; }
21766         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21767 $as_echo "disabled" >&6; }
21768       else
21769         # Check if the provided tool contains a complete path.
21770         tool_specified="$LDD"
21771         tool_basename="${tool_specified##*/}"
21772         if test "x$tool_basename" = "x$tool_specified"; then
21773           # A command without a complete path is provided, search $PATH.
21774           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
21775 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
21776           # Extract the first word of "$tool_basename", so it can be a program name with args.
21777 set dummy $tool_basename; ac_word=$2
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21779 $as_echo_n "checking for $ac_word... " >&6; }
21780 if ${ac_cv_path_LDD+:} false; then :
21781   $as_echo_n "(cached) " >&6
21782 else
21783   case $LDD in
21784   [\\/]* | ?:[\\/]*)
21785   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21786   ;;
21787   *)
21788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21789 for as_dir in $PATH
21790 do
21791   IFS=$as_save_IFS
21792   test -z "$as_dir" && as_dir=.
21793     for ac_exec_ext in '' $ac_executable_extensions; do
21794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21795     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21797     break 2
21798   fi
21799 done
21800   done
21801 IFS=$as_save_IFS
21802 
21803   ;;
21804 esac
21805 fi
21806 LDD=$ac_cv_path_LDD
21807 if test -n "$LDD"; then
21808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21809 $as_echo "$LDD" >&6; }
21810 else
21811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21812 $as_echo "no" >&6; }
21813 fi
21814 
21815 
21816           if test "x$LDD" = x; then
21817             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21818           fi
21819         else
21820           # Otherwise we believe it is a complete path. Use it as it is.
21821           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
21822 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
21823           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21824 $as_echo_n "checking for LDD... " >&6; }
21825           if test ! -x "$tool_specified"; then
21826             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21827 $as_echo "not found" >&6; }
21828             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
21829           fi
21830           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21831 $as_echo "$tool_specified" >&6; }
21832         fi
21833       fi
21834     fi
21835 
21836   fi
21837 
21838 
21839   if test "x$LDD" = "x"; then
21840     # List shared lib dependencies is used for
21841     # debug output and checking for forbidden dependencies.
21842     # We can build without it.
21843     LDD="true"
21844   fi
21845 
21846 
21847   # Publish this variable in the help.
21848 
21849 
21850   if [ -z "${OTOOL+x}" ]; then
21851     # The variable is not set by user, try to locate tool using the code snippet
21852     for ac_prog in otool
21853 do
21854   # Extract the first word of "$ac_prog", so it can be a program name with args.
21855 set dummy $ac_prog; 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_OTOOL+:} false; then :
21859   $as_echo_n "(cached) " >&6
21860 else
21861   case $OTOOL in
21862   [\\/]* | ?:[\\/]*)
21863   ac_cv_path_OTOOL="$OTOOL" # 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_OTOOL="$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 OTOOL=$ac_cv_path_OTOOL
21885 if test -n "$OTOOL"; then
21886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21887 $as_echo "$OTOOL" >&6; }
21888 else
21889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21890 $as_echo "no" >&6; }
21891 fi
21892 
21893 
21894   test -n "$OTOOL" && break
21895 done
21896 
21897   else
21898     # The variable is set, but is it from the command line or the environment?
21899 
21900     # Try to remove the string !OTOOL! from our list.
21901     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
21902     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21903       # If it failed, the variable was not from the command line. Ignore it,
21904       # but warn the user (except for BASH, which is always set by the calling BASH).
21905       if test "xOTOOL" != xBASH; then
21906         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
21907 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
21908       fi
21909       # Try to locate tool using the code snippet
21910       for ac_prog in otool
21911 do
21912   # Extract the first word of "$ac_prog", so it can be a program name with args.
21913 set dummy $ac_prog; ac_word=$2
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21915 $as_echo_n "checking for $ac_word... " >&6; }
21916 if ${ac_cv_path_OTOOL+:} false; then :
21917   $as_echo_n "(cached) " >&6
21918 else
21919   case $OTOOL in
21920   [\\/]* | ?:[\\/]*)
21921   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21922   ;;
21923   *)
21924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21925 for as_dir in $PATH
21926 do
21927   IFS=$as_save_IFS
21928   test -z "$as_dir" && as_dir=.
21929     for ac_exec_ext in '' $ac_executable_extensions; do
21930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21931     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21933     break 2
21934   fi
21935 done
21936   done
21937 IFS=$as_save_IFS
21938 
21939   ;;
21940 esac
21941 fi
21942 OTOOL=$ac_cv_path_OTOOL
21943 if test -n "$OTOOL"; then
21944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21945 $as_echo "$OTOOL" >&6; }
21946 else
21947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21948 $as_echo "no" >&6; }
21949 fi
21950 
21951 
21952   test -n "$OTOOL" && break
21953 done
21954 
21955     else
21956       # If it succeeded, then it was overridden by the user. We will use it
21957       # for the tool.
21958 
21959       # First remove it from the list of overridden variables, so we can test
21960       # for unknown variables in the end.
21961       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21962 
21963       # Check if we try to supply an empty value
21964       if test "x$OTOOL" = x; then
21965         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
21966 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
21967         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21968 $as_echo_n "checking for OTOOL... " >&6; }
21969         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21970 $as_echo "disabled" >&6; }
21971       else
21972         # Check if the provided tool contains a complete path.
21973         tool_specified="$OTOOL"
21974         tool_basename="${tool_specified##*/}"
21975         if test "x$tool_basename" = "x$tool_specified"; then
21976           # A command without a complete path is provided, search $PATH.
21977           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
21978 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
21979           # Extract the first word of "$tool_basename", so it can be a program name with args.
21980 set dummy $tool_basename; ac_word=$2
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21982 $as_echo_n "checking for $ac_word... " >&6; }
21983 if ${ac_cv_path_OTOOL+:} false; then :
21984   $as_echo_n "(cached) " >&6
21985 else
21986   case $OTOOL in
21987   [\\/]* | ?:[\\/]*)
21988   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21989   ;;
21990   *)
21991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21992 for as_dir in $PATH
21993 do
21994   IFS=$as_save_IFS
21995   test -z "$as_dir" && as_dir=.
21996     for ac_exec_ext in '' $ac_executable_extensions; do
21997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21998     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22000     break 2
22001   fi
22002 done
22003   done
22004 IFS=$as_save_IFS
22005 
22006   ;;
22007 esac
22008 fi
22009 OTOOL=$ac_cv_path_OTOOL
22010 if test -n "$OTOOL"; then
22011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
22012 $as_echo "$OTOOL" >&6; }
22013 else
22014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22015 $as_echo "no" >&6; }
22016 fi
22017 
22018 
22019           if test "x$OTOOL" = x; then
22020             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22021           fi
22022         else
22023           # Otherwise we believe it is a complete path. Use it as it is.
22024           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
22025 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
22026           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
22027 $as_echo_n "checking for OTOOL... " >&6; }
22028           if test ! -x "$tool_specified"; then
22029             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22030 $as_echo "not found" >&6; }
22031             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
22032           fi
22033           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22034 $as_echo "$tool_specified" >&6; }
22035         fi
22036       fi
22037     fi
22038 
22039   fi
22040 
22041 
22042   if test "x$OTOOL" = "x"; then
22043     OTOOL="true"
22044   fi
22045 
22046 
22047   # Publish this variable in the help.
22048 
22049 
22050   if [ -z "${READELF+x}" ]; then
22051     # The variable is not set by user, try to locate tool using the code snippet
22052     for ac_prog in greadelf readelf
22053 do
22054   # Extract the first word of "$ac_prog", so it can be a program name with args.
22055 set dummy $ac_prog; ac_word=$2
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22057 $as_echo_n "checking for $ac_word... " >&6; }
22058 if ${ac_cv_path_READELF+:} false; then :
22059   $as_echo_n "(cached) " >&6
22060 else
22061   case $READELF in
22062   [\\/]* | ?:[\\/]*)
22063   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22064   ;;
22065   *)
22066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22067 for as_dir in $PATH
22068 do
22069   IFS=$as_save_IFS
22070   test -z "$as_dir" && as_dir=.
22071     for ac_exec_ext in '' $ac_executable_extensions; do
22072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22073     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22075     break 2
22076   fi
22077 done
22078   done
22079 IFS=$as_save_IFS
22080 
22081   ;;
22082 esac
22083 fi
22084 READELF=$ac_cv_path_READELF
22085 if test -n "$READELF"; then
22086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22087 $as_echo "$READELF" >&6; }
22088 else
22089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22090 $as_echo "no" >&6; }
22091 fi
22092 
22093 
22094   test -n "$READELF" && break
22095 done
22096 
22097   else
22098     # The variable is set, but is it from the command line or the environment?
22099 
22100     # Try to remove the string !READELF! from our list.
22101     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22102     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22103       # If it failed, the variable was not from the command line. Ignore it,
22104       # but warn the user (except for BASH, which is always set by the calling BASH).
22105       if test "xREADELF" != xBASH; then
22106         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22107 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22108       fi
22109       # Try to locate tool using the code snippet
22110       for ac_prog in greadelf readelf
22111 do
22112   # Extract the first word of "$ac_prog", so it can be a program name with args.
22113 set dummy $ac_prog; ac_word=$2
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22115 $as_echo_n "checking for $ac_word... " >&6; }
22116 if ${ac_cv_path_READELF+:} false; then :
22117   $as_echo_n "(cached) " >&6
22118 else
22119   case $READELF in
22120   [\\/]* | ?:[\\/]*)
22121   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22122   ;;
22123   *)
22124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22125 for as_dir in $PATH
22126 do
22127   IFS=$as_save_IFS
22128   test -z "$as_dir" && as_dir=.
22129     for ac_exec_ext in '' $ac_executable_extensions; do
22130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22131     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22133     break 2
22134   fi
22135 done
22136   done
22137 IFS=$as_save_IFS
22138 
22139   ;;
22140 esac
22141 fi
22142 READELF=$ac_cv_path_READELF
22143 if test -n "$READELF"; then
22144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22145 $as_echo "$READELF" >&6; }
22146 else
22147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22148 $as_echo "no" >&6; }
22149 fi
22150 
22151 
22152   test -n "$READELF" && break
22153 done
22154 
22155     else
22156       # If it succeeded, then it was overridden by the user. We will use it
22157       # for the tool.
22158 
22159       # First remove it from the list of overridden variables, so we can test
22160       # for unknown variables in the end.
22161       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22162 
22163       # Check if we try to supply an empty value
22164       if test "x$READELF" = x; then
22165         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22166 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22168 $as_echo_n "checking for READELF... " >&6; }
22169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22170 $as_echo "disabled" >&6; }
22171       else
22172         # Check if the provided tool contains a complete path.
22173         tool_specified="$READELF"
22174         tool_basename="${tool_specified##*/}"
22175         if test "x$tool_basename" = "x$tool_specified"; then
22176           # A command without a complete path is provided, search $PATH.
22177           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22178 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22179           # Extract the first word of "$tool_basename", so it can be a program name with args.
22180 set dummy $tool_basename; ac_word=$2
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22182 $as_echo_n "checking for $ac_word... " >&6; }
22183 if ${ac_cv_path_READELF+:} false; then :
22184   $as_echo_n "(cached) " >&6
22185 else
22186   case $READELF in
22187   [\\/]* | ?:[\\/]*)
22188   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22189   ;;
22190   *)
22191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22192 for as_dir in $PATH
22193 do
22194   IFS=$as_save_IFS
22195   test -z "$as_dir" && as_dir=.
22196     for ac_exec_ext in '' $ac_executable_extensions; do
22197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22198     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22200     break 2
22201   fi
22202 done
22203   done
22204 IFS=$as_save_IFS
22205 
22206   ;;
22207 esac
22208 fi
22209 READELF=$ac_cv_path_READELF
22210 if test -n "$READELF"; then
22211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22212 $as_echo "$READELF" >&6; }
22213 else
22214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22215 $as_echo "no" >&6; }
22216 fi
22217 
22218 
22219           if test "x$READELF" = x; then
22220             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22221           fi
22222         else
22223           # Otherwise we believe it is a complete path. Use it as it is.
22224           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22225 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22226           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22227 $as_echo_n "checking for READELF... " >&6; }
22228           if test ! -x "$tool_specified"; then
22229             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22230 $as_echo "not found" >&6; }
22231             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22232           fi
22233           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22234 $as_echo "$tool_specified" >&6; }
22235         fi
22236       fi
22237     fi
22238 
22239   fi
22240 
22241 
22242 
22243 
22244   # Publish this variable in the help.
22245 
22246 
22247   if [ -z "${HG+x}" ]; then
22248     # The variable is not set by user, try to locate tool using the code snippet
22249     for ac_prog in hg
22250 do
22251   # Extract the first word of "$ac_prog", so it can be a program name with args.
22252 set dummy $ac_prog; ac_word=$2
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22254 $as_echo_n "checking for $ac_word... " >&6; }
22255 if ${ac_cv_path_HG+:} false; then :
22256   $as_echo_n "(cached) " >&6
22257 else
22258   case $HG in
22259   [\\/]* | ?:[\\/]*)
22260   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22261   ;;
22262   *)
22263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22264 for as_dir in $PATH
22265 do
22266   IFS=$as_save_IFS
22267   test -z "$as_dir" && as_dir=.
22268     for ac_exec_ext in '' $ac_executable_extensions; do
22269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22270     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22272     break 2
22273   fi
22274 done
22275   done
22276 IFS=$as_save_IFS
22277 
22278   ;;
22279 esac
22280 fi
22281 HG=$ac_cv_path_HG
22282 if test -n "$HG"; then
22283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22284 $as_echo "$HG" >&6; }
22285 else
22286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22287 $as_echo "no" >&6; }
22288 fi
22289 
22290 
22291   test -n "$HG" && break
22292 done
22293 
22294   else
22295     # The variable is set, but is it from the command line or the environment?
22296 
22297     # Try to remove the string !HG! from our list.
22298     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22299     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22300       # If it failed, the variable was not from the command line. Ignore it,
22301       # but warn the user (except for BASH, which is always set by the calling BASH).
22302       if test "xHG" != xBASH; then
22303         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22304 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22305       fi
22306       # Try to locate tool using the code snippet
22307       for ac_prog in hg
22308 do
22309   # Extract the first word of "$ac_prog", so it can be a program name with args.
22310 set dummy $ac_prog; ac_word=$2
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22312 $as_echo_n "checking for $ac_word... " >&6; }
22313 if ${ac_cv_path_HG+:} false; then :
22314   $as_echo_n "(cached) " >&6
22315 else
22316   case $HG in
22317   [\\/]* | ?:[\\/]*)
22318   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22319   ;;
22320   *)
22321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22322 for as_dir in $PATH
22323 do
22324   IFS=$as_save_IFS
22325   test -z "$as_dir" && as_dir=.
22326     for ac_exec_ext in '' $ac_executable_extensions; do
22327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22328     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22330     break 2
22331   fi
22332 done
22333   done
22334 IFS=$as_save_IFS
22335 
22336   ;;
22337 esac
22338 fi
22339 HG=$ac_cv_path_HG
22340 if test -n "$HG"; then
22341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22342 $as_echo "$HG" >&6; }
22343 else
22344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22345 $as_echo "no" >&6; }
22346 fi
22347 
22348 
22349   test -n "$HG" && break
22350 done
22351 
22352     else
22353       # If it succeeded, then it was overridden by the user. We will use it
22354       # for the tool.
22355 
22356       # First remove it from the list of overridden variables, so we can test
22357       # for unknown variables in the end.
22358       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22359 
22360       # Check if we try to supply an empty value
22361       if test "x$HG" = x; then
22362         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22363 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22364         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22365 $as_echo_n "checking for HG... " >&6; }
22366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22367 $as_echo "disabled" >&6; }
22368       else
22369         # Check if the provided tool contains a complete path.
22370         tool_specified="$HG"
22371         tool_basename="${tool_specified##*/}"
22372         if test "x$tool_basename" = "x$tool_specified"; then
22373           # A command without a complete path is provided, search $PATH.
22374           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22375 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22376           # Extract the first word of "$tool_basename", so it can be a program name with args.
22377 set dummy $tool_basename; ac_word=$2
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22379 $as_echo_n "checking for $ac_word... " >&6; }
22380 if ${ac_cv_path_HG+:} false; then :
22381   $as_echo_n "(cached) " >&6
22382 else
22383   case $HG in
22384   [\\/]* | ?:[\\/]*)
22385   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22386   ;;
22387   *)
22388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22389 for as_dir in $PATH
22390 do
22391   IFS=$as_save_IFS
22392   test -z "$as_dir" && as_dir=.
22393     for ac_exec_ext in '' $ac_executable_extensions; do
22394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22395     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22397     break 2
22398   fi
22399 done
22400   done
22401 IFS=$as_save_IFS
22402 
22403   ;;
22404 esac
22405 fi
22406 HG=$ac_cv_path_HG
22407 if test -n "$HG"; then
22408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22409 $as_echo "$HG" >&6; }
22410 else
22411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22412 $as_echo "no" >&6; }
22413 fi
22414 
22415 
22416           if test "x$HG" = x; then
22417             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22418           fi
22419         else
22420           # Otherwise we believe it is a complete path. Use it as it is.
22421           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22422 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22423           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22424 $as_echo_n "checking for HG... " >&6; }
22425           if test ! -x "$tool_specified"; then
22426             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22427 $as_echo "not found" >&6; }
22428             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22429           fi
22430           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22431 $as_echo "$tool_specified" >&6; }
22432         fi
22433       fi
22434     fi
22435 
22436   fi
22437 
22438 
22439 
22440 
22441   # Publish this variable in the help.
22442 
22443 
22444   if [ -z "${STAT+x}" ]; then
22445     # The variable is not set by user, try to locate tool using the code snippet
22446     for ac_prog in stat
22447 do
22448   # Extract the first word of "$ac_prog", so it can be a program name with args.
22449 set dummy $ac_prog; ac_word=$2
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22451 $as_echo_n "checking for $ac_word... " >&6; }
22452 if ${ac_cv_path_STAT+:} false; then :
22453   $as_echo_n "(cached) " >&6
22454 else
22455   case $STAT in
22456   [\\/]* | ?:[\\/]*)
22457   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22458   ;;
22459   *)
22460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22461 for as_dir in $PATH
22462 do
22463   IFS=$as_save_IFS
22464   test -z "$as_dir" && as_dir=.
22465     for ac_exec_ext in '' $ac_executable_extensions; do
22466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22467     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22469     break 2
22470   fi
22471 done
22472   done
22473 IFS=$as_save_IFS
22474 
22475   ;;
22476 esac
22477 fi
22478 STAT=$ac_cv_path_STAT
22479 if test -n "$STAT"; then
22480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22481 $as_echo "$STAT" >&6; }
22482 else
22483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22484 $as_echo "no" >&6; }
22485 fi
22486 
22487 
22488   test -n "$STAT" && break
22489 done
22490 
22491   else
22492     # The variable is set, but is it from the command line or the environment?
22493 
22494     # Try to remove the string !STAT! from our list.
22495     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22496     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22497       # If it failed, the variable was not from the command line. Ignore it,
22498       # but warn the user (except for BASH, which is always set by the calling BASH).
22499       if test "xSTAT" != xBASH; then
22500         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22501 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22502       fi
22503       # Try to locate tool using the code snippet
22504       for ac_prog in stat
22505 do
22506   # Extract the first word of "$ac_prog", so it can be a program name with args.
22507 set dummy $ac_prog; ac_word=$2
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22509 $as_echo_n "checking for $ac_word... " >&6; }
22510 if ${ac_cv_path_STAT+:} false; then :
22511   $as_echo_n "(cached) " >&6
22512 else
22513   case $STAT in
22514   [\\/]* | ?:[\\/]*)
22515   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22516   ;;
22517   *)
22518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22519 for as_dir in $PATH
22520 do
22521   IFS=$as_save_IFS
22522   test -z "$as_dir" && as_dir=.
22523     for ac_exec_ext in '' $ac_executable_extensions; do
22524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22525     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22527     break 2
22528   fi
22529 done
22530   done
22531 IFS=$as_save_IFS
22532 
22533   ;;
22534 esac
22535 fi
22536 STAT=$ac_cv_path_STAT
22537 if test -n "$STAT"; then
22538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22539 $as_echo "$STAT" >&6; }
22540 else
22541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22542 $as_echo "no" >&6; }
22543 fi
22544 
22545 
22546   test -n "$STAT" && break
22547 done
22548 
22549     else
22550       # If it succeeded, then it was overridden by the user. We will use it
22551       # for the tool.
22552 
22553       # First remove it from the list of overridden variables, so we can test
22554       # for unknown variables in the end.
22555       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22556 
22557       # Check if we try to supply an empty value
22558       if test "x$STAT" = x; then
22559         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22560 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22562 $as_echo_n "checking for STAT... " >&6; }
22563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22564 $as_echo "disabled" >&6; }
22565       else
22566         # Check if the provided tool contains a complete path.
22567         tool_specified="$STAT"
22568         tool_basename="${tool_specified##*/}"
22569         if test "x$tool_basename" = "x$tool_specified"; then
22570           # A command without a complete path is provided, search $PATH.
22571           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22572 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22573           # Extract the first word of "$tool_basename", so it can be a program name with args.
22574 set dummy $tool_basename; ac_word=$2
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22576 $as_echo_n "checking for $ac_word... " >&6; }
22577 if ${ac_cv_path_STAT+:} false; then :
22578   $as_echo_n "(cached) " >&6
22579 else
22580   case $STAT in
22581   [\\/]* | ?:[\\/]*)
22582   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22583   ;;
22584   *)
22585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22586 for as_dir in $PATH
22587 do
22588   IFS=$as_save_IFS
22589   test -z "$as_dir" && as_dir=.
22590     for ac_exec_ext in '' $ac_executable_extensions; do
22591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22592     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22594     break 2
22595   fi
22596 done
22597   done
22598 IFS=$as_save_IFS
22599 
22600   ;;
22601 esac
22602 fi
22603 STAT=$ac_cv_path_STAT
22604 if test -n "$STAT"; then
22605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22606 $as_echo "$STAT" >&6; }
22607 else
22608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22609 $as_echo "no" >&6; }
22610 fi
22611 
22612 
22613           if test "x$STAT" = x; then
22614             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22615           fi
22616         else
22617           # Otherwise we believe it is a complete path. Use it as it is.
22618           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22619 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22620           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22621 $as_echo_n "checking for STAT... " >&6; }
22622           if test ! -x "$tool_specified"; then
22623             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22624 $as_echo "not found" >&6; }
22625             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22626           fi
22627           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22628 $as_echo "$tool_specified" >&6; }
22629         fi
22630       fi
22631     fi
22632 
22633   fi
22634 
22635 
22636 
22637 
22638   # Publish this variable in the help.
22639 
22640 
22641   if [ -z "${TIME+x}" ]; then
22642     # The variable is not set by user, try to locate tool using the code snippet
22643     for ac_prog in time
22644 do
22645   # Extract the first word of "$ac_prog", so it can be a program name with args.
22646 set dummy $ac_prog; ac_word=$2
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22648 $as_echo_n "checking for $ac_word... " >&6; }
22649 if ${ac_cv_path_TIME+:} false; then :
22650   $as_echo_n "(cached) " >&6
22651 else
22652   case $TIME in
22653   [\\/]* | ?:[\\/]*)
22654   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22655   ;;
22656   *)
22657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22658 for as_dir in $PATH
22659 do
22660   IFS=$as_save_IFS
22661   test -z "$as_dir" && as_dir=.
22662     for ac_exec_ext in '' $ac_executable_extensions; do
22663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22664     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22666     break 2
22667   fi
22668 done
22669   done
22670 IFS=$as_save_IFS
22671 
22672   ;;
22673 esac
22674 fi
22675 TIME=$ac_cv_path_TIME
22676 if test -n "$TIME"; then
22677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22678 $as_echo "$TIME" >&6; }
22679 else
22680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22681 $as_echo "no" >&6; }
22682 fi
22683 
22684 
22685   test -n "$TIME" && break
22686 done
22687 
22688   else
22689     # The variable is set, but is it from the command line or the environment?
22690 
22691     # Try to remove the string !TIME! from our list.
22692     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22693     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22694       # If it failed, the variable was not from the command line. Ignore it,
22695       # but warn the user (except for BASH, which is always set by the calling BASH).
22696       if test "xTIME" != xBASH; then
22697         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22698 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22699       fi
22700       # Try to locate tool using the code snippet
22701       for ac_prog in time
22702 do
22703   # Extract the first word of "$ac_prog", so it can be a program name with args.
22704 set dummy $ac_prog; ac_word=$2
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22706 $as_echo_n "checking for $ac_word... " >&6; }
22707 if ${ac_cv_path_TIME+:} false; then :
22708   $as_echo_n "(cached) " >&6
22709 else
22710   case $TIME in
22711   [\\/]* | ?:[\\/]*)
22712   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22713   ;;
22714   *)
22715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22716 for as_dir in $PATH
22717 do
22718   IFS=$as_save_IFS
22719   test -z "$as_dir" && as_dir=.
22720     for ac_exec_ext in '' $ac_executable_extensions; do
22721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22722     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22724     break 2
22725   fi
22726 done
22727   done
22728 IFS=$as_save_IFS
22729 
22730   ;;
22731 esac
22732 fi
22733 TIME=$ac_cv_path_TIME
22734 if test -n "$TIME"; then
22735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22736 $as_echo "$TIME" >&6; }
22737 else
22738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22739 $as_echo "no" >&6; }
22740 fi
22741 
22742 
22743   test -n "$TIME" && break
22744 done
22745 
22746     else
22747       # If it succeeded, then it was overridden by the user. We will use it
22748       # for the tool.
22749 
22750       # First remove it from the list of overridden variables, so we can test
22751       # for unknown variables in the end.
22752       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22753 
22754       # Check if we try to supply an empty value
22755       if test "x$TIME" = x; then
22756         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
22757 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
22758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22759 $as_echo_n "checking for TIME... " >&6; }
22760         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22761 $as_echo "disabled" >&6; }
22762       else
22763         # Check if the provided tool contains a complete path.
22764         tool_specified="$TIME"
22765         tool_basename="${tool_specified##*/}"
22766         if test "x$tool_basename" = "x$tool_specified"; then
22767           # A command without a complete path is provided, search $PATH.
22768           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
22769 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
22770           # Extract the first word of "$tool_basename", so it can be a program name with args.
22771 set dummy $tool_basename; ac_word=$2
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22773 $as_echo_n "checking for $ac_word... " >&6; }
22774 if ${ac_cv_path_TIME+:} false; then :
22775   $as_echo_n "(cached) " >&6
22776 else
22777   case $TIME in
22778   [\\/]* | ?:[\\/]*)
22779   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22780   ;;
22781   *)
22782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22783 for as_dir in $PATH
22784 do
22785   IFS=$as_save_IFS
22786   test -z "$as_dir" && as_dir=.
22787     for ac_exec_ext in '' $ac_executable_extensions; do
22788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22789     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22791     break 2
22792   fi
22793 done
22794   done
22795 IFS=$as_save_IFS
22796 
22797   ;;
22798 esac
22799 fi
22800 TIME=$ac_cv_path_TIME
22801 if test -n "$TIME"; then
22802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22803 $as_echo "$TIME" >&6; }
22804 else
22805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22806 $as_echo "no" >&6; }
22807 fi
22808 
22809 
22810           if test "x$TIME" = x; then
22811             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22812           fi
22813         else
22814           # Otherwise we believe it is a complete path. Use it as it is.
22815           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
22816 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
22817           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22818 $as_echo_n "checking for TIME... " >&6; }
22819           if test ! -x "$tool_specified"; then
22820             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22821 $as_echo "not found" >&6; }
22822             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
22823           fi
22824           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22825 $as_echo "$tool_specified" >&6; }
22826         fi
22827       fi
22828     fi
22829 
22830   fi
22831 
22832 
22833   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
22834   # be in the user path.
22835 
22836 
22837   # Publish this variable in the help.
22838 
22839 
22840   if [ -z "${DTRACE+x}" ]; then
22841     # The variable is not set by user, try to locate tool using the code snippet
22842     for ac_prog in dtrace
22843 do
22844   # Extract the first word of "$ac_prog", so it can be a program name with args.
22845 set dummy $ac_prog; ac_word=$2
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22847 $as_echo_n "checking for $ac_word... " >&6; }
22848 if ${ac_cv_path_DTRACE+:} false; then :
22849   $as_echo_n "(cached) " >&6
22850 else
22851   case $DTRACE in
22852   [\\/]* | ?:[\\/]*)
22853   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22854   ;;
22855   *)
22856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22857 as_dummy="$PATH:/usr/sbin"
22858 for as_dir in $as_dummy
22859 do
22860   IFS=$as_save_IFS
22861   test -z "$as_dir" && as_dir=.
22862     for ac_exec_ext in '' $ac_executable_extensions; do
22863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22864     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22866     break 2
22867   fi
22868 done
22869   done
22870 IFS=$as_save_IFS
22871 
22872   ;;
22873 esac
22874 fi
22875 DTRACE=$ac_cv_path_DTRACE
22876 if test -n "$DTRACE"; then
22877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22878 $as_echo "$DTRACE" >&6; }
22879 else
22880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22881 $as_echo "no" >&6; }
22882 fi
22883 
22884 
22885   test -n "$DTRACE" && break
22886 done
22887 
22888   else
22889     # The variable is set, but is it from the command line or the environment?
22890 
22891     # Try to remove the string !DTRACE! from our list.
22892     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
22893     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22894       # If it failed, the variable was not from the command line. Ignore it,
22895       # but warn the user (except for BASH, which is always set by the calling BASH).
22896       if test "xDTRACE" != xBASH; then
22897         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
22898 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
22899       fi
22900       # Try to locate tool using the code snippet
22901       for ac_prog in dtrace
22902 do
22903   # Extract the first word of "$ac_prog", so it can be a program name with args.
22904 set dummy $ac_prog; ac_word=$2
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22906 $as_echo_n "checking for $ac_word... " >&6; }
22907 if ${ac_cv_path_DTRACE+:} false; then :
22908   $as_echo_n "(cached) " >&6
22909 else
22910   case $DTRACE in
22911   [\\/]* | ?:[\\/]*)
22912   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22913   ;;
22914   *)
22915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22916 as_dummy="$PATH:/usr/sbin"
22917 for as_dir in $as_dummy
22918 do
22919   IFS=$as_save_IFS
22920   test -z "$as_dir" && as_dir=.
22921     for ac_exec_ext in '' $ac_executable_extensions; do
22922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22923     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22925     break 2
22926   fi
22927 done
22928   done
22929 IFS=$as_save_IFS
22930 
22931   ;;
22932 esac
22933 fi
22934 DTRACE=$ac_cv_path_DTRACE
22935 if test -n "$DTRACE"; then
22936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22937 $as_echo "$DTRACE" >&6; }
22938 else
22939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22940 $as_echo "no" >&6; }
22941 fi
22942 
22943 
22944   test -n "$DTRACE" && break
22945 done
22946 
22947     else
22948       # If it succeeded, then it was overridden by the user. We will use it
22949       # for the tool.
22950 
22951       # First remove it from the list of overridden variables, so we can test
22952       # for unknown variables in the end.
22953       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22954 
22955       # Check if we try to supply an empty value
22956       if test "x$DTRACE" = x; then
22957         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
22958 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
22959         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
22960 $as_echo_n "checking for DTRACE... " >&6; }
22961         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22962 $as_echo "disabled" >&6; }
22963       else
22964         # Check if the provided tool contains a complete path.
22965         tool_specified="$DTRACE"
22966         tool_basename="${tool_specified##*/}"
22967         if test "x$tool_basename" = "x$tool_specified"; then
22968           # A command without a complete path is provided, search $PATH.
22969           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
22970 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
22971           # Extract the first word of "$tool_basename", so it can be a program name with args.
22972 set dummy $tool_basename; ac_word=$2
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22974 $as_echo_n "checking for $ac_word... " >&6; }
22975 if ${ac_cv_path_DTRACE+:} false; then :
22976   $as_echo_n "(cached) " >&6
22977 else
22978   case $DTRACE in
22979   [\\/]* | ?:[\\/]*)
22980   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22981   ;;
22982   *)
22983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22984 for as_dir in $PATH
22985 do
22986   IFS=$as_save_IFS
22987   test -z "$as_dir" && as_dir=.
22988     for ac_exec_ext in '' $ac_executable_extensions; do
22989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22990     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22992     break 2
22993   fi
22994 done
22995   done
22996 IFS=$as_save_IFS
22997 
22998   ;;
22999 esac
23000 fi
23001 DTRACE=$ac_cv_path_DTRACE
23002 if test -n "$DTRACE"; then
23003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23004 $as_echo "$DTRACE" >&6; }
23005 else
23006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23007 $as_echo "no" >&6; }
23008 fi
23009 
23010 
23011           if test "x$DTRACE" = x; then
23012             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23013           fi
23014         else
23015           # Otherwise we believe it is a complete path. Use it as it is.
23016           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
23017 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
23018           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23019 $as_echo_n "checking for DTRACE... " >&6; }
23020           if test ! -x "$tool_specified"; then
23021             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23022 $as_echo "not found" >&6; }
23023             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
23024           fi
23025           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23026 $as_echo "$tool_specified" >&6; }
23027         fi
23028       fi
23029     fi
23030 
23031   fi
23032 
23033 
23034 
23035 
23036   # Publish this variable in the help.
23037 
23038 
23039   if [ -z "${PATCH+x}" ]; then
23040     # The variable is not set by user, try to locate tool using the code snippet
23041     for ac_prog in gpatch patch
23042 do
23043   # Extract the first word of "$ac_prog", so it can be a program name with args.
23044 set dummy $ac_prog; ac_word=$2
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23046 $as_echo_n "checking for $ac_word... " >&6; }
23047 if ${ac_cv_path_PATCH+:} false; then :
23048   $as_echo_n "(cached) " >&6
23049 else
23050   case $PATCH in
23051   [\\/]* | ?:[\\/]*)
23052   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23053   ;;
23054   *)
23055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23056 for as_dir in $PATH
23057 do
23058   IFS=$as_save_IFS
23059   test -z "$as_dir" && as_dir=.
23060     for ac_exec_ext in '' $ac_executable_extensions; do
23061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23062     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23064     break 2
23065   fi
23066 done
23067   done
23068 IFS=$as_save_IFS
23069 
23070   ;;
23071 esac
23072 fi
23073 PATCH=$ac_cv_path_PATCH
23074 if test -n "$PATCH"; then
23075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23076 $as_echo "$PATCH" >&6; }
23077 else
23078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23079 $as_echo "no" >&6; }
23080 fi
23081 
23082 
23083   test -n "$PATCH" && break
23084 done
23085 
23086   else
23087     # The variable is set, but is it from the command line or the environment?
23088 
23089     # Try to remove the string !PATCH! from our list.
23090     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23091     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23092       # If it failed, the variable was not from the command line. Ignore it,
23093       # but warn the user (except for BASH, which is always set by the calling BASH).
23094       if test "xPATCH" != xBASH; then
23095         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23096 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23097       fi
23098       # Try to locate tool using the code snippet
23099       for ac_prog in gpatch patch
23100 do
23101   # Extract the first word of "$ac_prog", so it can be a program name with args.
23102 set dummy $ac_prog; ac_word=$2
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23104 $as_echo_n "checking for $ac_word... " >&6; }
23105 if ${ac_cv_path_PATCH+:} false; then :
23106   $as_echo_n "(cached) " >&6
23107 else
23108   case $PATCH in
23109   [\\/]* | ?:[\\/]*)
23110   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23111   ;;
23112   *)
23113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23114 for as_dir in $PATH
23115 do
23116   IFS=$as_save_IFS
23117   test -z "$as_dir" && as_dir=.
23118     for ac_exec_ext in '' $ac_executable_extensions; do
23119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23120     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23122     break 2
23123   fi
23124 done
23125   done
23126 IFS=$as_save_IFS
23127 
23128   ;;
23129 esac
23130 fi
23131 PATCH=$ac_cv_path_PATCH
23132 if test -n "$PATCH"; then
23133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23134 $as_echo "$PATCH" >&6; }
23135 else
23136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23137 $as_echo "no" >&6; }
23138 fi
23139 
23140 
23141   test -n "$PATCH" && break
23142 done
23143 
23144     else
23145       # If it succeeded, then it was overridden by the user. We will use it
23146       # for the tool.
23147 
23148       # First remove it from the list of overridden variables, so we can test
23149       # for unknown variables in the end.
23150       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23151 
23152       # Check if we try to supply an empty value
23153       if test "x$PATCH" = x; then
23154         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23155 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23157 $as_echo_n "checking for PATCH... " >&6; }
23158         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23159 $as_echo "disabled" >&6; }
23160       else
23161         # Check if the provided tool contains a complete path.
23162         tool_specified="$PATCH"
23163         tool_basename="${tool_specified##*/}"
23164         if test "x$tool_basename" = "x$tool_specified"; then
23165           # A command without a complete path is provided, search $PATH.
23166           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23167 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23168           # Extract the first word of "$tool_basename", so it can be a program name with args.
23169 set dummy $tool_basename; ac_word=$2
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23171 $as_echo_n "checking for $ac_word... " >&6; }
23172 if ${ac_cv_path_PATCH+:} false; then :
23173   $as_echo_n "(cached) " >&6
23174 else
23175   case $PATCH in
23176   [\\/]* | ?:[\\/]*)
23177   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23178   ;;
23179   *)
23180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23181 for as_dir in $PATH
23182 do
23183   IFS=$as_save_IFS
23184   test -z "$as_dir" && as_dir=.
23185     for ac_exec_ext in '' $ac_executable_extensions; do
23186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23187     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23189     break 2
23190   fi
23191 done
23192   done
23193 IFS=$as_save_IFS
23194 
23195   ;;
23196 esac
23197 fi
23198 PATCH=$ac_cv_path_PATCH
23199 if test -n "$PATCH"; then
23200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23201 $as_echo "$PATCH" >&6; }
23202 else
23203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23204 $as_echo "no" >&6; }
23205 fi
23206 
23207 
23208           if test "x$PATCH" = x; then
23209             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23210           fi
23211         else
23212           # Otherwise we believe it is a complete path. Use it as it is.
23213           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23214 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23215           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23216 $as_echo_n "checking for PATCH... " >&6; }
23217           if test ! -x "$tool_specified"; then
23218             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23219 $as_echo "not found" >&6; }
23220             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23221           fi
23222           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23223 $as_echo "$tool_specified" >&6; }
23224         fi
23225       fi
23226     fi
23227 
23228   fi
23229 
23230 
23231   # Check if it's GNU time
23232   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23233   if test "x$IS_GNU_TIME" != x; then
23234     IS_GNU_TIME=yes
23235   else
23236     IS_GNU_TIME=no
23237   fi
23238 
23239 
23240   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23241 
23242 
23243 
23244   # Publish this variable in the help.
23245 
23246 
23247   if [ -z "${DSYMUTIL+x}" ]; then
23248     # The variable is not set by user, try to locate tool using the code snippet
23249     for ac_prog in dsymutil
23250 do
23251   # Extract the first word of "$ac_prog", so it can be a program name with args.
23252 set dummy $ac_prog; ac_word=$2
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23254 $as_echo_n "checking for $ac_word... " >&6; }
23255 if ${ac_cv_path_DSYMUTIL+:} false; then :
23256   $as_echo_n "(cached) " >&6
23257 else
23258   case $DSYMUTIL in
23259   [\\/]* | ?:[\\/]*)
23260   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23261   ;;
23262   *)
23263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23264 for as_dir in $PATH
23265 do
23266   IFS=$as_save_IFS
23267   test -z "$as_dir" && as_dir=.
23268     for ac_exec_ext in '' $ac_executable_extensions; do
23269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23270     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23272     break 2
23273   fi
23274 done
23275   done
23276 IFS=$as_save_IFS
23277 
23278   ;;
23279 esac
23280 fi
23281 DSYMUTIL=$ac_cv_path_DSYMUTIL
23282 if test -n "$DSYMUTIL"; then
23283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23284 $as_echo "$DSYMUTIL" >&6; }
23285 else
23286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23287 $as_echo "no" >&6; }
23288 fi
23289 
23290 
23291   test -n "$DSYMUTIL" && break
23292 done
23293 
23294   else
23295     # The variable is set, but is it from the command line or the environment?
23296 
23297     # Try to remove the string !DSYMUTIL! from our list.
23298     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23299     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23300       # If it failed, the variable was not from the command line. Ignore it,
23301       # but warn the user (except for BASH, which is always set by the calling BASH).
23302       if test "xDSYMUTIL" != xBASH; then
23303         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23304 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23305       fi
23306       # Try to locate tool using the code snippet
23307       for ac_prog in dsymutil
23308 do
23309   # Extract the first word of "$ac_prog", so it can be a program name with args.
23310 set dummy $ac_prog; ac_word=$2
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23312 $as_echo_n "checking for $ac_word... " >&6; }
23313 if ${ac_cv_path_DSYMUTIL+:} false; then :
23314   $as_echo_n "(cached) " >&6
23315 else
23316   case $DSYMUTIL in
23317   [\\/]* | ?:[\\/]*)
23318   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23319   ;;
23320   *)
23321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23322 for as_dir in $PATH
23323 do
23324   IFS=$as_save_IFS
23325   test -z "$as_dir" && as_dir=.
23326     for ac_exec_ext in '' $ac_executable_extensions; do
23327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23328     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23330     break 2
23331   fi
23332 done
23333   done
23334 IFS=$as_save_IFS
23335 
23336   ;;
23337 esac
23338 fi
23339 DSYMUTIL=$ac_cv_path_DSYMUTIL
23340 if test -n "$DSYMUTIL"; then
23341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23342 $as_echo "$DSYMUTIL" >&6; }
23343 else
23344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23345 $as_echo "no" >&6; }
23346 fi
23347 
23348 
23349   test -n "$DSYMUTIL" && break
23350 done
23351 
23352     else
23353       # If it succeeded, then it was overridden by the user. We will use it
23354       # for the tool.
23355 
23356       # First remove it from the list of overridden variables, so we can test
23357       # for unknown variables in the end.
23358       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23359 
23360       # Check if we try to supply an empty value
23361       if test "x$DSYMUTIL" = x; then
23362         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23363 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23364         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23365 $as_echo_n "checking for DSYMUTIL... " >&6; }
23366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23367 $as_echo "disabled" >&6; }
23368       else
23369         # Check if the provided tool contains a complete path.
23370         tool_specified="$DSYMUTIL"
23371         tool_basename="${tool_specified##*/}"
23372         if test "x$tool_basename" = "x$tool_specified"; then
23373           # A command without a complete path is provided, search $PATH.
23374           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23375 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23376           # Extract the first word of "$tool_basename", so it can be a program name with args.
23377 set dummy $tool_basename; ac_word=$2
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23379 $as_echo_n "checking for $ac_word... " >&6; }
23380 if ${ac_cv_path_DSYMUTIL+:} false; then :
23381   $as_echo_n "(cached) " >&6
23382 else
23383   case $DSYMUTIL in
23384   [\\/]* | ?:[\\/]*)
23385   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23386   ;;
23387   *)
23388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23389 for as_dir in $PATH
23390 do
23391   IFS=$as_save_IFS
23392   test -z "$as_dir" && as_dir=.
23393     for ac_exec_ext in '' $ac_executable_extensions; do
23394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23395     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23397     break 2
23398   fi
23399 done
23400   done
23401 IFS=$as_save_IFS
23402 
23403   ;;
23404 esac
23405 fi
23406 DSYMUTIL=$ac_cv_path_DSYMUTIL
23407 if test -n "$DSYMUTIL"; then
23408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23409 $as_echo "$DSYMUTIL" >&6; }
23410 else
23411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23412 $as_echo "no" >&6; }
23413 fi
23414 
23415 
23416           if test "x$DSYMUTIL" = x; then
23417             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23418           fi
23419         else
23420           # Otherwise we believe it is a complete path. Use it as it is.
23421           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23422 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23423           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23424 $as_echo_n "checking for DSYMUTIL... " >&6; }
23425           if test ! -x "$tool_specified"; then
23426             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23427 $as_echo "not found" >&6; }
23428             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23429           fi
23430           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23431 $as_echo "$tool_specified" >&6; }
23432         fi
23433       fi
23434     fi
23435 
23436   fi
23437 
23438 
23439 
23440   if test "x$DSYMUTIL" = x; then
23441     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23442   fi
23443 
23444 
23445 
23446 
23447 
23448   # Publish this variable in the help.
23449 
23450 
23451   if [ -z "${XATTR+x}" ]; then
23452     # The variable is not set by user, try to locate tool using the code snippet
23453     for ac_prog in xattr
23454 do
23455   # Extract the first word of "$ac_prog", so it can be a program name with args.
23456 set dummy $ac_prog; ac_word=$2
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23458 $as_echo_n "checking for $ac_word... " >&6; }
23459 if ${ac_cv_path_XATTR+:} false; then :
23460   $as_echo_n "(cached) " >&6
23461 else
23462   case $XATTR in
23463   [\\/]* | ?:[\\/]*)
23464   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23465   ;;
23466   *)
23467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23468 for as_dir in $PATH
23469 do
23470   IFS=$as_save_IFS
23471   test -z "$as_dir" && as_dir=.
23472     for ac_exec_ext in '' $ac_executable_extensions; do
23473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23474     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23476     break 2
23477   fi
23478 done
23479   done
23480 IFS=$as_save_IFS
23481 
23482   ;;
23483 esac
23484 fi
23485 XATTR=$ac_cv_path_XATTR
23486 if test -n "$XATTR"; then
23487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23488 $as_echo "$XATTR" >&6; }
23489 else
23490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23491 $as_echo "no" >&6; }
23492 fi
23493 
23494 
23495   test -n "$XATTR" && break
23496 done
23497 
23498   else
23499     # The variable is set, but is it from the command line or the environment?
23500 
23501     # Try to remove the string !XATTR! from our list.
23502     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
23503     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23504       # If it failed, the variable was not from the command line. Ignore it,
23505       # but warn the user (except for BASH, which is always set by the calling BASH).
23506       if test "xXATTR" != xBASH; then
23507         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
23508 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
23509       fi
23510       # Try to locate tool using the code snippet
23511       for ac_prog in xattr
23512 do
23513   # Extract the first word of "$ac_prog", so it can be a program name with args.
23514 set dummy $ac_prog; ac_word=$2
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23516 $as_echo_n "checking for $ac_word... " >&6; }
23517 if ${ac_cv_path_XATTR+:} false; then :
23518   $as_echo_n "(cached) " >&6
23519 else
23520   case $XATTR in
23521   [\\/]* | ?:[\\/]*)
23522   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23523   ;;
23524   *)
23525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23526 for as_dir in $PATH
23527 do
23528   IFS=$as_save_IFS
23529   test -z "$as_dir" && as_dir=.
23530     for ac_exec_ext in '' $ac_executable_extensions; do
23531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23532     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23534     break 2
23535   fi
23536 done
23537   done
23538 IFS=$as_save_IFS
23539 
23540   ;;
23541 esac
23542 fi
23543 XATTR=$ac_cv_path_XATTR
23544 if test -n "$XATTR"; then
23545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23546 $as_echo "$XATTR" >&6; }
23547 else
23548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23549 $as_echo "no" >&6; }
23550 fi
23551 
23552 
23553   test -n "$XATTR" && break
23554 done
23555 
23556     else
23557       # If it succeeded, then it was overridden by the user. We will use it
23558       # for the tool.
23559 
23560       # First remove it from the list of overridden variables, so we can test
23561       # for unknown variables in the end.
23562       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23563 
23564       # Check if we try to supply an empty value
23565       if test "x$XATTR" = x; then
23566         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
23567 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
23568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23569 $as_echo_n "checking for XATTR... " >&6; }
23570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23571 $as_echo "disabled" >&6; }
23572       else
23573         # Check if the provided tool contains a complete path.
23574         tool_specified="$XATTR"
23575         tool_basename="${tool_specified##*/}"
23576         if test "x$tool_basename" = "x$tool_specified"; then
23577           # A command without a complete path is provided, search $PATH.
23578           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
23579 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
23580           # Extract the first word of "$tool_basename", so it can be a program name with args.
23581 set dummy $tool_basename; ac_word=$2
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23583 $as_echo_n "checking for $ac_word... " >&6; }
23584 if ${ac_cv_path_XATTR+:} false; then :
23585   $as_echo_n "(cached) " >&6
23586 else
23587   case $XATTR in
23588   [\\/]* | ?:[\\/]*)
23589   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23590   ;;
23591   *)
23592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23593 for as_dir in $PATH
23594 do
23595   IFS=$as_save_IFS
23596   test -z "$as_dir" && as_dir=.
23597     for ac_exec_ext in '' $ac_executable_extensions; do
23598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23599     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23601     break 2
23602   fi
23603 done
23604   done
23605 IFS=$as_save_IFS
23606 
23607   ;;
23608 esac
23609 fi
23610 XATTR=$ac_cv_path_XATTR
23611 if test -n "$XATTR"; then
23612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23613 $as_echo "$XATTR" >&6; }
23614 else
23615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23616 $as_echo "no" >&6; }
23617 fi
23618 
23619 
23620           if test "x$XATTR" = x; then
23621             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23622           fi
23623         else
23624           # Otherwise we believe it is a complete path. Use it as it is.
23625           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
23626 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
23627           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23628 $as_echo_n "checking for XATTR... " >&6; }
23629           if test ! -x "$tool_specified"; then
23630             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23631 $as_echo "not found" >&6; }
23632             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
23633           fi
23634           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23635 $as_echo "$tool_specified" >&6; }
23636         fi
23637       fi
23638     fi
23639 
23640   fi
23641 
23642 
23643 
23644   if test "x$XATTR" = x; then
23645     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
23646   fi
23647 
23648 
23649 
23650 
23651   # Publish this variable in the help.
23652 
23653 
23654   if [ -z "${CODESIGN+x}" ]; then
23655     # The variable is not set by user, try to locate tool using the code snippet
23656     for ac_prog in codesign
23657 do
23658   # Extract the first word of "$ac_prog", so it can be a program name with args.
23659 set dummy $ac_prog; ac_word=$2
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23661 $as_echo_n "checking for $ac_word... " >&6; }
23662 if ${ac_cv_path_CODESIGN+:} false; then :
23663   $as_echo_n "(cached) " >&6
23664 else
23665   case $CODESIGN in
23666   [\\/]* | ?:[\\/]*)
23667   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23668   ;;
23669   *)
23670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23671 for as_dir in $PATH
23672 do
23673   IFS=$as_save_IFS
23674   test -z "$as_dir" && as_dir=.
23675     for ac_exec_ext in '' $ac_executable_extensions; do
23676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23677     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23679     break 2
23680   fi
23681 done
23682   done
23683 IFS=$as_save_IFS
23684 
23685   ;;
23686 esac
23687 fi
23688 CODESIGN=$ac_cv_path_CODESIGN
23689 if test -n "$CODESIGN"; then
23690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23691 $as_echo "$CODESIGN" >&6; }
23692 else
23693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23694 $as_echo "no" >&6; }
23695 fi
23696 
23697 
23698   test -n "$CODESIGN" && break
23699 done
23700 
23701   else
23702     # The variable is set, but is it from the command line or the environment?
23703 
23704     # Try to remove the string !CODESIGN! from our list.
23705     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
23706     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23707       # If it failed, the variable was not from the command line. Ignore it,
23708       # but warn the user (except for BASH, which is always set by the calling BASH).
23709       if test "xCODESIGN" != xBASH; then
23710         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
23711 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
23712       fi
23713       # Try to locate tool using the code snippet
23714       for ac_prog in codesign
23715 do
23716   # Extract the first word of "$ac_prog", so it can be a program name with args.
23717 set dummy $ac_prog; ac_word=$2
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23719 $as_echo_n "checking for $ac_word... " >&6; }
23720 if ${ac_cv_path_CODESIGN+:} false; then :
23721   $as_echo_n "(cached) " >&6
23722 else
23723   case $CODESIGN in
23724   [\\/]* | ?:[\\/]*)
23725   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23726   ;;
23727   *)
23728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23729 for as_dir in $PATH
23730 do
23731   IFS=$as_save_IFS
23732   test -z "$as_dir" && as_dir=.
23733     for ac_exec_ext in '' $ac_executable_extensions; do
23734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23735     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23737     break 2
23738   fi
23739 done
23740   done
23741 IFS=$as_save_IFS
23742 
23743   ;;
23744 esac
23745 fi
23746 CODESIGN=$ac_cv_path_CODESIGN
23747 if test -n "$CODESIGN"; then
23748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23749 $as_echo "$CODESIGN" >&6; }
23750 else
23751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23752 $as_echo "no" >&6; }
23753 fi
23754 
23755 
23756   test -n "$CODESIGN" && break
23757 done
23758 
23759     else
23760       # If it succeeded, then it was overridden by the user. We will use it
23761       # for the tool.
23762 
23763       # First remove it from the list of overridden variables, so we can test
23764       # for unknown variables in the end.
23765       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23766 
23767       # Check if we try to supply an empty value
23768       if test "x$CODESIGN" = x; then
23769         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
23770 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
23771         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23772 $as_echo_n "checking for CODESIGN... " >&6; }
23773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23774 $as_echo "disabled" >&6; }
23775       else
23776         # Check if the provided tool contains a complete path.
23777         tool_specified="$CODESIGN"
23778         tool_basename="${tool_specified##*/}"
23779         if test "x$tool_basename" = "x$tool_specified"; then
23780           # A command without a complete path is provided, search $PATH.
23781           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
23782 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
23783           # Extract the first word of "$tool_basename", so it can be a program name with args.
23784 set dummy $tool_basename; ac_word=$2
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23786 $as_echo_n "checking for $ac_word... " >&6; }
23787 if ${ac_cv_path_CODESIGN+:} false; then :
23788   $as_echo_n "(cached) " >&6
23789 else
23790   case $CODESIGN in
23791   [\\/]* | ?:[\\/]*)
23792   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23793   ;;
23794   *)
23795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23796 for as_dir in $PATH
23797 do
23798   IFS=$as_save_IFS
23799   test -z "$as_dir" && as_dir=.
23800     for ac_exec_ext in '' $ac_executable_extensions; do
23801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23802     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23804     break 2
23805   fi
23806 done
23807   done
23808 IFS=$as_save_IFS
23809 
23810   ;;
23811 esac
23812 fi
23813 CODESIGN=$ac_cv_path_CODESIGN
23814 if test -n "$CODESIGN"; then
23815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23816 $as_echo "$CODESIGN" >&6; }
23817 else
23818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23819 $as_echo "no" >&6; }
23820 fi
23821 
23822 
23823           if test "x$CODESIGN" = x; then
23824             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23825           fi
23826         else
23827           # Otherwise we believe it is a complete path. Use it as it is.
23828           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
23829 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
23830           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23831 $as_echo_n "checking for CODESIGN... " >&6; }
23832           if test ! -x "$tool_specified"; then
23833             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23834 $as_echo "not found" >&6; }
23835             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
23836           fi
23837           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23838 $as_echo "$tool_specified" >&6; }
23839         fi
23840       fi
23841     fi
23842 
23843   fi
23844 
23845 
23846     if test "x$CODESIGN" != "x"; then
23847       # Verify that the openjdk_codesign certificate is present
23848       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
23849 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
23850       $RM codesign-testfile
23851       $TOUCH codesign-testfile
23852       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
23853       $RM codesign-testfile
23854       if test "x$CODESIGN" = x; then
23855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23856 $as_echo "no" >&6; }
23857       else
23858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23859 $as_echo "yes" >&6; }
23860       fi
23861     fi
23862 
23863 
23864 
23865   # Publish this variable in the help.
23866 
23867 
23868   if [ -z "${SETFILE+x}" ]; then
23869     # The variable is not set by user, try to locate tool using the code snippet
23870     for ac_prog in SetFile
23871 do
23872   # Extract the first word of "$ac_prog", so it can be a program name with args.
23873 set dummy $ac_prog; ac_word=$2
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23875 $as_echo_n "checking for $ac_word... " >&6; }
23876 if ${ac_cv_path_SETFILE+:} false; then :
23877   $as_echo_n "(cached) " >&6
23878 else
23879   case $SETFILE in
23880   [\\/]* | ?:[\\/]*)
23881   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23882   ;;
23883   *)
23884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23885 for as_dir in $PATH
23886 do
23887   IFS=$as_save_IFS
23888   test -z "$as_dir" && as_dir=.
23889     for ac_exec_ext in '' $ac_executable_extensions; do
23890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23891     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23893     break 2
23894   fi
23895 done
23896   done
23897 IFS=$as_save_IFS
23898 
23899   ;;
23900 esac
23901 fi
23902 SETFILE=$ac_cv_path_SETFILE
23903 if test -n "$SETFILE"; then
23904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23905 $as_echo "$SETFILE" >&6; }
23906 else
23907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23908 $as_echo "no" >&6; }
23909 fi
23910 
23911 
23912   test -n "$SETFILE" && break
23913 done
23914 
23915   else
23916     # The variable is set, but is it from the command line or the environment?
23917 
23918     # Try to remove the string !SETFILE! from our list.
23919     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
23920     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23921       # If it failed, the variable was not from the command line. Ignore it,
23922       # but warn the user (except for BASH, which is always set by the calling BASH).
23923       if test "xSETFILE" != xBASH; then
23924         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
23925 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
23926       fi
23927       # Try to locate tool using the code snippet
23928       for ac_prog in SetFile
23929 do
23930   # Extract the first word of "$ac_prog", so it can be a program name with args.
23931 set dummy $ac_prog; ac_word=$2
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23933 $as_echo_n "checking for $ac_word... " >&6; }
23934 if ${ac_cv_path_SETFILE+:} false; then :
23935   $as_echo_n "(cached) " >&6
23936 else
23937   case $SETFILE in
23938   [\\/]* | ?:[\\/]*)
23939   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23940   ;;
23941   *)
23942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23943 for as_dir in $PATH
23944 do
23945   IFS=$as_save_IFS
23946   test -z "$as_dir" && as_dir=.
23947     for ac_exec_ext in '' $ac_executable_extensions; do
23948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23949     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23951     break 2
23952   fi
23953 done
23954   done
23955 IFS=$as_save_IFS
23956 
23957   ;;
23958 esac
23959 fi
23960 SETFILE=$ac_cv_path_SETFILE
23961 if test -n "$SETFILE"; then
23962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23963 $as_echo "$SETFILE" >&6; }
23964 else
23965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23966 $as_echo "no" >&6; }
23967 fi
23968 
23969 
23970   test -n "$SETFILE" && break
23971 done
23972 
23973     else
23974       # If it succeeded, then it was overridden by the user. We will use it
23975       # for the tool.
23976 
23977       # First remove it from the list of overridden variables, so we can test
23978       # for unknown variables in the end.
23979       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23980 
23981       # Check if we try to supply an empty value
23982       if test "x$SETFILE" = x; then
23983         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
23984 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
23985         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
23986 $as_echo_n "checking for SETFILE... " >&6; }
23987         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23988 $as_echo "disabled" >&6; }
23989       else
23990         # Check if the provided tool contains a complete path.
23991         tool_specified="$SETFILE"
23992         tool_basename="${tool_specified##*/}"
23993         if test "x$tool_basename" = "x$tool_specified"; then
23994           # A command without a complete path is provided, search $PATH.
23995           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
23996 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
23997           # Extract the first word of "$tool_basename", so it can be a program name with args.
23998 set dummy $tool_basename; ac_word=$2
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24000 $as_echo_n "checking for $ac_word... " >&6; }
24001 if ${ac_cv_path_SETFILE+:} false; then :
24002   $as_echo_n "(cached) " >&6
24003 else
24004   case $SETFILE in
24005   [\\/]* | ?:[\\/]*)
24006   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24007   ;;
24008   *)
24009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24010 for as_dir in $PATH
24011 do
24012   IFS=$as_save_IFS
24013   test -z "$as_dir" && as_dir=.
24014     for ac_exec_ext in '' $ac_executable_extensions; do
24015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24016     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24018     break 2
24019   fi
24020 done
24021   done
24022 IFS=$as_save_IFS
24023 
24024   ;;
24025 esac
24026 fi
24027 SETFILE=$ac_cv_path_SETFILE
24028 if test -n "$SETFILE"; then
24029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24030 $as_echo "$SETFILE" >&6; }
24031 else
24032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24033 $as_echo "no" >&6; }
24034 fi
24035 
24036 
24037           if test "x$SETFILE" = x; then
24038             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24039           fi
24040         else
24041           # Otherwise we believe it is a complete path. Use it as it is.
24042           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24043 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24044           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24045 $as_echo_n "checking for SETFILE... " >&6; }
24046           if test ! -x "$tool_specified"; then
24047             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24048 $as_echo "not found" >&6; }
24049             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24050           fi
24051           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24052 $as_echo "$tool_specified" >&6; }
24053         fi
24054       fi
24055     fi
24056 
24057   fi
24058 
24059 
24060 
24061   if test "x$SETFILE" = x; then
24062     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24063   fi
24064 
24065 
24066   fi
24067 
24068 
24069   # Test if bash supports pipefail.
24070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24071 $as_echo_n "checking if bash supports pipefail... " >&6; }
24072   if ${BASH} -c 'set -o pipefail'; then
24073     BASH_ARGS="$BASH_ARGS -o pipefail"
24074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24075 $as_echo "yes" >&6; }
24076   else
24077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24078 $as_echo "no" >&6; }
24079   fi
24080 
24081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24082 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24083   if ${BASH} -e -c 'true'; then
24084     BASH_ARGS="$BASH_ARGS -e"
24085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24086 $as_echo "yes" >&6; }
24087   else
24088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24089 $as_echo "no" >&6; }
24090   fi
24091 
24092 
24093 
24094 
24095 # Check if pkg-config is available.
24096 
24097 
24098 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24099         if test -n "$ac_tool_prefix"; then
24100   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24101 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24103 $as_echo_n "checking for $ac_word... " >&6; }
24104 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24105   $as_echo_n "(cached) " >&6
24106 else
24107   case $PKG_CONFIG in
24108   [\\/]* | ?:[\\/]*)
24109   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24110   ;;
24111   *)
24112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24113 for as_dir in $PATH
24114 do
24115   IFS=$as_save_IFS
24116   test -z "$as_dir" && as_dir=.
24117     for ac_exec_ext in '' $ac_executable_extensions; do
24118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24119     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24121     break 2
24122   fi
24123 done
24124   done
24125 IFS=$as_save_IFS
24126 
24127   ;;
24128 esac
24129 fi
24130 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24131 if test -n "$PKG_CONFIG"; then
24132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24133 $as_echo "$PKG_CONFIG" >&6; }
24134 else
24135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24136 $as_echo "no" >&6; }
24137 fi
24138 
24139 
24140 fi
24141 if test -z "$ac_cv_path_PKG_CONFIG"; then
24142   ac_pt_PKG_CONFIG=$PKG_CONFIG
24143   # Extract the first word of "pkg-config", so it can be a program name with args.
24144 set dummy pkg-config; ac_word=$2
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24146 $as_echo_n "checking for $ac_word... " >&6; }
24147 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24148   $as_echo_n "(cached) " >&6
24149 else
24150   case $ac_pt_PKG_CONFIG in
24151   [\\/]* | ?:[\\/]*)
24152   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24153   ;;
24154   *)
24155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24156 for as_dir in $PATH
24157 do
24158   IFS=$as_save_IFS
24159   test -z "$as_dir" && as_dir=.
24160     for ac_exec_ext in '' $ac_executable_extensions; do
24161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24162     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24164     break 2
24165   fi
24166 done
24167   done
24168 IFS=$as_save_IFS
24169 
24170   ;;
24171 esac
24172 fi
24173 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24174 if test -n "$ac_pt_PKG_CONFIG"; then
24175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24176 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24177 else
24178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24179 $as_echo "no" >&6; }
24180 fi
24181 
24182   if test "x$ac_pt_PKG_CONFIG" = x; then
24183     PKG_CONFIG=""
24184   else
24185     case $cross_compiling:$ac_tool_warned in
24186 yes:)
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24189 ac_tool_warned=yes ;;
24190 esac
24191     PKG_CONFIG=$ac_pt_PKG_CONFIG
24192   fi
24193 else
24194   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24195 fi
24196 
24197 fi
24198 if test -n "$PKG_CONFIG"; then
24199         _pkg_min_version=0.9.0
24200         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24201 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24202         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24203                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24204 $as_echo "yes" >&6; }
24205         else
24206                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24207 $as_echo "no" >&6; }
24208                 PKG_CONFIG=""
24209         fi
24210 
24211 fi
24212 
24213 # After basic tools have been setup, we can check build os specific details.
24214 
24215   ###############################################################################
24216 
24217   # Note that this is the build platform OS version!
24218 
24219   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24220   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24221   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24222   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24223 
24224 
24225 
24226 
24227 
24228 # Misc basic settings
24229 
24230 
24231 # Check whether --with-default-make-target was given.
24232 if test "${with_default_make_target+set}" = set; then :
24233   withval=$with_default_make_target;
24234 fi
24235 
24236   if test "x$with_default_make_target" = "x" \
24237       || test "x$with_default_make_target" = "xyes"; then
24238     DEFAULT_MAKE_TARGET="exploded-image"
24239   elif test "x$with_default_make_target" = "xno"; then
24240     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24241   else
24242     DEFAULT_MAKE_TARGET="$with_default_make_target"
24243   fi
24244 
24245 
24246 
24247 
24248 ###############################################################################
24249 #
24250 # Determine OpenJDK variants, options and version numbers.
24251 #
24252 ###############################################################################
24253 
24254 # We need build & target for this.
24255 
24256   # Should we build a JDK without a graphical UI?
24257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24258 $as_echo_n "checking headless only... " >&6; }
24259   # Check whether --enable-headless-only was given.
24260 if test "${enable_headless_only+set}" = set; then :
24261   enableval=$enable_headless_only;
24262 fi
24263 
24264 
24265   if test "x$enable_headless_only" = "xyes"; then
24266     ENABLE_HEADLESS_ONLY="true"
24267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24268 $as_echo "yes" >&6; }
24269   elif test "x$enable_headless_only" = "xno"; then
24270     ENABLE_HEADLESS_ONLY="false"
24271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24272 $as_echo "no" >&6; }
24273   elif test "x$enable_headless_only" = "x"; then
24274     ENABLE_HEADLESS_ONLY="false"
24275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24276 $as_echo "no" >&6; }
24277   else
24278     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24279   fi
24280 
24281 
24282 
24283   # Choose cacerts source file
24284 
24285 # Check whether --with-cacerts-file was given.
24286 if test "${with_cacerts_file+set}" = set; then :
24287   withval=$with_cacerts_file;
24288 fi
24289 
24290   if test "x$with_cacerts_file" != x; then
24291     CACERTS_FILE=$with_cacerts_file
24292   fi
24293 
24294 
24295   # Enable or disable unlimited crypto
24296   # Check whether --enable-unlimited-crypto was given.
24297 if test "${enable_unlimited_crypto+set}" = set; then :
24298   enableval=$enable_unlimited_crypto;
24299 else
24300   enable_unlimited_crypto=no
24301 fi
24302 
24303   if test "x$enable_unlimited_crypto" = "xyes"; then
24304     UNLIMITED_CRYPTO=true
24305   else
24306     UNLIMITED_CRYPTO=false
24307   fi
24308 
24309 
24310   # Should we build the serviceability agent (SA)?
24311   INCLUDE_SA=true
24312   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
24313     INCLUDE_SA=false
24314   fi
24315   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24316     INCLUDE_SA=false
24317   fi
24318 
24319 
24320   # Compress jars
24321   COMPRESS_JARS=false
24322 
24323 
24324 
24325   # Setup default copyright year. Mostly overridden when building close to a new year.
24326 
24327 # Check whether --with-copyright-year was given.
24328 if test "${with_copyright_year+set}" = set; then :
24329   withval=$with_copyright_year;
24330 fi
24331 
24332   if test "x$with_copyright_year" = xyes; then
24333     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
24334   elif test "x$with_copyright_year" != x; then
24335     COPYRIGHT_YEAR="$with_copyright_year"
24336   else
24337     COPYRIGHT_YEAR=`$DATE +'%Y'`
24338   fi
24339 
24340 
24341 
24342   # Check whether --enable-keep-packaged-modules was given.
24343 if test "${enable_keep_packaged_modules+set}" = set; then :
24344   enableval=$enable_keep_packaged_modules;
24345 fi
24346 
24347 
24348   if test "x$enable_keep_packaged_modules" = "xyes"; then
24349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24350 $as_echo_n "checking if packaged modules are kept... " >&6; }
24351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24352 $as_echo "yes" >&6; }
24353     JLINK_KEEP_PACKAGED_MODULES=true
24354   elif test "x$enable_keep_packaged_modules" = "xno"; then
24355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24356 $as_echo_n "checking if packaged modules are kept... " >&6; }
24357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24358 $as_echo "no" >&6; }
24359     JLINK_KEEP_PACKAGED_MODULES=false
24360   elif test "x$enable_keep_packaged_modules" = "x"; then
24361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24362 $as_echo "yes (default)" >&6; }
24363     JLINK_KEEP_PACKAGED_MODULES=true
24364   else
24365     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
24366   fi
24367 
24368 
24369 
24370 
24371   # Warn user that old version arguments are deprecated.
24372 
24373 
24374 # Check whether --with-milestone was given.
24375 if test "${with_milestone+set}" = set; then :
24376   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
24377 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
24378 fi
24379 
24380 
24381 
24382 
24383 # Check whether --with-update-version was given.
24384 if test "${with_update_version+set}" = set; then :
24385   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
24386 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
24387 fi
24388 
24389 
24390 
24391 
24392 # Check whether --with-user-release-suffix was given.
24393 if test "${with_user_release_suffix+set}" = set; then :
24394   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
24395 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
24396 fi
24397 
24398 
24399 
24400 
24401 # Check whether --with-build-number was given.
24402 if test "${with_build_number+set}" = set; then :
24403   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
24404 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
24405 fi
24406 
24407 
24408 
24409   # Source the version numbers file
24410   . $AUTOCONF_DIR/version-numbers
24411 
24412   # Some non-version number information is set in that file
24413 
24414 
24415 
24416 
24417 
24418 
24419 
24420 
24421 
24422   # Override version from arguments
24423 
24424   # If --with-version-string is set, process it first. It is possible to
24425   # override parts with more specific flags, since these are processed later.
24426 
24427 # Check whether --with-version-string was given.
24428 if test "${with_version_string+set}" = set; then :
24429   withval=$with_version_string;
24430 fi
24431 
24432   if test "x$with_version_string" = xyes; then
24433     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
24434   elif test "x$with_version_string" != x; then
24435     # Additional [] needed to keep m4 from mangling shell constructs.
24436     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
24437       VERSION_MAJOR=${BASH_REMATCH[1]}
24438       VERSION_MINOR=${BASH_REMATCH[3]}
24439       VERSION_SECURITY=${BASH_REMATCH[5]}
24440       VERSION_PATCH=${BASH_REMATCH[7]}
24441       VERSION_PRE=${BASH_REMATCH[9]}
24442       version_plus_separator=${BASH_REMATCH[11]}
24443       VERSION_BUILD=${BASH_REMATCH[12]}
24444       VERSION_OPT=${BASH_REMATCH[14]}
24445       # Unspecified numerical fields are interpreted as 0.
24446       if test "x$VERSION_MINOR" = x; then
24447         VERSION_MINOR=0
24448       fi
24449       if test "x$VERSION_SECURITY" = x; then
24450         VERSION_SECURITY=0
24451       fi
24452       if test "x$VERSION_PATCH" = x; then
24453         VERSION_PATCH=0
24454       fi
24455       if test "x$version_plus_separator" != x \
24456           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
24457         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
24458       fi
24459       # Stop the version part process from setting default values.
24460       # We still allow them to explicitely override though.
24461       NO_DEFAULT_VERSION_PARTS=true
24462     else
24463       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
24464     fi
24465   fi
24466 
24467 
24468 # Check whether --with-version-pre was given.
24469 if test "${with_version_pre+set}" = set; then :
24470   withval=$with_version_pre; with_version_pre_present=true
24471 else
24472   with_version_pre_present=false
24473 fi
24474 
24475 
24476   if test "x$with_version_pre_present" = xtrue; then
24477     if test "x$with_version_pre" = xyes; then
24478       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
24479     elif test "x$with_version_pre" = xno; then
24480       # Interpret --without-* as empty string instead of the literal "no"
24481       VERSION_PRE=
24482     else
24483       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
24484        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
24485       if test "x$VERSION_PRE" != "x$with_version_pre"; then
24486         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
24487 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
24488       fi
24489     fi
24490   else
24491     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24492       # Default is to use "internal" as pre
24493       VERSION_PRE="internal"
24494     fi
24495   fi
24496 
24497 
24498 # Check whether --with-version-opt was given.
24499 if test "${with_version_opt+set}" = set; then :
24500   withval=$with_version_opt; with_version_opt_present=true
24501 else
24502   with_version_opt_present=false
24503 fi
24504 
24505 
24506   if test "x$with_version_opt_present" = xtrue; then
24507     if test "x$with_version_opt" = xyes; then
24508       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
24509     elif test "x$with_version_opt" = xno; then
24510       # Interpret --without-* as empty string instead of the literal "no"
24511       VERSION_OPT=
24512     else
24513       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
24514        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
24515       if test "x$VERSION_OPT" != "x$with_version_opt"; then
24516         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
24517 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
24518       fi
24519     fi
24520   else
24521     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24522       # Default is to calculate a string like this <timestamp>.<username>.<base dir name>
24523       timestamp=`$DATE '+%Y-%m-%d-%H%M%S'`
24524       # Outer [ ] to quote m4.
24525        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
24526       VERSION_OPT="$timestamp.$USERNAME.$basedirname"
24527     fi
24528   fi
24529 
24530 
24531 # Check whether --with-version-build was given.
24532 if test "${with_version_build+set}" = set; then :
24533   withval=$with_version_build; with_version_build_present=true
24534 else
24535   with_version_build_present=false
24536 fi
24537 
24538 
24539   if test "x$with_version_build_present" = xtrue; then
24540     if test "x$with_version_build" = xyes; then
24541       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
24542     elif test "x$with_version_build" = xno; then
24543       # Interpret --without-* as empty string instead of the literal "no"
24544       VERSION_BUILD=
24545     elif test "x$with_version_build" = x; then
24546       VERSION_BUILD=
24547     else
24548 
24549   # Additional [] needed to keep m4 from mangling shell constructs.
24550   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24551     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
24552   fi
24553   # Extract the version number without leading zeros.
24554   cleaned_value=${BASH_REMATCH[1]}
24555   if test "x$cleaned_value" = x; then
24556     # Special case for zero
24557     cleaned_value=${BASH_REMATCH[2]}
24558   fi
24559 
24560   if test $cleaned_value -gt 255; then
24561     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
24562   fi
24563   if test "x$cleaned_value" != "x$with_version_build"; then
24564     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
24565 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
24566   fi
24567   VERSION_BUILD=$cleaned_value
24568 
24569     fi
24570   else
24571     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24572       # Default is to not have a build number.
24573       VERSION_BUILD=""
24574       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
24575       VERSION_BUILD=0
24576     fi
24577   fi
24578 
24579 
24580 # Check whether --with-version-major was given.
24581 if test "${with_version_major+set}" = set; then :
24582   withval=$with_version_major; with_version_major_present=true
24583 else
24584   with_version_major_present=false
24585 fi
24586 
24587 
24588   if test "x$with_version_major_present" = xtrue; then
24589     if test "x$with_version_major" = xyes; then
24590       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
24591     else
24592 
24593   # Additional [] needed to keep m4 from mangling shell constructs.
24594   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24595     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
24596   fi
24597   # Extract the version number without leading zeros.
24598   cleaned_value=${BASH_REMATCH[1]}
24599   if test "x$cleaned_value" = x; then
24600     # Special case for zero
24601     cleaned_value=${BASH_REMATCH[2]}
24602   fi
24603 
24604   if test $cleaned_value -gt 255; then
24605     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
24606   fi
24607   if test "x$cleaned_value" != "x$with_version_major"; then
24608     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
24609 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
24610   fi
24611   VERSION_MAJOR=$cleaned_value
24612 
24613     fi
24614   else
24615     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24616       # Default is to get value from version-numbers
24617       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
24618     fi
24619   fi
24620 
24621 
24622 # Check whether --with-version-minor was given.
24623 if test "${with_version_minor+set}" = set; then :
24624   withval=$with_version_minor; with_version_minor_present=true
24625 else
24626   with_version_minor_present=false
24627 fi
24628 
24629 
24630   if test "x$with_version_minor_present" = xtrue; then
24631     if test "x$with_version_minor" = xyes; then
24632       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
24633     elif test "x$with_version_minor" = xno; then
24634       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24635       VERSION_MINOR=0
24636     elif test "x$with_version_minor" = x; then
24637       VERSION_MINOR=0
24638     else
24639 
24640   # Additional [] needed to keep m4 from mangling shell constructs.
24641   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24642     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
24643   fi
24644   # Extract the version number without leading zeros.
24645   cleaned_value=${BASH_REMATCH[1]}
24646   if test "x$cleaned_value" = x; then
24647     # Special case for zero
24648     cleaned_value=${BASH_REMATCH[2]}
24649   fi
24650 
24651   if test $cleaned_value -gt 255; then
24652     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
24653   fi
24654   if test "x$cleaned_value" != "x$with_version_minor"; then
24655     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
24656 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
24657   fi
24658   VERSION_MINOR=$cleaned_value
24659 
24660     fi
24661   else
24662     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24663       # Default is 0, if unspecified
24664       VERSION_MINOR=0
24665     fi
24666   fi
24667 
24668 
24669 # Check whether --with-version-security was given.
24670 if test "${with_version_security+set}" = set; then :
24671   withval=$with_version_security; with_version_security_present=true
24672 else
24673   with_version_security_present=false
24674 fi
24675 
24676 
24677   if test "x$with_version_security_present" = xtrue; then
24678     if test "x$with_version_security" = xyes; then
24679       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
24680     elif test "x$with_version_security" = xno; then
24681       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24682       VERSION_SECURITY=0
24683     elif test "x$with_version_security" = x; then
24684       VERSION_SECURITY=0
24685     else
24686 
24687   # Additional [] needed to keep m4 from mangling shell constructs.
24688   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24689     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
24690   fi
24691   # Extract the version number without leading zeros.
24692   cleaned_value=${BASH_REMATCH[1]}
24693   if test "x$cleaned_value" = x; then
24694     # Special case for zero
24695     cleaned_value=${BASH_REMATCH[2]}
24696   fi
24697 
24698   if test $cleaned_value -gt 255; then
24699     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
24700   fi
24701   if test "x$cleaned_value" != "x$with_version_security"; then
24702     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
24703 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
24704   fi
24705   VERSION_SECURITY=$cleaned_value
24706 
24707     fi
24708   else
24709     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24710       # Default is 0, if unspecified
24711       VERSION_SECURITY=0
24712     fi
24713   fi
24714 
24715 
24716 # Check whether --with-version-patch was given.
24717 if test "${with_version_patch+set}" = set; then :
24718   withval=$with_version_patch; with_version_patch_present=true
24719 else
24720   with_version_patch_present=false
24721 fi
24722 
24723 
24724   if test "x$with_version_patch_present" = xtrue; then
24725     if test "x$with_version_patch" = xyes; then
24726       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
24727     elif test "x$with_version_patch" = xno; then
24728       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24729       VERSION_PATCH=0
24730     elif test "x$with_version_patch" = x; then
24731       VERSION_PATCH=0
24732     else
24733 
24734   # Additional [] needed to keep m4 from mangling shell constructs.
24735   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24736     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
24737   fi
24738   # Extract the version number without leading zeros.
24739   cleaned_value=${BASH_REMATCH[1]}
24740   if test "x$cleaned_value" = x; then
24741     # Special case for zero
24742     cleaned_value=${BASH_REMATCH[2]}
24743   fi
24744 
24745   if test $cleaned_value -gt 255; then
24746     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
24747   fi
24748   if test "x$cleaned_value" != "x$with_version_patch"; then
24749     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
24750 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
24751   fi
24752   VERSION_PATCH=$cleaned_value
24753 
24754     fi
24755   else
24756     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24757       # Default is 0, if unspecified
24758       VERSION_PATCH=0
24759     fi
24760   fi
24761 
24762   # Calculate derived version properties
24763 
24764   # Set VERSION_IS_GA based on if VERSION_PRE has a value
24765   if test "x$VERSION_PRE" = x; then
24766     VERSION_IS_GA=true
24767   else
24768     VERSION_IS_GA=false
24769   fi
24770 
24771   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
24772   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
24773 
24774   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
24775   # Strip trailing zeroes from stripped_version_number
24776   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
24777   VERSION_NUMBER=$stripped_version_number
24778 
24779   # The complete version string, with additional build information
24780   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
24781     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24782   else
24783     # If either build or opt is set, we need a + separator
24784     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
24785   fi
24786 
24787   # The short version string, just VERSION_NUMBER and PRE, if present.
24788   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24789 
24790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
24791 $as_echo_n "checking for version string... " >&6; }
24792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
24793 $as_echo "$VERSION_STRING" >&6; }
24794 
24795 
24796 
24797 
24798 
24799 
24800 
24801 
24802 
24803 
24804 
24805 
24806 
24807 
24808 
24809 ###############################################################################
24810 #
24811 # Setup BootJDK, used to bootstrap the build.
24812 #
24813 ###############################################################################
24814 
24815 
24816   BOOT_JDK_FOUND=no
24817 
24818 # Check whether --with-boot-jdk was given.
24819 if test "${with_boot_jdk+set}" = set; then :
24820   withval=$with_boot_jdk;
24821 fi
24822 
24823 
24824   # We look for the Boot JDK through various means, going from more certain to
24825   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
24826   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
24827   # must check if this is indeed valid; otherwise we'll continue looking.
24828 
24829   # Test: Is bootjdk explicitely set by command line arguments?
24830 
24831   if test "x$BOOT_JDK_FOUND" = xno; then
24832     # Now execute the test
24833 
24834   if test "x$with_boot_jdk" != x; then
24835     BOOT_JDK=$with_boot_jdk
24836     BOOT_JDK_FOUND=maybe
24837     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
24838 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
24839   fi
24840 
24841 
24842     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24843     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24844       # Do we have a bin/java?
24845       if test ! -x "$BOOT_JDK/bin/java"; then
24846         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24847 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24848         BOOT_JDK_FOUND=no
24849       else
24850         # Do we have a bin/javac?
24851         if test ! -x "$BOOT_JDK/bin/javac"; then
24852           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24853 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24854           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24855 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24856           BOOT_JDK_FOUND=no
24857         else
24858           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24859           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
24860 
24861           # Extra M4 quote needed to protect [] in grep expression.
24862           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24863           if test "x$FOUND_CORRECT_VERSION" = x; then
24864             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24865 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24866             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24867 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24868             BOOT_JDK_FOUND=no
24869           else
24870             # We're done! :-)
24871             BOOT_JDK_FOUND=yes
24872 
24873   # Only process if variable expands to non-empty
24874 
24875   if test "x$BOOT_JDK" != x; then
24876     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24877 
24878   # Input might be given as Windows format, start by converting to
24879   # unix format.
24880   path="$BOOT_JDK"
24881   new_path=`$CYGPATH -u "$path"`
24882 
24883   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24884   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24885   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24886   # "foo.exe" is OK but "foo" is an error.
24887   #
24888   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24889   # It is also a way to make sure we got the proper file name for the real test later on.
24890   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24891   if test "x$test_shortpath" = x; then
24892     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24893 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24894     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24895   fi
24896 
24897   # Call helper function which possibly converts this using DOS-style short mode.
24898   # If so, the updated path is stored in $new_path.
24899 
24900   input_path="$new_path"
24901   # Check if we need to convert this using DOS-style short mode. If the path
24902   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24903   # take no chances and rewrite it.
24904   # Note: m4 eats our [], so we need to use [ and ] instead.
24905   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24906   if test "x$has_forbidden_chars" != x; then
24907     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24908     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24909     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24910     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24911       # Going to short mode and back again did indeed matter. Since short mode is
24912       # case insensitive, let's make it lowercase to improve readability.
24913       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24914       # Now convert it back to Unix-style (cygpath)
24915       input_path=`$CYGPATH -u "$shortmode_path"`
24916       new_path="$input_path"
24917     fi
24918   fi
24919 
24920   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24921   if test "x$test_cygdrive_prefix" = x; then
24922     # As a simple fix, exclude /usr/bin since it's not a real path.
24923     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24924       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24925       # a path prefixed by /cygdrive for fixpath to work.
24926       new_path="$CYGWIN_ROOT_PATH$input_path"
24927     fi
24928   fi
24929 
24930 
24931   if test "x$path" != "x$new_path"; then
24932     BOOT_JDK="$new_path"
24933     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24934 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24935   fi
24936 
24937     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24938 
24939   path="$BOOT_JDK"
24940   has_colon=`$ECHO $path | $GREP ^.:`
24941   new_path="$path"
24942   if test "x$has_colon" = x; then
24943     # Not in mixed or Windows style, start by that.
24944     new_path=`cmd //c echo $path`
24945   fi
24946 
24947 
24948   input_path="$new_path"
24949   # Check if we need to convert this using DOS-style short mode. If the path
24950   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24951   # take no chances and rewrite it.
24952   # Note: m4 eats our [], so we need to use [ and ] instead.
24953   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24954   if test "x$has_forbidden_chars" != x; then
24955     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24956     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24957   fi
24958 
24959 
24960   windows_path="$new_path"
24961   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24962     unix_path=`$CYGPATH -u "$windows_path"`
24963     new_path="$unix_path"
24964   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24965     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24966     new_path="$unix_path"
24967   fi
24968 
24969   if test "x$path" != "x$new_path"; then
24970     BOOT_JDK="$new_path"
24971     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24972 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24973   fi
24974 
24975   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24976   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24977 
24978     else
24979       # We're on a unix platform. Hooray! :)
24980       path="$BOOT_JDK"
24981       has_space=`$ECHO "$path" | $GREP " "`
24982       if test "x$has_space" != x; then
24983         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24984 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24985         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24986       fi
24987 
24988       # Use eval to expand a potential ~
24989       eval path="$path"
24990       if test ! -f "$path" && test ! -d "$path"; then
24991         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24992       fi
24993 
24994       if test -d "$path"; then
24995         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24996       else
24997         dir="`$DIRNAME "$path"`"
24998         base="`$BASENAME "$path"`"
24999         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25000       fi
25001     fi
25002   fi
25003 
25004             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25005 $as_echo_n "checking for Boot JDK... " >&6; }
25006             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25007 $as_echo "$BOOT_JDK" >&6; }
25008             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25009 $as_echo_n "checking Boot JDK version... " >&6; }
25010             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25011             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25012 $as_echo "$BOOT_JDK_VERSION" >&6; }
25013           fi # end check jdk version
25014         fi # end check javac
25015       fi # end check java
25016     fi # end check boot jdk found
25017   fi
25018 
25019   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
25020     # Having specified an argument which is incorrect will produce an instant failure;
25021     # we should not go on looking
25022     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
25023   fi
25024 
25025   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
25026 
25027   if test "x$BOOT_JDK_FOUND" = xno; then
25028     # Now execute the test
25029 
25030   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
25031     # First check at user selected default
25032 
25033   if test "x$BOOT_JDK_FOUND" = xno; then
25034     # Now execute the test
25035 
25036   if test -x /usr/libexec/java_home; then
25037     BOOT_JDK=`/usr/libexec/java_home `
25038     BOOT_JDK_FOUND=maybe
25039     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
25040 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
25041   fi
25042 
25043 
25044     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25045     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25046       # Do we have a bin/java?
25047       if test ! -x "$BOOT_JDK/bin/java"; then
25048         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25049 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25050         BOOT_JDK_FOUND=no
25051       else
25052         # Do we have a bin/javac?
25053         if test ! -x "$BOOT_JDK/bin/javac"; then
25054           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25055 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25056           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25057 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25058           BOOT_JDK_FOUND=no
25059         else
25060           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25061           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25062 
25063           # Extra M4 quote needed to protect [] in grep expression.
25064           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25065           if test "x$FOUND_CORRECT_VERSION" = x; then
25066             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25067 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25068             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25069 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25070             BOOT_JDK_FOUND=no
25071           else
25072             # We're done! :-)
25073             BOOT_JDK_FOUND=yes
25074 
25075   # Only process if variable expands to non-empty
25076 
25077   if test "x$BOOT_JDK" != x; then
25078     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25079 
25080   # Input might be given as Windows format, start by converting to
25081   # unix format.
25082   path="$BOOT_JDK"
25083   new_path=`$CYGPATH -u "$path"`
25084 
25085   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25086   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25087   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25088   # "foo.exe" is OK but "foo" is an error.
25089   #
25090   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25091   # It is also a way to make sure we got the proper file name for the real test later on.
25092   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25093   if test "x$test_shortpath" = x; then
25094     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25095 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25096     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25097   fi
25098 
25099   # Call helper function which possibly converts this using DOS-style short mode.
25100   # If so, the updated path is stored in $new_path.
25101 
25102   input_path="$new_path"
25103   # Check if we need to convert this using DOS-style short mode. If the path
25104   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25105   # take no chances and rewrite it.
25106   # Note: m4 eats our [], so we need to use [ and ] instead.
25107   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25108   if test "x$has_forbidden_chars" != x; then
25109     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25110     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25111     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25112     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25113       # Going to short mode and back again did indeed matter. Since short mode is
25114       # case insensitive, let's make it lowercase to improve readability.
25115       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25116       # Now convert it back to Unix-style (cygpath)
25117       input_path=`$CYGPATH -u "$shortmode_path"`
25118       new_path="$input_path"
25119     fi
25120   fi
25121 
25122   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25123   if test "x$test_cygdrive_prefix" = x; then
25124     # As a simple fix, exclude /usr/bin since it's not a real path.
25125     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25126       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25127       # a path prefixed by /cygdrive for fixpath to work.
25128       new_path="$CYGWIN_ROOT_PATH$input_path"
25129     fi
25130   fi
25131 
25132 
25133   if test "x$path" != "x$new_path"; then
25134     BOOT_JDK="$new_path"
25135     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25136 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25137   fi
25138 
25139     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25140 
25141   path="$BOOT_JDK"
25142   has_colon=`$ECHO $path | $GREP ^.:`
25143   new_path="$path"
25144   if test "x$has_colon" = x; then
25145     # Not in mixed or Windows style, start by that.
25146     new_path=`cmd //c echo $path`
25147   fi
25148 
25149 
25150   input_path="$new_path"
25151   # Check if we need to convert this using DOS-style short mode. If the path
25152   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25153   # take no chances and rewrite it.
25154   # Note: m4 eats our [], so we need to use [ and ] instead.
25155   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25156   if test "x$has_forbidden_chars" != x; then
25157     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25158     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25159   fi
25160 
25161 
25162   windows_path="$new_path"
25163   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25164     unix_path=`$CYGPATH -u "$windows_path"`
25165     new_path="$unix_path"
25166   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25167     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25168     new_path="$unix_path"
25169   fi
25170 
25171   if test "x$path" != "x$new_path"; then
25172     BOOT_JDK="$new_path"
25173     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25174 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25175   fi
25176 
25177   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25178   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25179 
25180     else
25181       # We're on a unix platform. Hooray! :)
25182       path="$BOOT_JDK"
25183       has_space=`$ECHO "$path" | $GREP " "`
25184       if test "x$has_space" != x; then
25185         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25186 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25187         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25188       fi
25189 
25190       # Use eval to expand a potential ~
25191       eval path="$path"
25192       if test ! -f "$path" && test ! -d "$path"; then
25193         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25194       fi
25195 
25196       if test -d "$path"; then
25197         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25198       else
25199         dir="`$DIRNAME "$path"`"
25200         base="`$BASENAME "$path"`"
25201         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25202       fi
25203     fi
25204   fi
25205 
25206             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25207 $as_echo_n "checking for Boot JDK... " >&6; }
25208             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25209 $as_echo "$BOOT_JDK" >&6; }
25210             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25211 $as_echo_n "checking Boot JDK version... " >&6; }
25212             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25213             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25214 $as_echo "$BOOT_JDK_VERSION" >&6; }
25215           fi # end check jdk version
25216         fi # end check javac
25217       fi # end check java
25218     fi # end check boot jdk found
25219   fi
25220 
25221     # If that did not work out (e.g. too old), try explicit versions instead
25222 
25223   if test "x$BOOT_JDK_FOUND" = xno; then
25224     # Now execute the test
25225 
25226   if test -x /usr/libexec/java_home; then
25227     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
25228     BOOT_JDK_FOUND=maybe
25229     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
25230 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
25231   fi
25232 
25233 
25234     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25235     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25236       # Do we have a bin/java?
25237       if test ! -x "$BOOT_JDK/bin/java"; then
25238         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25239 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25240         BOOT_JDK_FOUND=no
25241       else
25242         # Do we have a bin/javac?
25243         if test ! -x "$BOOT_JDK/bin/javac"; then
25244           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25245 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25246           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25247 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25248           BOOT_JDK_FOUND=no
25249         else
25250           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25251           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25252 
25253           # Extra M4 quote needed to protect [] in grep expression.
25254           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25255           if test "x$FOUND_CORRECT_VERSION" = x; then
25256             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25257 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25258             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25259 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25260             BOOT_JDK_FOUND=no
25261           else
25262             # We're done! :-)
25263             BOOT_JDK_FOUND=yes
25264 
25265   # Only process if variable expands to non-empty
25266 
25267   if test "x$BOOT_JDK" != x; then
25268     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25269 
25270   # Input might be given as Windows format, start by converting to
25271   # unix format.
25272   path="$BOOT_JDK"
25273   new_path=`$CYGPATH -u "$path"`
25274 
25275   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25276   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25277   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25278   # "foo.exe" is OK but "foo" is an error.
25279   #
25280   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25281   # It is also a way to make sure we got the proper file name for the real test later on.
25282   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25283   if test "x$test_shortpath" = x; then
25284     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25285 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25286     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25287   fi
25288 
25289   # Call helper function which possibly converts this using DOS-style short mode.
25290   # If so, the updated path is stored in $new_path.
25291 
25292   input_path="$new_path"
25293   # Check if we need to convert this using DOS-style short mode. If the path
25294   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25295   # take no chances and rewrite it.
25296   # Note: m4 eats our [], so we need to use [ and ] instead.
25297   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25298   if test "x$has_forbidden_chars" != x; then
25299     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25300     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25301     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25302     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25303       # Going to short mode and back again did indeed matter. Since short mode is
25304       # case insensitive, let's make it lowercase to improve readability.
25305       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25306       # Now convert it back to Unix-style (cygpath)
25307       input_path=`$CYGPATH -u "$shortmode_path"`
25308       new_path="$input_path"
25309     fi
25310   fi
25311 
25312   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25313   if test "x$test_cygdrive_prefix" = x; then
25314     # As a simple fix, exclude /usr/bin since it's not a real path.
25315     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25316       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25317       # a path prefixed by /cygdrive for fixpath to work.
25318       new_path="$CYGWIN_ROOT_PATH$input_path"
25319     fi
25320   fi
25321 
25322 
25323   if test "x$path" != "x$new_path"; then
25324     BOOT_JDK="$new_path"
25325     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25326 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25327   fi
25328 
25329     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25330 
25331   path="$BOOT_JDK"
25332   has_colon=`$ECHO $path | $GREP ^.:`
25333   new_path="$path"
25334   if test "x$has_colon" = x; then
25335     # Not in mixed or Windows style, start by that.
25336     new_path=`cmd //c echo $path`
25337   fi
25338 
25339 
25340   input_path="$new_path"
25341   # Check if we need to convert this using DOS-style short mode. If the path
25342   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25343   # take no chances and rewrite it.
25344   # Note: m4 eats our [], so we need to use [ and ] instead.
25345   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25346   if test "x$has_forbidden_chars" != x; then
25347     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25348     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25349   fi
25350 
25351 
25352   windows_path="$new_path"
25353   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25354     unix_path=`$CYGPATH -u "$windows_path"`
25355     new_path="$unix_path"
25356   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25357     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25358     new_path="$unix_path"
25359   fi
25360 
25361   if test "x$path" != "x$new_path"; then
25362     BOOT_JDK="$new_path"
25363     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25364 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25365   fi
25366 
25367   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25368   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25369 
25370     else
25371       # We're on a unix platform. Hooray! :)
25372       path="$BOOT_JDK"
25373       has_space=`$ECHO "$path" | $GREP " "`
25374       if test "x$has_space" != x; then
25375