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 STLPORT_LIB
 658 LIBZIP_CAN_USE_MMAP
 659 LIBDL
 660 LIBM
 661 USE_EXTERNAL_LCMS
 662 LCMS_LIBS
 663 LCMS_CFLAGS
 664 USE_EXTERNAL_LIBZ
 665 USE_EXTERNAL_LIBPNG
 666 PNG_LIBS
 667 PNG_CFLAGS
 668 USE_EXTERNAL_LIBGIF
 669 USE_EXTERNAL_LIBJPEG
 670 LLVM_LIBS
 671 LLVM_LDFLAGS
 672 LLVM_CFLAGS
 673 LLVM_CONFIG
 674 LIBFFI_LIBS
 675 LIBFFI_CFLAGS
 676 ALSA_LIBS
 677 ALSA_CFLAGS
 678 FREETYPE_BUNDLE_LIB_PATH
 679 FREETYPE_LIBS
 680 FREETYPE_CFLAGS
 681 CUPS_CFLAGS
 682 X_EXTRA_LIBS
 683 X_LIBS
 684 X_PRE_LIBS
 685 X_CFLAGS
 686 XMKMF
 687 MSVCP_DLL
 688 MSVCR_DLL
 689 LIBCXX
 690 FIXPATH_DETACH_FLAG
 691 FIXPATH
 692 BUILD_GTEST
 693 VALID_JVM_FEATURES
 694 JVM_FEATURES_custom
 695 JVM_FEATURES_zeroshark
 696 JVM_FEATURES_zero
 697 JVM_FEATURES_minimal
 698 JVM_FEATURES_core
 699 JVM_FEATURES_client
 700 JVM_FEATURES_server
 701 INCLUDE_DTRACE
 702 GCOV_ENABLED
 703 STRIP_POLICY
 704 DEBUG_BINARIES
 705 ZIP_EXTERNAL_DEBUG_SYMBOLS
 706 COPY_DEBUG_SYMBOLS
 707 COMPILE_WITH_DEBUG_SYMBOLS
 708 CFLAGS_WARNINGS_ARE_ERRORS
 709 BUILD_CC_DISABLE_WARNING_PREFIX
 710 DISABLE_WARNING_PREFIX
 711 HOTSPOT_SET_WARNINGS_AS_ERRORS
 712 WARNINGS_AS_ERRORS
 713 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 714 ZERO_ARCHFLAG
 715 LDFLAGS_TESTEXE
 716 LDFLAGS_TESTLIB
 717 CXXFLAGS_TESTEXE
 718 CXXFLAGS_TESTLIB
 719 CFLAGS_TESTEXE
 720 CFLAGS_TESTLIB
 721 OPENJDK_BUILD_JVM_LIBS
 722 OPENJDK_BUILD_JVM_ASFLAGS
 723 OPENJDK_BUILD_JVM_LDFLAGS
 724 OPENJDK_BUILD_JVM_CFLAGS
 725 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 726 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 727 OPENJDK_BUILD_JDKEXE_LIBS
 728 OPENJDK_BUILD_JDKLIB_LIBS
 729 OPENJDK_BUILD_LDFLAGS_JDKEXE
 730 OPENJDK_BUILD_LDFLAGS_JDKLIB
 731 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 732 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 733 OPENJDK_BUILD_CFLAGS_JDKEXE
 734 OPENJDK_BUILD_CFLAGS_JDKLIB
 735 OPENJDK_BUILD_CXXSTD_CXXFLAG
 736 JVM_LIBS
 737 JVM_ASFLAGS
 738 JVM_LDFLAGS
 739 JVM_CFLAGS
 740 LDFLAGS_HASH_STYLE
 741 LDFLAGS_CXX_JDK
 742 JDKEXE_LIBS
 743 JDKLIB_LIBS
 744 LDFLAGS_JDKEXE
 745 LDFLAGS_JDKLIB
 746 CXXFLAGS_JDKEXE
 747 CXXFLAGS_JDKLIB
 748 CFLAGS_JDKEXE
 749 CFLAGS_JDKLIB
 750 MACOSX_VERSION_MIN
 751 CXXSTD_CXXFLAG
 752 CXX_O_FLAG_SIZE
 753 CXX_O_FLAG_NONE
 754 CXX_O_FLAG_DEBUG
 755 CXX_O_FLAG_NORM
 756 CXX_O_FLAG_HI
 757 CXX_O_FLAG_HIGHEST
 758 CXX_O_FLAG_HIGHEST_JVM
 759 C_O_FLAG_SIZE
 760 C_O_FLAG_NONE
 761 C_O_FLAG_DEBUG
 762 C_O_FLAG_NORM
 763 C_O_FLAG_HI
 764 C_O_FLAG_HIGHEST
 765 C_O_FLAG_HIGHEST_JVM
 766 JVM_CFLAGS_SYMBOLS
 767 CXXFLAGS_DEBUG_SYMBOLS
 768 CFLAGS_DEBUG_SYMBOLS
 769 CXX_FLAG_DEPS
 770 C_FLAG_DEPS
 771 SHARED_LIBRARY_FLAGS
 772 SET_SHARED_LIBRARY_MAPFILE
 773 SET_SHARED_LIBRARY_NAME
 774 SET_SHARED_LIBRARY_ORIGIN
 775 SET_EXECUTABLE_ORIGIN
 776 CXX_FLAG_REORDER
 777 C_FLAG_REORDER
 778 JVM_RCFLAGS
 779 RC_FLAGS
 780 AR_OUT_OPTION
 781 LD_OUT_OPTION
 782 EXE_OUT_OPTION
 783 CC_OUT_OPTION
 784 STRIPFLAGS
 785 ARFLAGS
 786 COMPILER_BINDCMD_FILE_FLAG
 787 COMPILER_COMMAND_FILE_FLAG
 788 COMPILER_TARGET_BITS_FLAG
 789 JT_HOME
 790 JTREGEXE
 791 HOTSPOT_TOOLCHAIN_TYPE
 792 USING_BROKEN_SUSE_LD
 793 PACKAGE_PATH
 794 USE_CLANG
 795 HOTSPOT_LD
 796 HOTSPOT_CXX
 797 HOTSPOT_RC
 798 HOTSPOT_MT
 799 BUILD_AS
 800 BUILD_LDCXX
 801 BUILD_LD
 802 BUILD_STRIP
 803 BUILD_OBJCOPY
 804 BUILD_AR
 805 BUILD_NM
 806 BUILD_CXX
 807 BUILD_CC
 808 BUILD_SYSROOT_LDFLAGS
 809 BUILD_SYSROOT_CFLAGS
 810 ac_ct_OBJDUMP
 811 OBJDUMP
 812 ac_ct_OBJCOPY
 813 OBJCOPY
 814 ac_ct_NM
 815 ac_ct_STRIP
 816 GNM
 817 NM
 818 STRIP
 819 MSBUILD
 820 DUMPBIN
 821 RC
 822 MT
 823 LIPO
 824 ac_ct_AR
 825 AR
 826 AS
 827 LDCXX
 828 LD
 829 CXXCPP
 830 CPP
 831 CXX_VERSION_NUMBER
 832 CC_VERSION_NUMBER
 833 ac_ct_CXX
 834 CXXFLAGS
 835 CXX
 836 TOOLCHAIN_PATH_CXX
 837 POTENTIAL_CXX
 838 OBJEXT
 839 EXEEXT
 840 ac_ct_CC
 841 CPPFLAGS
 842 LDFLAGS
 843 CFLAGS
 844 CC
 845 TOOLCHAIN_PATH_CC
 846 POTENTIAL_CC
 847 TOOLCHAIN_VERSION
 848 VS_LIB
 849 VS_INCLUDE
 850 VS_PATH
 851 CYGWIN_LINK
 852 SYSROOT_LDFLAGS
 853 SYSROOT_CFLAGS
 854 EXTRA_LDFLAGS
 855 EXTRA_CXXFLAGS
 856 EXTRA_CFLAGS
 857 LEGACY_EXTRA_LDFLAGS
 858 LEGACY_EXTRA_CXXFLAGS
 859 LEGACY_EXTRA_CFLAGS
 860 EXE_SUFFIX
 861 OBJ_SUFFIX
 862 STATIC_LIBRARY
 863 SHARED_LIBRARY
 864 STATIC_LIBRARY_SUFFIX
 865 SHARED_LIBRARY_SUFFIX
 866 LIBRARY_PREFIX
 867 TOOLCHAIN_TYPE
 868 STATIC_BUILD
 869 IMPORT_MODULES_MAKE
 870 IMPORT_MODULES_SRC
 871 IMPORT_MODULES_CONF
 872 IMPORT_MODULES_LIBS
 873 IMPORT_MODULES_CMDS
 874 IMPORT_MODULES_CLASSES
 875 BUILD_HOTSPOT
 876 HOTSPOT_DIST
 877 BUILD_OUTPUT
 878 JDK_TOPDIR
 879 NASHORN_TOPDIR
 880 HOTSPOT_TOPDIR
 881 JAXWS_TOPDIR
 882 JAXP_TOPDIR
 883 CORBA_TOPDIR
 884 LANGTOOLS_TOPDIR
 885 EXTERNAL_BUILDJDK
 886 BUILD_JDK
 887 CREATE_BUILDJDK
 888 JLINK
 889 JMOD
 890 BOOT_JDK_BITS
 891 JAVAC_FLAGS
 892 BOOT_JDK_MODULAR
 893 BOOT_JDK_SOURCETARGET
 894 JARSIGNER
 895 JAR
 896 JAVAH
 897 JAVAC
 898 JAVA
 899 BOOT_JDK
 900 JAVA_CHECK
 901 JAVAC_CHECK
 902 VERSION_IS_GA
 903 VERSION_SHORT
 904 VERSION_STRING
 905 VERSION_NUMBER_FOUR_POSITIONS
 906 VERSION_NUMBER
 907 VERSION_OPT
 908 VERSION_BUILD
 909 VERSION_PRE
 910 VERSION_PATCH
 911 VERSION_SECURITY
 912 VERSION_MINOR
 913 VERSION_MAJOR
 914 MACOSX_BUNDLE_ID_BASE
 915 MACOSX_BUNDLE_NAME_BASE
 916 HOTSPOT_VM_DISTRO
 917 COMPANY_NAME
 918 JDK_RC_PLATFORM_NAME
 919 PRODUCT_SUFFIX
 920 PRODUCT_NAME
 921 LAUNCHER_NAME
 922 JLINK_KEEP_PACKAGED_MODULES
 923 COPYRIGHT_YEAR
 924 COMPRESS_JARS
 925 INCLUDE_SA
 926 UNLIMITED_CRYPTO
 927 CACERTS_FILE
 928 ENABLE_HEADLESS_ONLY
 929 DEFAULT_MAKE_TARGET
 930 OS_VERSION_MICRO
 931 OS_VERSION_MINOR
 932 OS_VERSION_MAJOR
 933 PKG_CONFIG
 934 BASH_ARGS
 935 SETFILE
 936 CODESIGN
 937 XATTR
 938 DSYMUTIL
 939 IS_GNU_TIME
 940 PATCH
 941 DTRACE
 942 TIME
 943 STAT
 944 HG
 945 READELF
 946 OTOOL
 947 LDD
 948 ZIPEXE
 949 UNZIP
 950 TAR_SUPPORTS_TRANSFORM
 951 TAR_INCLUDE_PARAM
 952 TAR_CREATE_EXTRA_PARAM
 953 TAR_TYPE
 954 FIND_DELETE
 955 OUTPUT_SYNC
 956 OUTPUT_SYNC_SUPPORTED
 957 CHECK_TOOLSDIR_MAKE
 958 CHECK_TOOLSDIR_GMAKE
 959 CHECK_MAKE
 960 CHECK_GMAKE
 961 MAKE
 962 PKGHANDLER
 963 CONFIGURESUPPORT_OUTPUTDIR
 964 OUTPUT_ROOT
 965 CONF_NAME
 966 SPEC
 967 SDKROOT
 968 XCODEBUILD
 969 VALID_JVM_VARIANTS
 970 JVM_VARIANTS
 971 DEBUG_LEVEL
 972 HOTSPOT_DEBUG_LEVEL
 973 JDK_VARIANT
 974 USERNAME
 975 CANONICAL_TOPDIR
 976 ORIGINAL_TOPDIR
 977 TOPDIR
 978 PATH_SEP
 979 ZERO_ARCHDEF
 980 HOTSPOT_BUILD_CPU_DEFINE
 981 HOTSPOT_BUILD_CPU_ARCH
 982 HOTSPOT_BUILD_CPU
 983 HOTSPOT_BUILD_OS_TYPE
 984 HOTSPOT_BUILD_OS
 985 OPENJDK_BUILD_BUNDLE_PLATFORM
 986 OPENJDK_BUILD_CPU_BUNDLE
 987 OPENJDK_BUILD_OS_BUNDLE
 988 OPENJDK_BUILD_OS_EXPORT_DIR
 989 OPENJDK_BUILD_CPU_JLI_CFLAGS
 990 OPENJDK_BUILD_CPU_OSARCH
 991 OPENJDK_BUILD_CPU_ISADIR
 992 OPENJDK_BUILD_CPU_LIBDIR
 993 OPENJDK_BUILD_CPU_LEGACY_LIB
 994 OPENJDK_BUILD_CPU_LEGACY
 995 HOTSPOT_TARGET_CPU_DEFINE
 996 HOTSPOT_TARGET_CPU_ARCH
 997 HOTSPOT_TARGET_CPU
 998 HOTSPOT_TARGET_OS_TYPE
 999 HOTSPOT_TARGET_OS
1000 DEFINE_CROSS_COMPILE_ARCH
1001 LP64
1002 OPENJDK_TARGET_BUNDLE_PLATFORM
1003 OPENJDK_TARGET_CPU_BUNDLE
1004 OPENJDK_TARGET_OS_BUNDLE
1005 OPENJDK_TARGET_OS_EXPORT_DIR
1006 OPENJDK_TARGET_CPU_JLI_CFLAGS
1007 OPENJDK_TARGET_CPU_OSARCH
1008 OPENJDK_TARGET_CPU_ISADIR
1009 OPENJDK_TARGET_CPU_LIBDIR
1010 OPENJDK_TARGET_CPU_LEGACY_LIB
1011 OPENJDK_TARGET_CPU_LEGACY
1012 REQUIRED_OS_VERSION
1013 REQUIRED_OS_NAME
1014 COMPILE_TYPE
1015 OPENJDK_TARGET_CPU_ENDIAN
1016 OPENJDK_TARGET_CPU_BITS
1017 OPENJDK_TARGET_CPU_ARCH
1018 OPENJDK_TARGET_CPU
1019 OPENJDK_TARGET_OS_ENV
1020 OPENJDK_TARGET_OS_TYPE
1021 OPENJDK_TARGET_OS
1022 OPENJDK_BUILD_CPU_ENDIAN
1023 OPENJDK_BUILD_CPU_BITS
1024 OPENJDK_BUILD_CPU_ARCH
1025 OPENJDK_BUILD_CPU
1026 OPENJDK_BUILD_OS_ENV
1027 OPENJDK_BUILD_OS_TYPE
1028 OPENJDK_BUILD_OS
1029 OPENJDK_BUILD_AUTOCONF_NAME
1030 OPENJDK_TARGET_AUTOCONF_NAME
1031 target_os
1032 target_vendor
1033 target_cpu
1034 target
1035 host_os
1036 host_vendor
1037 host_cpu
1038 host
1039 build_os
1040 build_vendor
1041 build_cpu
1042 build
1043 NICE
1044 CPIO
1045 DF
1046 READLINK
1047 CYGPATH
1048 SED
1049 FGREP
1050 EGREP
1051 GREP
1052 AWK
1053 XARGS
1054 WHICH
1055 WC
1056 UNIQ
1057 UNAME
1058 TR
1059 TOUCH
1060 TEE
1061 TAR
1062 TAIL
1063 SORT
1064 SH
1065 RMDIR
1066 RM
1067 PRINTF
1068 NAWK
1069 MV
1070 MKTEMP
1071 MKDIR
1072 LS
1073 LN
1074 GZIP
1075 GUNZIP
1076 HEAD
1077 FIND
1078 FILE
1079 EXPR
1080 ECHO
1081 DIRNAME
1082 DIFF
1083 DATE
1084 CUT
1085 CP
1086 COMM
1087 CMP
1088 CHMOD
1089 CAT
1090 BASH
1091 BASENAME
1092 DATE_WHEN_CONFIGURED
1093 ORIGINAL_PATH
1094 CONFIGURE_COMMAND_LINE
1095 target_alias
1096 host_alias
1097 build_alias
1098 LIBS
1099 ECHO_T
1100 ECHO_N
1101 ECHO_C
1102 DEFS
1103 mandir
1104 localedir
1105 libdir
1106 psdir
1107 pdfdir
1108 dvidir
1109 htmldir
1110 infodir
1111 docdir
1112 oldincludedir
1113 includedir
1114 localstatedir
1115 sharedstatedir
1116 sysconfdir
1117 datadir
1118 datarootdir
1119 libexecdir
1120 sbindir
1121 bindir
1122 program_transform_name
1123 prefix
1124 exec_prefix
1125 PACKAGE_URL
1126 PACKAGE_BUGREPORT
1127 PACKAGE_STRING
1128 PACKAGE_VERSION
1129 PACKAGE_TARNAME
1130 PACKAGE_NAME
1131 PATH_SEPARATOR
1132 SHELL'
1133 ac_subst_files=''
1134 ac_user_opts='
1135 enable_option_checking
1136 with_target_bits
1137 enable_openjdk_only
1138 with_custom_make_dir
1139 with_jdk_variant
1140 enable_debug
1141 with_debug_level
1142 with_jvm_variants
1143 with_devkit
1144 with_sys_root
1145 with_sysroot
1146 with_tools_dir
1147 with_toolchain_path
1148 with_extra_path
1149 with_sdk_name
1150 with_conf_name
1151 with_output_sync
1152 with_default_make_target
1153 enable_headless_only
1154 with_cacerts_file
1155 enable_unlimited_crypto
1156 with_copyright_year
1157 enable_keep_packaged_modules
1158 with_milestone
1159 with_update_version
1160 with_user_release_suffix
1161 with_build_number
1162 with_version_string
1163 with_version_pre
1164 with_version_opt
1165 with_version_build
1166 with_version_major
1167 with_version_minor
1168 with_version_security
1169 with_version_patch
1170 with_boot_jdk
1171 with_build_jdk
1172 with_add_source_root
1173 with_override_source_root
1174 with_adds_and_overrides
1175 with_override_langtools
1176 with_override_corba
1177 with_override_jaxp
1178 with_override_jaxws
1179 with_override_hotspot
1180 with_override_nashorn
1181 with_override_jdk
1182 with_import_hotspot
1183 with_import_modules
1184 enable_static_build
1185 with_toolchain_type
1186 with_extra_cflags
1187 with_extra_cxxflags
1188 with_extra_ldflags
1189 with_toolchain_version
1190 with_build_devkit
1191 with_jtreg
1192 enable_warnings_as_errors
1193 with_native_debug_symbols
1194 enable_debug_symbols
1195 enable_zip_debug_info
1196 enable_native_coverage
1197 enable_dtrace
1198 with_jvm_features
1199 with_jvm_interpreter
1200 enable_hotspot_gtest
1201 with_stdc__lib
1202 with_msvcr_dll
1203 with_msvcp_dll
1204 with_x
1205 with_cups
1206 with_cups_include
1207 with_freetype
1208 with_freetype_include
1209 with_freetype_lib
1210 with_freetype_src
1211 enable_freetype_bundling
1212 with_alsa
1213 with_alsa_include
1214 with_alsa_lib
1215 with_libffi
1216 with_libffi_include
1217 with_libffi_lib
1218 with_libjpeg
1219 with_giflib
1220 with_libpng
1221 with_zlib
1222 with_lcms
1223 with_dxsdk
1224 with_dxsdk_lib
1225 with_dxsdk_include
1226 enable_jtreg_failure_handler
1227 enable_generate_classlist
1228 with_num_cores
1229 with_memory_size
1230 with_jobs
1231 with_test_jobs
1232 with_boot_jdk_jvmargs
1233 with_sjavac_server_java
1234 enable_sjavac
1235 enable_javac_server
1236 enable_icecc
1237 enable_precompiled_headers
1238 enable_ccache
1239 with_ccache_dir
1240 '
1241       ac_precious_vars='build_alias
1242 host_alias
1243 target_alias
1244 BASENAME
1245 BASH
1246 CAT
1247 CHMOD
1248 CMP
1249 COMM
1250 CP
1251 CUT
1252 DATE
1253 DIFF
1254 DIRNAME
1255 ECHO
1256 EXPR
1257 FILE
1258 FIND
1259 HEAD
1260 GUNZIP
1261 GZIP
1262 LN
1263 LS
1264 MKDIR
1265 MKTEMP
1266 MV
1267 NAWK
1268 PRINTF
1269 RM
1270 RMDIR
1271 SH
1272 SORT
1273 TAIL
1274 TAR
1275 TEE
1276 TOUCH
1277 TR
1278 UNAME
1279 UNIQ
1280 WC
1281 WHICH
1282 XARGS
1283 AWK
1284 GREP
1285 EGREP
1286 FGREP
1287 SED
1288 CYGPATH
1289 READLINK
1290 DF
1291 CPIO
1292 NICE
1293 MAKE
1294 UNZIP
1295 ZIPEXE
1296 LDD
1297 OTOOL
1298 READELF
1299 HG
1300 STAT
1301 TIME
1302 DTRACE
1303 PATCH
1304 DSYMUTIL
1305 XATTR
1306 CODESIGN
1307 SETFILE
1308 PKG_CONFIG
1309 JAVA
1310 JAVAC
1311 JAVAH
1312 JAR
1313 JARSIGNER
1314 CC
1315 CFLAGS
1316 LDFLAGS
1317 LIBS
1318 CPPFLAGS
1319 CXX
1320 CXXFLAGS
1321 CCC
1322 CPP
1323 CXXCPP
1324 AS
1325 AR
1326 LIPO
1327 STRIP
1328 NM
1329 GNM
1330 OBJCOPY
1331 OBJDUMP
1332 BUILD_CC
1333 BUILD_CXX
1334 BUILD_NM
1335 BUILD_AR
1336 BUILD_OBJCOPY
1337 BUILD_STRIP
1338 JTREGEXE
1339 XMKMF
1340 FREETYPE_CFLAGS
1341 FREETYPE_LIBS
1342 ALSA_CFLAGS
1343 ALSA_LIBS
1344 LIBFFI_CFLAGS
1345 LIBFFI_LIBS
1346 PNG_CFLAGS
1347 PNG_LIBS
1348 LCMS_CFLAGS
1349 LCMS_LIBS
1350 ICECC_CMD
1351 ICECC_CREATE_ENV
1352 ICECC_WRAPPER
1353 CCACHE'
1354 
1355 
1356 # Initialize some variables set by options.
1357 ac_init_help=
1358 ac_init_version=false
1359 ac_unrecognized_opts=
1360 ac_unrecognized_sep=
1361 # The variables have the same names as the options, with
1362 # dashes changed to underlines.
1363 cache_file=/dev/null
1364 exec_prefix=NONE
1365 no_create=
1366 no_recursion=
1367 prefix=NONE
1368 program_prefix=NONE
1369 program_suffix=NONE
1370 program_transform_name=s,x,x,
1371 silent=
1372 site=
1373 srcdir=
1374 verbose=
1375 x_includes=NONE
1376 x_libraries=NONE
1377 
1378 # Installation directory options.
1379 # These are left unexpanded so users can "make install exec_prefix=/foo"
1380 # and all the variables that are supposed to be based on exec_prefix
1381 # by default will actually change.
1382 # Use braces instead of parens because sh, perl, etc. also accept them.
1383 # (The list follows the same order as the GNU Coding Standards.)
1384 bindir='${exec_prefix}/bin'
1385 sbindir='${exec_prefix}/sbin'
1386 libexecdir='${exec_prefix}/libexec'
1387 datarootdir='${prefix}/share'
1388 datadir='${datarootdir}'
1389 sysconfdir='${prefix}/etc'
1390 sharedstatedir='${prefix}/com'
1391 localstatedir='${prefix}/var'
1392 includedir='${prefix}/include'
1393 oldincludedir='/usr/include'
1394 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1395 infodir='${datarootdir}/info'
1396 htmldir='${docdir}'
1397 dvidir='${docdir}'
1398 pdfdir='${docdir}'
1399 psdir='${docdir}'
1400 libdir='${exec_prefix}/lib'
1401 localedir='${datarootdir}/locale'
1402 mandir='${datarootdir}/man'
1403 
1404 ac_prev=
1405 ac_dashdash=
1406 for ac_option
1407 do
1408   # If the previous option needs an argument, assign it.
1409   if test -n "$ac_prev"; then
1410     eval $ac_prev=\$ac_option
1411     ac_prev=
1412     continue
1413   fi
1414 
1415   case $ac_option in
1416   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1417   *=)   ac_optarg= ;;
1418   *)    ac_optarg=yes ;;
1419   esac
1420 
1421   # Accept the important Cygnus configure options, so we can diagnose typos.
1422 
1423   case $ac_dashdash$ac_option in
1424   --)
1425     ac_dashdash=yes ;;
1426 
1427   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1428     ac_prev=bindir ;;
1429   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1430     bindir=$ac_optarg ;;
1431 
1432   -build | --build | --buil | --bui | --bu)
1433     ac_prev=build_alias ;;
1434   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1435     build_alias=$ac_optarg ;;
1436 
1437   -cache-file | --cache-file | --cache-fil | --cache-fi \
1438   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1439     ac_prev=cache_file ;;
1440   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1441   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1442     cache_file=$ac_optarg ;;
1443 
1444   --config-cache | -C)
1445     cache_file=config.cache ;;
1446 
1447   -datadir | --datadir | --datadi | --datad)
1448     ac_prev=datadir ;;
1449   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1450     datadir=$ac_optarg ;;
1451 
1452   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1453   | --dataroo | --dataro | --datar)
1454     ac_prev=datarootdir ;;
1455   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1456   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1457     datarootdir=$ac_optarg ;;
1458 
1459   -disable-* | --disable-*)
1460     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1461     # Reject names that are not valid shell variable names.
1462     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1463       as_fn_error $? "invalid feature name: $ac_useropt"
1464     ac_useropt_orig=$ac_useropt
1465     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1466     case $ac_user_opts in
1467       *"
1468 "enable_$ac_useropt"
1469 "*) ;;
1470       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1471          ac_unrecognized_sep=', ';;
1472     esac
1473     eval enable_$ac_useropt=no ;;
1474 
1475   -docdir | --docdir | --docdi | --doc | --do)
1476     ac_prev=docdir ;;
1477   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1478     docdir=$ac_optarg ;;
1479 
1480   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1481     ac_prev=dvidir ;;
1482   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1483     dvidir=$ac_optarg ;;
1484 
1485   -enable-* | --enable-*)
1486     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1487     # Reject names that are not valid shell variable names.
1488     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1489       as_fn_error $? "invalid feature name: $ac_useropt"
1490     ac_useropt_orig=$ac_useropt
1491     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1492     case $ac_user_opts in
1493       *"
1494 "enable_$ac_useropt"
1495 "*) ;;
1496       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1497          ac_unrecognized_sep=', ';;
1498     esac
1499     eval enable_$ac_useropt=\$ac_optarg ;;
1500 
1501   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1502   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1503   | --exec | --exe | --ex)
1504     ac_prev=exec_prefix ;;
1505   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1506   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1507   | --exec=* | --exe=* | --ex=*)
1508     exec_prefix=$ac_optarg ;;
1509 
1510   -gas | --gas | --ga | --g)
1511     # Obsolete; use --with-gas.
1512     with_gas=yes ;;
1513 
1514   -help | --help | --hel | --he | -h)
1515     ac_init_help=long ;;
1516   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1517     ac_init_help=recursive ;;
1518   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1519     ac_init_help=short ;;
1520 
1521   -host | --host | --hos | --ho)
1522     ac_prev=host_alias ;;
1523   -host=* | --host=* | --hos=* | --ho=*)
1524     host_alias=$ac_optarg ;;
1525 
1526   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1527     ac_prev=htmldir ;;
1528   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1529   | --ht=*)
1530     htmldir=$ac_optarg ;;
1531 
1532   -includedir | --includedir | --includedi | --included | --include \
1533   | --includ | --inclu | --incl | --inc)
1534     ac_prev=includedir ;;
1535   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1536   | --includ=* | --inclu=* | --incl=* | --inc=*)
1537     includedir=$ac_optarg ;;
1538 
1539   -infodir | --infodir | --infodi | --infod | --info | --inf)
1540     ac_prev=infodir ;;
1541   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1542     infodir=$ac_optarg ;;
1543 
1544   -libdir | --libdir | --libdi | --libd)
1545     ac_prev=libdir ;;
1546   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1547     libdir=$ac_optarg ;;
1548 
1549   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1550   | --libexe | --libex | --libe)
1551     ac_prev=libexecdir ;;
1552   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1553   | --libexe=* | --libex=* | --libe=*)
1554     libexecdir=$ac_optarg ;;
1555 
1556   -localedir | --localedir | --localedi | --localed | --locale)
1557     ac_prev=localedir ;;
1558   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1559     localedir=$ac_optarg ;;
1560 
1561   -localstatedir | --localstatedir | --localstatedi | --localstated \
1562   | --localstate | --localstat | --localsta | --localst | --locals)
1563     ac_prev=localstatedir ;;
1564   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1565   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1566     localstatedir=$ac_optarg ;;
1567 
1568   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1569     ac_prev=mandir ;;
1570   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1571     mandir=$ac_optarg ;;
1572 
1573   -nfp | --nfp | --nf)
1574     # Obsolete; use --without-fp.
1575     with_fp=no ;;
1576 
1577   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1578   | --no-cr | --no-c | -n)
1579     no_create=yes ;;
1580 
1581   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1582   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1583     no_recursion=yes ;;
1584 
1585   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1586   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1587   | --oldin | --oldi | --old | --ol | --o)
1588     ac_prev=oldincludedir ;;
1589   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1590   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1591   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1592     oldincludedir=$ac_optarg ;;
1593 
1594   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1595     ac_prev=prefix ;;
1596   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1597     prefix=$ac_optarg ;;
1598 
1599   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1600   | --program-pre | --program-pr | --program-p)
1601     ac_prev=program_prefix ;;
1602   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1603   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1604     program_prefix=$ac_optarg ;;
1605 
1606   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1607   | --program-suf | --program-su | --program-s)
1608     ac_prev=program_suffix ;;
1609   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1610   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1611     program_suffix=$ac_optarg ;;
1612 
1613   -program-transform-name | --program-transform-name \
1614   | --program-transform-nam | --program-transform-na \
1615   | --program-transform-n | --program-transform- \
1616   | --program-transform | --program-transfor \
1617   | --program-transfo | --program-transf \
1618   | --program-trans | --program-tran \
1619   | --progr-tra | --program-tr | --program-t)
1620     ac_prev=program_transform_name ;;
1621   -program-transform-name=* | --program-transform-name=* \
1622   | --program-transform-nam=* | --program-transform-na=* \
1623   | --program-transform-n=* | --program-transform-=* \
1624   | --program-transform=* | --program-transfor=* \
1625   | --program-transfo=* | --program-transf=* \
1626   | --program-trans=* | --program-tran=* \
1627   | --progr-tra=* | --program-tr=* | --program-t=*)
1628     program_transform_name=$ac_optarg ;;
1629 
1630   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1631     ac_prev=pdfdir ;;
1632   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1633     pdfdir=$ac_optarg ;;
1634 
1635   -psdir | --psdir | --psdi | --psd | --ps)
1636     ac_prev=psdir ;;
1637   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1638     psdir=$ac_optarg ;;
1639 
1640   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641   | -silent | --silent | --silen | --sile | --sil)
1642     silent=yes ;;
1643 
1644   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1645     ac_prev=sbindir ;;
1646   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1647   | --sbi=* | --sb=*)
1648     sbindir=$ac_optarg ;;
1649 
1650   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1651   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1652   | --sharedst | --shareds | --shared | --share | --shar \
1653   | --sha | --sh)
1654     ac_prev=sharedstatedir ;;
1655   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1656   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1657   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1658   | --sha=* | --sh=*)
1659     sharedstatedir=$ac_optarg ;;
1660 
1661   -site | --site | --sit)
1662     ac_prev=site ;;
1663   -site=* | --site=* | --sit=*)
1664     site=$ac_optarg ;;
1665 
1666   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1667     ac_prev=srcdir ;;
1668   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1669     srcdir=$ac_optarg ;;
1670 
1671   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1672   | --syscon | --sysco | --sysc | --sys | --sy)
1673     ac_prev=sysconfdir ;;
1674   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1675   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1676     sysconfdir=$ac_optarg ;;
1677 
1678   -target | --target | --targe | --targ | --tar | --ta | --t)
1679     ac_prev=target_alias ;;
1680   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1681     target_alias=$ac_optarg ;;
1682 
1683   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1684     verbose=yes ;;
1685 
1686   -version | --version | --versio | --versi | --vers | -V)
1687     ac_init_version=: ;;
1688 
1689   -with-* | --with-*)
1690     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1691     # Reject names that are not valid shell variable names.
1692     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1693       as_fn_error $? "invalid package name: $ac_useropt"
1694     ac_useropt_orig=$ac_useropt
1695     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1696     case $ac_user_opts in
1697       *"
1698 "with_$ac_useropt"
1699 "*) ;;
1700       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1701          ac_unrecognized_sep=', ';;
1702     esac
1703     eval with_$ac_useropt=\$ac_optarg ;;
1704 
1705   -without-* | --without-*)
1706     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1707     # Reject names that are not valid shell variable names.
1708     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1709       as_fn_error $? "invalid package name: $ac_useropt"
1710     ac_useropt_orig=$ac_useropt
1711     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1712     case $ac_user_opts in
1713       *"
1714 "with_$ac_useropt"
1715 "*) ;;
1716       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1717          ac_unrecognized_sep=', ';;
1718     esac
1719     eval with_$ac_useropt=no ;;
1720 
1721   --x)
1722     # Obsolete; use --with-x.
1723     with_x=yes ;;
1724 
1725   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1726   | --x-incl | --x-inc | --x-in | --x-i)
1727     ac_prev=x_includes ;;
1728   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1729   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1730     x_includes=$ac_optarg ;;
1731 
1732   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1733   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1734     ac_prev=x_libraries ;;
1735   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1736   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1737     x_libraries=$ac_optarg ;;
1738 
1739   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1740 Try \`$0 --help' for more information"
1741     ;;
1742 
1743   *=*)
1744     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1745     # Reject names that are not valid shell variable names.
1746     case $ac_envvar in #(
1747       '' | [0-9]* | *[!_$as_cr_alnum]* )
1748       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1749     esac
1750     eval $ac_envvar=\$ac_optarg
1751     export $ac_envvar ;;
1752 
1753   *)
1754     # FIXME: should be removed in autoconf 3.0.
1755     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1756     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1757       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1758     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1759     ;;
1760 
1761   esac
1762 done
1763 
1764 if test -n "$ac_prev"; then
1765   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1766   as_fn_error $? "missing argument to $ac_option"
1767 fi
1768 
1769 if test -n "$ac_unrecognized_opts"; then
1770   case $enable_option_checking in
1771     no) ;;
1772     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1773     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1774   esac
1775 fi
1776 
1777 # Check all directory arguments for consistency.
1778 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1779                 datadir sysconfdir sharedstatedir localstatedir includedir \
1780                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1781                 libdir localedir mandir
1782 do
1783   eval ac_val=\$$ac_var
1784   # Remove trailing slashes.
1785   case $ac_val in
1786     */ )
1787       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1788       eval $ac_var=\$ac_val;;
1789   esac
1790   # Be sure to have absolute directory names.
1791   case $ac_val in
1792     [\\/$]* | ?:[\\/]* )  continue;;
1793     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1794   esac
1795   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1796 done
1797 
1798 # There might be people who depend on the old broken behavior: `$host'
1799 # used to hold the argument of --host etc.
1800 # FIXME: To remove some day.
1801 build=$build_alias
1802 host=$host_alias
1803 target=$target_alias
1804 
1805 # FIXME: To remove some day.
1806 if test "x$host_alias" != x; then
1807   if test "x$build_alias" = x; then
1808     cross_compiling=maybe
1809   elif test "x$build_alias" != "x$host_alias"; then
1810     cross_compiling=yes
1811   fi
1812 fi
1813 
1814 ac_tool_prefix=
1815 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1816 
1817 test "$silent" = yes && exec 6>/dev/null
1818 
1819 
1820 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1821 ac_ls_di=`ls -di .` &&
1822 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1823   as_fn_error $? "working directory cannot be determined"
1824 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1825   as_fn_error $? "pwd does not report name of working directory"
1826 
1827 
1828 # Find the source files, if location was not specified.
1829 if test -z "$srcdir"; then
1830   ac_srcdir_defaulted=yes
1831   # Try the directory containing this script, then the parent directory.
1832   ac_confdir=`$as_dirname -- "$as_myself" ||
1833 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1834          X"$as_myself" : 'X\(//\)[^/]' \| \
1835          X"$as_myself" : 'X\(//\)$' \| \
1836          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1837 $as_echo X"$as_myself" |
1838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1839             s//\1/
1840             q
1841           }
1842           /^X\(\/\/\)[^/].*/{
1843             s//\1/
1844             q
1845           }
1846           /^X\(\/\/\)$/{
1847             s//\1/
1848             q
1849           }
1850           /^X\(\/\).*/{
1851             s//\1/
1852             q
1853           }
1854           s/.*/./; q'`
1855   srcdir=$ac_confdir
1856   if test ! -r "$srcdir/$ac_unique_file"; then
1857     srcdir=..
1858   fi
1859 else
1860   ac_srcdir_defaulted=no
1861 fi
1862 if test ! -r "$srcdir/$ac_unique_file"; then
1863   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1864   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1865 fi
1866 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1867 ac_abs_confdir=`(
1868         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1869         pwd)`
1870 # When building in place, set srcdir=.
1871 if test "$ac_abs_confdir" = "$ac_pwd"; then
1872   srcdir=.
1873 fi
1874 # Remove unnecessary trailing slashes from srcdir.
1875 # Double slashes in file names in object file debugging info
1876 # mess up M-x gdb in Emacs.
1877 case $srcdir in
1878 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1879 esac
1880 for ac_var in $ac_precious_vars; do
1881   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1882   eval ac_env_${ac_var}_value=\$${ac_var}
1883   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1884   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1885 done
1886 
1887 #
1888 # Report the --help message.
1889 #
1890 if test "$ac_init_help" = "long"; then
1891   # Omit some internal or obsolete options to make the list less imposing.
1892   # This message is too long to be a string in the A/UX 3.1 sh.
1893   cat <<_ACEOF
1894 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1895 
1896 Usage: $0 [OPTION]... [VAR=VALUE]...
1897 
1898 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1899 VAR=VALUE.  See below for descriptions of some of the useful variables.
1900 
1901 Defaults for the options are specified in brackets.
1902 
1903 Configuration:
1904   -h, --help              display this help and exit
1905       --help=short        display options specific to this package
1906       --help=recursive    display the short help of all the included packages
1907   -V, --version           display version information and exit
1908   -q, --quiet, --silent   do not print \`checking ...' messages
1909       --cache-file=FILE   cache test results in FILE [disabled]
1910   -C, --config-cache      alias for \`--cache-file=config.cache'
1911   -n, --no-create         do not create output files
1912       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1913 
1914 Installation directories:
1915   --prefix=PREFIX         install architecture-independent files in PREFIX
1916                           [$ac_default_prefix]
1917   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1918                           [PREFIX]
1919 
1920 By default, \`make install' will install all the files in
1921 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1922 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1923 for instance \`--prefix=\$HOME'.
1924 
1925 For better control, use the options below.
1926 
1927 Fine tuning of the installation directories:
1928   --bindir=DIR            user executables [EPREFIX/bin]
1929   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1930   --libexecdir=DIR        program executables [EPREFIX/libexec]
1931   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1932   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1933   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1934   --libdir=DIR            object code libraries [EPREFIX/lib]
1935   --includedir=DIR        C header files [PREFIX/include]
1936   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1937   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1938   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1939   --infodir=DIR           info documentation [DATAROOTDIR/info]
1940   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1941   --mandir=DIR            man documentation [DATAROOTDIR/man]
1942   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1943   --htmldir=DIR           html documentation [DOCDIR]
1944   --dvidir=DIR            dvi documentation [DOCDIR]
1945   --pdfdir=DIR            pdf documentation [DOCDIR]
1946   --psdir=DIR             ps documentation [DOCDIR]
1947 _ACEOF
1948 
1949   cat <<\_ACEOF
1950 
1951 X features:
1952   --x-includes=DIR    X include files are in DIR
1953   --x-libraries=DIR   X library files are in DIR
1954 
1955 System types:
1956   --build=BUILD     configure for building on BUILD [guessed]
1957   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1958   --target=TARGET   configure for building compilers for TARGET [HOST]
1959 _ACEOF
1960 fi
1961 
1962 if test -n "$ac_init_help"; then
1963   case $ac_init_help in
1964      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1965    esac
1966   cat <<\_ACEOF
1967 
1968 Optional Features:
1969   --disable-option-checking  ignore unrecognized --enable/--with options
1970   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1971   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1972   --enable-openjdk-only   suppress building custom source even if present
1973                           [disabled]
1974   --enable-debug          set the debug level to fastdebug (shorthand for
1975                           --with-debug-level=fastdebug) [disabled]
1976   --enable-headless-only  only build headless (no GUI) support [disabled]
1977   --enable-unlimited-crypto
1978                           Enable unlimited crypto policy [disabled]
1979   --disable-keep-packaged-modules
1980                           Do not keep packaged modules in jdk image [enable]
1981   --enable-static-build   enable static library build [disabled]
1982   --disable-warnings-as-errors
1983                           do not consider native warnings to be an error
1984                           [enabled]
1985   --enable-debug-symbols  Deprecated. Option is kept for backwards
1986                           compatibility and is ignored
1987   --enable-zip-debug-info Deprecated. Option is kept for backwards
1988                           compatibility and is ignored
1989   --enable-native-coverage
1990                           enable native compilation with code coverage
1991                           data[disabled]
1992   --enable-dtrace[=yes/no/auto]
1993                           enable dtrace. Default is auto, where dtrace is
1994                           enabled if all dependencies are present.
1995   --disable-hotspot-gtest Disables building of the Hotspot unit tests
1996   --disable-freetype-bundling
1997                           disable bundling of the freetype library with the
1998                           build result [enabled on Windows or when using
1999                           --with-freetype, disabled otherwise]
2000   --enable-jtreg-failure-handler
2001                           forces build of the jtreg failure handler to be
2002                           enabled, missing dependencies become fatal errors.
2003                           Default is auto, where the failure handler is built
2004                           if all dependencies are present and otherwise just
2005                           disabled.
2006   --disable-generate-classlist
2007                           forces enabling or disabling of the generation of a
2008                           CDS classlist at build time. Default is to generate
2009                           it when either the server or client JVMs are built.
2010   --enable-sjavac         use sjavac to do fast incremental compiles
2011                           [disabled]
2012   --disable-javac-server  disable javac server [enabled]
2013   --enable-icecc          enable distribted compilation of native code using
2014                           icecc/icecream [disabled]
2015   --disable-precompiled-headers
2016                           disable using precompiled headers when compiling C++
2017                           [enabled]
2018   --enable-ccache         enable using ccache to speed up recompilations
2019                           [disabled]
2020 
2021 Optional Packages:
2022   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2023   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2024   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2025                           support it), e.g. --with-target-bits=32 [guessed]
2026   --with-custom-make-dir  Deprecated. Option is kept for backwards
2027                           compatibility and is ignored
2028   --with-jdk-variant      JDK variant to build (normal) [normal]
2029   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2030                           optimized) [release]
2031   --with-jvm-variants     JVM variants (separated by commas) to build
2032                           (server,client,minimal,core,zero,zeroshark,custom)
2033                           [server]
2034   --with-devkit           use this devkit for compilers, tools and resources
2035   --with-sys-root         alias for --with-sysroot for backwards compatability
2036   --with-sysroot          use this directory as sysroot
2037   --with-tools-dir        alias for --with-toolchain-path for backwards
2038                           compatibility
2039   --with-toolchain-path   prepend these directories when searching for
2040                           toolchain binaries (compilers etc)
2041   --with-extra-path       prepend these directories to the default path
2042   --with-sdk-name         use the platform SDK of the given name. [macosx]
2043   --with-conf-name        use this as the name of the configuration [generated
2044                           from important configuration options]
2045   --with-output-sync      set make output sync type if supported by make.
2046                           [recurse]
2047   --with-default-make-target
2048                           set the default make target [exploded-image]
2049   --with-cacerts-file     specify alternative cacerts file
2050   --with-copyright-year   Set copyright year value for build [current year]
2051   --with-milestone        Deprecated. Option is kept for backwards
2052                           compatibility and is ignored
2053   --with-update-version   Deprecated. Option is kept for backwards
2054                           compatibility and is ignored
2055   --with-user-release-suffix
2056                           Deprecated. Option is kept for backwards
2057                           compatibility and is ignored
2058   --with-build-number     Deprecated. Option is kept for backwards
2059                           compatibility and is ignored
2060   --with-version-string   Set version string [calculated]
2061   --with-version-pre      Set the base part of the version 'PRE' field
2062                           (pre-release identifier) ['internal']
2063   --with-version-opt      Set version 'OPT' field (build metadata)
2064                           [<timestamp>.<user>.<dirname>]
2065   --with-version-build    Set version 'BUILD' field (build number) [not
2066                           specified]
2067   --with-version-major    Set version 'MAJOR' field (first number) [current
2068                           source value]
2069   --with-version-minor    Set version 'MINOR' field (second number) [current
2070                           source value]
2071   --with-version-security Set version 'SECURITY' field (third number) [current
2072                           source value]
2073   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2074                           specified]
2075   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2076   --with-build-jdk        path to JDK of same version as is being built[the
2077                           newly built JDK]
2078   --with-add-source-root  Deprecated. Option is kept for backwards
2079                           compatibility and is ignored
2080   --with-override-source-root
2081                           Deprecated. Option is kept for backwards
2082                           compatibility and is ignored
2083   --with-adds-and-overrides
2084                           Deprecated. Option is kept for backwards
2085                           compatibility and is ignored
2086   --with-override-langtools
2087                           Deprecated. Option is kept for backwards
2088                           compatibility and is ignored
2089   --with-override-corba   Deprecated. Option is kept for backwards
2090                           compatibility and is ignored
2091   --with-override-jaxp    Deprecated. Option is kept for backwards
2092                           compatibility and is ignored
2093   --with-override-jaxws   Deprecated. Option is kept for backwards
2094                           compatibility and is ignored
2095   --with-override-hotspot Deprecated. Option is kept for backwards
2096                           compatibility and is ignored
2097   --with-override-nashorn Deprecated. Option is kept for backwards
2098                           compatibility and is ignored
2099   --with-override-jdk     Deprecated. Option is kept for backwards
2100                           compatibility and is ignored
2101   --with-import-hotspot   import hotspot binaries from this jdk image or
2102                           hotspot build dist dir instead of building from
2103                           source
2104   --with-import-modules   import a set of prebuilt modules either as a zip
2105                           file or an exploded directory
2106   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2107                           to show possible values [platform dependent]
2108   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2109   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2110   --with-extra-ldflags    extra flags to be used when linking jdk
2111   --with-toolchain-version
2112                           the version of the toolchain to look for, use
2113                           '--help' to show possible values [platform
2114                           dependent]
2115   --with-build-devkit     Devkit to use for the build platform toolchain
2116   --with-jtreg            Regression Test Harness [probed]
2117   --with-native-debug-symbols
2118                           set the native debug symbol configuration (none,
2119                           internal, external, zipped) [varying]
2120   --with-jvm-features     additional JVM features to enable (separated by
2121                           comma), use '--help' to show possible values [none]
2122   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2123                           compatibility and is ignored
2124   --with-stdc++lib=<static>,<dynamic>,<default>
2125                           force linking of the C++ runtime on Linux to either
2126                           static or dynamic, default is static with dynamic as
2127                           fallback
2128   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2129                           (Windows only) [probed]
2130   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2131                           (Windows only) [probed]
2132   --with-x                use the X Window System
2133   --with-cups             specify prefix directory for the cups package
2134                           (expecting the headers under PATH/include)
2135   --with-cups-include     specify directory for the cups include files
2136   --with-freetype         specify prefix directory for the freetype package
2137                           (expecting the libraries under PATH/lib and the
2138                           headers under PATH/include)
2139   --with-freetype-include specify directory for the freetype include files
2140   --with-freetype-lib     specify directory for the freetype library
2141   --with-freetype-src     specify directory with freetype sources to
2142                           automatically build the library (experimental,
2143                           Windows-only)
2144   --with-alsa             specify prefix directory for the alsa package
2145                           (expecting the libraries under PATH/lib and the
2146                           headers under PATH/include)
2147   --with-alsa-include     specify directory for the alsa include files
2148   --with-alsa-lib         specify directory for the alsa library
2149   --with-libffi           specify prefix directory for the libffi package
2150                           (expecting the libraries under PATH/lib and the
2151                           headers under PATH/include)
2152   --with-libffi-include   specify directory for the libffi include files
2153   --with-libffi-lib       specify directory for the libffi library
2154   --with-libjpeg          use libjpeg from build system or OpenJDK source
2155                           (system, bundled) [bundled]
2156   --with-giflib           use giflib from build system or OpenJDK source
2157                           (system, bundled) [bundled]
2158   --with-libpng           use libpng from build system or OpenJDK source
2159                           (system, bundled) [bundled]
2160   --with-zlib             use zlib from build system or OpenJDK source
2161                           (system, bundled) [bundled]
2162   --with-lcms             use lcms2 from build system or OpenJDK source
2163                           (system, bundled) [bundled]
2164   --with-dxsdk            Deprecated. Option is kept for backwards
2165                           compatibility and is ignored
2166   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2167                           compatibility and is ignored
2168   --with-dxsdk-include    Deprecated. Option is kept for backwards
2169                           compatibility and is ignored
2170   --with-num-cores        number of cores in the build system, e.g.
2171                           --with-num-cores=8 [probed]
2172   --with-memory-size      memory (in MB) available in the build system, e.g.
2173                           --with-memory-size=1024 [probed]
2174   --with-jobs             number of parallel jobs to let make run [calculated
2175                           based on cores and memory]
2176   --with-test-jobs        number of parallel tests jobs to run [based on build
2177                           jobs]
2178   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2179                           invocations of boot JDK, overriding the default
2180                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2181                           -enableassertions"
2182   --with-sjavac-server-java
2183                           use this java binary for running the sjavac
2184                           background server [Boot JDK java]
2185   --with-ccache-dir       where to store ccache files [~/.ccache]
2186 
2187 Some influential environment variables:
2188   BASENAME    Override default value for BASENAME
2189   BASH        Override default value for BASH
2190   CAT         Override default value for CAT
2191   CHMOD       Override default value for CHMOD
2192   CMP         Override default value for CMP
2193   COMM        Override default value for COMM
2194   CP          Override default value for CP
2195   CUT         Override default value for CUT
2196   DATE        Override default value for DATE
2197   DIFF        Override default value for DIFF
2198   DIRNAME     Override default value for DIRNAME
2199   ECHO        Override default value for ECHO
2200   EXPR        Override default value for EXPR
2201   FILE        Override default value for FILE
2202   FIND        Override default value for FIND
2203   HEAD        Override default value for HEAD
2204   GUNZIP      Override default value for GUNZIP
2205   GZIP        Override default value for GZIP
2206   LN          Override default value for LN
2207   LS          Override default value for LS
2208   MKDIR       Override default value for MKDIR
2209   MKTEMP      Override default value for MKTEMP
2210   MV          Override default value for MV
2211   NAWK        Override default value for NAWK
2212   PRINTF      Override default value for PRINTF
2213   RM          Override default value for RM
2214   RMDIR       Override default value for RMDIR
2215   SH          Override default value for SH
2216   SORT        Override default value for SORT
2217   TAIL        Override default value for TAIL
2218   TAR         Override default value for TAR
2219   TEE         Override default value for TEE
2220   TOUCH       Override default value for TOUCH
2221   TR          Override default value for TR
2222   UNAME       Override default value for UNAME
2223   UNIQ        Override default value for UNIQ
2224   WC          Override default value for WC
2225   WHICH       Override default value for WHICH
2226   XARGS       Override default value for XARGS
2227   AWK         Override default value for AWK
2228   GREP        Override default value for GREP
2229   EGREP       Override default value for EGREP
2230   FGREP       Override default value for FGREP
2231   SED         Override default value for SED
2232   CYGPATH     Override default value for CYGPATH
2233   READLINK    Override default value for READLINK
2234   DF          Override default value for DF
2235   CPIO        Override default value for CPIO
2236   NICE        Override default value for NICE
2237   MAKE        Override default value for MAKE
2238   UNZIP       Override default value for UNZIP
2239   ZIPEXE      Override default value for ZIPEXE
2240   LDD         Override default value for LDD
2241   OTOOL       Override default value for OTOOL
2242   READELF     Override default value for READELF
2243   HG          Override default value for HG
2244   STAT        Override default value for STAT
2245   TIME        Override default value for TIME
2246   DTRACE      Override default value for DTRACE
2247   PATCH       Override default value for PATCH
2248   DSYMUTIL    Override default value for DSYMUTIL
2249   XATTR       Override default value for XATTR
2250   CODESIGN    Override default value for CODESIGN
2251   SETFILE     Override default value for SETFILE
2252   PKG_CONFIG  path to pkg-config utility
2253   JAVA        Override default value for JAVA
2254   JAVAC       Override default value for JAVAC
2255   JAVAH       Override default value for JAVAH
2256   JAR         Override default value for JAR
2257   JARSIGNER   Override default value for JARSIGNER
2258   CC          C compiler command
2259   CFLAGS      C compiler flags
2260   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2261               nonstandard directory <lib dir>
2262   LIBS        libraries to pass to the linker, e.g. -l<library>
2263   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2264               you have headers in a nonstandard directory <include dir>
2265   CXX         C++ compiler command
2266   CXXFLAGS    C++ compiler flags
2267   CPP         C preprocessor
2268   CXXCPP      C++ preprocessor
2269   AS          Override default value for AS
2270   AR          Override default value for AR
2271   LIPO        Override default value for LIPO
2272   STRIP       Override default value for STRIP
2273   NM          Override default value for NM
2274   GNM         Override default value for GNM
2275   OBJCOPY     Override default value for OBJCOPY
2276   OBJDUMP     Override default value for OBJDUMP
2277   BUILD_CC    Override default value for BUILD_CC
2278   BUILD_CXX   Override default value for BUILD_CXX
2279   BUILD_NM    Override default value for BUILD_NM
2280   BUILD_AR    Override default value for BUILD_AR
2281   BUILD_OBJCOPY
2282               Override default value for BUILD_OBJCOPY
2283   BUILD_STRIP Override default value for BUILD_STRIP
2284   JTREGEXE    Override default value for JTREGEXE
2285   XMKMF       Path to xmkmf, Makefile generator for X Window System
2286   FREETYPE_CFLAGS
2287               C compiler flags for FREETYPE, overriding pkg-config
2288   FREETYPE_LIBS
2289               linker flags for FREETYPE, overriding pkg-config
2290   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2291   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2292   LIBFFI_CFLAGS
2293               C compiler flags for LIBFFI, overriding pkg-config
2294   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2295   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2296   PNG_LIBS    linker flags for PNG, overriding pkg-config
2297   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2298   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2299   ICECC_CMD   Override default value for ICECC_CMD
2300   ICECC_CREATE_ENV
2301               Override default value for ICECC_CREATE_ENV
2302   ICECC_WRAPPER
2303               Override default value for ICECC_WRAPPER
2304   CCACHE      Override default value for CCACHE
2305 
2306 Use these variables to override the choices made by `configure' or to help
2307 it to find libraries and programs with nonstandard names/locations.
2308 
2309 Report bugs to <build-dev@openjdk.java.net>.
2310 OpenJDK home page: <http://openjdk.java.net>.
2311 _ACEOF
2312 ac_status=$?
2313 fi
2314 
2315 if test "$ac_init_help" = "recursive"; then
2316   # If there are subdirs, report their specific --help.
2317   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2318     test -d "$ac_dir" ||
2319       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2320       continue
2321     ac_builddir=.
2322 
2323 case "$ac_dir" in
2324 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2325 *)
2326   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2327   # A ".." for each directory in $ac_dir_suffix.
2328   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2329   case $ac_top_builddir_sub in
2330   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2331   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2332   esac ;;
2333 esac
2334 ac_abs_top_builddir=$ac_pwd
2335 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2336 # for backward compatibility:
2337 ac_top_builddir=$ac_top_build_prefix
2338 
2339 case $srcdir in
2340   .)  # We are building in place.
2341     ac_srcdir=.
2342     ac_top_srcdir=$ac_top_builddir_sub
2343     ac_abs_top_srcdir=$ac_pwd ;;
2344   [\\/]* | ?:[\\/]* )  # Absolute name.
2345     ac_srcdir=$srcdir$ac_dir_suffix;
2346     ac_top_srcdir=$srcdir
2347     ac_abs_top_srcdir=$srcdir ;;
2348   *) # Relative name.
2349     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2350     ac_top_srcdir=$ac_top_build_prefix$srcdir
2351     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2352 esac
2353 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2354 
2355     cd "$ac_dir" || { ac_status=$?; continue; }
2356     # Check for guested configure.
2357     if test -f "$ac_srcdir/configure.gnu"; then
2358       echo &&
2359       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2360     elif test -f "$ac_srcdir/configure"; then
2361       echo &&
2362       $SHELL "$ac_srcdir/configure" --help=recursive
2363     else
2364       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2365     fi || ac_status=$?
2366     cd "$ac_pwd" || { ac_status=$?; break; }
2367   done
2368 fi
2369 
2370 test -n "$ac_init_help" && exit $ac_status
2371 if $ac_init_version; then
2372   cat <<\_ACEOF
2373 OpenJDK configure jdk9
2374 generated by GNU Autoconf 2.69
2375 
2376 Copyright (C) 2012 Free Software Foundation, Inc.
2377 This configure script is free software; the Free Software Foundation
2378 gives unlimited permission to copy, distribute and modify it.
2379 _ACEOF
2380   exit
2381 fi
2382 
2383 ## ------------------------ ##
2384 ## Autoconf initialization. ##
2385 ## ------------------------ ##
2386 
2387 # ac_fn_c_try_compile LINENO
2388 # --------------------------
2389 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2390 ac_fn_c_try_compile ()
2391 {
2392   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393   rm -f conftest.$ac_objext
2394   if { { ac_try="$ac_compile"
2395 case "(($ac_try" in
2396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397   *) ac_try_echo=$ac_try;;
2398 esac
2399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2400 $as_echo "$ac_try_echo"; } >&5
2401   (eval "$ac_compile") 2>conftest.err
2402   ac_status=$?
2403   if test -s conftest.err; then
2404     grep -v '^ *+' conftest.err >conftest.er1
2405     cat conftest.er1 >&5
2406     mv -f conftest.er1 conftest.err
2407   fi
2408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2409   test $ac_status = 0; } && {
2410          test -z "$ac_c_werror_flag" ||
2411          test ! -s conftest.err
2412        } && test -s conftest.$ac_objext; then :
2413   ac_retval=0
2414 else
2415   $as_echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417 
2418         ac_retval=1
2419 fi
2420   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421   as_fn_set_status $ac_retval
2422 
2423 } # ac_fn_c_try_compile
2424 
2425 # ac_fn_cxx_try_compile LINENO
2426 # ----------------------------
2427 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2428 ac_fn_cxx_try_compile ()
2429 {
2430   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431   rm -f conftest.$ac_objext
2432   if { { ac_try="$ac_compile"
2433 case "(($ac_try" in
2434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435   *) ac_try_echo=$ac_try;;
2436 esac
2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2438 $as_echo "$ac_try_echo"; } >&5
2439   (eval "$ac_compile") 2>conftest.err
2440   ac_status=$?
2441   if test -s conftest.err; then
2442     grep -v '^ *+' conftest.err >conftest.er1
2443     cat conftest.er1 >&5
2444     mv -f conftest.er1 conftest.err
2445   fi
2446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447   test $ac_status = 0; } && {
2448          test -z "$ac_cxx_werror_flag" ||
2449          test ! -s conftest.err
2450        } && test -s conftest.$ac_objext; then :
2451   ac_retval=0
2452 else
2453   $as_echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455 
2456         ac_retval=1
2457 fi
2458   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459   as_fn_set_status $ac_retval
2460 
2461 } # ac_fn_cxx_try_compile
2462 
2463 # ac_fn_c_try_cpp LINENO
2464 # ----------------------
2465 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2466 ac_fn_c_try_cpp ()
2467 {
2468   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469   if { { ac_try="$ac_cpp conftest.$ac_ext"
2470 case "(($ac_try" in
2471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472   *) ac_try_echo=$ac_try;;
2473 esac
2474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2475 $as_echo "$ac_try_echo"; } >&5
2476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2477   ac_status=$?
2478   if test -s conftest.err; then
2479     grep -v '^ *+' conftest.err >conftest.er1
2480     cat conftest.er1 >&5
2481     mv -f conftest.er1 conftest.err
2482   fi
2483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484   test $ac_status = 0; } > conftest.i && {
2485          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2486          test ! -s conftest.err
2487        }; then :
2488   ac_retval=0
2489 else
2490   $as_echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492 
2493     ac_retval=1
2494 fi
2495   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2496   as_fn_set_status $ac_retval
2497 
2498 } # ac_fn_c_try_cpp
2499 
2500 # ac_fn_cxx_try_cpp LINENO
2501 # ------------------------
2502 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2503 ac_fn_cxx_try_cpp ()
2504 {
2505   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506   if { { ac_try="$ac_cpp conftest.$ac_ext"
2507 case "(($ac_try" in
2508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509   *) ac_try_echo=$ac_try;;
2510 esac
2511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2512 $as_echo "$ac_try_echo"; } >&5
2513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2514   ac_status=$?
2515   if test -s conftest.err; then
2516     grep -v '^ *+' conftest.err >conftest.er1
2517     cat conftest.er1 >&5
2518     mv -f conftest.er1 conftest.err
2519   fi
2520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521   test $ac_status = 0; } > conftest.i && {
2522          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2523          test ! -s conftest.err
2524        }; then :
2525   ac_retval=0
2526 else
2527   $as_echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529 
2530     ac_retval=1
2531 fi
2532   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533   as_fn_set_status $ac_retval
2534 
2535 } # ac_fn_cxx_try_cpp
2536 
2537 # ac_fn_c_try_link LINENO
2538 # -----------------------
2539 # Try to link conftest.$ac_ext, and return whether this succeeded.
2540 ac_fn_c_try_link ()
2541 {
2542   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543   rm -f conftest.$ac_objext conftest$ac_exeext
2544   if { { ac_try="$ac_link"
2545 case "(($ac_try" in
2546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547   *) ac_try_echo=$ac_try;;
2548 esac
2549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2550 $as_echo "$ac_try_echo"; } >&5
2551   (eval "$ac_link") 2>conftest.err
2552   ac_status=$?
2553   if test -s conftest.err; then
2554     grep -v '^ *+' conftest.err >conftest.er1
2555     cat conftest.er1 >&5
2556     mv -f conftest.er1 conftest.err
2557   fi
2558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2559   test $ac_status = 0; } && {
2560          test -z "$ac_c_werror_flag" ||
2561          test ! -s conftest.err
2562        } && test -s conftest$ac_exeext && {
2563          test "$cross_compiling" = yes ||
2564          test -x conftest$ac_exeext
2565        }; then :
2566   ac_retval=0
2567 else
2568   $as_echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570 
2571         ac_retval=1
2572 fi
2573   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2574   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2575   # interfere with the next link command; also delete a directory that is
2576   # left behind by Apple's compiler.  We do this before executing the actions.
2577   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2578   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2579   as_fn_set_status $ac_retval
2580 
2581 } # ac_fn_c_try_link
2582 
2583 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2584 # ---------------------------------------------------------
2585 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2586 # the include files in INCLUDES and setting the cache variable VAR
2587 # accordingly.
2588 ac_fn_cxx_check_header_mongrel ()
2589 {
2590   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2591   if eval \${$3+:} false; then :
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2593 $as_echo_n "checking for $2... " >&6; }
2594 if eval \${$3+:} false; then :
2595   $as_echo_n "(cached) " >&6
2596 fi
2597 eval ac_res=\$$3
2598                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2599 $as_echo "$ac_res" >&6; }
2600 else
2601   # Is the header compilable?
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2603 $as_echo_n "checking $2 usability... " >&6; }
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h.  */
2606 $4
2607 #include <$2>
2608 _ACEOF
2609 if ac_fn_cxx_try_compile "$LINENO"; then :
2610   ac_header_compiler=yes
2611 else
2612   ac_header_compiler=no
2613 fi
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2616 $as_echo "$ac_header_compiler" >&6; }
2617 
2618 # Is the header present?
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2620 $as_echo_n "checking $2 presence... " >&6; }
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h.  */
2623 #include <$2>
2624 _ACEOF
2625 if ac_fn_cxx_try_cpp "$LINENO"; then :
2626   ac_header_preproc=yes
2627 else
2628   ac_header_preproc=no
2629 fi
2630 rm -f conftest.err conftest.i conftest.$ac_ext
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2632 $as_echo "$ac_header_preproc" >&6; }
2633 
2634 # So?  What about this header?
2635 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2636   yes:no: )
2637     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2638 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2639     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2640 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2641     ;;
2642   no:yes:* )
2643     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2644 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2645     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2646 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2647     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2648 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2649     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2650 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2651     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2652 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2653 ( $as_echo "## ----------------------------------------- ##
2654 ## Report this to build-dev@openjdk.java.net ##
2655 ## ----------------------------------------- ##"
2656      ) | sed "s/^/$as_me: WARNING:     /" >&2
2657     ;;
2658 esac
2659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2660 $as_echo_n "checking for $2... " >&6; }
2661 if eval \${$3+:} false; then :
2662   $as_echo_n "(cached) " >&6
2663 else
2664   eval "$3=\$ac_header_compiler"
2665 fi
2666 eval ac_res=\$$3
2667                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668 $as_echo "$ac_res" >&6; }
2669 fi
2670   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671 
2672 } # ac_fn_cxx_check_header_mongrel
2673 
2674 # ac_fn_cxx_try_run LINENO
2675 # ------------------------
2676 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2677 # that executables *can* be run.
2678 ac_fn_cxx_try_run ()
2679 {
2680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681   if { { ac_try="$ac_link"
2682 case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687 $as_echo "$ac_try_echo"; } >&5
2688   (eval "$ac_link") 2>&5
2689   ac_status=$?
2690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2692   { { case "(($ac_try" in
2693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694   *) ac_try_echo=$ac_try;;
2695 esac
2696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2697 $as_echo "$ac_try_echo"; } >&5
2698   (eval "$ac_try") 2>&5
2699   ac_status=$?
2700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2701   test $ac_status = 0; }; }; then :
2702   ac_retval=0
2703 else
2704   $as_echo "$as_me: program exited with status $ac_status" >&5
2705        $as_echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2707 
2708        ac_retval=$ac_status
2709 fi
2710   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2711   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2712   as_fn_set_status $ac_retval
2713 
2714 } # ac_fn_cxx_try_run
2715 
2716 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2717 # ---------------------------------------------------------
2718 # Tests whether HEADER exists and can be compiled using the include files in
2719 # INCLUDES, setting the cache variable VAR accordingly.
2720 ac_fn_cxx_check_header_compile ()
2721 {
2722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2724 $as_echo_n "checking for $2... " >&6; }
2725 if eval \${$3+:} false; then :
2726   $as_echo_n "(cached) " >&6
2727 else
2728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h.  */
2730 $4
2731 #include <$2>
2732 _ACEOF
2733 if ac_fn_cxx_try_compile "$LINENO"; then :
2734   eval "$3=yes"
2735 else
2736   eval "$3=no"
2737 fi
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 fi
2740 eval ac_res=\$$3
2741                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2744 
2745 } # ac_fn_cxx_check_header_compile
2746 
2747 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2748 # ----------------------------------------------
2749 # Tries to find the compile-time value of EXPR in a program that includes
2750 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2751 # computed
2752 ac_fn_cxx_compute_int ()
2753 {
2754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755   if test "$cross_compiling" = yes; then
2756     # Depending upon the size, compute the lo and hi bounds.
2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h.  */
2759 $4
2760 int
2761 main ()
2762 {
2763 static int test_array [1 - 2 * !(($2) >= 0)];
2764 test_array [0] = 0;
2765 return test_array [0];
2766 
2767   ;
2768   return 0;
2769 }
2770 _ACEOF
2771 if ac_fn_cxx_try_compile "$LINENO"; then :
2772   ac_lo=0 ac_mid=0
2773   while :; do
2774     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h.  */
2776 $4
2777 int
2778 main ()
2779 {
2780 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2781 test_array [0] = 0;
2782 return test_array [0];
2783 
2784   ;
2785   return 0;
2786 }
2787 _ACEOF
2788 if ac_fn_cxx_try_compile "$LINENO"; then :
2789   ac_hi=$ac_mid; break
2790 else
2791   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2792                         if test $ac_lo -le $ac_mid; then
2793                           ac_lo= ac_hi=
2794                           break
2795                         fi
2796                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2797 fi
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799   done
2800 else
2801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h.  */
2803 $4
2804 int
2805 main ()
2806 {
2807 static int test_array [1 - 2 * !(($2) < 0)];
2808 test_array [0] = 0;
2809 return test_array [0];
2810 
2811   ;
2812   return 0;
2813 }
2814 _ACEOF
2815 if ac_fn_cxx_try_compile "$LINENO"; then :
2816   ac_hi=-1 ac_mid=-1
2817   while :; do
2818     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h.  */
2820 $4
2821 int
2822 main ()
2823 {
2824 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2825 test_array [0] = 0;
2826 return test_array [0];
2827 
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 if ac_fn_cxx_try_compile "$LINENO"; then :
2833   ac_lo=$ac_mid; break
2834 else
2835   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2836                         if test $ac_mid -le $ac_hi; then
2837                           ac_lo= ac_hi=
2838                           break
2839                         fi
2840                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2841 fi
2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843   done
2844 else
2845   ac_lo= ac_hi=
2846 fi
2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848 fi
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850 # Binary search between lo and hi bounds.
2851 while test "x$ac_lo" != "x$ac_hi"; do
2852   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854 /* end confdefs.h.  */
2855 $4
2856 int
2857 main ()
2858 {
2859 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2860 test_array [0] = 0;
2861 return test_array [0];
2862 
2863   ;
2864   return 0;
2865 }
2866 _ACEOF
2867 if ac_fn_cxx_try_compile "$LINENO"; then :
2868   ac_hi=$ac_mid
2869 else
2870   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2871 fi
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 done
2874 case $ac_lo in #((
2875 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2876 '') ac_retval=1 ;;
2877 esac
2878   else
2879     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880 /* end confdefs.h.  */
2881 $4
2882 static long int longval () { return $2; }
2883 static unsigned long int ulongval () { return $2; }
2884 #include <stdio.h>
2885 #include <stdlib.h>
2886 int
2887 main ()
2888 {
2889 
2890   FILE *f = fopen ("conftest.val", "w");
2891   if (! f)
2892     return 1;
2893   if (($2) < 0)
2894     {
2895       long int i = longval ();
2896       if (i != ($2))
2897         return 1;
2898       fprintf (f, "%ld", i);
2899     }
2900   else
2901     {
2902       unsigned long int i = ulongval ();
2903       if (i != ($2))
2904         return 1;
2905       fprintf (f, "%lu", i);
2906     }
2907   /* Do not output a trailing newline, as this causes \r\n confusion
2908      on some platforms.  */
2909   return ferror (f) || fclose (f) != 0;
2910 
2911   ;
2912   return 0;
2913 }
2914 _ACEOF
2915 if ac_fn_cxx_try_run "$LINENO"; then :
2916   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2917 else
2918   ac_retval=1
2919 fi
2920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2921   conftest.$ac_objext conftest.beam conftest.$ac_ext
2922 rm -f conftest.val
2923 
2924   fi
2925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2926   as_fn_set_status $ac_retval
2927 
2928 } # ac_fn_cxx_compute_int
2929 
2930 # ac_fn_cxx_try_link LINENO
2931 # -------------------------
2932 # Try to link conftest.$ac_ext, and return whether this succeeded.
2933 ac_fn_cxx_try_link ()
2934 {
2935   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2936   rm -f conftest.$ac_objext conftest$ac_exeext
2937   if { { ac_try="$ac_link"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944   (eval "$ac_link") 2>conftest.err
2945   ac_status=$?
2946   if test -s conftest.err; then
2947     grep -v '^ *+' conftest.err >conftest.er1
2948     cat conftest.er1 >&5
2949     mv -f conftest.er1 conftest.err
2950   fi
2951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952   test $ac_status = 0; } && {
2953          test -z "$ac_cxx_werror_flag" ||
2954          test ! -s conftest.err
2955        } && test -s conftest$ac_exeext && {
2956          test "$cross_compiling" = yes ||
2957          test -x conftest$ac_exeext
2958        }; then :
2959   ac_retval=0
2960 else
2961   $as_echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963 
2964         ac_retval=1
2965 fi
2966   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2967   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2968   # interfere with the next link command; also delete a directory that is
2969   # left behind by Apple's compiler.  We do this before executing the actions.
2970   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2971   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2972   as_fn_set_status $ac_retval
2973 
2974 } # ac_fn_cxx_try_link
2975 
2976 # ac_fn_cxx_check_func LINENO FUNC VAR
2977 # ------------------------------------
2978 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2979 ac_fn_cxx_check_func ()
2980 {
2981   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2983 $as_echo_n "checking for $2... " >&6; }
2984 if eval \${$3+:} false; then :
2985   $as_echo_n "(cached) " >&6
2986 else
2987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h.  */
2989 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2991 #define $2 innocuous_$2
2992 
2993 /* System header to define __stub macros and hopefully few prototypes,
2994     which can conflict with char $2 (); below.
2995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2996     <limits.h> exists even on freestanding compilers.  */
2997 
2998 #ifdef __STDC__
2999 # include <limits.h>
3000 #else
3001 # include <assert.h>
3002 #endif
3003 
3004 #undef $2
3005 
3006 /* Override any GCC internal prototype to avoid an error.
3007    Use char because int might match the return type of a GCC
3008    builtin and then its argument prototype would still apply.  */
3009 #ifdef __cplusplus
3010 extern "C"
3011 #endif
3012 char $2 ();
3013 /* The GNU C library defines this for functions which it implements
3014     to always fail with ENOSYS.  Some functions are actually named
3015     something starting with __ and the normal name is an alias.  */
3016 #if defined __stub_$2 || defined __stub___$2
3017 choke me
3018 #endif
3019 
3020 int
3021 main ()
3022 {
3023 return $2 ();
3024   ;
3025   return 0;
3026 }
3027 _ACEOF
3028 if ac_fn_cxx_try_link "$LINENO"; then :
3029   eval "$3=yes"
3030 else
3031   eval "$3=no"
3032 fi
3033 rm -f core conftest.err conftest.$ac_objext \
3034     conftest$ac_exeext conftest.$ac_ext
3035 fi
3036 eval ac_res=\$$3
3037                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3038 $as_echo "$ac_res" >&6; }
3039   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3040 
3041 } # ac_fn_cxx_check_func
3042 
3043 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3044 # -------------------------------------------------------
3045 # Tests whether HEADER exists and can be compiled using the include files in
3046 # INCLUDES, setting the cache variable VAR accordingly.
3047 ac_fn_c_check_header_compile ()
3048 {
3049   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3051 $as_echo_n "checking for $2... " >&6; }
3052 if eval \${$3+:} false; then :
3053   $as_echo_n "(cached) " >&6
3054 else
3055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056 /* end confdefs.h.  */
3057 $4
3058 #include <$2>
3059 _ACEOF
3060 if ac_fn_c_try_compile "$LINENO"; then :
3061   eval "$3=yes"
3062 else
3063   eval "$3=no"
3064 fi
3065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066 fi
3067 eval ac_res=\$$3
3068                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3069 $as_echo "$ac_res" >&6; }
3070   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3071 
3072 } # ac_fn_c_check_header_compile
3073 cat >config.log <<_ACEOF
3074 This file contains any messages produced by compilers while
3075 running configure, to aid debugging if configure makes a mistake.
3076 
3077 It was created by OpenJDK $as_me jdk9, which was
3078 generated by GNU Autoconf 2.69.  Invocation command line was
3079 
3080   $ $0 $@
3081 
3082 _ACEOF
3083 exec 5>>config.log
3084 {
3085 cat <<_ASUNAME
3086 ## --------- ##
3087 ## Platform. ##
3088 ## --------- ##
3089 
3090 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3091 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3092 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3093 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3094 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3095 
3096 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3097 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3098 
3099 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3100 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3101 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3102 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3103 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3104 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3105 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3106 
3107 _ASUNAME
3108 
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112   IFS=$as_save_IFS
3113   test -z "$as_dir" && as_dir=.
3114     $as_echo "PATH: $as_dir"
3115   done
3116 IFS=$as_save_IFS
3117 
3118 } >&5
3119 
3120 cat >&5 <<_ACEOF
3121 
3122 
3123 ## ----------- ##
3124 ## Core tests. ##
3125 ## ----------- ##
3126 
3127 _ACEOF
3128 
3129 
3130 # Keep a trace of the command line.
3131 # Strip out --no-create and --no-recursion so they do not pile up.
3132 # Strip out --silent because we don't want to record it for future runs.
3133 # Also quote any args containing shell meta-characters.
3134 # Make two passes to allow for proper duplicate-argument suppression.
3135 ac_configure_args=
3136 ac_configure_args0=
3137 ac_configure_args1=
3138 ac_must_keep_next=false
3139 for ac_pass in 1 2
3140 do
3141   for ac_arg
3142   do
3143     case $ac_arg in
3144     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3145     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3146     | -silent | --silent | --silen | --sile | --sil)
3147       continue ;;
3148     *\'*)
3149       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3150     esac
3151     case $ac_pass in
3152     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3153     2)
3154       as_fn_append ac_configure_args1 " '$ac_arg'"
3155       if test $ac_must_keep_next = true; then
3156         ac_must_keep_next=false # Got value, back to normal.
3157       else
3158         case $ac_arg in
3159           *=* | --config-cache | -C | -disable-* | --disable-* \
3160           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3161           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3162           | -with-* | --with-* | -without-* | --without-* | --x)
3163             case "$ac_configure_args0 " in
3164               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3165             esac
3166             ;;
3167           -* ) ac_must_keep_next=true ;;
3168         esac
3169       fi
3170       as_fn_append ac_configure_args " '$ac_arg'"
3171       ;;
3172     esac
3173   done
3174 done
3175 { ac_configure_args0=; unset ac_configure_args0;}
3176 { ac_configure_args1=; unset ac_configure_args1;}
3177 
3178 # When interrupted or exit'd, cleanup temporary files, and complete
3179 # config.log.  We remove comments because anyway the quotes in there
3180 # would cause problems or look ugly.
3181 # WARNING: Use '\'' to represent an apostrophe within the trap.
3182 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3183 trap 'exit_status=$?
3184   # Save into config.log some information that might help in debugging.
3185   {
3186     echo
3187 
3188     $as_echo "## ---------------- ##
3189 ## Cache variables. ##
3190 ## ---------------- ##"
3191     echo
3192     # The following way of writing the cache mishandles newlines in values,
3193 (
3194   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3195     eval ac_val=\$$ac_var
3196     case $ac_val in #(
3197     *${as_nl}*)
3198       case $ac_var in #(
3199       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3201       esac
3202       case $ac_var in #(
3203       _ | IFS | as_nl) ;; #(
3204       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3205       *) { eval $ac_var=; unset $ac_var;} ;;
3206       esac ;;
3207     esac
3208   done
3209   (set) 2>&1 |
3210     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3211     *${as_nl}ac_space=\ *)
3212       sed -n \
3213         "s/'\''/'\''\\\\'\'''\''/g;
3214           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3215       ;; #(
3216     *)
3217       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3218       ;;
3219     esac |
3220     sort
3221 )
3222     echo
3223 
3224     $as_echo "## ----------------- ##
3225 ## Output variables. ##
3226 ## ----------------- ##"
3227     echo
3228     for ac_var in $ac_subst_vars
3229     do
3230       eval ac_val=\$$ac_var
3231       case $ac_val in
3232       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3233       esac
3234       $as_echo "$ac_var='\''$ac_val'\''"
3235     done | sort
3236     echo
3237 
3238     if test -n "$ac_subst_files"; then
3239       $as_echo "## ------------------- ##
3240 ## File substitutions. ##
3241 ## ------------------- ##"
3242       echo
3243       for ac_var in $ac_subst_files
3244       do
3245         eval ac_val=\$$ac_var
3246         case $ac_val in
3247         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3248         esac
3249         $as_echo "$ac_var='\''$ac_val'\''"
3250       done | sort
3251       echo
3252     fi
3253 
3254     if test -s confdefs.h; then
3255       $as_echo "## ----------- ##
3256 ## confdefs.h. ##
3257 ## ----------- ##"
3258       echo
3259       cat confdefs.h
3260       echo
3261     fi
3262     test "$ac_signal" != 0 &&
3263       $as_echo "$as_me: caught signal $ac_signal"
3264     $as_echo "$as_me: exit $exit_status"
3265   } >&5
3266   rm -f core *.core core.conftest.* &&
3267     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3268     exit $exit_status
3269 ' 0
3270 for ac_signal in 1 2 13 15; do
3271   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3272 done
3273 ac_signal=0
3274 
3275 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3276 rm -f -r conftest* confdefs.h
3277 
3278 $as_echo "/* confdefs.h */" > confdefs.h
3279 
3280 # Predefined preprocessor variables.
3281 
3282 cat >>confdefs.h <<_ACEOF
3283 #define PACKAGE_NAME "$PACKAGE_NAME"
3284 _ACEOF
3285 
3286 cat >>confdefs.h <<_ACEOF
3287 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3288 _ACEOF
3289 
3290 cat >>confdefs.h <<_ACEOF
3291 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3292 _ACEOF
3293 
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE_STRING "$PACKAGE_STRING"
3296 _ACEOF
3297 
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3300 _ACEOF
3301 
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE_URL "$PACKAGE_URL"
3304 _ACEOF
3305 
3306 
3307 # Let the site file select an alternate cache file if it wants to.
3308 # Prefer an explicitly selected file to automatically selected ones.
3309 ac_site_file1=NONE
3310 ac_site_file2=NONE
3311 if test -n "$CONFIG_SITE"; then
3312   # We do not want a PATH search for config.site.
3313   case $CONFIG_SITE in #((
3314     -*)  ac_site_file1=./$CONFIG_SITE;;
3315     */*) ac_site_file1=$CONFIG_SITE;;
3316     *)   ac_site_file1=./$CONFIG_SITE;;
3317   esac
3318 elif test "x$prefix" != xNONE; then
3319   ac_site_file1=$prefix/share/config.site
3320   ac_site_file2=$prefix/etc/config.site
3321 else
3322   ac_site_file1=$ac_default_prefix/share/config.site
3323   ac_site_file2=$ac_default_prefix/etc/config.site
3324 fi
3325 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3326 do
3327   test "x$ac_site_file" = xNONE && continue
3328   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3329     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3330 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3331     sed 's/^/| /' "$ac_site_file" >&5
3332     . "$ac_site_file" \
3333       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error $? "failed to load site script $ac_site_file
3336 See \`config.log' for more details" "$LINENO" 5; }
3337   fi
3338 done
3339 
3340 if test -r "$cache_file"; then
3341   # Some versions of bash will fail to source /dev/null (special files
3342   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3343   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3344     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3345 $as_echo "$as_me: loading cache $cache_file" >&6;}
3346     case $cache_file in
3347       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3348       *)                      . "./$cache_file";;
3349     esac
3350   fi
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3353 $as_echo "$as_me: creating cache $cache_file" >&6;}
3354   >$cache_file
3355 fi
3356 
3357 # Check that the precious variables saved in the cache have kept the same
3358 # value.
3359 ac_cache_corrupted=false
3360 for ac_var in $ac_precious_vars; do
3361   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3362   eval ac_new_set=\$ac_env_${ac_var}_set
3363   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3364   eval ac_new_val=\$ac_env_${ac_var}_value
3365   case $ac_old_set,$ac_new_set in
3366     set,)
3367       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3369       ac_cache_corrupted=: ;;
3370     ,set)
3371       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3373       ac_cache_corrupted=: ;;
3374     ,);;
3375     *)
3376       if test "x$ac_old_val" != "x$ac_new_val"; then
3377         # differences in whitespace do not lead to failure.
3378         ac_old_val_w=`echo x $ac_old_val`
3379         ac_new_val_w=`echo x $ac_new_val`
3380         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3381           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3383           ac_cache_corrupted=:
3384         else
3385           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3387           eval $ac_var=\$ac_old_val
3388         fi
3389         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3390 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3391         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3392 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3393       fi;;
3394   esac
3395   # Pass precious variables to config.status.
3396   if test "$ac_new_set" = set; then
3397     case $ac_new_val in
3398     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3399     *) ac_arg=$ac_var=$ac_new_val ;;
3400     esac
3401     case " $ac_configure_args " in
3402       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3403       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3404     esac
3405   fi
3406 done
3407 if $ac_cache_corrupted; then
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3412   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3413 fi
3414 ## -------------------- ##
3415 ## Main body of script. ##
3416 ## -------------------- ##
3417 
3418 ac_ext=c
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 
3424 
3425 
3426 ac_aux_dir=
3427 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3428   if test -f "$ac_dir/install-sh"; then
3429     ac_aux_dir=$ac_dir
3430     ac_install_sh="$ac_aux_dir/install-sh -c"
3431     break
3432   elif test -f "$ac_dir/install.sh"; then
3433     ac_aux_dir=$ac_dir
3434     ac_install_sh="$ac_aux_dir/install.sh -c"
3435     break
3436   elif test -f "$ac_dir/shtool"; then
3437     ac_aux_dir=$ac_dir
3438     ac_install_sh="$ac_aux_dir/shtool install -c"
3439     break
3440   fi
3441 done
3442 if test -z "$ac_aux_dir"; then
3443   as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5
3444 fi
3445 
3446 # These three variables are undocumented and unsupported,
3447 # and are intended to be withdrawn in a future Autoconf release.
3448 # They can cause serious problems if a builder's source tree is in a directory
3449 # whose full name contains unusual characters.
3450 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3451 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3452 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3453 
3454 
3455 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3456 
3457 #
3458 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3459 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3460 #
3461 # This code is free software; you can redistribute it and/or modify it
3462 # under the terms of the GNU General Public License version 2 only, as
3463 # published by the Free Software Foundation.  Oracle designates this
3464 # particular file as subject to the "Classpath" exception as provided
3465 # by Oracle in the LICENSE file that accompanied this code.
3466 #
3467 # This code is distributed in the hope that it will be useful, but WITHOUT
3468 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3469 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3470 # version 2 for more details (a copy is included in the LICENSE file that
3471 # accompanied this code).
3472 #
3473 # You should have received a copy of the GNU General Public License version
3474 # 2 along with this work; if not, write to the Free Software Foundation,
3475 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3476 #
3477 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3478 # or visit www.oracle.com if you need additional information or have any
3479 # questions.
3480 #
3481 
3482 #
3483 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3484 #
3485 # This program is free software; you can redistribute it and/or modify
3486 # it under the terms of the GNU General Public License as published by
3487 # the Free Software Foundation; either version 2 of the License, or
3488 # (at your option) any later version.
3489 #
3490 # This program is distributed in the hope that it will be useful, but
3491 # WITHOUT ANY WARRANTY; without even the implied warranty of
3492 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3493 # General Public License for more details.
3494 #
3495 # You should have received a copy of the GNU General Public License
3496 # along with this program; if not, write to the Free Software
3497 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3498 #
3499 # As a special exception to the GNU General Public License, if you
3500 # distribute this file as part of a program that contains a
3501 # configuration script generated by Autoconf, you may include it under
3502 # the same distribution terms that you use for the rest of that program.
3503 
3504 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3505 # ----------------------------------
3506 # PKG_PROG_PKG_CONFIG
3507 
3508 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3509 #
3510 # Check to see whether a particular set of modules exists.  Similar
3511 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3512 #
3513 #
3514 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3515 # this or PKG_CHECK_MODULES is called, or make sure to call
3516 # PKG_CHECK_EXISTS manually
3517 # --------------------------------------------------------------
3518 
3519 
3520 
3521 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3522 # ---------------------------------------------
3523 # _PKG_CONFIG
3524 
3525 # _PKG_SHORT_ERRORS_SUPPORTED
3526 # -----------------------------
3527 # _PKG_SHORT_ERRORS_SUPPORTED
3528 
3529 
3530 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3531 # [ACTION-IF-NOT-FOUND])
3532 #
3533 #
3534 # Note that if there is a possibility the first call to
3535 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3536 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3537 #
3538 #
3539 # --------------------------------------------------------------
3540 # PKG_CHECK_MODULES
3541 
3542 
3543 # Include these first...
3544 #
3545 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3546 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3547 #
3548 # This code is free software; you can redistribute it and/or modify it
3549 # under the terms of the GNU General Public License version 2 only, as
3550 # published by the Free Software Foundation.  Oracle designates this
3551 # particular file as subject to the "Classpath" exception as provided
3552 # by Oracle in the LICENSE file that accompanied this code.
3553 #
3554 # This code is distributed in the hope that it will be useful, but WITHOUT
3555 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3556 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3557 # version 2 for more details (a copy is included in the LICENSE file that
3558 # accompanied this code).
3559 #
3560 # You should have received a copy of the GNU General Public License version
3561 # 2 along with this work; if not, write to the Free Software Foundation,
3562 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3563 #
3564 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3565 # or visit www.oracle.com if you need additional information or have any
3566 # questions.
3567 #
3568 
3569 # Create a function/macro that takes a series of named arguments. The call is
3570 # similar to AC_DEFUN, but the setup of the function looks like this:
3571 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3572 # ... do something
3573 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3574 # ])
3575 # A star (*) in front of a named argument means that it is required and it's
3576 # presence will be verified. To pass e.g. the first value as a normal indexed
3577 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3578 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3579 # "ARG_FOO".
3580 #
3581 # The generated function can be called like this:
3582 # MYFUNC(FOO: [foo-val],
3583 #     BAR: [
3584 #         $ECHO hello world
3585 #     ])
3586 # Note that the argument value must start on the same line as the argument name.
3587 #
3588 # Argument 1: Name of the function to define
3589 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3590 # Argument 3: Argument array to treat as named, typically $@
3591 # Argument 4: The main function body
3592 
3593 
3594 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3595 # If so, then append $1 to $2 \
3596 # Also set JVM_ARG_OK to true/false depending on outcome.
3597 
3598 
3599 # Appends a string to a path variable, only adding the : when needed.
3600 
3601 
3602 # Prepends a string to a path variable, only adding the : when needed.
3603 
3604 
3605 # This will make sure the given variable points to a full and proper
3606 # path. This means:
3607 # 1) There will be no spaces in the path. On unix platforms,
3608 #    spaces in the path will result in an error. On Windows,
3609 #    the path will be rewritten using short-style to be space-free.
3610 # 2) The path will be absolute, and it will be in unix-style (on
3611 #     cygwin).
3612 # $1: The name of the variable to fix
3613 
3614 
3615 # This will make sure the given variable points to a executable
3616 # with a full and proper path. This means:
3617 # 1) There will be no spaces in the path. On unix platforms,
3618 #    spaces in the path will result in an error. On Windows,
3619 #    the path will be rewritten using short-style to be space-free.
3620 # 2) The path will be absolute, and it will be in unix-style (on
3621 #     cygwin).
3622 # Any arguments given to the executable is preserved.
3623 # If the input variable does not have a directory specification, then
3624 # it need to be in the PATH.
3625 # $1: The name of the variable to fix
3626 
3627 
3628 
3629 
3630 # Register a --with argument but mark it as deprecated
3631 # $1: The name of the with argument to deprecate, not including --with-
3632 
3633 
3634 # Register a --enable argument but mark it as deprecated
3635 # $1: The name of the with argument to deprecate, not including --enable-
3636 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3637 # $3: Messages to user.
3638 
3639 
3640 
3641 
3642 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3643 # $1: variable to check
3644 
3645 
3646 # Check that there are no unprocessed overridden variables left.
3647 # If so, they are an incorrect argument and we will exit with an error.
3648 
3649 
3650 # Setup a tool for the given variable. If correctly specified by the user,
3651 # use that value, otherwise search for the tool using the supplied code snippet.
3652 # $1: variable to set
3653 # $2: code snippet to call to look for the tool
3654 # $3: code snippet to call if variable was used to find tool
3655 
3656 
3657 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3658 # $1: variable to set
3659 # $2: executable name (or list of names) to look for
3660 # $3: [path]
3661 
3662 
3663 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3664 # $1: variable to set
3665 # $2: executable name (or list of names) to look for
3666 
3667 
3668 # Like BASIC_PATH_PROGS but fails if no tool was found.
3669 # $1: variable to set
3670 # $2: executable name (or list of names) to look for
3671 # $3: [path]
3672 
3673 
3674 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3675 # $1: variable to set
3676 # $2: autoconf macro to call to look for the special tool
3677 
3678 
3679 # Setup the most fundamental tools that relies on not much else to set up,
3680 # but is used by much of the early bootstrap code.
3681 
3682 
3683 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3684 
3685 
3686 # Evaluates platform specific overrides for devkit variables.
3687 # $1: Name of variable
3688 
3689 
3690 
3691 
3692 
3693 
3694 #%%% Simple tools %%%
3695 
3696 # Check if we have found a usable version of make
3697 # $1: the path to a potential make binary (or empty)
3698 # $2: the description on how we found this
3699 
3700 
3701 
3702 
3703 # Goes looking for a usable version of GNU make.
3704 
3705 
3706 
3707 
3708 
3709 
3710 
3711 
3712 # Check if build directory is on local disk. If not possible to determine,
3713 # we prefer to claim it's local.
3714 # Argument 1: directory to test
3715 # Argument 2: what to do if it is on local disk
3716 # Argument 3: what to do otherwise (remote disk or failure)
3717 
3718 
3719 # Check that source files have basic read permissions set. This might
3720 # not be the case in cygwin in certain conditions.
3721 
3722 
3723 
3724 
3725 # Check for support for specific options in bash
3726 
3727 
3728 ################################################################################
3729 #
3730 # Default make target
3731 #
3732 
3733 
3734 # Code to run after AC_OUTPUT
3735 
3736 
3737 #
3738 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3739 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3740 #
3741 # This code is free software; you can redistribute it and/or modify it
3742 # under the terms of the GNU General Public License version 2 only, as
3743 # published by the Free Software Foundation.  Oracle designates this
3744 # particular file as subject to the "Classpath" exception as provided
3745 # by Oracle in the LICENSE file that accompanied this code.
3746 #
3747 # This code is distributed in the hope that it will be useful, but WITHOUT
3748 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3749 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3750 # version 2 for more details (a copy is included in the LICENSE file that
3751 # accompanied this code).
3752 #
3753 # You should have received a copy of the GNU General Public License version
3754 # 2 along with this work; if not, write to the Free Software Foundation,
3755 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3756 #
3757 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3758 # or visit www.oracle.com if you need additional information or have any
3759 # questions.
3760 #
3761 
3762 
3763 
3764 
3765 
3766 # Helper function which possibly converts a path using DOS-style short mode.
3767 # If so, the updated path is stored in $new_path.
3768 # $1: The path to check
3769 
3770 
3771 # Helper function which possibly converts a path using DOS-style short mode.
3772 # If so, the updated path is stored in $new_path.
3773 # $1: The path to check
3774 
3775 
3776 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3777 # and could probably be heavily simplified. However, all changes in this
3778 # area tend to need lot of testing in different scenarios, and in lack of
3779 # proper unit testing, cleaning this up has not been deemed worth the effort
3780 # at the moment.
3781 
3782 
3783 
3784 
3785 
3786 
3787 
3788 
3789 
3790 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3791 
3792 
3793 
3794 
3795 # ... then the rest
3796 #
3797 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3798 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3799 #
3800 # This code is free software; you can redistribute it and/or modify it
3801 # under the terms of the GNU General Public License version 2 only, as
3802 # published by the Free Software Foundation.  Oracle designates this
3803 # particular file as subject to the "Classpath" exception as provided
3804 # by Oracle in the LICENSE file that accompanied this code.
3805 #
3806 # This code is distributed in the hope that it will be useful, but WITHOUT
3807 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3808 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3809 # version 2 for more details (a copy is included in the LICENSE file that
3810 # accompanied this code).
3811 #
3812 # You should have received a copy of the GNU General Public License version
3813 # 2 along with this work; if not, write to the Free Software Foundation,
3814 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3815 #
3816 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3817 # or visit www.oracle.com if you need additional information or have any
3818 # questions.
3819 #
3820 
3821 ########################################################################
3822 # This file handles detection of the Boot JDK. The Boot JDK detection
3823 # process has been developed as a response to solve a complex real-world
3824 # problem. Initially, it was simple, but it has grown as platform after
3825 # platform, idiosyncracy after idiosyncracy has been supported.
3826 #
3827 # The basic idea is this:
3828 # 1) You need an acceptable *) JDK to use as a Boot JDK
3829 # 2) There are several ways to locate a JDK, that are mostly platform
3830 #    dependent **)
3831 # 3) You can have multiple JDKs installed
3832 # 4) If possible, configure should try to dig out an acceptable JDK
3833 #    automatically, without having to resort to command-line options
3834 #
3835 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3836 #     javac) and not a JRE, etc.
3837 #
3838 # **) On Windows we typically use a well-known path.
3839 #     On MacOSX we typically use the tool java_home.
3840 #     On Linux we typically find javac in the $PATH, and then follow a
3841 #     chain of symlinks that often ends up in a real JDK.
3842 #
3843 # This leads to the code where we check in different ways to locate a
3844 # JDK, and if one is found, check if it is acceptable. If not, we print
3845 # our reasons for rejecting it (useful when debugging non-working
3846 # configure situations) and continue checking the next one.
3847 ########################################################################
3848 
3849 # Execute the check given as argument, and verify the result
3850 # If the Boot JDK was previously found, do nothing
3851 # $1 A command line (typically autoconf macro) to execute
3852 
3853 
3854 # Test: Is bootjdk explicitely set by command line arguments?
3855 
3856 
3857 # Test: Is $JAVA_HOME set?
3858 
3859 
3860 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3861 
3862 
3863 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3864 # $1: Argument to the java_home binary (optional)
3865 
3866 
3867 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3868 
3869 
3870 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3871 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3872 # $1 = Path to directory containing jdk installations.
3873 # $2 = String to append to the found JDK directory to get the proper JDK home
3874 
3875 
3876 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3877 # environmental variable as base for where to look.
3878 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3879 
3880 
3881 # Test: Is there a JDK installed in default, well-known locations?
3882 
3883 
3884 # Check that a command-line tool in the Boot JDK is correct
3885 # $1 = name of variable to assign
3886 # $2 = name of binary
3887 
3888 
3889 ###############################################################################
3890 #
3891 # We need a Boot JDK to bootstrap the build.
3892 #
3893 
3894 
3895 
3896 
3897 
3898 # BUILD_JDK: the location of the latest JDK that can run
3899 #   on the host system and supports the target class file version
3900 #   generated in this JDK build.  This variable should only be
3901 #   used after the launchers are built.
3902 #
3903 
3904 # Execute the check given as argument, and verify the result.
3905 # If the JDK was previously found, do nothing.
3906 # $1 A command line (typically autoconf macro) to execute
3907 
3908 
3909 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3910 # is different than the host system doing the build (e.g. cross-compilation),
3911 # a special BUILD_JDK is built as part of the build process.  An external
3912 # prebuilt BUILD_JDK can also be supplied.
3913 
3914 
3915 #
3916 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3917 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3918 #
3919 # This code is free software; you can redistribute it and/or modify it
3920 # under the terms of the GNU General Public License version 2 only, as
3921 # published by the Free Software Foundation.  Oracle designates this
3922 # particular file as subject to the "Classpath" exception as provided
3923 # by Oracle in the LICENSE file that accompanied this code.
3924 #
3925 # This code is distributed in the hope that it will be useful, but WITHOUT
3926 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3927 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3928 # version 2 for more details (a copy is included in the LICENSE file that
3929 # accompanied this code).
3930 #
3931 # You should have received a copy of the GNU General Public License version
3932 # 2 along with this work; if not, write to the Free Software Foundation,
3933 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3934 #
3935 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3936 # or visit www.oracle.com if you need additional information or have any
3937 # questions.
3938 #
3939 
3940 
3941 
3942 
3943 
3944 
3945 
3946 
3947 
3948 
3949 
3950 
3951 
3952 
3953 
3954 
3955 
3956 ################################################################################
3957 #
3958 # Runs icecc-create-env once and prints the error if it fails
3959 #
3960 # $1: arguments to icecc-create-env
3961 # $2: log file
3962 #
3963 
3964 
3965 ################################################################################
3966 #
3967 # Optionally enable distributed compilation of native code using icecc/icecream
3968 #
3969 
3970 
3971 
3972 
3973 
3974 
3975 
3976 #
3977 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3978 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3979 #
3980 # This code is free software; you can redistribute it and/or modify it
3981 # under the terms of the GNU General Public License version 2 only, as
3982 # published by the Free Software Foundation.  Oracle designates this
3983 # particular file as subject to the "Classpath" exception as provided
3984 # by Oracle in the LICENSE file that accompanied this code.
3985 #
3986 # This code is distributed in the hope that it will be useful, but WITHOUT
3987 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3988 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3989 # version 2 for more details (a copy is included in the LICENSE file that
3990 # accompanied this code).
3991 #
3992 # You should have received a copy of the GNU General Public License version
3993 # 2 along with this work; if not, write to the Free Software Foundation,
3994 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3995 #
3996 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3997 # or visit www.oracle.com if you need additional information or have any
3998 # questions.
3999 #
4000 
4001 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4002 # corresponding configure arguments instead
4003 
4004 
4005 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4006 # that configure can use them while detecting compilers.
4007 # TOOLCHAIN_TYPE is available here.
4008 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4009 
4010 
4011 
4012 
4013 
4014 
4015 # Documentation on common flags used for solstudio in HIGHEST.
4016 #
4017 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4018 #          done with care, there are some assumptions below that need to
4019 #          be understood about the use of pointers, and IEEE behavior.
4020 #
4021 # -fns: Use non-standard floating point mode (not IEEE 754)
4022 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4023 # -fsingle: Use single precision floating point with 'float'
4024 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4025 #   (Source with excessing pointer casting and data access with mixed
4026 #    pointer types are not recommended)
4027 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4028 #   (If you expect perfect errno behavior, do not use this)
4029 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4030 # -xrestrict: Pointer parameters to functions do not overlap
4031 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4032 #    If you pass in multiple pointers to the same data, do not use this)
4033 # -xlibmil: Inline some library routines
4034 #   (If you expect perfect errno behavior, do not use this)
4035 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4036 #   (If you expect perfect errno behavior, do not use this)
4037 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4038 
4039     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4040     # Bug?
4041     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4042     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4043     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4044     #fi
4045 
4046 
4047 
4048 
4049 
4050 
4051 ################################################################################
4052 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4053 #      conditionals against.
4054 # $2 - Optional prefix for each variable defined.
4055 
4056 
4057 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4058 #                                  IF_FALSE: [RUN-IF-FALSE])
4059 # ------------------------------------------------------------
4060 # Check that the C compiler supports an argument
4061 
4062 
4063 
4064 
4065 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4066 #                                    IF_FALSE: [RUN-IF-FALSE])
4067 # ------------------------------------------------------------
4068 # Check that the C++ compiler supports an argument
4069 
4070 
4071 
4072 
4073 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4074 #                                IF_FALSE: [RUN-IF-FALSE])
4075 # ------------------------------------------------------------
4076 # Check that the C and C++ compilers support an argument
4077 
4078 
4079 
4080 
4081 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4082 #                                   IF_FALSE: [RUN-IF-FALSE])
4083 # ------------------------------------------------------------
4084 # Check that the linker support an argument
4085 
4086 
4087 
4088 
4089 
4090 
4091 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4092 # Arguments:
4093 # $1 - Optional prefix for each variable defined.
4094 
4095 
4096 #
4097 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4098 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4099 #
4100 # This code is free software; you can redistribute it and/or modify it
4101 # under the terms of the GNU General Public License version 2 only, as
4102 # published by the Free Software Foundation.  Oracle designates this
4103 # particular file as subject to the "Classpath" exception as provided
4104 # by Oracle in the LICENSE file that accompanied this code.
4105 #
4106 # This code is distributed in the hope that it will be useful, but WITHOUT
4107 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4108 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4109 # version 2 for more details (a copy is included in the LICENSE file that
4110 # accompanied this code).
4111 #
4112 # You should have received a copy of the GNU General Public License version
4113 # 2 along with this work; if not, write to the Free Software Foundation,
4114 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4115 #
4116 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4117 # or visit www.oracle.com if you need additional information or have any
4118 # questions.
4119 #
4120 
4121 
4122 
4123 
4124 
4125 cygwin_help() {
4126   case $1 in
4127     unzip)
4128       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4129       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4130       ;;
4131     zip)
4132       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4133       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4134       ;;
4135     make)
4136       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4137       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4138       ;;
4139     freetype)
4140       HELP_MSG="
4141 The freetype library can now be build during the configure process.
4142 Download the freetype sources and unpack them into an arbitrary directory:
4143 
4144 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4145 tar -xzf freetype-2.5.3.tar.gz
4146 
4147 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4148 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4149 builds or into '<freetype_src>/lib32' for 32-bit builds.
4150 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4151 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4152 
4153 Alternatively you can unpack the sources like this to use the default directory:
4154 
4155 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4156       ;;
4157   esac
4158 }
4159 
4160 msys_help() {
4161   PKGHANDLER_COMMAND=""
4162 }
4163 
4164 apt_help() {
4165   case $1 in
4166     reduced)
4167       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4168     devkit)
4169       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4170     openjdk)
4171       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4172     alsa)
4173       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4174     cups)
4175       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4176     freetype)
4177       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4178     ffi)
4179       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4180     x11)
4181       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4182     ccache)
4183       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4184     dtrace)
4185       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4186   esac
4187 }
4188 
4189 yum_help() {
4190   case $1 in
4191     devkit)
4192       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4193     openjdk)
4194       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4195     alsa)
4196       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4197     cups)
4198       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4199     freetype)
4200       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4201     x11)
4202       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4203     ccache)
4204       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4205   esac
4206 }
4207 
4208 port_help() {
4209   PKGHANDLER_COMMAND=""
4210 }
4211 
4212 pkgutil_help() {
4213   PKGHANDLER_COMMAND=""
4214 }
4215 
4216 pkgadd_help() {
4217   PKGHANDLER_COMMAND=""
4218 }
4219 
4220 # This function will check if we're called from the "configure" wrapper while
4221 # printing --help. If so, we will print out additional information that can
4222 # only be extracted within the autoconf script, and then exit. This must be
4223 # called at the very beginning in configure.ac.
4224 
4225 
4226 
4227 
4228 
4229 
4230 #
4231 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4232 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4233 #
4234 # This code is free software; you can redistribute it and/or modify it
4235 # under the terms of the GNU General Public License version 2 only, as
4236 # published by the Free Software Foundation.  Oracle designates this
4237 # particular file as subject to the "Classpath" exception as provided
4238 # by Oracle in the LICENSE file that accompanied this code.
4239 #
4240 # This code is distributed in the hope that it will be useful, but WITHOUT
4241 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4242 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4243 # version 2 for more details (a copy is included in the LICENSE file that
4244 # accompanied this code).
4245 #
4246 # You should have received a copy of the GNU General Public License version
4247 # 2 along with this work; if not, write to the Free Software Foundation,
4248 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4249 #
4250 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4251 # or visit www.oracle.com if you need additional information or have any
4252 # questions.
4253 #
4254 
4255 # All valid JVM features, regardless of platform
4256 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
4257     fprof vm-structs jni-check services management all-gcs nmt cds static-build"
4258 
4259 # All valid JVM variants
4260 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
4261 
4262 ###############################################################################
4263 # Check if the specified JVM variant should be built. To be used in shell if
4264 # constructs, like this:
4265 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4266 #
4267 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4268 
4269 # Definition kept in one line to allow inlining in if statements.
4270 # Additional [] needed to keep m4 from mangling shell constructs.
4271 
4272 
4273 ###############################################################################
4274 # Check if the specified JVM features are explicitly enabled. To be used in
4275 # shell if constructs, like this:
4276 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4277 #
4278 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4279 
4280 # Definition kept in one line to allow inlining in if statements.
4281 # Additional [] needed to keep m4 from mangling shell constructs.
4282 
4283 
4284 ###############################################################################
4285 # Check which variants of the JVM that we want to build. Available variants are:
4286 #   server: normal interpreter, and a tiered C1/C2 compiler
4287 #   client: normal interpreter, and C1 (no C2 compiler)
4288 #   minimal: reduced form of client with optional features stripped out
4289 #   core: normal interpreter only, no compiler
4290 #   zero: C++ based interpreter only, no compiler
4291 #   zeroshark: C++ based interpreter, and a llvm-based compiler
4292 #   custom: baseline JVM with no default features
4293 #
4294 
4295 
4296 ###############################################################################
4297 # Check if dtrace should be enabled and has all prerequisites present.
4298 #
4299 
4300 
4301 ###############################################################################
4302 # Set up all JVM features for each JVM variant.
4303 #
4304 
4305 
4306 ###############################################################################
4307 # Validate JVM features once all setup is complete, including custom setup.
4308 #
4309 
4310 
4311 ################################################################################
4312 # Check if gtest should be built
4313 #
4314 
4315 
4316 #
4317 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4318 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4319 #
4320 # This code is free software; you can redistribute it and/or modify it
4321 # under the terms of the GNU General Public License version 2 only, as
4322 # published by the Free Software Foundation.  Oracle designates this
4323 # particular file as subject to the "Classpath" exception as provided
4324 # by Oracle in the LICENSE file that accompanied this code.
4325 #
4326 # This code is distributed in the hope that it will be useful, but WITHOUT
4327 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4328 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4329 # version 2 for more details (a copy is included in the LICENSE file that
4330 # accompanied this code).
4331 #
4332 # You should have received a copy of the GNU General Public License version
4333 # 2 along with this work; if not, write to the Free Software Foundation,
4334 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4335 #
4336 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4337 # or visit www.oracle.com if you need additional information or have any
4338 # questions.
4339 #
4340 
4341 ###############################################################################
4342 # Check which variant of the JDK that we want to build.
4343 # Currently we have:
4344 #    normal:   standard edition
4345 # but the custom make system may add other variants
4346 #
4347 # Effectively the JDK variant gives a name to a specific set of
4348 # modules to compile into the JDK.
4349 
4350 
4351 ###############################################################################
4352 # Set the debug level
4353 #    release: no debug information, all optimizations, no asserts.
4354 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4355 #    fastdebug: debug information (-g), all optimizations, all asserts
4356 #    slowdebug: debug information (-g), no optimizations, all asserts
4357 
4358 
4359 ###############################################################################
4360 #
4361 # Should we build only OpenJDK even if closed sources are present?
4362 #
4363 
4364 
4365 
4366 
4367 ###############################################################################
4368 #
4369 # Enable or disable the elliptic curve crypto implementation
4370 #
4371 
4372 
4373 
4374 
4375 ################################################################################
4376 #
4377 # Gcov coverage data for hotspot
4378 #
4379 
4380 
4381 ################################################################################
4382 #
4383 # Static build support.  When enabled will generate static
4384 # libraries instead of shared libraries for all JDK libs.
4385 #
4386 
4387 
4388 ################################################################################
4389 #
4390 # jlink options.
4391 # We always keep packaged modules in JDK image.
4392 #
4393 
4394 
4395 ################################################################################
4396 #
4397 # Check if building of the jtreg failure handler should be enabled.
4398 #
4399 
4400 
4401 ################################################################################
4402 #
4403 # Enable or disable generation of the classlist at build time
4404 #
4405 
4406 
4407 #
4408 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4409 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4410 #
4411 # This code is free software; you can redistribute it and/or modify it
4412 # under the terms of the GNU General Public License version 2 only, as
4413 # published by the Free Software Foundation.  Oracle designates this
4414 # particular file as subject to the "Classpath" exception as provided
4415 # by Oracle in the LICENSE file that accompanied this code.
4416 #
4417 # This code is distributed in the hope that it will be useful, but WITHOUT
4418 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4419 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4420 # version 2 for more details (a copy is included in the LICENSE file that
4421 # accompanied this code).
4422 #
4423 # You should have received a copy of the GNU General Public License version
4424 # 2 along with this work; if not, write to the Free Software Foundation,
4425 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4426 #
4427 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4428 # or visit www.oracle.com if you need additional information or have any
4429 # questions.
4430 #
4431 
4432 ###############################################################################
4433 #
4434 # Setup version numbers
4435 #
4436 
4437 # Verify that a given string represents a valid version number, and assign it
4438 # to a variable.
4439 
4440 # Argument 1: the variable to assign to
4441 # Argument 2: the value given by the user
4442 
4443 
4444 
4445 
4446 #
4447 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4448 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4449 #
4450 # This code is free software; you can redistribute it and/or modify it
4451 # under the terms of the GNU General Public License version 2 only, as
4452 # published by the Free Software Foundation.  Oracle designates this
4453 # particular file as subject to the "Classpath" exception as provided
4454 # by Oracle in the LICENSE file that accompanied this code.
4455 #
4456 # This code is distributed in the hope that it will be useful, but WITHOUT
4457 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4458 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4459 # version 2 for more details (a copy is included in the LICENSE file that
4460 # accompanied this code).
4461 #
4462 # You should have received a copy of the GNU General Public License version
4463 # 2 along with this work; if not, write to the Free Software Foundation,
4464 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4465 #
4466 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4467 # or visit www.oracle.com if you need additional information or have any
4468 # questions.
4469 #
4470 
4471 # Major library component reside in separate files.
4472 #
4473 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4474 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4475 #
4476 # This code is free software; you can redistribute it and/or modify it
4477 # under the terms of the GNU General Public License version 2 only, as
4478 # published by the Free Software Foundation.  Oracle designates this
4479 # particular file as subject to the "Classpath" exception as provided
4480 # by Oracle in the LICENSE file that accompanied this code.
4481 #
4482 # This code is distributed in the hope that it will be useful, but WITHOUT
4483 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4484 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4485 # version 2 for more details (a copy is included in the LICENSE file that
4486 # accompanied this code).
4487 #
4488 # You should have received a copy of the GNU General Public License version
4489 # 2 along with this work; if not, write to the Free Software Foundation,
4490 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4491 #
4492 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4493 # or visit www.oracle.com if you need additional information or have any
4494 # questions.
4495 #
4496 
4497 ################################################################################
4498 # Setup alsa (Advanced Linux Sound Architecture)
4499 ################################################################################
4500 
4501 
4502 #
4503 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4504 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4505 #
4506 # This code is free software; you can redistribute it and/or modify it
4507 # under the terms of the GNU General Public License version 2 only, as
4508 # published by the Free Software Foundation.  Oracle designates this
4509 # particular file as subject to the "Classpath" exception as provided
4510 # by Oracle in the LICENSE file that accompanied this code.
4511 #
4512 # This code is distributed in the hope that it will be useful, but WITHOUT
4513 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4514 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4515 # version 2 for more details (a copy is included in the LICENSE file that
4516 # accompanied this code).
4517 #
4518 # You should have received a copy of the GNU General Public License version
4519 # 2 along with this work; if not, write to the Free Software Foundation,
4520 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4521 #
4522 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4523 # or visit www.oracle.com if you need additional information or have any
4524 # questions.
4525 #
4526 
4527 ################################################################################
4528 # Setup bundled libraries.
4529 #
4530 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4531 # OpenJDK repository. Default is to use these libraries as bundled, but they
4532 # might be replaced by en external version by the user.
4533 ################################################################################
4534 
4535 
4536 ################################################################################
4537 # Setup libjpeg
4538 ################################################################################
4539 
4540 
4541 ################################################################################
4542 # Setup giflib
4543 ################################################################################
4544 
4545 
4546 ################################################################################
4547 # Setup libpng
4548 ################################################################################
4549 
4550 
4551 ################################################################################
4552 # Setup zlib
4553 ################################################################################
4554 
4555 
4556 ################################################################################
4557 # Setup lcms (Little CMS)
4558 ################################################################################
4559 
4560 
4561 #
4562 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4563 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4564 #
4565 # This code is free software; you can redistribute it and/or modify it
4566 # under the terms of the GNU General Public License version 2 only, as
4567 # published by the Free Software Foundation.  Oracle designates this
4568 # particular file as subject to the "Classpath" exception as provided
4569 # by Oracle in the LICENSE file that accompanied this code.
4570 #
4571 # This code is distributed in the hope that it will be useful, but WITHOUT
4572 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4573 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4574 # version 2 for more details (a copy is included in the LICENSE file that
4575 # accompanied this code).
4576 #
4577 # You should have received a copy of the GNU General Public License version
4578 # 2 along with this work; if not, write to the Free Software Foundation,
4579 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4580 #
4581 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4582 # or visit www.oracle.com if you need additional information or have any
4583 # questions.
4584 #
4585 
4586 ################################################################################
4587 # Setup cups (Common Unix Printing System)
4588 ################################################################################
4589 
4590 
4591 #
4592 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4593 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4594 #
4595 # This code is free software; you can redistribute it and/or modify it
4596 # under the terms of the GNU General Public License version 2 only, as
4597 # published by the Free Software Foundation.  Oracle designates this
4598 # particular file as subject to the "Classpath" exception as provided
4599 # by Oracle in the LICENSE file that accompanied this code.
4600 #
4601 # This code is distributed in the hope that it will be useful, but WITHOUT
4602 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4603 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4604 # version 2 for more details (a copy is included in the LICENSE file that
4605 # accompanied this code).
4606 #
4607 # You should have received a copy of the GNU General Public License version
4608 # 2 along with this work; if not, write to the Free Software Foundation,
4609 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4610 #
4611 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4612 # or visit www.oracle.com if you need additional information or have any
4613 # questions.
4614 #
4615 
4616 ################################################################################
4617 # Setup libffi (Foreign Function Interface)
4618 ################################################################################
4619 
4620 
4621 #
4622 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4623 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4624 #
4625 # This code is free software; you can redistribute it and/or modify it
4626 # under the terms of the GNU General Public License version 2 only, as
4627 # published by the Free Software Foundation.  Oracle designates this
4628 # particular file as subject to the "Classpath" exception as provided
4629 # by Oracle in the LICENSE file that accompanied this code.
4630 #
4631 # This code is distributed in the hope that it will be useful, but WITHOUT
4632 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4633 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4634 # version 2 for more details (a copy is included in the LICENSE file that
4635 # accompanied this code).
4636 #
4637 # You should have received a copy of the GNU General Public License version
4638 # 2 along with this work; if not, write to the Free Software Foundation,
4639 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4640 #
4641 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4642 # or visit www.oracle.com if you need additional information or have any
4643 # questions.
4644 #
4645 
4646 ################################################################################
4647 # Build the freetype lib from source
4648 ################################################################################
4649 
4650 
4651 ################################################################################
4652 # Check if a potential freeype library match is correct and usable
4653 ################################################################################
4654 
4655 
4656 ################################################################################
4657 # Setup freetype (The FreeType2 font rendering library)
4658 ################################################################################
4659 
4660 
4661 #
4662 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4663 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4664 #
4665 # This code is free software; you can redistribute it and/or modify it
4666 # under the terms of the GNU General Public License version 2 only, as
4667 # published by the Free Software Foundation.  Oracle designates this
4668 # particular file as subject to the "Classpath" exception as provided
4669 # by Oracle in the LICENSE file that accompanied this code.
4670 #
4671 # This code is distributed in the hope that it will be useful, but WITHOUT
4672 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4673 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4674 # version 2 for more details (a copy is included in the LICENSE file that
4675 # accompanied this code).
4676 #
4677 # You should have received a copy of the GNU General Public License version
4678 # 2 along with this work; if not, write to the Free Software Foundation,
4679 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4680 #
4681 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4682 # or visit www.oracle.com if you need additional information or have any
4683 # questions.
4684 #
4685 
4686 ################################################################################
4687 # Setup the standard C/C++ runtime libraries.
4688 #
4689 # Most importantly, determine if stdc++ should be linked statically or
4690 # dynamically.
4691 ################################################################################
4692 
4693 
4694 #
4695 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4696 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4697 #
4698 # This code is free software; you can redistribute it and/or modify it
4699 # under the terms of the GNU General Public License version 2 only, as
4700 # published by the Free Software Foundation.  Oracle designates this
4701 # particular file as subject to the "Classpath" exception as provided
4702 # by Oracle in the LICENSE file that accompanied this code.
4703 #
4704 # This code is distributed in the hope that it will be useful, but WITHOUT
4705 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4706 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4707 # version 2 for more details (a copy is included in the LICENSE file that
4708 # accompanied this code).
4709 #
4710 # You should have received a copy of the GNU General Public License version
4711 # 2 along with this work; if not, write to the Free Software Foundation,
4712 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4713 #
4714 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4715 # or visit www.oracle.com if you need additional information or have any
4716 # questions.
4717 #
4718 
4719 ################################################################################
4720 # Setup X11 Windows system
4721 ################################################################################
4722 
4723 
4724 
4725 ################################################################################
4726 # Determine which libraries are needed for this configuration
4727 ################################################################################
4728 
4729 
4730 ################################################################################
4731 # Parse library options, and setup needed libraries
4732 ################################################################################
4733 
4734 
4735 ################################################################################
4736 # Setup llvm (Low-Level VM)
4737 ################################################################################
4738 
4739 
4740 ################################################################################
4741 # Setup various libraries, typically small system libraries
4742 ################################################################################
4743 
4744 
4745 ################################################################################
4746 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4747 # redistribute it in the test image.
4748 ################################################################################
4749 
4750 
4751 
4752 #
4753 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4754 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4755 #
4756 # This code is free software; you can redistribute it and/or modify it
4757 # under the terms of the GNU General Public License version 2 only, as
4758 # published by the Free Software Foundation.  Oracle designates this
4759 # particular file as subject to the "Classpath" exception as provided
4760 # by Oracle in the LICENSE file that accompanied this code.
4761 #
4762 # This code is distributed in the hope that it will be useful, but WITHOUT
4763 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4764 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4765 # version 2 for more details (a copy is included in the LICENSE file that
4766 # accompanied this code).
4767 #
4768 # You should have received a copy of the GNU General Public License version
4769 # 2 along with this work; if not, write to the Free Software Foundation,
4770 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4771 #
4772 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4773 # or visit www.oracle.com if you need additional information or have any
4774 # questions.
4775 #
4776 
4777 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4778 # Converts autoconf style CPU name to OpenJDK style, into
4779 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4780 
4781 
4782 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4783 # Converts autoconf style OS name to OpenJDK style, into
4784 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4785 
4786 
4787 # Expects $host_os $host_cpu $build_os and $build_cpu
4788 # and $with_target_bits to have been setup!
4789 #
4790 # Translate the standard triplet(quadruplet) definition
4791 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4792 # OPENJDK_BUILD_OS, etc.
4793 
4794 
4795 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4796 # accordingly. Must be done after setting up build and target system, but before
4797 # doing anything else with these values.
4798 
4799 
4800 # Setup the legacy variables, for controlling the old makefiles.
4801 #
4802 
4803 
4804 # $1 - Either TARGET or BUILD to setup the variables for.
4805 
4806 
4807 
4808 
4809 #%%% Build and target systems %%%
4810 
4811 
4812 
4813 
4814 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4815 # Add -mX to various FLAGS variables.
4816 
4817 
4818 
4819 
4820 
4821 
4822 #
4823 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4824 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4825 #
4826 # This code is free software; you can redistribute it and/or modify it
4827 # under the terms of the GNU General Public License version 2 only, as
4828 # published by the Free Software Foundation.  Oracle designates this
4829 # particular file as subject to the "Classpath" exception as provided
4830 # by Oracle in the LICENSE file that accompanied this code.
4831 #
4832 # This code is distributed in the hope that it will be useful, but WITHOUT
4833 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4834 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4835 # version 2 for more details (a copy is included in the LICENSE file that
4836 # accompanied this code).
4837 #
4838 # You should have received a copy of the GNU General Public License version
4839 # 2 along with this work; if not, write to the Free Software Foundation,
4840 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4841 #
4842 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4843 # or visit www.oracle.com if you need additional information or have any
4844 # questions.
4845 #
4846 
4847 
4848 
4849 
4850 
4851 
4852 
4853 ################################################################################
4854 # Define a mechanism for importing extra prebuilt modules
4855 #
4856 
4857 
4858 
4859 #
4860 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4861 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4862 #
4863 # This code is free software; you can redistribute it and/or modify it
4864 # under the terms of the GNU General Public License version 2 only, as
4865 # published by the Free Software Foundation.  Oracle designates this
4866 # particular file as subject to the "Classpath" exception as provided
4867 # by Oracle in the LICENSE file that accompanied this code.
4868 #
4869 # This code is distributed in the hope that it will be useful, but WITHOUT
4870 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4871 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4872 # version 2 for more details (a copy is included in the LICENSE file that
4873 # accompanied this code).
4874 #
4875 # You should have received a copy of the GNU General Public License version
4876 # 2 along with this work; if not, write to the Free Software Foundation,
4877 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4878 #
4879 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4880 # or visit www.oracle.com if you need additional information or have any
4881 # questions.
4882 #
4883 
4884 ########################################################################
4885 # This file is responsible for detecting, verifying and setting up the
4886 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4887 # proper paths to the binaries, but it will not setup any flags.
4888 #
4889 # The binaries used is determined by the toolchain type, which is the family of
4890 # compilers and related tools that are used.
4891 ########################################################################
4892 
4893 
4894 # All valid toolchains, regardless of platform (used by help.m4)
4895 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4896 
4897 # These toolchains are valid on different platforms
4898 VALID_TOOLCHAINS_linux="gcc clang"
4899 VALID_TOOLCHAINS_solaris="solstudio"
4900 VALID_TOOLCHAINS_macosx="gcc clang"
4901 VALID_TOOLCHAINS_aix="xlc"
4902 VALID_TOOLCHAINS_windows="microsoft"
4903 
4904 # Toolchain descriptions
4905 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4906 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4907 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4908 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4909 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4910 
4911 # Minimum supported versions, empty means unspecified
4912 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
4913 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3"
4914 TOOLCHAIN_MINIMUM_VERSION_microsoft=""
4915 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
4916 TOOLCHAIN_MINIMUM_VERSION_xlc=""
4917 
4918 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4919 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4920 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4921 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4922 
4923 
4924 # Check if the configured compiler (C and C++) is of a specific version or
4925 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4926 #
4927 # Arguments:
4928 #   VERSION:   The version string to check against the found version
4929 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
4930 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
4931 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
4932 
4933 
4934 
4935 
4936 # Setup a number of variables describing how native output files are
4937 # named on this platform/toolchain.
4938 
4939 
4940 # Determine which toolchain type to use, and make sure it is valid for this
4941 # platform. Setup various information about the selected toolchain.
4942 
4943 
4944 # Before we start detecting the toolchain executables, we might need some
4945 # special setup, e.g. additional paths etc.
4946 
4947 
4948 # Restore path, etc
4949 
4950 
4951 # Check if a compiler is of the toolchain type we expect, and save the version
4952 # information from it. If the compiler does not match the expected type,
4953 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4954 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4955 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4956 #
4957 # $1 = compiler to test (CC or CXX)
4958 # $2 = human readable name of compiler (C or C++)
4959 
4960 
4961 # Try to locate the given C or C++ compiler in the path, or otherwise.
4962 #
4963 # $1 = compiler to test (CC or CXX)
4964 # $2 = human readable name of compiler (C or C++)
4965 # $3 = list of compiler names to search for
4966 
4967 
4968 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4969 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4970 # archiver (AR). Verify that the compilers are correct according to the
4971 # toolchain type.
4972 
4973 
4974 # Setup additional tools that is considered a part of the toolchain, but not the
4975 # core part. Many of these are highly platform-specific and do not exist,
4976 # and/or are not needed on all platforms.
4977 
4978 
4979 # Setup the build tools (i.e, the compiler and linker used to build programs
4980 # that should be run on the build platform, not the target platform, as a build
4981 # helper). Since the non-cross-compile case uses the normal, target compilers
4982 # for this, we can only do this after these have been setup.
4983 
4984 
4985 # Setup legacy variables that are still needed as alternative ways to refer to
4986 # parts of the toolchain.
4987 
4988 
4989 # Do some additional checks on the detected tools.
4990 
4991 
4992 # Setup the JTReg Regression Test Harness.
4993 
4994 
4995 #
4996 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4997 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4998 #
4999 # This code is free software; you can redistribute it and/or modify it
5000 # under the terms of the GNU General Public License version 2 only, as
5001 # published by the Free Software Foundation.  Oracle designates this
5002 # particular file as subject to the "Classpath" exception as provided
5003 # by Oracle in the LICENSE file that accompanied this code.
5004 #
5005 # This code is distributed in the hope that it will be useful, but WITHOUT
5006 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5007 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5008 # version 2 for more details (a copy is included in the LICENSE file that
5009 # accompanied this code).
5010 #
5011 # You should have received a copy of the GNU General Public License version
5012 # 2 along with this work; if not, write to the Free Software Foundation,
5013 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5014 #
5015 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5016 # or visit www.oracle.com if you need additional information or have any
5017 # questions.
5018 #
5019 
5020 ################################################################################
5021 # The order of these defines the priority by which we try to find them.
5022 VALID_VS_VERSIONS="2013 2012 2010"
5023 
5024 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5025 VS_VERSION_INTERNAL_2010=100
5026 VS_MSVCR_2010=msvcr100.dll
5027 # We don't use msvcp on Visual Studio 2010
5028 #VS_MSVCP_2010=msvcp100.dll
5029 VS_ENVVAR_2010="VS100COMNTOOLS"
5030 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5031 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5032 VS_VS_PLATFORM_NAME_2010="v100"
5033 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5034 
5035 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5036 VS_VERSION_INTERNAL_2012=110
5037 VS_MSVCR_2012=msvcr110.dll
5038 VS_MSVCP_2012=msvcp110.dll
5039 VS_ENVVAR_2012="VS110COMNTOOLS"
5040 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5041 VS_SDK_INSTALLDIR_2012=
5042 VS_VS_PLATFORM_NAME_2012="v110"
5043 VS_SDK_PLATFORM_NAME_2012=
5044 
5045 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5046 VS_VERSION_INTERNAL_2013=120
5047 VS_MSVCR_2013=msvcr120.dll
5048 VS_MSVCP_2013=msvcp120.dll
5049 VS_ENVVAR_2013="VS120COMNTOOLS"
5050 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5051 VS_SDK_INSTALLDIR_2013=
5052 VS_VS_PLATFORM_NAME_2013="v120"
5053 VS_SDK_PLATFORM_NAME_2013=
5054 
5055 ################################################################################
5056 
5057 
5058 
5059 ################################################################################
5060 
5061 
5062 
5063 ################################################################################
5064 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5065 # build environment and assigns it to VS_ENV_CMD
5066 
5067 
5068 ################################################################################
5069 
5070 
5071 
5072 ################################################################################
5073 # Check if the VS env variables were setup prior to running configure.
5074 # If not, then find vcvarsall.bat and run it automatically, and integrate
5075 # the set env variables into the spec file.
5076 
5077 
5078 
5079 
5080 
5081 
5082 
5083 
5084 
5085 
5086 
5087 
5088 
5089 
5090 # This line needs to be here, verbatim, after all includes and the dummy hook
5091 # definitions. It is replaced with custom functionality when building
5092 # custom sources.
5093 #CUSTOM_AUTOCONF_INCLUDE
5094 
5095 # Do not change or remove the following line, it is needed for consistency checks:
5096 DATE_WHEN_GENERATED=1479997904
5097 
5098 ###############################################################################
5099 #
5100 # Initialization / Boot-strapping
5101 #
5102 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5103 # thus it jumps back and forth, each time gaining something needed later on.
5104 #
5105 ###############################################################################
5106 
5107 # If we are requested to print additional help, do that and then exit.
5108 # This must be the very first call.
5109 
5110   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5111 
5112     # Print available toolchains
5113     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5114     $PRINTF "Which are valid to use depends on the build platform.\n"
5115     for toolchain in $VALID_TOOLCHAINS_all; do
5116       # Use indirect variable referencing
5117       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5118       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5119       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5120     done
5121     $PRINTF "\n"
5122 
5123     # Print available jvm features
5124     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5125     $PRINTF "Which are valid to use depends on the target platform.\n  "
5126     $PRINTF "%s " $VALID_JVM_FEATURES
5127     $PRINTF "\n"
5128 
5129     # And now exit directly
5130     exit 0
5131   fi
5132 
5133 
5134 # Basic initialization that must happen first of all in the normal process.
5135 
5136   # Save the original command line. This is passed to us by the wrapper configure script.
5137 
5138   # Save the path variable before it gets changed
5139   ORIGINAL_PATH="$PATH"
5140 
5141   DATE_WHEN_CONFIGURED=`LANG=C date`
5142 
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5144 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5145   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5146 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5147 
5148 
5149   # Start with tools that do not need have cross compilation support
5150   # and can be expected to be found in the default PATH. These tools are
5151   # used by configure.
5152 
5153   # First are all the simple required tools.
5154 
5155 
5156 
5157   # Publish this variable in the help.
5158 
5159 
5160   if [ -z "${BASENAME+x}" ]; then
5161     # The variable is not set by user, try to locate tool using the code snippet
5162     for ac_prog in basename
5163 do
5164   # Extract the first word of "$ac_prog", so it can be a program name with args.
5165 set dummy $ac_prog; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_path_BASENAME+:} false; then :
5169   $as_echo_n "(cached) " >&6
5170 else
5171   case $BASENAME in
5172   [\\/]* | ?:[\\/]*)
5173   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5174   ;;
5175   *)
5176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5178 do
5179   IFS=$as_save_IFS
5180   test -z "$as_dir" && as_dir=.
5181     for ac_exec_ext in '' $ac_executable_extensions; do
5182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185     break 2
5186   fi
5187 done
5188   done
5189 IFS=$as_save_IFS
5190 
5191   ;;
5192 esac
5193 fi
5194 BASENAME=$ac_cv_path_BASENAME
5195 if test -n "$BASENAME"; then
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5197 $as_echo "$BASENAME" >&6; }
5198 else
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5201 fi
5202 
5203 
5204   test -n "$BASENAME" && break
5205 done
5206 
5207   else
5208     # The variable is set, but is it from the command line or the environment?
5209 
5210     # Try to remove the string !BASENAME! from our list.
5211     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5212     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5213       # If it failed, the variable was not from the command line. Ignore it,
5214       # but warn the user (except for BASH, which is always set by the calling BASH).
5215       if test "xBASENAME" != xBASH; then
5216         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5217 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5218       fi
5219       # Try to locate tool using the code snippet
5220       for ac_prog in basename
5221 do
5222   # Extract the first word of "$ac_prog", so it can be a program name with args.
5223 set dummy $ac_prog; ac_word=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if ${ac_cv_path_BASENAME+:} false; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229   case $BASENAME in
5230   [\\/]* | ?:[\\/]*)
5231   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5232   ;;
5233   *)
5234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239     for ac_exec_ext in '' $ac_executable_extensions; do
5240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246   done
5247 IFS=$as_save_IFS
5248 
5249   ;;
5250 esac
5251 fi
5252 BASENAME=$ac_cv_path_BASENAME
5253 if test -n "$BASENAME"; then
5254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5255 $as_echo "$BASENAME" >&6; }
5256 else
5257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260 
5261 
5262   test -n "$BASENAME" && break
5263 done
5264 
5265     else
5266       # If it succeeded, then it was overridden by the user. We will use it
5267       # for the tool.
5268 
5269       # First remove it from the list of overridden variables, so we can test
5270       # for unknown variables in the end.
5271       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5272 
5273       # Check if we try to supply an empty value
5274       if test "x$BASENAME" = x; then
5275         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5276 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5277         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5278 $as_echo_n "checking for BASENAME... " >&6; }
5279         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5280 $as_echo "disabled" >&6; }
5281       else
5282         # Check if the provided tool contains a complete path.
5283         tool_specified="$BASENAME"
5284         tool_basename="${tool_specified##*/}"
5285         if test "x$tool_basename" = "x$tool_specified"; then
5286           # A command without a complete path is provided, search $PATH.
5287           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5288 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5289           # Extract the first word of "$tool_basename", so it can be a program name with args.
5290 set dummy $tool_basename; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if ${ac_cv_path_BASENAME+:} false; then :
5294   $as_echo_n "(cached) " >&6
5295 else
5296   case $BASENAME in
5297   [\\/]* | ?:[\\/]*)
5298   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5299   ;;
5300   *)
5301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304   IFS=$as_save_IFS
5305   test -z "$as_dir" && as_dir=.
5306     for ac_exec_ext in '' $ac_executable_extensions; do
5307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310     break 2
5311   fi
5312 done
5313   done
5314 IFS=$as_save_IFS
5315 
5316   ;;
5317 esac
5318 fi
5319 BASENAME=$ac_cv_path_BASENAME
5320 if test -n "$BASENAME"; then
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5322 $as_echo "$BASENAME" >&6; }
5323 else
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5326 fi
5327 
5328 
5329           if test "x$BASENAME" = x; then
5330             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5331           fi
5332         else
5333           # Otherwise we believe it is a complete path. Use it as it is.
5334           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5335 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5336           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5337 $as_echo_n "checking for BASENAME... " >&6; }
5338           if test ! -x "$tool_specified"; then
5339             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5340 $as_echo "not found" >&6; }
5341             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5342           fi
5343           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5344 $as_echo "$tool_specified" >&6; }
5345         fi
5346       fi
5347     fi
5348 
5349   fi
5350 
5351 
5352 
5353   if test "x$BASENAME" = x; then
5354     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5355   fi
5356 
5357 
5358 
5359 
5360 
5361   # Publish this variable in the help.
5362 
5363 
5364   if [ -z "${BASH+x}" ]; then
5365     # The variable is not set by user, try to locate tool using the code snippet
5366     for ac_prog in bash
5367 do
5368   # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_path_BASH+:} false; then :
5373   $as_echo_n "(cached) " >&6
5374 else
5375   case $BASH in
5376   [\\/]* | ?:[\\/]*)
5377   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5378   ;;
5379   *)
5380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5382 do
5383   IFS=$as_save_IFS
5384   test -z "$as_dir" && as_dir=.
5385     for ac_exec_ext in '' $ac_executable_extensions; do
5386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5387     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389     break 2
5390   fi
5391 done
5392   done
5393 IFS=$as_save_IFS
5394 
5395   ;;
5396 esac
5397 fi
5398 BASH=$ac_cv_path_BASH
5399 if test -n "$BASH"; then
5400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5401 $as_echo "$BASH" >&6; }
5402 else
5403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5405 fi
5406 
5407 
5408   test -n "$BASH" && break
5409 done
5410 
5411   else
5412     # The variable is set, but is it from the command line or the environment?
5413 
5414     # Try to remove the string !BASH! from our list.
5415     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5416     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5417       # If it failed, the variable was not from the command line. Ignore it,
5418       # but warn the user (except for BASH, which is always set by the calling BASH).
5419       if test "xBASH" != xBASH; then
5420         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5421 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5422       fi
5423       # Try to locate tool using the code snippet
5424       for ac_prog in bash
5425 do
5426   # Extract the first word of "$ac_prog", so it can be a program name with args.
5427 set dummy $ac_prog; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if ${ac_cv_path_BASH+:} false; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   case $BASH in
5434   [\\/]* | ?:[\\/]*)
5435   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5436   ;;
5437   *)
5438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5440 do
5441   IFS=$as_save_IFS
5442   test -z "$as_dir" && as_dir=.
5443     for ac_exec_ext in '' $ac_executable_extensions; do
5444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447     break 2
5448   fi
5449 done
5450   done
5451 IFS=$as_save_IFS
5452 
5453   ;;
5454 esac
5455 fi
5456 BASH=$ac_cv_path_BASH
5457 if test -n "$BASH"; then
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5459 $as_echo "$BASH" >&6; }
5460 else
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5463 fi
5464 
5465 
5466   test -n "$BASH" && break
5467 done
5468 
5469     else
5470       # If it succeeded, then it was overridden by the user. We will use it
5471       # for the tool.
5472 
5473       # First remove it from the list of overridden variables, so we can test
5474       # for unknown variables in the end.
5475       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5476 
5477       # Check if we try to supply an empty value
5478       if test "x$BASH" = x; then
5479         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5480 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5481         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5482 $as_echo_n "checking for BASH... " >&6; }
5483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5484 $as_echo "disabled" >&6; }
5485       else
5486         # Check if the provided tool contains a complete path.
5487         tool_specified="$BASH"
5488         tool_basename="${tool_specified##*/}"
5489         if test "x$tool_basename" = "x$tool_specified"; then
5490           # A command without a complete path is provided, search $PATH.
5491           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5492 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5493           # Extract the first word of "$tool_basename", so it can be a program name with args.
5494 set dummy $tool_basename; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_path_BASH+:} false; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500   case $BASH in
5501   [\\/]* | ?:[\\/]*)
5502   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5503   ;;
5504   *)
5505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508   IFS=$as_save_IFS
5509   test -z "$as_dir" && as_dir=.
5510     for ac_exec_ext in '' $ac_executable_extensions; do
5511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514     break 2
5515   fi
5516 done
5517   done
5518 IFS=$as_save_IFS
5519 
5520   ;;
5521 esac
5522 fi
5523 BASH=$ac_cv_path_BASH
5524 if test -n "$BASH"; then
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5526 $as_echo "$BASH" >&6; }
5527 else
5528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5530 fi
5531 
5532 
5533           if test "x$BASH" = x; then
5534             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5535           fi
5536         else
5537           # Otherwise we believe it is a complete path. Use it as it is.
5538           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5539 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5540           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5541 $as_echo_n "checking for BASH... " >&6; }
5542           if test ! -x "$tool_specified"; then
5543             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5544 $as_echo "not found" >&6; }
5545             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5546           fi
5547           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5548 $as_echo "$tool_specified" >&6; }
5549         fi
5550       fi
5551     fi
5552 
5553   fi
5554 
5555 
5556 
5557   if test "x$BASH" = x; then
5558     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5559   fi
5560 
5561 
5562 
5563 
5564 
5565   # Publish this variable in the help.
5566 
5567 
5568   if [ -z "${CAT+x}" ]; then
5569     # The variable is not set by user, try to locate tool using the code snippet
5570     for ac_prog in cat
5571 do
5572   # Extract the first word of "$ac_prog", so it can be a program name with args.
5573 set dummy $ac_prog; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_path_CAT+:} false; then :
5577   $as_echo_n "(cached) " >&6
5578 else
5579   case $CAT in
5580   [\\/]* | ?:[\\/]*)
5581   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5582   ;;
5583   *)
5584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587   IFS=$as_save_IFS
5588   test -z "$as_dir" && as_dir=.
5589     for ac_exec_ext in '' $ac_executable_extensions; do
5590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593     break 2
5594   fi
5595 done
5596   done
5597 IFS=$as_save_IFS
5598 
5599   ;;
5600 esac
5601 fi
5602 CAT=$ac_cv_path_CAT
5603 if test -n "$CAT"; then
5604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5605 $as_echo "$CAT" >&6; }
5606 else
5607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610 
5611 
5612   test -n "$CAT" && break
5613 done
5614 
5615   else
5616     # The variable is set, but is it from the command line or the environment?
5617 
5618     # Try to remove the string !CAT! from our list.
5619     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5620     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5621       # If it failed, the variable was not from the command line. Ignore it,
5622       # but warn the user (except for BASH, which is always set by the calling BASH).
5623       if test "xCAT" != xBASH; then
5624         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5625 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5626       fi
5627       # Try to locate tool using the code snippet
5628       for ac_prog in cat
5629 do
5630   # Extract the first word of "$ac_prog", so it can be a program name with args.
5631 set dummy $ac_prog; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if ${ac_cv_path_CAT+:} false; then :
5635   $as_echo_n "(cached) " >&6
5636 else
5637   case $CAT in
5638   [\\/]* | ?:[\\/]*)
5639   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5640   ;;
5641   *)
5642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645   IFS=$as_save_IFS
5646   test -z "$as_dir" && as_dir=.
5647     for ac_exec_ext in '' $ac_executable_extensions; do
5648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5649     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651     break 2
5652   fi
5653 done
5654   done
5655 IFS=$as_save_IFS
5656 
5657   ;;
5658 esac
5659 fi
5660 CAT=$ac_cv_path_CAT
5661 if test -n "$CAT"; then
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5663 $as_echo "$CAT" >&6; }
5664 else
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668 
5669 
5670   test -n "$CAT" && break
5671 done
5672 
5673     else
5674       # If it succeeded, then it was overridden by the user. We will use it
5675       # for the tool.
5676 
5677       # First remove it from the list of overridden variables, so we can test
5678       # for unknown variables in the end.
5679       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5680 
5681       # Check if we try to supply an empty value
5682       if test "x$CAT" = x; then
5683         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5684 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5685         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5686 $as_echo_n "checking for CAT... " >&6; }
5687         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5688 $as_echo "disabled" >&6; }
5689       else
5690         # Check if the provided tool contains a complete path.
5691         tool_specified="$CAT"
5692         tool_basename="${tool_specified##*/}"
5693         if test "x$tool_basename" = "x$tool_specified"; then
5694           # A command without a complete path is provided, search $PATH.
5695           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5696 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5697           # Extract the first word of "$tool_basename", so it can be a program name with args.
5698 set dummy $tool_basename; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_path_CAT+:} false; then :
5702   $as_echo_n "(cached) " >&6
5703 else
5704   case $CAT in
5705   [\\/]* | ?:[\\/]*)
5706   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5707   ;;
5708   *)
5709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712   IFS=$as_save_IFS
5713   test -z "$as_dir" && as_dir=.
5714     for ac_exec_ext in '' $ac_executable_extensions; do
5715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718     break 2
5719   fi
5720 done
5721   done
5722 IFS=$as_save_IFS
5723 
5724   ;;
5725 esac
5726 fi
5727 CAT=$ac_cv_path_CAT
5728 if test -n "$CAT"; then
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5730 $as_echo "$CAT" >&6; }
5731 else
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735 
5736 
5737           if test "x$CAT" = x; then
5738             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5739           fi
5740         else
5741           # Otherwise we believe it is a complete path. Use it as it is.
5742           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5743 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5744           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5745 $as_echo_n "checking for CAT... " >&6; }
5746           if test ! -x "$tool_specified"; then
5747             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5748 $as_echo "not found" >&6; }
5749             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5750           fi
5751           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5752 $as_echo "$tool_specified" >&6; }
5753         fi
5754       fi
5755     fi
5756 
5757   fi
5758 
5759 
5760 
5761   if test "x$CAT" = x; then
5762     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5763   fi
5764 
5765 
5766 
5767 
5768 
5769   # Publish this variable in the help.
5770 
5771 
5772   if [ -z "${CHMOD+x}" ]; then
5773     # The variable is not set by user, try to locate tool using the code snippet
5774     for ac_prog in chmod
5775 do
5776   # Extract the first word of "$ac_prog", so it can be a program name with args.
5777 set dummy $ac_prog; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if ${ac_cv_path_CHMOD+:} false; then :
5781   $as_echo_n "(cached) " >&6
5782 else
5783   case $CHMOD in
5784   [\\/]* | ?:[\\/]*)
5785   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5786   ;;
5787   *)
5788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791   IFS=$as_save_IFS
5792   test -z "$as_dir" && as_dir=.
5793     for ac_exec_ext in '' $ac_executable_extensions; do
5794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797     break 2
5798   fi
5799 done
5800   done
5801 IFS=$as_save_IFS
5802 
5803   ;;
5804 esac
5805 fi
5806 CHMOD=$ac_cv_path_CHMOD
5807 if test -n "$CHMOD"; then
5808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5809 $as_echo "$CHMOD" >&6; }
5810 else
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5813 fi
5814 
5815 
5816   test -n "$CHMOD" && break
5817 done
5818 
5819   else
5820     # The variable is set, but is it from the command line or the environment?
5821 
5822     # Try to remove the string !CHMOD! from our list.
5823     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5824     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5825       # If it failed, the variable was not from the command line. Ignore it,
5826       # but warn the user (except for BASH, which is always set by the calling BASH).
5827       if test "xCHMOD" != xBASH; then
5828         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5829 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5830       fi
5831       # Try to locate tool using the code snippet
5832       for ac_prog in chmod
5833 do
5834   # Extract the first word of "$ac_prog", so it can be a program name with args.
5835 set dummy $ac_prog; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_path_CHMOD+:} false; then :
5839   $as_echo_n "(cached) " >&6
5840 else
5841   case $CHMOD in
5842   [\\/]* | ?:[\\/]*)
5843   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5844   ;;
5845   *)
5846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849   IFS=$as_save_IFS
5850   test -z "$as_dir" && as_dir=.
5851     for ac_exec_ext in '' $ac_executable_extensions; do
5852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855     break 2
5856   fi
5857 done
5858   done
5859 IFS=$as_save_IFS
5860 
5861   ;;
5862 esac
5863 fi
5864 CHMOD=$ac_cv_path_CHMOD
5865 if test -n "$CHMOD"; then
5866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5867 $as_echo "$CHMOD" >&6; }
5868 else
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872 
5873 
5874   test -n "$CHMOD" && break
5875 done
5876 
5877     else
5878       # If it succeeded, then it was overridden by the user. We will use it
5879       # for the tool.
5880 
5881       # First remove it from the list of overridden variables, so we can test
5882       # for unknown variables in the end.
5883       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5884 
5885       # Check if we try to supply an empty value
5886       if test "x$CHMOD" = x; then
5887         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5888 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5889         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5890 $as_echo_n "checking for CHMOD... " >&6; }
5891         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5892 $as_echo "disabled" >&6; }
5893       else
5894         # Check if the provided tool contains a complete path.
5895         tool_specified="$CHMOD"
5896         tool_basename="${tool_specified##*/}"
5897         if test "x$tool_basename" = "x$tool_specified"; then
5898           # A command without a complete path is provided, search $PATH.
5899           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5900 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5901           # Extract the first word of "$tool_basename", so it can be a program name with args.
5902 set dummy $tool_basename; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if ${ac_cv_path_CHMOD+:} false; then :
5906   $as_echo_n "(cached) " >&6
5907 else
5908   case $CHMOD in
5909   [\\/]* | ?:[\\/]*)
5910   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5911   ;;
5912   *)
5913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916   IFS=$as_save_IFS
5917   test -z "$as_dir" && as_dir=.
5918     for ac_exec_ext in '' $ac_executable_extensions; do
5919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922     break 2
5923   fi
5924 done
5925   done
5926 IFS=$as_save_IFS
5927 
5928   ;;
5929 esac
5930 fi
5931 CHMOD=$ac_cv_path_CHMOD
5932 if test -n "$CHMOD"; then
5933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5934 $as_echo "$CHMOD" >&6; }
5935 else
5936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939 
5940 
5941           if test "x$CHMOD" = x; then
5942             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5943           fi
5944         else
5945           # Otherwise we believe it is a complete path. Use it as it is.
5946           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5947 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5948           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5949 $as_echo_n "checking for CHMOD... " >&6; }
5950           if test ! -x "$tool_specified"; then
5951             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5952 $as_echo "not found" >&6; }
5953             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5954           fi
5955           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5956 $as_echo "$tool_specified" >&6; }
5957         fi
5958       fi
5959     fi
5960 
5961   fi
5962 
5963 
5964 
5965   if test "x$CHMOD" = x; then
5966     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5967   fi
5968 
5969 
5970 
5971 
5972 
5973   # Publish this variable in the help.
5974 
5975 
5976   if [ -z "${CMP+x}" ]; then
5977     # The variable is not set by user, try to locate tool using the code snippet
5978     for ac_prog in cmp
5979 do
5980   # Extract the first word of "$ac_prog", so it can be a program name with args.
5981 set dummy $ac_prog; ac_word=$2
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if ${ac_cv_path_CMP+:} false; then :
5985   $as_echo_n "(cached) " >&6
5986 else
5987   case $CMP in
5988   [\\/]* | ?:[\\/]*)
5989   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5990   ;;
5991   *)
5992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997     for ac_exec_ext in '' $ac_executable_extensions; do
5998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001     break 2
6002   fi
6003 done
6004   done
6005 IFS=$as_save_IFS
6006 
6007   ;;
6008 esac
6009 fi
6010 CMP=$ac_cv_path_CMP
6011 if test -n "$CMP"; then
6012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6013 $as_echo "$CMP" >&6; }
6014 else
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6017 fi
6018 
6019 
6020   test -n "$CMP" && break
6021 done
6022 
6023   else
6024     # The variable is set, but is it from the command line or the environment?
6025 
6026     # Try to remove the string !CMP! from our list.
6027     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6028     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6029       # If it failed, the variable was not from the command line. Ignore it,
6030       # but warn the user (except for BASH, which is always set by the calling BASH).
6031       if test "xCMP" != xBASH; then
6032         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6033 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6034       fi
6035       # Try to locate tool using the code snippet
6036       for ac_prog in cmp
6037 do
6038   # Extract the first word of "$ac_prog", so it can be a program name with args.
6039 set dummy $ac_prog; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_path_CMP+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   case $CMP in
6046   [\\/]* | ?:[\\/]*)
6047   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6048   ;;
6049   *)
6050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053   IFS=$as_save_IFS
6054   test -z "$as_dir" && as_dir=.
6055     for ac_exec_ext in '' $ac_executable_extensions; do
6056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059     break 2
6060   fi
6061 done
6062   done
6063 IFS=$as_save_IFS
6064 
6065   ;;
6066 esac
6067 fi
6068 CMP=$ac_cv_path_CMP
6069 if test -n "$CMP"; then
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6071 $as_echo "$CMP" >&6; }
6072 else
6073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076 
6077 
6078   test -n "$CMP" && break
6079 done
6080 
6081     else
6082       # If it succeeded, then it was overridden by the user. We will use it
6083       # for the tool.
6084 
6085       # First remove it from the list of overridden variables, so we can test
6086       # for unknown variables in the end.
6087       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6088 
6089       # Check if we try to supply an empty value
6090       if test "x$CMP" = x; then
6091         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6092 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6094 $as_echo_n "checking for CMP... " >&6; }
6095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6096 $as_echo "disabled" >&6; }
6097       else
6098         # Check if the provided tool contains a complete path.
6099         tool_specified="$CMP"
6100         tool_basename="${tool_specified##*/}"
6101         if test "x$tool_basename" = "x$tool_specified"; then
6102           # A command without a complete path is provided, search $PATH.
6103           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6104 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6105           # Extract the first word of "$tool_basename", so it can be a program name with args.
6106 set dummy $tool_basename; ac_word=$2
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if ${ac_cv_path_CMP+:} false; then :
6110   $as_echo_n "(cached) " >&6
6111 else
6112   case $CMP in
6113   [\\/]* | ?:[\\/]*)
6114   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6115   ;;
6116   *)
6117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122     for ac_exec_ext in '' $ac_executable_extensions; do
6123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129   done
6130 IFS=$as_save_IFS
6131 
6132   ;;
6133 esac
6134 fi
6135 CMP=$ac_cv_path_CMP
6136 if test -n "$CMP"; then
6137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6138 $as_echo "$CMP" >&6; }
6139 else
6140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6142 fi
6143 
6144 
6145           if test "x$CMP" = x; then
6146             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6147           fi
6148         else
6149           # Otherwise we believe it is a complete path. Use it as it is.
6150           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6151 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6152           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6153 $as_echo_n "checking for CMP... " >&6; }
6154           if test ! -x "$tool_specified"; then
6155             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6156 $as_echo "not found" >&6; }
6157             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6158           fi
6159           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6160 $as_echo "$tool_specified" >&6; }
6161         fi
6162       fi
6163     fi
6164 
6165   fi
6166 
6167 
6168 
6169   if test "x$CMP" = x; then
6170     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6171   fi
6172 
6173 
6174 
6175 
6176 
6177   # Publish this variable in the help.
6178 
6179 
6180   if [ -z "${COMM+x}" ]; then
6181     # The variable is not set by user, try to locate tool using the code snippet
6182     for ac_prog in comm
6183 do
6184   # Extract the first word of "$ac_prog", so it can be a program name with args.
6185 set dummy $ac_prog; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_path_COMM+:} false; then :
6189   $as_echo_n "(cached) " >&6
6190 else
6191   case $COMM in
6192   [\\/]* | ?:[\\/]*)
6193   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6194   ;;
6195   *)
6196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201     for ac_exec_ext in '' $ac_executable_extensions; do
6202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208   done
6209 IFS=$as_save_IFS
6210 
6211   ;;
6212 esac
6213 fi
6214 COMM=$ac_cv_path_COMM
6215 if test -n "$COMM"; then
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6217 $as_echo "$COMM" >&6; }
6218 else
6219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6221 fi
6222 
6223 
6224   test -n "$COMM" && break
6225 done
6226 
6227   else
6228     # The variable is set, but is it from the command line or the environment?
6229 
6230     # Try to remove the string !COMM! from our list.
6231     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6232     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6233       # If it failed, the variable was not from the command line. Ignore it,
6234       # but warn the user (except for BASH, which is always set by the calling BASH).
6235       if test "xCOMM" != xBASH; then
6236         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6237 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6238       fi
6239       # Try to locate tool using the code snippet
6240       for ac_prog in comm
6241 do
6242   # Extract the first word of "$ac_prog", so it can be a program name with args.
6243 set dummy $ac_prog; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_path_COMM+:} false; then :
6247   $as_echo_n "(cached) " >&6
6248 else
6249   case $COMM in
6250   [\\/]* | ?:[\\/]*)
6251   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6252   ;;
6253   *)
6254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259     for ac_exec_ext in '' $ac_executable_extensions; do
6260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263     break 2
6264   fi
6265 done
6266   done
6267 IFS=$as_save_IFS
6268 
6269   ;;
6270 esac
6271 fi
6272 COMM=$ac_cv_path_COMM
6273 if test -n "$COMM"; then
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6275 $as_echo "$COMM" >&6; }
6276 else
6277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280 
6281 
6282   test -n "$COMM" && break
6283 done
6284 
6285     else
6286       # If it succeeded, then it was overridden by the user. We will use it
6287       # for the tool.
6288 
6289       # First remove it from the list of overridden variables, so we can test
6290       # for unknown variables in the end.
6291       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6292 
6293       # Check if we try to supply an empty value
6294       if test "x$COMM" = x; then
6295         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6296 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6297         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6298 $as_echo_n "checking for COMM... " >&6; }
6299         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6300 $as_echo "disabled" >&6; }
6301       else
6302         # Check if the provided tool contains a complete path.
6303         tool_specified="$COMM"
6304         tool_basename="${tool_specified##*/}"
6305         if test "x$tool_basename" = "x$tool_specified"; then
6306           # A command without a complete path is provided, search $PATH.
6307           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6308 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6309           # Extract the first word of "$tool_basename", so it can be a program name with args.
6310 set dummy $tool_basename; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if ${ac_cv_path_COMM+:} false; then :
6314   $as_echo_n "(cached) " >&6
6315 else
6316   case $COMM in
6317   [\\/]* | ?:[\\/]*)
6318   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6319   ;;
6320   *)
6321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6323 do
6324   IFS=$as_save_IFS
6325   test -z "$as_dir" && as_dir=.
6326     for ac_exec_ext in '' $ac_executable_extensions; do
6327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330     break 2
6331   fi
6332 done
6333   done
6334 IFS=$as_save_IFS
6335 
6336   ;;
6337 esac
6338 fi
6339 COMM=$ac_cv_path_COMM
6340 if test -n "$COMM"; then
6341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6342 $as_echo "$COMM" >&6; }
6343 else
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347 
6348 
6349           if test "x$COMM" = x; then
6350             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6351           fi
6352         else
6353           # Otherwise we believe it is a complete path. Use it as it is.
6354           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6355 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6356           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6357 $as_echo_n "checking for COMM... " >&6; }
6358           if test ! -x "$tool_specified"; then
6359             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6360 $as_echo "not found" >&6; }
6361             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6362           fi
6363           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6364 $as_echo "$tool_specified" >&6; }
6365         fi
6366       fi
6367     fi
6368 
6369   fi
6370 
6371 
6372 
6373   if test "x$COMM" = x; then
6374     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6375   fi
6376 
6377 
6378 
6379 
6380 
6381   # Publish this variable in the help.
6382 
6383 
6384   if [ -z "${CP+x}" ]; then
6385     # The variable is not set by user, try to locate tool using the code snippet
6386     for ac_prog in cp
6387 do
6388   # Extract the first word of "$ac_prog", so it can be a program name with args.
6389 set dummy $ac_prog; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_path_CP+:} false; then :
6393   $as_echo_n "(cached) " >&6
6394 else
6395   case $CP in
6396   [\\/]* | ?:[\\/]*)
6397   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6398   ;;
6399   *)
6400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405     for ac_exec_ext in '' $ac_executable_extensions; do
6406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412   done
6413 IFS=$as_save_IFS
6414 
6415   ;;
6416 esac
6417 fi
6418 CP=$ac_cv_path_CP
6419 if test -n "$CP"; then
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6421 $as_echo "$CP" >&6; }
6422 else
6423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6425 fi
6426 
6427 
6428   test -n "$CP" && break
6429 done
6430 
6431   else
6432     # The variable is set, but is it from the command line or the environment?
6433 
6434     # Try to remove the string !CP! from our list.
6435     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6436     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6437       # If it failed, the variable was not from the command line. Ignore it,
6438       # but warn the user (except for BASH, which is always set by the calling BASH).
6439       if test "xCP" != xBASH; then
6440         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6441 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6442       fi
6443       # Try to locate tool using the code snippet
6444       for ac_prog in cp
6445 do
6446   # Extract the first word of "$ac_prog", so it can be a program name with args.
6447 set dummy $ac_prog; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_path_CP+:} false; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453   case $CP in
6454   [\\/]* | ?:[\\/]*)
6455   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6456   ;;
6457   *)
6458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461   IFS=$as_save_IFS
6462   test -z "$as_dir" && as_dir=.
6463     for ac_exec_ext in '' $ac_executable_extensions; do
6464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467     break 2
6468   fi
6469 done
6470   done
6471 IFS=$as_save_IFS
6472 
6473   ;;
6474 esac
6475 fi
6476 CP=$ac_cv_path_CP
6477 if test -n "$CP"; then
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6479 $as_echo "$CP" >&6; }
6480 else
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484 
6485 
6486   test -n "$CP" && break
6487 done
6488 
6489     else
6490       # If it succeeded, then it was overridden by the user. We will use it
6491       # for the tool.
6492 
6493       # First remove it from the list of overridden variables, so we can test
6494       # for unknown variables in the end.
6495       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6496 
6497       # Check if we try to supply an empty value
6498       if test "x$CP" = x; then
6499         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6500 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6501         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6502 $as_echo_n "checking for CP... " >&6; }
6503         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6504 $as_echo "disabled" >&6; }
6505       else
6506         # Check if the provided tool contains a complete path.
6507         tool_specified="$CP"
6508         tool_basename="${tool_specified##*/}"
6509         if test "x$tool_basename" = "x$tool_specified"; then
6510           # A command without a complete path is provided, search $PATH.
6511           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6512 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6513           # Extract the first word of "$tool_basename", so it can be a program name with args.
6514 set dummy $tool_basename; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_path_CP+:} false; then :
6518   $as_echo_n "(cached) " >&6
6519 else
6520   case $CP in
6521   [\\/]* | ?:[\\/]*)
6522   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6523   ;;
6524   *)
6525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530     for ac_exec_ext in '' $ac_executable_extensions; do
6531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534     break 2
6535   fi
6536 done
6537   done
6538 IFS=$as_save_IFS
6539 
6540   ;;
6541 esac
6542 fi
6543 CP=$ac_cv_path_CP
6544 if test -n "$CP"; then
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6546 $as_echo "$CP" >&6; }
6547 else
6548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; }
6550 fi
6551 
6552 
6553           if test "x$CP" = x; then
6554             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6555           fi
6556         else
6557           # Otherwise we believe it is a complete path. Use it as it is.
6558           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6559 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6560           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6561 $as_echo_n "checking for CP... " >&6; }
6562           if test ! -x "$tool_specified"; then
6563             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6564 $as_echo "not found" >&6; }
6565             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6566           fi
6567           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6568 $as_echo "$tool_specified" >&6; }
6569         fi
6570       fi
6571     fi
6572 
6573   fi
6574 
6575 
6576 
6577   if test "x$CP" = x; then
6578     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6579   fi
6580 
6581 
6582 
6583 
6584 
6585   # Publish this variable in the help.
6586 
6587 
6588   if [ -z "${CUT+x}" ]; then
6589     # The variable is not set by user, try to locate tool using the code snippet
6590     for ac_prog in cut
6591 do
6592   # Extract the first word of "$ac_prog", so it can be a program name with args.
6593 set dummy $ac_prog; ac_word=$2
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595 $as_echo_n "checking for $ac_word... " >&6; }
6596 if ${ac_cv_path_CUT+:} false; then :
6597   $as_echo_n "(cached) " >&6
6598 else
6599   case $CUT in
6600   [\\/]* | ?:[\\/]*)
6601   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6602   ;;
6603   *)
6604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607   IFS=$as_save_IFS
6608   test -z "$as_dir" && as_dir=.
6609     for ac_exec_ext in '' $ac_executable_extensions; do
6610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6611     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613     break 2
6614   fi
6615 done
6616   done
6617 IFS=$as_save_IFS
6618 
6619   ;;
6620 esac
6621 fi
6622 CUT=$ac_cv_path_CUT
6623 if test -n "$CUT"; then
6624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6625 $as_echo "$CUT" >&6; }
6626 else
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630 
6631 
6632   test -n "$CUT" && break
6633 done
6634 
6635   else
6636     # The variable is set, but is it from the command line or the environment?
6637 
6638     # Try to remove the string !CUT! from our list.
6639     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6640     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6641       # If it failed, the variable was not from the command line. Ignore it,
6642       # but warn the user (except for BASH, which is always set by the calling BASH).
6643       if test "xCUT" != xBASH; then
6644         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6645 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6646       fi
6647       # Try to locate tool using the code snippet
6648       for ac_prog in cut
6649 do
6650   # Extract the first word of "$ac_prog", so it can be a program name with args.
6651 set dummy $ac_prog; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_path_CUT+:} false; then :
6655   $as_echo_n "(cached) " >&6
6656 else
6657   case $CUT in
6658   [\\/]* | ?:[\\/]*)
6659   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6660   ;;
6661   *)
6662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665   IFS=$as_save_IFS
6666   test -z "$as_dir" && as_dir=.
6667     for ac_exec_ext in '' $ac_executable_extensions; do
6668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671     break 2
6672   fi
6673 done
6674   done
6675 IFS=$as_save_IFS
6676 
6677   ;;
6678 esac
6679 fi
6680 CUT=$ac_cv_path_CUT
6681 if test -n "$CUT"; then
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6683 $as_echo "$CUT" >&6; }
6684 else
6685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688 
6689 
6690   test -n "$CUT" && break
6691 done
6692 
6693     else
6694       # If it succeeded, then it was overridden by the user. We will use it
6695       # for the tool.
6696 
6697       # First remove it from the list of overridden variables, so we can test
6698       # for unknown variables in the end.
6699       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6700 
6701       # Check if we try to supply an empty value
6702       if test "x$CUT" = x; then
6703         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6704 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6705         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6706 $as_echo_n "checking for CUT... " >&6; }
6707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6708 $as_echo "disabled" >&6; }
6709       else
6710         # Check if the provided tool contains a complete path.
6711         tool_specified="$CUT"
6712         tool_basename="${tool_specified##*/}"
6713         if test "x$tool_basename" = "x$tool_specified"; then
6714           # A command without a complete path is provided, search $PATH.
6715           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6716 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6717           # Extract the first word of "$tool_basename", so it can be a program name with args.
6718 set dummy $tool_basename; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if ${ac_cv_path_CUT+:} false; then :
6722   $as_echo_n "(cached) " >&6
6723 else
6724   case $CUT in
6725   [\\/]* | ?:[\\/]*)
6726   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6727   ;;
6728   *)
6729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732   IFS=$as_save_IFS
6733   test -z "$as_dir" && as_dir=.
6734     for ac_exec_ext in '' $ac_executable_extensions; do
6735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738     break 2
6739   fi
6740 done
6741   done
6742 IFS=$as_save_IFS
6743 
6744   ;;
6745 esac
6746 fi
6747 CUT=$ac_cv_path_CUT
6748 if test -n "$CUT"; then
6749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6750 $as_echo "$CUT" >&6; }
6751 else
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755 
6756 
6757           if test "x$CUT" = x; then
6758             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6759           fi
6760         else
6761           # Otherwise we believe it is a complete path. Use it as it is.
6762           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6763 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6764           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6765 $as_echo_n "checking for CUT... " >&6; }
6766           if test ! -x "$tool_specified"; then
6767             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6768 $as_echo "not found" >&6; }
6769             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6770           fi
6771           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6772 $as_echo "$tool_specified" >&6; }
6773         fi
6774       fi
6775     fi
6776 
6777   fi
6778 
6779 
6780 
6781   if test "x$CUT" = x; then
6782     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6783   fi
6784 
6785 
6786 
6787 
6788 
6789   # Publish this variable in the help.
6790 
6791 
6792   if [ -z "${DATE+x}" ]; then
6793     # The variable is not set by user, try to locate tool using the code snippet
6794     for ac_prog in date
6795 do
6796   # Extract the first word of "$ac_prog", so it can be a program name with args.
6797 set dummy $ac_prog; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_path_DATE+:} false; then :
6801   $as_echo_n "(cached) " >&6
6802 else
6803   case $DATE in
6804   [\\/]* | ?:[\\/]*)
6805   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6806   ;;
6807   *)
6808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813     for ac_exec_ext in '' $ac_executable_extensions; do
6814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817     break 2
6818   fi
6819 done
6820   done
6821 IFS=$as_save_IFS
6822 
6823   ;;
6824 esac
6825 fi
6826 DATE=$ac_cv_path_DATE
6827 if test -n "$DATE"; then
6828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6829 $as_echo "$DATE" >&6; }
6830 else
6831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6833 fi
6834 
6835 
6836   test -n "$DATE" && break
6837 done
6838 
6839   else
6840     # The variable is set, but is it from the command line or the environment?
6841 
6842     # Try to remove the string !DATE! from our list.
6843     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6844     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6845       # If it failed, the variable was not from the command line. Ignore it,
6846       # but warn the user (except for BASH, which is always set by the calling BASH).
6847       if test "xDATE" != xBASH; then
6848         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6849 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6850       fi
6851       # Try to locate tool using the code snippet
6852       for ac_prog in date
6853 do
6854   # Extract the first word of "$ac_prog", so it can be a program name with args.
6855 set dummy $ac_prog; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if ${ac_cv_path_DATE+:} false; then :
6859   $as_echo_n "(cached) " >&6
6860 else
6861   case $DATE in
6862   [\\/]* | ?:[\\/]*)
6863   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6864   ;;
6865   *)
6866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869   IFS=$as_save_IFS
6870   test -z "$as_dir" && as_dir=.
6871     for ac_exec_ext in '' $ac_executable_extensions; do
6872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875     break 2
6876   fi
6877 done
6878   done
6879 IFS=$as_save_IFS
6880 
6881   ;;
6882 esac
6883 fi
6884 DATE=$ac_cv_path_DATE
6885 if test -n "$DATE"; then
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6887 $as_echo "$DATE" >&6; }
6888 else
6889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6891 fi
6892 
6893 
6894   test -n "$DATE" && break
6895 done
6896 
6897     else
6898       # If it succeeded, then it was overridden by the user. We will use it
6899       # for the tool.
6900 
6901       # First remove it from the list of overridden variables, so we can test
6902       # for unknown variables in the end.
6903       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6904 
6905       # Check if we try to supply an empty value
6906       if test "x$DATE" = x; then
6907         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6908 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6909         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6910 $as_echo_n "checking for DATE... " >&6; }
6911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6912 $as_echo "disabled" >&6; }
6913       else
6914         # Check if the provided tool contains a complete path.
6915         tool_specified="$DATE"
6916         tool_basename="${tool_specified##*/}"
6917         if test "x$tool_basename" = "x$tool_specified"; then
6918           # A command without a complete path is provided, search $PATH.
6919           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6920 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6921           # Extract the first word of "$tool_basename", so it can be a program name with args.
6922 set dummy $tool_basename; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if ${ac_cv_path_DATE+:} false; then :
6926   $as_echo_n "(cached) " >&6
6927 else
6928   case $DATE in
6929   [\\/]* | ?:[\\/]*)
6930   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6931   ;;
6932   *)
6933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938     for ac_exec_ext in '' $ac_executable_extensions; do
6939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945   done
6946 IFS=$as_save_IFS
6947 
6948   ;;
6949 esac
6950 fi
6951 DATE=$ac_cv_path_DATE
6952 if test -n "$DATE"; then
6953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6954 $as_echo "$DATE" >&6; }
6955 else
6956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6958 fi
6959 
6960 
6961           if test "x$DATE" = x; then
6962             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6963           fi
6964         else
6965           # Otherwise we believe it is a complete path. Use it as it is.
6966           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6967 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6968           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6969 $as_echo_n "checking for DATE... " >&6; }
6970           if test ! -x "$tool_specified"; then
6971             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6972 $as_echo "not found" >&6; }
6973             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6974           fi
6975           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6976 $as_echo "$tool_specified" >&6; }
6977         fi
6978       fi
6979     fi
6980 
6981   fi
6982 
6983 
6984 
6985   if test "x$DATE" = x; then
6986     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6987   fi
6988 
6989 
6990 
6991 
6992 
6993   # Publish this variable in the help.
6994 
6995 
6996   if [ -z "${DIFF+x}" ]; then
6997     # The variable is not set by user, try to locate tool using the code snippet
6998     for ac_prog in gdiff diff
6999 do
7000   # Extract the first word of "$ac_prog", so it can be a program name with args.
7001 set dummy $ac_prog; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_path_DIFF+:} false; then :
7005   $as_echo_n "(cached) " >&6
7006 else
7007   case $DIFF in
7008   [\\/]* | ?:[\\/]*)
7009   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7010   ;;
7011   *)
7012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015   IFS=$as_save_IFS
7016   test -z "$as_dir" && as_dir=.
7017     for ac_exec_ext in '' $ac_executable_extensions; do
7018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021     break 2
7022   fi
7023 done
7024   done
7025 IFS=$as_save_IFS
7026 
7027   ;;
7028 esac
7029 fi
7030 DIFF=$ac_cv_path_DIFF
7031 if test -n "$DIFF"; then
7032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7033 $as_echo "$DIFF" >&6; }
7034 else
7035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7037 fi
7038 
7039 
7040   test -n "$DIFF" && break
7041 done
7042 
7043   else
7044     # The variable is set, but is it from the command line or the environment?
7045 
7046     # Try to remove the string !DIFF! from our list.
7047     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7048     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7049       # If it failed, the variable was not from the command line. Ignore it,
7050       # but warn the user (except for BASH, which is always set by the calling BASH).
7051       if test "xDIFF" != xBASH; then
7052         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7053 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7054       fi
7055       # Try to locate tool using the code snippet
7056       for ac_prog in gdiff diff
7057 do
7058   # Extract the first word of "$ac_prog", so it can be a program name with args.
7059 set dummy $ac_prog; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_path_DIFF+:} false; then :
7063   $as_echo_n "(cached) " >&6
7064 else
7065   case $DIFF in
7066   [\\/]* | ?:[\\/]*)
7067   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7068   ;;
7069   *)
7070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073   IFS=$as_save_IFS
7074   test -z "$as_dir" && as_dir=.
7075     for ac_exec_ext in '' $ac_executable_extensions; do
7076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079     break 2
7080   fi
7081 done
7082   done
7083 IFS=$as_save_IFS
7084 
7085   ;;
7086 esac
7087 fi
7088 DIFF=$ac_cv_path_DIFF
7089 if test -n "$DIFF"; then
7090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7091 $as_echo "$DIFF" >&6; }
7092 else
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7095 fi
7096 
7097 
7098   test -n "$DIFF" && break
7099 done
7100 
7101     else
7102       # If it succeeded, then it was overridden by the user. We will use it
7103       # for the tool.
7104 
7105       # First remove it from the list of overridden variables, so we can test
7106       # for unknown variables in the end.
7107       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7108 
7109       # Check if we try to supply an empty value
7110       if test "x$DIFF" = x; then
7111         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7112 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7113         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7114 $as_echo_n "checking for DIFF... " >&6; }
7115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7116 $as_echo "disabled" >&6; }
7117       else
7118         # Check if the provided tool contains a complete path.
7119         tool_specified="$DIFF"
7120         tool_basename="${tool_specified##*/}"
7121         if test "x$tool_basename" = "x$tool_specified"; then
7122           # A command without a complete path is provided, search $PATH.
7123           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7124 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7125           # Extract the first word of "$tool_basename", so it can be a program name with args.
7126 set dummy $tool_basename; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if ${ac_cv_path_DIFF+:} false; then :
7130   $as_echo_n "(cached) " >&6
7131 else
7132   case $DIFF in
7133   [\\/]* | ?:[\\/]*)
7134   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7135   ;;
7136   *)
7137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140   IFS=$as_save_IFS
7141   test -z "$as_dir" && as_dir=.
7142     for ac_exec_ext in '' $ac_executable_extensions; do
7143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146     break 2
7147   fi
7148 done
7149   done
7150 IFS=$as_save_IFS
7151 
7152   ;;
7153 esac
7154 fi
7155 DIFF=$ac_cv_path_DIFF
7156 if test -n "$DIFF"; then
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7158 $as_echo "$DIFF" >&6; }
7159 else
7160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7162 fi
7163 
7164 
7165           if test "x$DIFF" = x; then
7166             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7167           fi
7168         else
7169           # Otherwise we believe it is a complete path. Use it as it is.
7170           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7171 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7172           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7173 $as_echo_n "checking for DIFF... " >&6; }
7174           if test ! -x "$tool_specified"; then
7175             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7176 $as_echo "not found" >&6; }
7177             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7178           fi
7179           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7180 $as_echo "$tool_specified" >&6; }
7181         fi
7182       fi
7183     fi
7184 
7185   fi
7186 
7187 
7188 
7189   if test "x$DIFF" = x; then
7190     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7191   fi
7192 
7193 
7194 
7195 
7196 
7197   # Publish this variable in the help.
7198 
7199 
7200   if [ -z "${DIRNAME+x}" ]; then
7201     # The variable is not set by user, try to locate tool using the code snippet
7202     for ac_prog in dirname
7203 do
7204   # Extract the first word of "$ac_prog", so it can be a program name with args.
7205 set dummy $ac_prog; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_path_DIRNAME+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   case $DIRNAME in
7212   [\\/]* | ?:[\\/]*)
7213   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7214   ;;
7215   *)
7216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221     for ac_exec_ext in '' $ac_executable_extensions; do
7222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228   done
7229 IFS=$as_save_IFS
7230 
7231   ;;
7232 esac
7233 fi
7234 DIRNAME=$ac_cv_path_DIRNAME
7235 if test -n "$DIRNAME"; then
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7237 $as_echo "$DIRNAME" >&6; }
7238 else
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7241 fi
7242 
7243 
7244   test -n "$DIRNAME" && break
7245 done
7246 
7247   else
7248     # The variable is set, but is it from the command line or the environment?
7249 
7250     # Try to remove the string !DIRNAME! from our list.
7251     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7252     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7253       # If it failed, the variable was not from the command line. Ignore it,
7254       # but warn the user (except for BASH, which is always set by the calling BASH).
7255       if test "xDIRNAME" != xBASH; then
7256         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7257 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7258       fi
7259       # Try to locate tool using the code snippet
7260       for ac_prog in dirname
7261 do
7262   # Extract the first word of "$ac_prog", so it can be a program name with args.
7263 set dummy $ac_prog; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_path_DIRNAME+:} false; then :
7267   $as_echo_n "(cached) " >&6
7268 else
7269   case $DIRNAME in
7270   [\\/]* | ?:[\\/]*)
7271   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7272   ;;
7273   *)
7274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7276 do
7277   IFS=$as_save_IFS
7278   test -z "$as_dir" && as_dir=.
7279     for ac_exec_ext in '' $ac_executable_extensions; do
7280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283     break 2
7284   fi
7285 done
7286   done
7287 IFS=$as_save_IFS
7288 
7289   ;;
7290 esac
7291 fi
7292 DIRNAME=$ac_cv_path_DIRNAME
7293 if test -n "$DIRNAME"; then
7294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7295 $as_echo "$DIRNAME" >&6; }
7296 else
7297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7299 fi
7300 
7301 
7302   test -n "$DIRNAME" && break
7303 done
7304 
7305     else
7306       # If it succeeded, then it was overridden by the user. We will use it
7307       # for the tool.
7308 
7309       # First remove it from the list of overridden variables, so we can test
7310       # for unknown variables in the end.
7311       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7312 
7313       # Check if we try to supply an empty value
7314       if test "x$DIRNAME" = x; then
7315         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7316 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7317         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7318 $as_echo_n "checking for DIRNAME... " >&6; }
7319         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7320 $as_echo "disabled" >&6; }
7321       else
7322         # Check if the provided tool contains a complete path.
7323         tool_specified="$DIRNAME"
7324         tool_basename="${tool_specified##*/}"
7325         if test "x$tool_basename" = "x$tool_specified"; then
7326           # A command without a complete path is provided, search $PATH.
7327           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7328 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7329           # Extract the first word of "$tool_basename", so it can be a program name with args.
7330 set dummy $tool_basename; ac_word=$2
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332 $as_echo_n "checking for $ac_word... " >&6; }
7333 if ${ac_cv_path_DIRNAME+:} false; then :
7334   $as_echo_n "(cached) " >&6
7335 else
7336   case $DIRNAME in
7337   [\\/]* | ?:[\\/]*)
7338   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7339   ;;
7340   *)
7341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344   IFS=$as_save_IFS
7345   test -z "$as_dir" && as_dir=.
7346     for ac_exec_ext in '' $ac_executable_extensions; do
7347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350     break 2
7351   fi
7352 done
7353   done
7354 IFS=$as_save_IFS
7355 
7356   ;;
7357 esac
7358 fi
7359 DIRNAME=$ac_cv_path_DIRNAME
7360 if test -n "$DIRNAME"; then
7361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7362 $as_echo "$DIRNAME" >&6; }
7363 else
7364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7366 fi
7367 
7368 
7369           if test "x$DIRNAME" = x; then
7370             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7371           fi
7372         else
7373           # Otherwise we believe it is a complete path. Use it as it is.
7374           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7375 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7376           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7377 $as_echo_n "checking for DIRNAME... " >&6; }
7378           if test ! -x "$tool_specified"; then
7379             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7380 $as_echo "not found" >&6; }
7381             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7382           fi
7383           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7384 $as_echo "$tool_specified" >&6; }
7385         fi
7386       fi
7387     fi
7388 
7389   fi
7390 
7391 
7392 
7393   if test "x$DIRNAME" = x; then
7394     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7395   fi
7396 
7397 
7398 
7399 
7400 
7401   # Publish this variable in the help.
7402 
7403 
7404   if [ -z "${ECHO+x}" ]; then
7405     # The variable is not set by user, try to locate tool using the code snippet
7406     for ac_prog in echo
7407 do
7408   # Extract the first word of "$ac_prog", so it can be a program name with args.
7409 set dummy $ac_prog; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_path_ECHO+:} false; then :
7413   $as_echo_n "(cached) " >&6
7414 else
7415   case $ECHO in
7416   [\\/]* | ?:[\\/]*)
7417   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7418   ;;
7419   *)
7420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425     for ac_exec_ext in '' $ac_executable_extensions; do
7426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432   done
7433 IFS=$as_save_IFS
7434 
7435   ;;
7436 esac
7437 fi
7438 ECHO=$ac_cv_path_ECHO
7439 if test -n "$ECHO"; then
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7441 $as_echo "$ECHO" >&6; }
7442 else
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446 
7447 
7448   test -n "$ECHO" && break
7449 done
7450 
7451   else
7452     # The variable is set, but is it from the command line or the environment?
7453 
7454     # Try to remove the string !ECHO! from our list.
7455     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7456     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7457       # If it failed, the variable was not from the command line. Ignore it,
7458       # but warn the user (except for BASH, which is always set by the calling BASH).
7459       if test "xECHO" != xBASH; then
7460         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7461 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7462       fi
7463       # Try to locate tool using the code snippet
7464       for ac_prog in echo
7465 do
7466   # Extract the first word of "$ac_prog", so it can be a program name with args.
7467 set dummy $ac_prog; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_path_ECHO+:} false; then :
7471   $as_echo_n "(cached) " >&6
7472 else
7473   case $ECHO in
7474   [\\/]* | ?:[\\/]*)
7475   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7476   ;;
7477   *)
7478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481   IFS=$as_save_IFS
7482   test -z "$as_dir" && as_dir=.
7483     for ac_exec_ext in '' $ac_executable_extensions; do
7484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487     break 2
7488   fi
7489 done
7490   done
7491 IFS=$as_save_IFS
7492 
7493   ;;
7494 esac
7495 fi
7496 ECHO=$ac_cv_path_ECHO
7497 if test -n "$ECHO"; then
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7499 $as_echo "$ECHO" >&6; }
7500 else
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504 
7505 
7506   test -n "$ECHO" && break
7507 done
7508 
7509     else
7510       # If it succeeded, then it was overridden by the user. We will use it
7511       # for the tool.
7512 
7513       # First remove it from the list of overridden variables, so we can test
7514       # for unknown variables in the end.
7515       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7516 
7517       # Check if we try to supply an empty value
7518       if test "x$ECHO" = x; then
7519         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7520 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7521         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7522 $as_echo_n "checking for ECHO... " >&6; }
7523         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7524 $as_echo "disabled" >&6; }
7525       else
7526         # Check if the provided tool contains a complete path.
7527         tool_specified="$ECHO"
7528         tool_basename="${tool_specified##*/}"
7529         if test "x$tool_basename" = "x$tool_specified"; then
7530           # A command without a complete path is provided, search $PATH.
7531           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7532 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7533           # Extract the first word of "$tool_basename", so it can be a program name with args.
7534 set dummy $tool_basename; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_path_ECHO+:} false; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540   case $ECHO in
7541   [\\/]* | ?:[\\/]*)
7542   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7543   ;;
7544   *)
7545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550     for ac_exec_ext in '' $ac_executable_extensions; do
7551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557   done
7558 IFS=$as_save_IFS
7559 
7560   ;;
7561 esac
7562 fi
7563 ECHO=$ac_cv_path_ECHO
7564 if test -n "$ECHO"; then
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7566 $as_echo "$ECHO" >&6; }
7567 else
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7570 fi
7571 
7572 
7573           if test "x$ECHO" = x; then
7574             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7575           fi
7576         else
7577           # Otherwise we believe it is a complete path. Use it as it is.
7578           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7579 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7580           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7581 $as_echo_n "checking for ECHO... " >&6; }
7582           if test ! -x "$tool_specified"; then
7583             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7584 $as_echo "not found" >&6; }
7585             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7586           fi
7587           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7588 $as_echo "$tool_specified" >&6; }
7589         fi
7590       fi
7591     fi
7592 
7593   fi
7594 
7595 
7596 
7597   if test "x$ECHO" = x; then
7598     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7599   fi
7600 
7601 
7602 
7603 
7604 
7605   # Publish this variable in the help.
7606 
7607 
7608   if [ -z "${EXPR+x}" ]; then
7609     # The variable is not set by user, try to locate tool using the code snippet
7610     for ac_prog in expr
7611 do
7612   # Extract the first word of "$ac_prog", so it can be a program name with args.
7613 set dummy $ac_prog; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if ${ac_cv_path_EXPR+:} false; then :
7617   $as_echo_n "(cached) " >&6
7618 else
7619   case $EXPR in
7620   [\\/]* | ?:[\\/]*)
7621   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7622   ;;
7623   *)
7624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7626 do
7627   IFS=$as_save_IFS
7628   test -z "$as_dir" && as_dir=.
7629     for ac_exec_ext in '' $ac_executable_extensions; do
7630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633     break 2
7634   fi
7635 done
7636   done
7637 IFS=$as_save_IFS
7638 
7639   ;;
7640 esac
7641 fi
7642 EXPR=$ac_cv_path_EXPR
7643 if test -n "$EXPR"; then
7644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7645 $as_echo "$EXPR" >&6; }
7646 else
7647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7649 fi
7650 
7651 
7652   test -n "$EXPR" && break
7653 done
7654 
7655   else
7656     # The variable is set, but is it from the command line or the environment?
7657 
7658     # Try to remove the string !EXPR! from our list.
7659     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7660     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7661       # If it failed, the variable was not from the command line. Ignore it,
7662       # but warn the user (except for BASH, which is always set by the calling BASH).
7663       if test "xEXPR" != xBASH; then
7664         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7665 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7666       fi
7667       # Try to locate tool using the code snippet
7668       for ac_prog in expr
7669 do
7670   # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if ${ac_cv_path_EXPR+:} false; then :
7675   $as_echo_n "(cached) " >&6
7676 else
7677   case $EXPR in
7678   [\\/]* | ?:[\\/]*)
7679   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7680   ;;
7681   *)
7682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685   IFS=$as_save_IFS
7686   test -z "$as_dir" && as_dir=.
7687     for ac_exec_ext in '' $ac_executable_extensions; do
7688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691     break 2
7692   fi
7693 done
7694   done
7695 IFS=$as_save_IFS
7696 
7697   ;;
7698 esac
7699 fi
7700 EXPR=$ac_cv_path_EXPR
7701 if test -n "$EXPR"; then
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7703 $as_echo "$EXPR" >&6; }
7704 else
7705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7707 fi
7708 
7709 
7710   test -n "$EXPR" && break
7711 done
7712 
7713     else
7714       # If it succeeded, then it was overridden by the user. We will use it
7715       # for the tool.
7716 
7717       # First remove it from the list of overridden variables, so we can test
7718       # for unknown variables in the end.
7719       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7720 
7721       # Check if we try to supply an empty value
7722       if test "x$EXPR" = x; then
7723         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7724 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7725         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7726 $as_echo_n "checking for EXPR... " >&6; }
7727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7728 $as_echo "disabled" >&6; }
7729       else
7730         # Check if the provided tool contains a complete path.
7731         tool_specified="$EXPR"
7732         tool_basename="${tool_specified##*/}"
7733         if test "x$tool_basename" = "x$tool_specified"; then
7734           # A command without a complete path is provided, search $PATH.
7735           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7736 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7737           # Extract the first word of "$tool_basename", so it can be a program name with args.
7738 set dummy $tool_basename; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if ${ac_cv_path_EXPR+:} false; then :
7742   $as_echo_n "(cached) " >&6
7743 else
7744   case $EXPR in
7745   [\\/]* | ?:[\\/]*)
7746   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7747   ;;
7748   *)
7749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7751 do
7752   IFS=$as_save_IFS
7753   test -z "$as_dir" && as_dir=.
7754     for ac_exec_ext in '' $ac_executable_extensions; do
7755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758     break 2
7759   fi
7760 done
7761   done
7762 IFS=$as_save_IFS
7763 
7764   ;;
7765 esac
7766 fi
7767 EXPR=$ac_cv_path_EXPR
7768 if test -n "$EXPR"; then
7769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7770 $as_echo "$EXPR" >&6; }
7771 else
7772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7774 fi
7775 
7776 
7777           if test "x$EXPR" = x; then
7778             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7779           fi
7780         else
7781           # Otherwise we believe it is a complete path. Use it as it is.
7782           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7783 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7784           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7785 $as_echo_n "checking for EXPR... " >&6; }
7786           if test ! -x "$tool_specified"; then
7787             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7788 $as_echo "not found" >&6; }
7789             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7790           fi
7791           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7792 $as_echo "$tool_specified" >&6; }
7793         fi
7794       fi
7795     fi
7796 
7797   fi
7798 
7799 
7800 
7801   if test "x$EXPR" = x; then
7802     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7803   fi
7804 
7805 
7806 
7807 
7808 
7809   # Publish this variable in the help.
7810 
7811 
7812   if [ -z "${FILE+x}" ]; then
7813     # The variable is not set by user, try to locate tool using the code snippet
7814     for ac_prog in file
7815 do
7816   # Extract the first word of "$ac_prog", so it can be a program name with args.
7817 set dummy $ac_prog; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if ${ac_cv_path_FILE+:} false; then :
7821   $as_echo_n "(cached) " >&6
7822 else
7823   case $FILE in
7824   [\\/]* | ?:[\\/]*)
7825   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7826   ;;
7827   *)
7828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7830 do
7831   IFS=$as_save_IFS
7832   test -z "$as_dir" && as_dir=.
7833     for ac_exec_ext in '' $ac_executable_extensions; do
7834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837     break 2
7838   fi
7839 done
7840   done
7841 IFS=$as_save_IFS
7842 
7843   ;;
7844 esac
7845 fi
7846 FILE=$ac_cv_path_FILE
7847 if test -n "$FILE"; then
7848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7849 $as_echo "$FILE" >&6; }
7850 else
7851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7853 fi
7854 
7855 
7856   test -n "$FILE" && break
7857 done
7858 
7859   else
7860     # The variable is set, but is it from the command line or the environment?
7861 
7862     # Try to remove the string !FILE! from our list.
7863     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7864     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7865       # If it failed, the variable was not from the command line. Ignore it,
7866       # but warn the user (except for BASH, which is always set by the calling BASH).
7867       if test "xFILE" != xBASH; then
7868         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7869 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7870       fi
7871       # Try to locate tool using the code snippet
7872       for ac_prog in file
7873 do
7874   # Extract the first word of "$ac_prog", so it can be a program name with args.
7875 set dummy $ac_prog; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if ${ac_cv_path_FILE+:} false; then :
7879   $as_echo_n "(cached) " >&6
7880 else
7881   case $FILE in
7882   [\\/]* | ?:[\\/]*)
7883   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7884   ;;
7885   *)
7886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889   IFS=$as_save_IFS
7890   test -z "$as_dir" && as_dir=.
7891     for ac_exec_ext in '' $ac_executable_extensions; do
7892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895     break 2
7896   fi
7897 done
7898   done
7899 IFS=$as_save_IFS
7900 
7901   ;;
7902 esac
7903 fi
7904 FILE=$ac_cv_path_FILE
7905 if test -n "$FILE"; then
7906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7907 $as_echo "$FILE" >&6; }
7908 else
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7911 fi
7912 
7913 
7914   test -n "$FILE" && break
7915 done
7916 
7917     else
7918       # If it succeeded, then it was overridden by the user. We will use it
7919       # for the tool.
7920 
7921       # First remove it from the list of overridden variables, so we can test
7922       # for unknown variables in the end.
7923       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7924 
7925       # Check if we try to supply an empty value
7926       if test "x$FILE" = x; then
7927         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7928 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7930 $as_echo_n "checking for FILE... " >&6; }
7931         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7932 $as_echo "disabled" >&6; }
7933       else
7934         # Check if the provided tool contains a complete path.
7935         tool_specified="$FILE"
7936         tool_basename="${tool_specified##*/}"
7937         if test "x$tool_basename" = "x$tool_specified"; then
7938           # A command without a complete path is provided, search $PATH.
7939           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7940 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7941           # Extract the first word of "$tool_basename", so it can be a program name with args.
7942 set dummy $tool_basename; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if ${ac_cv_path_FILE+:} false; then :
7946   $as_echo_n "(cached) " >&6
7947 else
7948   case $FILE in
7949   [\\/]* | ?:[\\/]*)
7950   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7951   ;;
7952   *)
7953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956   IFS=$as_save_IFS
7957   test -z "$as_dir" && as_dir=.
7958     for ac_exec_ext in '' $ac_executable_extensions; do
7959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962     break 2
7963   fi
7964 done
7965   done
7966 IFS=$as_save_IFS
7967 
7968   ;;
7969 esac
7970 fi
7971 FILE=$ac_cv_path_FILE
7972 if test -n "$FILE"; then
7973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7974 $as_echo "$FILE" >&6; }
7975 else
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7978 fi
7979 
7980 
7981           if test "x$FILE" = x; then
7982             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7983           fi
7984         else
7985           # Otherwise we believe it is a complete path. Use it as it is.
7986           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7987 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7988           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7989 $as_echo_n "checking for FILE... " >&6; }
7990           if test ! -x "$tool_specified"; then
7991             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7992 $as_echo "not found" >&6; }
7993             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7994           fi
7995           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7996 $as_echo "$tool_specified" >&6; }
7997         fi
7998       fi
7999     fi
8000 
8001   fi
8002 
8003 
8004 
8005   if test "x$FILE" = x; then
8006     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8007   fi
8008 
8009 
8010 
8011 
8012 
8013   # Publish this variable in the help.
8014 
8015 
8016   if [ -z "${FIND+x}" ]; then
8017     # The variable is not set by user, try to locate tool using the code snippet
8018     for ac_prog in find
8019 do
8020   # Extract the first word of "$ac_prog", so it can be a program name with args.
8021 set dummy $ac_prog; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if ${ac_cv_path_FIND+:} false; then :
8025   $as_echo_n "(cached) " >&6
8026 else
8027   case $FIND in
8028   [\\/]* | ?:[\\/]*)
8029   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8030   ;;
8031   *)
8032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8034 do
8035   IFS=$as_save_IFS
8036   test -z "$as_dir" && as_dir=.
8037     for ac_exec_ext in '' $ac_executable_extensions; do
8038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8039     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041     break 2
8042   fi
8043 done
8044   done
8045 IFS=$as_save_IFS
8046 
8047   ;;
8048 esac
8049 fi
8050 FIND=$ac_cv_path_FIND
8051 if test -n "$FIND"; then
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8053 $as_echo "$FIND" >&6; }
8054 else
8055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8057 fi
8058 
8059 
8060   test -n "$FIND" && break
8061 done
8062 
8063   else
8064     # The variable is set, but is it from the command line or the environment?
8065 
8066     # Try to remove the string !FIND! from our list.
8067     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8068     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8069       # If it failed, the variable was not from the command line. Ignore it,
8070       # but warn the user (except for BASH, which is always set by the calling BASH).
8071       if test "xFIND" != xBASH; then
8072         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8073 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8074       fi
8075       # Try to locate tool using the code snippet
8076       for ac_prog in find
8077 do
8078   # Extract the first word of "$ac_prog", so it can be a program name with args.
8079 set dummy $ac_prog; ac_word=$2
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081 $as_echo_n "checking for $ac_word... " >&6; }
8082 if ${ac_cv_path_FIND+:} false; then :
8083   $as_echo_n "(cached) " >&6
8084 else
8085   case $FIND in
8086   [\\/]* | ?:[\\/]*)
8087   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8088   ;;
8089   *)
8090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093   IFS=$as_save_IFS
8094   test -z "$as_dir" && as_dir=.
8095     for ac_exec_ext in '' $ac_executable_extensions; do
8096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099     break 2
8100   fi
8101 done
8102   done
8103 IFS=$as_save_IFS
8104 
8105   ;;
8106 esac
8107 fi
8108 FIND=$ac_cv_path_FIND
8109 if test -n "$FIND"; then
8110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8111 $as_echo "$FIND" >&6; }
8112 else
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8115 fi
8116 
8117 
8118   test -n "$FIND" && break
8119 done
8120 
8121     else
8122       # If it succeeded, then it was overridden by the user. We will use it
8123       # for the tool.
8124 
8125       # First remove it from the list of overridden variables, so we can test
8126       # for unknown variables in the end.
8127       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8128 
8129       # Check if we try to supply an empty value
8130       if test "x$FIND" = x; then
8131         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8132 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8134 $as_echo_n "checking for FIND... " >&6; }
8135         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8136 $as_echo "disabled" >&6; }
8137       else
8138         # Check if the provided tool contains a complete path.
8139         tool_specified="$FIND"
8140         tool_basename="${tool_specified##*/}"
8141         if test "x$tool_basename" = "x$tool_specified"; then
8142           # A command without a complete path is provided, search $PATH.
8143           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8144 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8145           # Extract the first word of "$tool_basename", so it can be a program name with args.
8146 set dummy $tool_basename; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if ${ac_cv_path_FIND+:} false; then :
8150   $as_echo_n "(cached) " >&6
8151 else
8152   case $FIND in
8153   [\\/]* | ?:[\\/]*)
8154   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8155   ;;
8156   *)
8157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $PATH
8159 do
8160   IFS=$as_save_IFS
8161   test -z "$as_dir" && as_dir=.
8162     for ac_exec_ext in '' $ac_executable_extensions; do
8163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8166     break 2
8167   fi
8168 done
8169   done
8170 IFS=$as_save_IFS
8171 
8172   ;;
8173 esac
8174 fi
8175 FIND=$ac_cv_path_FIND
8176 if test -n "$FIND"; then
8177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8178 $as_echo "$FIND" >&6; }
8179 else
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8182 fi
8183 
8184 
8185           if test "x$FIND" = x; then
8186             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8187           fi
8188         else
8189           # Otherwise we believe it is a complete path. Use it as it is.
8190           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8191 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8192           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8193 $as_echo_n "checking for FIND... " >&6; }
8194           if test ! -x "$tool_specified"; then
8195             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8196 $as_echo "not found" >&6; }
8197             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8198           fi
8199           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8200 $as_echo "$tool_specified" >&6; }
8201         fi
8202       fi
8203     fi
8204 
8205   fi
8206 
8207 
8208 
8209   if test "x$FIND" = x; then
8210     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8211   fi
8212 
8213 
8214 
8215 
8216 
8217   # Publish this variable in the help.
8218 
8219 
8220   if [ -z "${HEAD+x}" ]; then
8221     # The variable is not set by user, try to locate tool using the code snippet
8222     for ac_prog in head
8223 do
8224   # Extract the first word of "$ac_prog", so it can be a program name with args.
8225 set dummy $ac_prog; ac_word=$2
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 $as_echo_n "checking for $ac_word... " >&6; }
8228 if ${ac_cv_path_HEAD+:} false; then :
8229   $as_echo_n "(cached) " >&6
8230 else
8231   case $HEAD in
8232   [\\/]* | ?:[\\/]*)
8233   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8234   ;;
8235   *)
8236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8238 do
8239   IFS=$as_save_IFS
8240   test -z "$as_dir" && as_dir=.
8241     for ac_exec_ext in '' $ac_executable_extensions; do
8242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8243     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245     break 2
8246   fi
8247 done
8248   done
8249 IFS=$as_save_IFS
8250 
8251   ;;
8252 esac
8253 fi
8254 HEAD=$ac_cv_path_HEAD
8255 if test -n "$HEAD"; then
8256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8257 $as_echo "$HEAD" >&6; }
8258 else
8259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8261 fi
8262 
8263 
8264   test -n "$HEAD" && break
8265 done
8266 
8267   else
8268     # The variable is set, but is it from the command line or the environment?
8269 
8270     # Try to remove the string !HEAD! from our list.
8271     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8272     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8273       # If it failed, the variable was not from the command line. Ignore it,
8274       # but warn the user (except for BASH, which is always set by the calling BASH).
8275       if test "xHEAD" != xBASH; then
8276         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8277 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8278       fi
8279       # Try to locate tool using the code snippet
8280       for ac_prog in head
8281 do
8282   # Extract the first word of "$ac_prog", so it can be a program name with args.
8283 set dummy $ac_prog; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if ${ac_cv_path_HEAD+:} false; then :
8287   $as_echo_n "(cached) " >&6
8288 else
8289   case $HEAD in
8290   [\\/]* | ?:[\\/]*)
8291   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8292   ;;
8293   *)
8294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295 for as_dir in $PATH
8296 do
8297   IFS=$as_save_IFS
8298   test -z "$as_dir" && as_dir=.
8299     for ac_exec_ext in '' $ac_executable_extensions; do
8300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8301     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8303     break 2
8304   fi
8305 done
8306   done
8307 IFS=$as_save_IFS
8308 
8309   ;;
8310 esac
8311 fi
8312 HEAD=$ac_cv_path_HEAD
8313 if test -n "$HEAD"; then
8314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8315 $as_echo "$HEAD" >&6; }
8316 else
8317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8319 fi
8320 
8321 
8322   test -n "$HEAD" && break
8323 done
8324 
8325     else
8326       # If it succeeded, then it was overridden by the user. We will use it
8327       # for the tool.
8328 
8329       # First remove it from the list of overridden variables, so we can test
8330       # for unknown variables in the end.
8331       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8332 
8333       # Check if we try to supply an empty value
8334       if test "x$HEAD" = x; then
8335         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8336 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8337         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8338 $as_echo_n "checking for HEAD... " >&6; }
8339         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8340 $as_echo "disabled" >&6; }
8341       else
8342         # Check if the provided tool contains a complete path.
8343         tool_specified="$HEAD"
8344         tool_basename="${tool_specified##*/}"
8345         if test "x$tool_basename" = "x$tool_specified"; then
8346           # A command without a complete path is provided, search $PATH.
8347           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8348 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8349           # Extract the first word of "$tool_basename", so it can be a program name with args.
8350 set dummy $tool_basename; ac_word=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if ${ac_cv_path_HEAD+:} false; then :
8354   $as_echo_n "(cached) " >&6
8355 else
8356   case $HEAD in
8357   [\\/]* | ?:[\\/]*)
8358   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8359   ;;
8360   *)
8361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8363 do
8364   IFS=$as_save_IFS
8365   test -z "$as_dir" && as_dir=.
8366     for ac_exec_ext in '' $ac_executable_extensions; do
8367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370     break 2
8371   fi
8372 done
8373   done
8374 IFS=$as_save_IFS
8375 
8376   ;;
8377 esac
8378 fi
8379 HEAD=$ac_cv_path_HEAD
8380 if test -n "$HEAD"; then
8381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8382 $as_echo "$HEAD" >&6; }
8383 else
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8386 fi
8387 
8388 
8389           if test "x$HEAD" = x; then
8390             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8391           fi
8392         else
8393           # Otherwise we believe it is a complete path. Use it as it is.
8394           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8395 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8396           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8397 $as_echo_n "checking for HEAD... " >&6; }
8398           if test ! -x "$tool_specified"; then
8399             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8400 $as_echo "not found" >&6; }
8401             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8402           fi
8403           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8404 $as_echo "$tool_specified" >&6; }
8405         fi
8406       fi
8407     fi
8408 
8409   fi
8410 
8411 
8412 
8413   if test "x$HEAD" = x; then
8414     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8415   fi
8416 
8417 
8418 
8419 
8420 
8421   # Publish this variable in the help.
8422 
8423 
8424   if [ -z "${GUNZIP+x}" ]; then
8425     # The variable is not set by user, try to locate tool using the code snippet
8426     for ac_prog in gunzip
8427 do
8428   # Extract the first word of "$ac_prog", so it can be a program name with args.
8429 set dummy $ac_prog; ac_word=$2
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 $as_echo_n "checking for $ac_word... " >&6; }
8432 if ${ac_cv_path_GUNZIP+:} false; then :
8433   $as_echo_n "(cached) " >&6
8434 else
8435   case $GUNZIP in
8436   [\\/]* | ?:[\\/]*)
8437   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8438   ;;
8439   *)
8440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8442 do
8443   IFS=$as_save_IFS
8444   test -z "$as_dir" && as_dir=.
8445     for ac_exec_ext in '' $ac_executable_extensions; do
8446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8447     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8449     break 2
8450   fi
8451 done
8452   done
8453 IFS=$as_save_IFS
8454 
8455   ;;
8456 esac
8457 fi
8458 GUNZIP=$ac_cv_path_GUNZIP
8459 if test -n "$GUNZIP"; then
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8461 $as_echo "$GUNZIP" >&6; }
8462 else
8463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466 
8467 
8468   test -n "$GUNZIP" && break
8469 done
8470 
8471   else
8472     # The variable is set, but is it from the command line or the environment?
8473 
8474     # Try to remove the string !GUNZIP! from our list.
8475     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8476     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8477       # If it failed, the variable was not from the command line. Ignore it,
8478       # but warn the user (except for BASH, which is always set by the calling BASH).
8479       if test "xGUNZIP" != xBASH; then
8480         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8481 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8482       fi
8483       # Try to locate tool using the code snippet
8484       for ac_prog in gunzip
8485 do
8486   # Extract the first word of "$ac_prog", so it can be a program name with args.
8487 set dummy $ac_prog; ac_word=$2
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489 $as_echo_n "checking for $ac_word... " >&6; }
8490 if ${ac_cv_path_GUNZIP+:} false; then :
8491   $as_echo_n "(cached) " >&6
8492 else
8493   case $GUNZIP in
8494   [\\/]* | ?:[\\/]*)
8495   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8496   ;;
8497   *)
8498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 for as_dir in $PATH
8500 do
8501   IFS=$as_save_IFS
8502   test -z "$as_dir" && as_dir=.
8503     for ac_exec_ext in '' $ac_executable_extensions; do
8504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8505     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8507     break 2
8508   fi
8509 done
8510   done
8511 IFS=$as_save_IFS
8512 
8513   ;;
8514 esac
8515 fi
8516 GUNZIP=$ac_cv_path_GUNZIP
8517 if test -n "$GUNZIP"; then
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8519 $as_echo "$GUNZIP" >&6; }
8520 else
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8523 fi
8524 
8525 
8526   test -n "$GUNZIP" && break
8527 done
8528 
8529     else
8530       # If it succeeded, then it was overridden by the user. We will use it
8531       # for the tool.
8532 
8533       # First remove it from the list of overridden variables, so we can test
8534       # for unknown variables in the end.
8535       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8536 
8537       # Check if we try to supply an empty value
8538       if test "x$GUNZIP" = x; then
8539         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8540 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8541         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8542 $as_echo_n "checking for GUNZIP... " >&6; }
8543         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8544 $as_echo "disabled" >&6; }
8545       else
8546         # Check if the provided tool contains a complete path.
8547         tool_specified="$GUNZIP"
8548         tool_basename="${tool_specified##*/}"
8549         if test "x$tool_basename" = "x$tool_specified"; then
8550           # A command without a complete path is provided, search $PATH.
8551           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8552 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8553           # Extract the first word of "$tool_basename", so it can be a program name with args.
8554 set dummy $tool_basename; ac_word=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if ${ac_cv_path_GUNZIP+:} false; then :
8558   $as_echo_n "(cached) " >&6
8559 else
8560   case $GUNZIP in
8561   [\\/]* | ?:[\\/]*)
8562   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8563   ;;
8564   *)
8565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 for as_dir in $PATH
8567 do
8568   IFS=$as_save_IFS
8569   test -z "$as_dir" && as_dir=.
8570     for ac_exec_ext in '' $ac_executable_extensions; do
8571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8572     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574     break 2
8575   fi
8576 done
8577   done
8578 IFS=$as_save_IFS
8579 
8580   ;;
8581 esac
8582 fi
8583 GUNZIP=$ac_cv_path_GUNZIP
8584 if test -n "$GUNZIP"; then
8585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8586 $as_echo "$GUNZIP" >&6; }
8587 else
8588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8590 fi
8591 
8592 
8593           if test "x$GUNZIP" = x; then
8594             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8595           fi
8596         else
8597           # Otherwise we believe it is a complete path. Use it as it is.
8598           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8599 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8600           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8601 $as_echo_n "checking for GUNZIP... " >&6; }
8602           if test ! -x "$tool_specified"; then
8603             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8604 $as_echo "not found" >&6; }
8605             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8606           fi
8607           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8608 $as_echo "$tool_specified" >&6; }
8609         fi
8610       fi
8611     fi
8612 
8613   fi
8614 
8615 
8616 
8617   if test "x$GUNZIP" = x; then
8618     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8619   fi
8620 
8621 
8622 
8623 
8624 
8625   # Publish this variable in the help.
8626 
8627 
8628   if [ -z "${GZIP+x}" ]; then
8629     # The variable is not set by user, try to locate tool using the code snippet
8630     for ac_prog in pigz gzip
8631 do
8632   # Extract the first word of "$ac_prog", so it can be a program name with args.
8633 set dummy $ac_prog; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if ${ac_cv_path_GZIP+:} false; then :
8637   $as_echo_n "(cached) " >&6
8638 else
8639   case $GZIP in
8640   [\\/]* | ?:[\\/]*)
8641   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8642   ;;
8643   *)
8644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8646 do
8647   IFS=$as_save_IFS
8648   test -z "$as_dir" && as_dir=.
8649     for ac_exec_ext in '' $ac_executable_extensions; do
8650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8651     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653     break 2
8654   fi
8655 done
8656   done
8657 IFS=$as_save_IFS
8658 
8659   ;;
8660 esac
8661 fi
8662 GZIP=$ac_cv_path_GZIP
8663 if test -n "$GZIP"; then
8664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8665 $as_echo "$GZIP" >&6; }
8666 else
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8669 fi
8670 
8671 
8672   test -n "$GZIP" && break
8673 done
8674 
8675   else
8676     # The variable is set, but is it from the command line or the environment?
8677 
8678     # Try to remove the string !GZIP! from our list.
8679     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8680     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8681       # If it failed, the variable was not from the command line. Ignore it,
8682       # but warn the user (except for BASH, which is always set by the calling BASH).
8683       if test "xGZIP" != xBASH; then
8684         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8685 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8686       fi
8687       # Try to locate tool using the code snippet
8688       for ac_prog in pigz gzip
8689 do
8690   # Extract the first word of "$ac_prog", so it can be a program name with args.
8691 set dummy $ac_prog; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if ${ac_cv_path_GZIP+:} false; then :
8695   $as_echo_n "(cached) " >&6
8696 else
8697   case $GZIP in
8698   [\\/]* | ?:[\\/]*)
8699   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8700   ;;
8701   *)
8702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8704 do
8705   IFS=$as_save_IFS
8706   test -z "$as_dir" && as_dir=.
8707     for ac_exec_ext in '' $ac_executable_extensions; do
8708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711     break 2
8712   fi
8713 done
8714   done
8715 IFS=$as_save_IFS
8716 
8717   ;;
8718 esac
8719 fi
8720 GZIP=$ac_cv_path_GZIP
8721 if test -n "$GZIP"; then
8722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8723 $as_echo "$GZIP" >&6; }
8724 else
8725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8727 fi
8728 
8729 
8730   test -n "$GZIP" && break
8731 done
8732 
8733     else
8734       # If it succeeded, then it was overridden by the user. We will use it
8735       # for the tool.
8736 
8737       # First remove it from the list of overridden variables, so we can test
8738       # for unknown variables in the end.
8739       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8740 
8741       # Check if we try to supply an empty value
8742       if test "x$GZIP" = x; then
8743         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8744 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8745         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8746 $as_echo_n "checking for GZIP... " >&6; }
8747         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8748 $as_echo "disabled" >&6; }
8749       else
8750         # Check if the provided tool contains a complete path.
8751         tool_specified="$GZIP"
8752         tool_basename="${tool_specified##*/}"
8753         if test "x$tool_basename" = "x$tool_specified"; then
8754           # A command without a complete path is provided, search $PATH.
8755           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8756 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8757           # Extract the first word of "$tool_basename", so it can be a program name with args.
8758 set dummy $tool_basename; ac_word=$2
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8760 $as_echo_n "checking for $ac_word... " >&6; }
8761 if ${ac_cv_path_GZIP+:} false; then :
8762   $as_echo_n "(cached) " >&6
8763 else
8764   case $GZIP in
8765   [\\/]* | ?:[\\/]*)
8766   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8767   ;;
8768   *)
8769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770 for as_dir in $PATH
8771 do
8772   IFS=$as_save_IFS
8773   test -z "$as_dir" && as_dir=.
8774     for ac_exec_ext in '' $ac_executable_extensions; do
8775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8776     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8778     break 2
8779   fi
8780 done
8781   done
8782 IFS=$as_save_IFS
8783 
8784   ;;
8785 esac
8786 fi
8787 GZIP=$ac_cv_path_GZIP
8788 if test -n "$GZIP"; then
8789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8790 $as_echo "$GZIP" >&6; }
8791 else
8792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793 $as_echo "no" >&6; }
8794 fi
8795 
8796 
8797           if test "x$GZIP" = x; then
8798             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8799           fi
8800         else
8801           # Otherwise we believe it is a complete path. Use it as it is.
8802           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8803 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8804           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8805 $as_echo_n "checking for GZIP... " >&6; }
8806           if test ! -x "$tool_specified"; then
8807             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8808 $as_echo "not found" >&6; }
8809             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8810           fi
8811           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8812 $as_echo "$tool_specified" >&6; }
8813         fi
8814       fi
8815     fi
8816 
8817   fi
8818 
8819 
8820 
8821   if test "x$GZIP" = x; then
8822     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8823   fi
8824 
8825 
8826 
8827 
8828 
8829   # Publish this variable in the help.
8830 
8831 
8832   if [ -z "${LN+x}" ]; then
8833     # The variable is not set by user, try to locate tool using the code snippet
8834     for ac_prog in ln
8835 do
8836   # Extract the first word of "$ac_prog", so it can be a program name with args.
8837 set dummy $ac_prog; ac_word=$2
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839 $as_echo_n "checking for $ac_word... " >&6; }
8840 if ${ac_cv_path_LN+:} false; then :
8841   $as_echo_n "(cached) " >&6
8842 else
8843   case $LN in
8844   [\\/]* | ?:[\\/]*)
8845   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8846   ;;
8847   *)
8848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 for as_dir in $PATH
8850 do
8851   IFS=$as_save_IFS
8852   test -z "$as_dir" && as_dir=.
8853     for ac_exec_ext in '' $ac_executable_extensions; do
8854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8855     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857     break 2
8858   fi
8859 done
8860   done
8861 IFS=$as_save_IFS
8862 
8863   ;;
8864 esac
8865 fi
8866 LN=$ac_cv_path_LN
8867 if test -n "$LN"; then
8868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8869 $as_echo "$LN" >&6; }
8870 else
8871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 $as_echo "no" >&6; }
8873 fi
8874 
8875 
8876   test -n "$LN" && break
8877 done
8878 
8879   else
8880     # The variable is set, but is it from the command line or the environment?
8881 
8882     # Try to remove the string !LN! from our list.
8883     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8884     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8885       # If it failed, the variable was not from the command line. Ignore it,
8886       # but warn the user (except for BASH, which is always set by the calling BASH).
8887       if test "xLN" != xBASH; then
8888         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8889 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8890       fi
8891       # Try to locate tool using the code snippet
8892       for ac_prog in ln
8893 do
8894   # Extract the first word of "$ac_prog", so it can be a program name with args.
8895 set dummy $ac_prog; ac_word=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if ${ac_cv_path_LN+:} false; then :
8899   $as_echo_n "(cached) " >&6
8900 else
8901   case $LN in
8902   [\\/]* | ?:[\\/]*)
8903   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8904   ;;
8905   *)
8906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8908 do
8909   IFS=$as_save_IFS
8910   test -z "$as_dir" && as_dir=.
8911     for ac_exec_ext in '' $ac_executable_extensions; do
8912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8915     break 2
8916   fi
8917 done
8918   done
8919 IFS=$as_save_IFS
8920 
8921   ;;
8922 esac
8923 fi
8924 LN=$ac_cv_path_LN
8925 if test -n "$LN"; then
8926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8927 $as_echo "$LN" >&6; }
8928 else
8929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8931 fi
8932 
8933 
8934   test -n "$LN" && break
8935 done
8936 
8937     else
8938       # If it succeeded, then it was overridden by the user. We will use it
8939       # for the tool.
8940 
8941       # First remove it from the list of overridden variables, so we can test
8942       # for unknown variables in the end.
8943       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8944 
8945       # Check if we try to supply an empty value
8946       if test "x$LN" = x; then
8947         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8948 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8949         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8950 $as_echo_n "checking for LN... " >&6; }
8951         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8952 $as_echo "disabled" >&6; }
8953       else
8954         # Check if the provided tool contains a complete path.
8955         tool_specified="$LN"
8956         tool_basename="${tool_specified##*/}"
8957         if test "x$tool_basename" = "x$tool_specified"; then
8958           # A command without a complete path is provided, search $PATH.
8959           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8960 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8961           # Extract the first word of "$tool_basename", so it can be a program name with args.
8962 set dummy $tool_basename; ac_word=$2
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964 $as_echo_n "checking for $ac_word... " >&6; }
8965 if ${ac_cv_path_LN+:} false; then :
8966   $as_echo_n "(cached) " >&6
8967 else
8968   case $LN in
8969   [\\/]* | ?:[\\/]*)
8970   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8971   ;;
8972   *)
8973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 for as_dir in $PATH
8975 do
8976   IFS=$as_save_IFS
8977   test -z "$as_dir" && as_dir=.
8978     for ac_exec_ext in '' $ac_executable_extensions; do
8979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8980     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8982     break 2
8983   fi
8984 done
8985   done
8986 IFS=$as_save_IFS
8987 
8988   ;;
8989 esac
8990 fi
8991 LN=$ac_cv_path_LN
8992 if test -n "$LN"; then
8993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8994 $as_echo "$LN" >&6; }
8995 else
8996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
8998 fi
8999 
9000 
9001           if test "x$LN" = x; then
9002             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9003           fi
9004         else
9005           # Otherwise we believe it is a complete path. Use it as it is.
9006           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9007 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9008           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9009 $as_echo_n "checking for LN... " >&6; }
9010           if test ! -x "$tool_specified"; then
9011             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9012 $as_echo "not found" >&6; }
9013             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9014           fi
9015           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9016 $as_echo "$tool_specified" >&6; }
9017         fi
9018       fi
9019     fi
9020 
9021   fi
9022 
9023 
9024 
9025   if test "x$LN" = x; then
9026     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9027   fi
9028 
9029 
9030 
9031 
9032 
9033   # Publish this variable in the help.
9034 
9035 
9036   if [ -z "${LS+x}" ]; then
9037     # The variable is not set by user, try to locate tool using the code snippet
9038     for ac_prog in ls
9039 do
9040   # Extract the first word of "$ac_prog", so it can be a program name with args.
9041 set dummy $ac_prog; ac_word=$2
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 $as_echo_n "checking for $ac_word... " >&6; }
9044 if ${ac_cv_path_LS+:} false; then :
9045   $as_echo_n "(cached) " >&6
9046 else
9047   case $LS in
9048   [\\/]* | ?:[\\/]*)
9049   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9050   ;;
9051   *)
9052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9054 do
9055   IFS=$as_save_IFS
9056   test -z "$as_dir" && as_dir=.
9057     for ac_exec_ext in '' $ac_executable_extensions; do
9058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9059     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061     break 2
9062   fi
9063 done
9064   done
9065 IFS=$as_save_IFS
9066 
9067   ;;
9068 esac
9069 fi
9070 LS=$ac_cv_path_LS
9071 if test -n "$LS"; then
9072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9073 $as_echo "$LS" >&6; }
9074 else
9075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9077 fi
9078 
9079 
9080   test -n "$LS" && break
9081 done
9082 
9083   else
9084     # The variable is set, but is it from the command line or the environment?
9085 
9086     # Try to remove the string !LS! from our list.
9087     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9088     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9089       # If it failed, the variable was not from the command line. Ignore it,
9090       # but warn the user (except for BASH, which is always set by the calling BASH).
9091       if test "xLS" != xBASH; then
9092         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9093 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9094       fi
9095       # Try to locate tool using the code snippet
9096       for ac_prog in ls
9097 do
9098   # Extract the first word of "$ac_prog", so it can be a program name with args.
9099 set dummy $ac_prog; ac_word=$2
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9101 $as_echo_n "checking for $ac_word... " >&6; }
9102 if ${ac_cv_path_LS+:} false; then :
9103   $as_echo_n "(cached) " >&6
9104 else
9105   case $LS in
9106   [\\/]* | ?:[\\/]*)
9107   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9108   ;;
9109   *)
9110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111 for as_dir in $PATH
9112 do
9113   IFS=$as_save_IFS
9114   test -z "$as_dir" && as_dir=.
9115     for ac_exec_ext in '' $ac_executable_extensions; do
9116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9117     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9119     break 2
9120   fi
9121 done
9122   done
9123 IFS=$as_save_IFS
9124 
9125   ;;
9126 esac
9127 fi
9128 LS=$ac_cv_path_LS
9129 if test -n "$LS"; then
9130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9131 $as_echo "$LS" >&6; }
9132 else
9133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 $as_echo "no" >&6; }
9135 fi
9136 
9137 
9138   test -n "$LS" && break
9139 done
9140 
9141     else
9142       # If it succeeded, then it was overridden by the user. We will use it
9143       # for the tool.
9144 
9145       # First remove it from the list of overridden variables, so we can test
9146       # for unknown variables in the end.
9147       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9148 
9149       # Check if we try to supply an empty value
9150       if test "x$LS" = x; then
9151         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9152 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9153         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9154 $as_echo_n "checking for LS... " >&6; }
9155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9156 $as_echo "disabled" >&6; }
9157       else
9158         # Check if the provided tool contains a complete path.
9159         tool_specified="$LS"
9160         tool_basename="${tool_specified##*/}"
9161         if test "x$tool_basename" = "x$tool_specified"; then
9162           # A command without a complete path is provided, search $PATH.
9163           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9164 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9165           # Extract the first word of "$tool_basename", so it can be a program name with args.
9166 set dummy $tool_basename; ac_word=$2
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168 $as_echo_n "checking for $ac_word... " >&6; }
9169 if ${ac_cv_path_LS+:} false; then :
9170   $as_echo_n "(cached) " >&6
9171 else
9172   case $LS in
9173   [\\/]* | ?:[\\/]*)
9174   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9175   ;;
9176   *)
9177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 for as_dir in $PATH
9179 do
9180   IFS=$as_save_IFS
9181   test -z "$as_dir" && as_dir=.
9182     for ac_exec_ext in '' $ac_executable_extensions; do
9183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9184     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186     break 2
9187   fi
9188 done
9189   done
9190 IFS=$as_save_IFS
9191 
9192   ;;
9193 esac
9194 fi
9195 LS=$ac_cv_path_LS
9196 if test -n "$LS"; then
9197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9198 $as_echo "$LS" >&6; }
9199 else
9200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9202 fi
9203 
9204 
9205           if test "x$LS" = x; then
9206             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9207           fi
9208         else
9209           # Otherwise we believe it is a complete path. Use it as it is.
9210           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9211 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9212           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9213 $as_echo_n "checking for LS... " >&6; }
9214           if test ! -x "$tool_specified"; then
9215             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9216 $as_echo "not found" >&6; }
9217             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9218           fi
9219           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9220 $as_echo "$tool_specified" >&6; }
9221         fi
9222       fi
9223     fi
9224 
9225   fi
9226 
9227 
9228 
9229   if test "x$LS" = x; then
9230     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9231   fi
9232 
9233 
9234 
9235 
9236 
9237   # Publish this variable in the help.
9238 
9239 
9240   if [ -z "${MKDIR+x}" ]; then
9241     # The variable is not set by user, try to locate tool using the code snippet
9242     for ac_prog in mkdir
9243 do
9244   # Extract the first word of "$ac_prog", so it can be a program name with args.
9245 set dummy $ac_prog; ac_word=$2
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9247 $as_echo_n "checking for $ac_word... " >&6; }
9248 if ${ac_cv_path_MKDIR+:} false; then :
9249   $as_echo_n "(cached) " >&6
9250 else
9251   case $MKDIR in
9252   [\\/]* | ?:[\\/]*)
9253   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9254   ;;
9255   *)
9256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 for as_dir in $PATH
9258 do
9259   IFS=$as_save_IFS
9260   test -z "$as_dir" && as_dir=.
9261     for ac_exec_ext in '' $ac_executable_extensions; do
9262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9263     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265     break 2
9266   fi
9267 done
9268   done
9269 IFS=$as_save_IFS
9270 
9271   ;;
9272 esac
9273 fi
9274 MKDIR=$ac_cv_path_MKDIR
9275 if test -n "$MKDIR"; then
9276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9277 $as_echo "$MKDIR" >&6; }
9278 else
9279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 $as_echo "no" >&6; }
9281 fi
9282 
9283 
9284   test -n "$MKDIR" && break
9285 done
9286 
9287   else
9288     # The variable is set, but is it from the command line or the environment?
9289 
9290     # Try to remove the string !MKDIR! from our list.
9291     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9292     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9293       # If it failed, the variable was not from the command line. Ignore it,
9294       # but warn the user (except for BASH, which is always set by the calling BASH).
9295       if test "xMKDIR" != xBASH; then
9296         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9297 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9298       fi
9299       # Try to locate tool using the code snippet
9300       for ac_prog in mkdir
9301 do
9302   # Extract the first word of "$ac_prog", so it can be a program name with args.
9303 set dummy $ac_prog; ac_word=$2
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305 $as_echo_n "checking for $ac_word... " >&6; }
9306 if ${ac_cv_path_MKDIR+:} false; then :
9307   $as_echo_n "(cached) " >&6
9308 else
9309   case $MKDIR in
9310   [\\/]* | ?:[\\/]*)
9311   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9312   ;;
9313   *)
9314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 for as_dir in $PATH
9316 do
9317   IFS=$as_save_IFS
9318   test -z "$as_dir" && as_dir=.
9319     for ac_exec_ext in '' $ac_executable_extensions; do
9320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9321     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9323     break 2
9324   fi
9325 done
9326   done
9327 IFS=$as_save_IFS
9328 
9329   ;;
9330 esac
9331 fi
9332 MKDIR=$ac_cv_path_MKDIR
9333 if test -n "$MKDIR"; then
9334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9335 $as_echo "$MKDIR" >&6; }
9336 else
9337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9339 fi
9340 
9341 
9342   test -n "$MKDIR" && break
9343 done
9344 
9345     else
9346       # If it succeeded, then it was overridden by the user. We will use it
9347       # for the tool.
9348 
9349       # First remove it from the list of overridden variables, so we can test
9350       # for unknown variables in the end.
9351       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9352 
9353       # Check if we try to supply an empty value
9354       if test "x$MKDIR" = x; then
9355         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9356 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9357         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9358 $as_echo_n "checking for MKDIR... " >&6; }
9359         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9360 $as_echo "disabled" >&6; }
9361       else
9362         # Check if the provided tool contains a complete path.
9363         tool_specified="$MKDIR"
9364         tool_basename="${tool_specified##*/}"
9365         if test "x$tool_basename" = "x$tool_specified"; then
9366           # A command without a complete path is provided, search $PATH.
9367           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9368 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9369           # Extract the first word of "$tool_basename", so it can be a program name with args.
9370 set dummy $tool_basename; ac_word=$2
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 $as_echo_n "checking for $ac_word... " >&6; }
9373 if ${ac_cv_path_MKDIR+:} false; then :
9374   $as_echo_n "(cached) " >&6
9375 else
9376   case $MKDIR in
9377   [\\/]* | ?:[\\/]*)
9378   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9379   ;;
9380   *)
9381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9383 do
9384   IFS=$as_save_IFS
9385   test -z "$as_dir" && as_dir=.
9386     for ac_exec_ext in '' $ac_executable_extensions; do
9387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9388     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390     break 2
9391   fi
9392 done
9393   done
9394 IFS=$as_save_IFS
9395 
9396   ;;
9397 esac
9398 fi
9399 MKDIR=$ac_cv_path_MKDIR
9400 if test -n "$MKDIR"; then
9401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9402 $as_echo "$MKDIR" >&6; }
9403 else
9404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9406 fi
9407 
9408 
9409           if test "x$MKDIR" = x; then
9410             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9411           fi
9412         else
9413           # Otherwise we believe it is a complete path. Use it as it is.
9414           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9415 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9416           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9417 $as_echo_n "checking for MKDIR... " >&6; }
9418           if test ! -x "$tool_specified"; then
9419             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9420 $as_echo "not found" >&6; }
9421             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9422           fi
9423           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9424 $as_echo "$tool_specified" >&6; }
9425         fi
9426       fi
9427     fi
9428 
9429   fi
9430 
9431 
9432 
9433   if test "x$MKDIR" = x; then
9434     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9435   fi
9436 
9437 
9438 
9439 
9440 
9441   # Publish this variable in the help.
9442 
9443 
9444   if [ -z "${MKTEMP+x}" ]; then
9445     # The variable is not set by user, try to locate tool using the code snippet
9446     for ac_prog in mktemp
9447 do
9448   # Extract the first word of "$ac_prog", so it can be a program name with args.
9449 set dummy $ac_prog; ac_word=$2
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9451 $as_echo_n "checking for $ac_word... " >&6; }
9452 if ${ac_cv_path_MKTEMP+:} false; then :
9453   $as_echo_n "(cached) " >&6
9454 else
9455   case $MKTEMP in
9456   [\\/]* | ?:[\\/]*)
9457   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9458   ;;
9459   *)
9460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461 for as_dir in $PATH
9462 do
9463   IFS=$as_save_IFS
9464   test -z "$as_dir" && as_dir=.
9465     for ac_exec_ext in '' $ac_executable_extensions; do
9466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9467     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9469     break 2
9470   fi
9471 done
9472   done
9473 IFS=$as_save_IFS
9474 
9475   ;;
9476 esac
9477 fi
9478 MKTEMP=$ac_cv_path_MKTEMP
9479 if test -n "$MKTEMP"; then
9480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9481 $as_echo "$MKTEMP" >&6; }
9482 else
9483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 $as_echo "no" >&6; }
9485 fi
9486 
9487 
9488   test -n "$MKTEMP" && break
9489 done
9490 
9491   else
9492     # The variable is set, but is it from the command line or the environment?
9493 
9494     # Try to remove the string !MKTEMP! from our list.
9495     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9496     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9497       # If it failed, the variable was not from the command line. Ignore it,
9498       # but warn the user (except for BASH, which is always set by the calling BASH).
9499       if test "xMKTEMP" != xBASH; then
9500         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9501 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9502       fi
9503       # Try to locate tool using the code snippet
9504       for ac_prog in mktemp
9505 do
9506   # Extract the first word of "$ac_prog", so it can be a program name with args.
9507 set dummy $ac_prog; ac_word=$2
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if ${ac_cv_path_MKTEMP+:} false; then :
9511   $as_echo_n "(cached) " >&6
9512 else
9513   case $MKTEMP in
9514   [\\/]* | ?:[\\/]*)
9515   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9516   ;;
9517   *)
9518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 for as_dir in $PATH
9520 do
9521   IFS=$as_save_IFS
9522   test -z "$as_dir" && as_dir=.
9523     for ac_exec_ext in '' $ac_executable_extensions; do
9524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9525     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9527     break 2
9528   fi
9529 done
9530   done
9531 IFS=$as_save_IFS
9532 
9533   ;;
9534 esac
9535 fi
9536 MKTEMP=$ac_cv_path_MKTEMP
9537 if test -n "$MKTEMP"; then
9538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9539 $as_echo "$MKTEMP" >&6; }
9540 else
9541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9543 fi
9544 
9545 
9546   test -n "$MKTEMP" && break
9547 done
9548 
9549     else
9550       # If it succeeded, then it was overridden by the user. We will use it
9551       # for the tool.
9552 
9553       # First remove it from the list of overridden variables, so we can test
9554       # for unknown variables in the end.
9555       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9556 
9557       # Check if we try to supply an empty value
9558       if test "x$MKTEMP" = x; then
9559         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9560 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9562 $as_echo_n "checking for MKTEMP... " >&6; }
9563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9564 $as_echo "disabled" >&6; }
9565       else
9566         # Check if the provided tool contains a complete path.
9567         tool_specified="$MKTEMP"
9568         tool_basename="${tool_specified##*/}"
9569         if test "x$tool_basename" = "x$tool_specified"; then
9570           # A command without a complete path is provided, search $PATH.
9571           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9572 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9573           # Extract the first word of "$tool_basename", so it can be a program name with args.
9574 set dummy $tool_basename; ac_word=$2
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576 $as_echo_n "checking for $ac_word... " >&6; }
9577 if ${ac_cv_path_MKTEMP+:} false; then :
9578   $as_echo_n "(cached) " >&6
9579 else
9580   case $MKTEMP in
9581   [\\/]* | ?:[\\/]*)
9582   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9583   ;;
9584   *)
9585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586 for as_dir in $PATH
9587 do
9588   IFS=$as_save_IFS
9589   test -z "$as_dir" && as_dir=.
9590     for ac_exec_ext in '' $ac_executable_extensions; do
9591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9592     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9594     break 2
9595   fi
9596 done
9597   done
9598 IFS=$as_save_IFS
9599 
9600   ;;
9601 esac
9602 fi
9603 MKTEMP=$ac_cv_path_MKTEMP
9604 if test -n "$MKTEMP"; then
9605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9606 $as_echo "$MKTEMP" >&6; }
9607 else
9608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9609 $as_echo "no" >&6; }
9610 fi
9611 
9612 
9613           if test "x$MKTEMP" = x; then
9614             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9615           fi
9616         else
9617           # Otherwise we believe it is a complete path. Use it as it is.
9618           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9619 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9620           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9621 $as_echo_n "checking for MKTEMP... " >&6; }
9622           if test ! -x "$tool_specified"; then
9623             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9624 $as_echo "not found" >&6; }
9625             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9626           fi
9627           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9628 $as_echo "$tool_specified" >&6; }
9629         fi
9630       fi
9631     fi
9632 
9633   fi
9634 
9635 
9636 
9637   if test "x$MKTEMP" = x; then
9638     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9639   fi
9640 
9641 
9642 
9643 
9644 
9645   # Publish this variable in the help.
9646 
9647 
9648   if [ -z "${MV+x}" ]; then
9649     # The variable is not set by user, try to locate tool using the code snippet
9650     for ac_prog in mv
9651 do
9652   # Extract the first word of "$ac_prog", so it can be a program name with args.
9653 set dummy $ac_prog; ac_word=$2
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655 $as_echo_n "checking for $ac_word... " >&6; }
9656 if ${ac_cv_path_MV+:} false; then :
9657   $as_echo_n "(cached) " >&6
9658 else
9659   case $MV in
9660   [\\/]* | ?:[\\/]*)
9661   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9662   ;;
9663   *)
9664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665 for as_dir in $PATH
9666 do
9667   IFS=$as_save_IFS
9668   test -z "$as_dir" && as_dir=.
9669     for ac_exec_ext in '' $ac_executable_extensions; do
9670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9671     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9673     break 2
9674   fi
9675 done
9676   done
9677 IFS=$as_save_IFS
9678 
9679   ;;
9680 esac
9681 fi
9682 MV=$ac_cv_path_MV
9683 if test -n "$MV"; then
9684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9685 $as_echo "$MV" >&6; }
9686 else
9687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9688 $as_echo "no" >&6; }
9689 fi
9690 
9691 
9692   test -n "$MV" && break
9693 done
9694 
9695   else
9696     # The variable is set, but is it from the command line or the environment?
9697 
9698     # Try to remove the string !MV! from our list.
9699     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9700     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9701       # If it failed, the variable was not from the command line. Ignore it,
9702       # but warn the user (except for BASH, which is always set by the calling BASH).
9703       if test "xMV" != xBASH; then
9704         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9705 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9706       fi
9707       # Try to locate tool using the code snippet
9708       for ac_prog in mv
9709 do
9710   # Extract the first word of "$ac_prog", so it can be a program name with args.
9711 set dummy $ac_prog; ac_word=$2
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713 $as_echo_n "checking for $ac_word... " >&6; }
9714 if ${ac_cv_path_MV+:} false; then :
9715   $as_echo_n "(cached) " >&6
9716 else
9717   case $MV in
9718   [\\/]* | ?:[\\/]*)
9719   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9720   ;;
9721   *)
9722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH
9724 do
9725   IFS=$as_save_IFS
9726   test -z "$as_dir" && as_dir=.
9727     for ac_exec_ext in '' $ac_executable_extensions; do
9728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9729     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9731     break 2
9732   fi
9733 done
9734   done
9735 IFS=$as_save_IFS
9736 
9737   ;;
9738 esac
9739 fi
9740 MV=$ac_cv_path_MV
9741 if test -n "$MV"; then
9742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9743 $as_echo "$MV" >&6; }
9744 else
9745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9747 fi
9748 
9749 
9750   test -n "$MV" && break
9751 done
9752 
9753     else
9754       # If it succeeded, then it was overridden by the user. We will use it
9755       # for the tool.
9756 
9757       # First remove it from the list of overridden variables, so we can test
9758       # for unknown variables in the end.
9759       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9760 
9761       # Check if we try to supply an empty value
9762       if test "x$MV" = x; then
9763         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9764 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9765         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9766 $as_echo_n "checking for MV... " >&6; }
9767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9768 $as_echo "disabled" >&6; }
9769       else
9770         # Check if the provided tool contains a complete path.
9771         tool_specified="$MV"
9772         tool_basename="${tool_specified##*/}"
9773         if test "x$tool_basename" = "x$tool_specified"; then
9774           # A command without a complete path is provided, search $PATH.
9775           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9776 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9777           # Extract the first word of "$tool_basename", so it can be a program name with args.
9778 set dummy $tool_basename; ac_word=$2
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9780 $as_echo_n "checking for $ac_word... " >&6; }
9781 if ${ac_cv_path_MV+:} false; then :
9782   $as_echo_n "(cached) " >&6
9783 else
9784   case $MV in
9785   [\\/]* | ?:[\\/]*)
9786   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9787   ;;
9788   *)
9789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790 for as_dir in $PATH
9791 do
9792   IFS=$as_save_IFS
9793   test -z "$as_dir" && as_dir=.
9794     for ac_exec_ext in '' $ac_executable_extensions; do
9795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9796     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798     break 2
9799   fi
9800 done
9801   done
9802 IFS=$as_save_IFS
9803 
9804   ;;
9805 esac
9806 fi
9807 MV=$ac_cv_path_MV
9808 if test -n "$MV"; then
9809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9810 $as_echo "$MV" >&6; }
9811 else
9812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 $as_echo "no" >&6; }
9814 fi
9815 
9816 
9817           if test "x$MV" = x; then
9818             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9819           fi
9820         else
9821           # Otherwise we believe it is a complete path. Use it as it is.
9822           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9823 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9824           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9825 $as_echo_n "checking for MV... " >&6; }
9826           if test ! -x "$tool_specified"; then
9827             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9828 $as_echo "not found" >&6; }
9829             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9830           fi
9831           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9832 $as_echo "$tool_specified" >&6; }
9833         fi
9834       fi
9835     fi
9836 
9837   fi
9838 
9839 
9840 
9841   if test "x$MV" = x; then
9842     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9843   fi
9844 
9845 
9846 
9847 
9848 
9849   # Publish this variable in the help.
9850 
9851 
9852   if [ -z "${NAWK+x}" ]; then
9853     # The variable is not set by user, try to locate tool using the code snippet
9854     for ac_prog in nawk gawk awk
9855 do
9856   # Extract the first word of "$ac_prog", so it can be a program name with args.
9857 set dummy $ac_prog; ac_word=$2
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859 $as_echo_n "checking for $ac_word... " >&6; }
9860 if ${ac_cv_path_NAWK+:} false; then :
9861   $as_echo_n "(cached) " >&6
9862 else
9863   case $NAWK in
9864   [\\/]* | ?:[\\/]*)
9865   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9866   ;;
9867   *)
9868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869 for as_dir in $PATH
9870 do
9871   IFS=$as_save_IFS
9872   test -z "$as_dir" && as_dir=.
9873     for ac_exec_ext in '' $ac_executable_extensions; do
9874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9875     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9877     break 2
9878   fi
9879 done
9880   done
9881 IFS=$as_save_IFS
9882 
9883   ;;
9884 esac
9885 fi
9886 NAWK=$ac_cv_path_NAWK
9887 if test -n "$NAWK"; then
9888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9889 $as_echo "$NAWK" >&6; }
9890 else
9891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9893 fi
9894 
9895 
9896   test -n "$NAWK" && break
9897 done
9898 
9899   else
9900     # The variable is set, but is it from the command line or the environment?
9901 
9902     # Try to remove the string !NAWK! from our list.
9903     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9904     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9905       # If it failed, the variable was not from the command line. Ignore it,
9906       # but warn the user (except for BASH, which is always set by the calling BASH).
9907       if test "xNAWK" != xBASH; then
9908         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9909 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9910       fi
9911       # Try to locate tool using the code snippet
9912       for ac_prog in nawk gawk awk
9913 do
9914   # Extract the first word of "$ac_prog", so it can be a program name with args.
9915 set dummy $ac_prog; ac_word=$2
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9917 $as_echo_n "checking for $ac_word... " >&6; }
9918 if ${ac_cv_path_NAWK+:} false; then :
9919   $as_echo_n "(cached) " >&6
9920 else
9921   case $NAWK in
9922   [\\/]* | ?:[\\/]*)
9923   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9924   ;;
9925   *)
9926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 for as_dir in $PATH
9928 do
9929   IFS=$as_save_IFS
9930   test -z "$as_dir" && as_dir=.
9931     for ac_exec_ext in '' $ac_executable_extensions; do
9932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9933     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9935     break 2
9936   fi
9937 done
9938   done
9939 IFS=$as_save_IFS
9940 
9941   ;;
9942 esac
9943 fi
9944 NAWK=$ac_cv_path_NAWK
9945 if test -n "$NAWK"; then
9946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9947 $as_echo "$NAWK" >&6; }
9948 else
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950 $as_echo "no" >&6; }
9951 fi
9952 
9953 
9954   test -n "$NAWK" && break
9955 done
9956 
9957     else
9958       # If it succeeded, then it was overridden by the user. We will use it
9959       # for the tool.
9960 
9961       # First remove it from the list of overridden variables, so we can test
9962       # for unknown variables in the end.
9963       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9964 
9965       # Check if we try to supply an empty value
9966       if test "x$NAWK" = x; then
9967         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9968 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9970 $as_echo_n "checking for NAWK... " >&6; }
9971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9972 $as_echo "disabled" >&6; }
9973       else
9974         # Check if the provided tool contains a complete path.
9975         tool_specified="$NAWK"
9976         tool_basename="${tool_specified##*/}"
9977         if test "x$tool_basename" = "x$tool_specified"; then
9978           # A command without a complete path is provided, search $PATH.
9979           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9980 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9981           # Extract the first word of "$tool_basename", so it can be a program name with args.
9982 set dummy $tool_basename; ac_word=$2
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984 $as_echo_n "checking for $ac_word... " >&6; }
9985 if ${ac_cv_path_NAWK+:} false; then :
9986   $as_echo_n "(cached) " >&6
9987 else
9988   case $NAWK in
9989   [\\/]* | ?:[\\/]*)
9990   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9991   ;;
9992   *)
9993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994 for as_dir in $PATH
9995 do
9996   IFS=$as_save_IFS
9997   test -z "$as_dir" && as_dir=.
9998     for ac_exec_ext in '' $ac_executable_extensions; do
9999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10000     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002     break 2
10003   fi
10004 done
10005   done
10006 IFS=$as_save_IFS
10007 
10008   ;;
10009 esac
10010 fi
10011 NAWK=$ac_cv_path_NAWK
10012 if test -n "$NAWK"; then
10013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10014 $as_echo "$NAWK" >&6; }
10015 else
10016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10018 fi
10019 
10020 
10021           if test "x$NAWK" = x; then
10022             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10023           fi
10024         else
10025           # Otherwise we believe it is a complete path. Use it as it is.
10026           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10027 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10028           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10029 $as_echo_n "checking for NAWK... " >&6; }
10030           if test ! -x "$tool_specified"; then
10031             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10032 $as_echo "not found" >&6; }
10033             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10034           fi
10035           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10036 $as_echo "$tool_specified" >&6; }
10037         fi
10038       fi
10039     fi
10040 
10041   fi
10042 
10043 
10044 
10045   if test "x$NAWK" = x; then
10046     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10047   fi
10048 
10049 
10050 
10051 
10052 
10053   # Publish this variable in the help.
10054 
10055 
10056   if [ -z "${PRINTF+x}" ]; then
10057     # The variable is not set by user, try to locate tool using the code snippet
10058     for ac_prog in printf
10059 do
10060   # Extract the first word of "$ac_prog", so it can be a program name with args.
10061 set dummy $ac_prog; ac_word=$2
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063 $as_echo_n "checking for $ac_word... " >&6; }
10064 if ${ac_cv_path_PRINTF+:} false; then :
10065   $as_echo_n "(cached) " >&6
10066 else
10067   case $PRINTF in
10068   [\\/]* | ?:[\\/]*)
10069   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10070   ;;
10071   *)
10072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 for as_dir in $PATH
10074 do
10075   IFS=$as_save_IFS
10076   test -z "$as_dir" && as_dir=.
10077     for ac_exec_ext in '' $ac_executable_extensions; do
10078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10079     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10081     break 2
10082   fi
10083 done
10084   done
10085 IFS=$as_save_IFS
10086 
10087   ;;
10088 esac
10089 fi
10090 PRINTF=$ac_cv_path_PRINTF
10091 if test -n "$PRINTF"; then
10092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10093 $as_echo "$PRINTF" >&6; }
10094 else
10095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096 $as_echo "no" >&6; }
10097 fi
10098 
10099 
10100   test -n "$PRINTF" && break
10101 done
10102 
10103   else
10104     # The variable is set, but is it from the command line or the environment?
10105 
10106     # Try to remove the string !PRINTF! from our list.
10107     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10108     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10109       # If it failed, the variable was not from the command line. Ignore it,
10110       # but warn the user (except for BASH, which is always set by the calling BASH).
10111       if test "xPRINTF" != xBASH; then
10112         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10113 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10114       fi
10115       # Try to locate tool using the code snippet
10116       for ac_prog in printf
10117 do
10118   # Extract the first word of "$ac_prog", so it can be a program name with args.
10119 set dummy $ac_prog; ac_word=$2
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121 $as_echo_n "checking for $ac_word... " >&6; }
10122 if ${ac_cv_path_PRINTF+:} false; then :
10123   $as_echo_n "(cached) " >&6
10124 else
10125   case $PRINTF in
10126   [\\/]* | ?:[\\/]*)
10127   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10128   ;;
10129   *)
10130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131 for as_dir in $PATH
10132 do
10133   IFS=$as_save_IFS
10134   test -z "$as_dir" && as_dir=.
10135     for ac_exec_ext in '' $ac_executable_extensions; do
10136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10137     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10139     break 2
10140   fi
10141 done
10142   done
10143 IFS=$as_save_IFS
10144 
10145   ;;
10146 esac
10147 fi
10148 PRINTF=$ac_cv_path_PRINTF
10149 if test -n "$PRINTF"; then
10150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10151 $as_echo "$PRINTF" >&6; }
10152 else
10153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10154 $as_echo "no" >&6; }
10155 fi
10156 
10157 
10158   test -n "$PRINTF" && break
10159 done
10160 
10161     else
10162       # If it succeeded, then it was overridden by the user. We will use it
10163       # for the tool.
10164 
10165       # First remove it from the list of overridden variables, so we can test
10166       # for unknown variables in the end.
10167       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10168 
10169       # Check if we try to supply an empty value
10170       if test "x$PRINTF" = x; then
10171         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10172 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10173         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10174 $as_echo_n "checking for PRINTF... " >&6; }
10175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10176 $as_echo "disabled" >&6; }
10177       else
10178         # Check if the provided tool contains a complete path.
10179         tool_specified="$PRINTF"
10180         tool_basename="${tool_specified##*/}"
10181         if test "x$tool_basename" = "x$tool_specified"; then
10182           # A command without a complete path is provided, search $PATH.
10183           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10184 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10185           # Extract the first word of "$tool_basename", so it can be a program name with args.
10186 set dummy $tool_basename; ac_word=$2
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10188 $as_echo_n "checking for $ac_word... " >&6; }
10189 if ${ac_cv_path_PRINTF+:} false; then :
10190   $as_echo_n "(cached) " >&6
10191 else
10192   case $PRINTF in
10193   [\\/]* | ?:[\\/]*)
10194   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10195   ;;
10196   *)
10197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198 for as_dir in $PATH
10199 do
10200   IFS=$as_save_IFS
10201   test -z "$as_dir" && as_dir=.
10202     for ac_exec_ext in '' $ac_executable_extensions; do
10203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10204     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10206     break 2
10207   fi
10208 done
10209   done
10210 IFS=$as_save_IFS
10211 
10212   ;;
10213 esac
10214 fi
10215 PRINTF=$ac_cv_path_PRINTF
10216 if test -n "$PRINTF"; then
10217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10218 $as_echo "$PRINTF" >&6; }
10219 else
10220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10222 fi
10223 
10224 
10225           if test "x$PRINTF" = x; then
10226             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10227           fi
10228         else
10229           # Otherwise we believe it is a complete path. Use it as it is.
10230           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10231 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10232           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10233 $as_echo_n "checking for PRINTF... " >&6; }
10234           if test ! -x "$tool_specified"; then
10235             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10236 $as_echo "not found" >&6; }
10237             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10238           fi
10239           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10240 $as_echo "$tool_specified" >&6; }
10241         fi
10242       fi
10243     fi
10244 
10245   fi
10246 
10247 
10248 
10249   if test "x$PRINTF" = x; then
10250     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10251   fi
10252 
10253 
10254 
10255 
10256 
10257   # Publish this variable in the help.
10258 
10259 
10260   if [ -z "${RM+x}" ]; then
10261     # The variable is not set by user, try to locate tool using the code snippet
10262     for ac_prog in rm
10263 do
10264   # Extract the first word of "$ac_prog", so it can be a program name with args.
10265 set dummy $ac_prog; ac_word=$2
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10267 $as_echo_n "checking for $ac_word... " >&6; }
10268 if ${ac_cv_path_RM+:} false; then :
10269   $as_echo_n "(cached) " >&6
10270 else
10271   case $RM in
10272   [\\/]* | ?:[\\/]*)
10273   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10274   ;;
10275   *)
10276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10278 do
10279   IFS=$as_save_IFS
10280   test -z "$as_dir" && as_dir=.
10281     for ac_exec_ext in '' $ac_executable_extensions; do
10282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10283     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285     break 2
10286   fi
10287 done
10288   done
10289 IFS=$as_save_IFS
10290 
10291   ;;
10292 esac
10293 fi
10294 RM=$ac_cv_path_RM
10295 if test -n "$RM"; then
10296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10297 $as_echo "$RM" >&6; }
10298 else
10299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300 $as_echo "no" >&6; }
10301 fi
10302 
10303 
10304   test -n "$RM" && break
10305 done
10306 
10307   else
10308     # The variable is set, but is it from the command line or the environment?
10309 
10310     # Try to remove the string !RM! from our list.
10311     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10312     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10313       # If it failed, the variable was not from the command line. Ignore it,
10314       # but warn the user (except for BASH, which is always set by the calling BASH).
10315       if test "xRM" != xBASH; then
10316         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10317 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10318       fi
10319       # Try to locate tool using the code snippet
10320       for ac_prog in rm
10321 do
10322   # Extract the first word of "$ac_prog", so it can be a program name with args.
10323 set dummy $ac_prog; ac_word=$2
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325 $as_echo_n "checking for $ac_word... " >&6; }
10326 if ${ac_cv_path_RM+:} false; then :
10327   $as_echo_n "(cached) " >&6
10328 else
10329   case $RM in
10330   [\\/]* | ?:[\\/]*)
10331   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10332   ;;
10333   *)
10334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335 for as_dir in $PATH
10336 do
10337   IFS=$as_save_IFS
10338   test -z "$as_dir" && as_dir=.
10339     for ac_exec_ext in '' $ac_executable_extensions; do
10340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10341     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10343     break 2
10344   fi
10345 done
10346   done
10347 IFS=$as_save_IFS
10348 
10349   ;;
10350 esac
10351 fi
10352 RM=$ac_cv_path_RM
10353 if test -n "$RM"; then
10354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10355 $as_echo "$RM" >&6; }
10356 else
10357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10359 fi
10360 
10361 
10362   test -n "$RM" && break
10363 done
10364 
10365     else
10366       # If it succeeded, then it was overridden by the user. We will use it
10367       # for the tool.
10368 
10369       # First remove it from the list of overridden variables, so we can test
10370       # for unknown variables in the end.
10371       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10372 
10373       # Check if we try to supply an empty value
10374       if test "x$RM" = x; then
10375         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10376 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10378 $as_echo_n "checking for RM... " >&6; }
10379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10380 $as_echo "disabled" >&6; }
10381       else
10382         # Check if the provided tool contains a complete path.
10383         tool_specified="$RM"
10384         tool_basename="${tool_specified##*/}"
10385         if test "x$tool_basename" = "x$tool_specified"; then
10386           # A command without a complete path is provided, search $PATH.
10387           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10388 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10389           # Extract the first word of "$tool_basename", so it can be a program name with args.
10390 set dummy $tool_basename; ac_word=$2
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392 $as_echo_n "checking for $ac_word... " >&6; }
10393 if ${ac_cv_path_RM+:} false; then :
10394   $as_echo_n "(cached) " >&6
10395 else
10396   case $RM in
10397   [\\/]* | ?:[\\/]*)
10398   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10399   ;;
10400   *)
10401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402 for as_dir in $PATH
10403 do
10404   IFS=$as_save_IFS
10405   test -z "$as_dir" && as_dir=.
10406     for ac_exec_ext in '' $ac_executable_extensions; do
10407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10408     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410     break 2
10411   fi
10412 done
10413   done
10414 IFS=$as_save_IFS
10415 
10416   ;;
10417 esac
10418 fi
10419 RM=$ac_cv_path_RM
10420 if test -n "$RM"; then
10421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10422 $as_echo "$RM" >&6; }
10423 else
10424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 $as_echo "no" >&6; }
10426 fi
10427 
10428 
10429           if test "x$RM" = x; then
10430             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10431           fi
10432         else
10433           # Otherwise we believe it is a complete path. Use it as it is.
10434           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10435 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10436           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10437 $as_echo_n "checking for RM... " >&6; }
10438           if test ! -x "$tool_specified"; then
10439             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10440 $as_echo "not found" >&6; }
10441             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10442           fi
10443           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10444 $as_echo "$tool_specified" >&6; }
10445         fi
10446       fi
10447     fi
10448 
10449   fi
10450 
10451 
10452 
10453   if test "x$RM" = x; then
10454     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10455   fi
10456 
10457 
10458 
10459 
10460 
10461   # Publish this variable in the help.
10462 
10463 
10464   if [ -z "${RMDIR+x}" ]; then
10465     # The variable is not set by user, try to locate tool using the code snippet
10466     for ac_prog in rmdir
10467 do
10468   # Extract the first word of "$ac_prog", so it can be a program name with args.
10469 set dummy $ac_prog; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if ${ac_cv_path_RMDIR+:} false; then :
10473   $as_echo_n "(cached) " >&6
10474 else
10475   case $RMDIR in
10476   [\\/]* | ?:[\\/]*)
10477   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10478   ;;
10479   *)
10480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10482 do
10483   IFS=$as_save_IFS
10484   test -z "$as_dir" && as_dir=.
10485     for ac_exec_ext in '' $ac_executable_extensions; do
10486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10487     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489     break 2
10490   fi
10491 done
10492   done
10493 IFS=$as_save_IFS
10494 
10495   ;;
10496 esac
10497 fi
10498 RMDIR=$ac_cv_path_RMDIR
10499 if test -n "$RMDIR"; then
10500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10501 $as_echo "$RMDIR" >&6; }
10502 else
10503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10505 fi
10506 
10507 
10508   test -n "$RMDIR" && break
10509 done
10510 
10511   else
10512     # The variable is set, but is it from the command line or the environment?
10513 
10514     # Try to remove the string !RMDIR! from our list.
10515     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10516     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10517       # If it failed, the variable was not from the command line. Ignore it,
10518       # but warn the user (except for BASH, which is always set by the calling BASH).
10519       if test "xRMDIR" != xBASH; then
10520         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10521 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10522       fi
10523       # Try to locate tool using the code snippet
10524       for ac_prog in rmdir
10525 do
10526   # Extract the first word of "$ac_prog", so it can be a program name with args.
10527 set dummy $ac_prog; ac_word=$2
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529 $as_echo_n "checking for $ac_word... " >&6; }
10530 if ${ac_cv_path_RMDIR+:} false; then :
10531   $as_echo_n "(cached) " >&6
10532 else
10533   case $RMDIR in
10534   [\\/]* | ?:[\\/]*)
10535   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10536   ;;
10537   *)
10538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539 for as_dir in $PATH
10540 do
10541   IFS=$as_save_IFS
10542   test -z "$as_dir" && as_dir=.
10543     for ac_exec_ext in '' $ac_executable_extensions; do
10544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10545     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10547     break 2
10548   fi
10549 done
10550   done
10551 IFS=$as_save_IFS
10552 
10553   ;;
10554 esac
10555 fi
10556 RMDIR=$ac_cv_path_RMDIR
10557 if test -n "$RMDIR"; then
10558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10559 $as_echo "$RMDIR" >&6; }
10560 else
10561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10563 fi
10564 
10565 
10566   test -n "$RMDIR" && break
10567 done
10568 
10569     else
10570       # If it succeeded, then it was overridden by the user. We will use it
10571       # for the tool.
10572 
10573       # First remove it from the list of overridden variables, so we can test
10574       # for unknown variables in the end.
10575       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10576 
10577       # Check if we try to supply an empty value
10578       if test "x$RMDIR" = x; then
10579         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10580 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10581         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10582 $as_echo_n "checking for RMDIR... " >&6; }
10583         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10584 $as_echo "disabled" >&6; }
10585       else
10586         # Check if the provided tool contains a complete path.
10587         tool_specified="$RMDIR"
10588         tool_basename="${tool_specified##*/}"
10589         if test "x$tool_basename" = "x$tool_specified"; then
10590           # A command without a complete path is provided, search $PATH.
10591           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10592 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10593           # Extract the first word of "$tool_basename", so it can be a program name with args.
10594 set dummy $tool_basename; ac_word=$2
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10596 $as_echo_n "checking for $ac_word... " >&6; }
10597 if ${ac_cv_path_RMDIR+:} false; then :
10598   $as_echo_n "(cached) " >&6
10599 else
10600   case $RMDIR in
10601   [\\/]* | ?:[\\/]*)
10602   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10603   ;;
10604   *)
10605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606 for as_dir in $PATH
10607 do
10608   IFS=$as_save_IFS
10609   test -z "$as_dir" && as_dir=.
10610     for ac_exec_ext in '' $ac_executable_extensions; do
10611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10612     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10614     break 2
10615   fi
10616 done
10617   done
10618 IFS=$as_save_IFS
10619 
10620   ;;
10621 esac
10622 fi
10623 RMDIR=$ac_cv_path_RMDIR
10624 if test -n "$RMDIR"; then
10625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10626 $as_echo "$RMDIR" >&6; }
10627 else
10628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10629 $as_echo "no" >&6; }
10630 fi
10631 
10632 
10633           if test "x$RMDIR" = x; then
10634             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10635           fi
10636         else
10637           # Otherwise we believe it is a complete path. Use it as it is.
10638           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10639 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10640           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10641 $as_echo_n "checking for RMDIR... " >&6; }
10642           if test ! -x "$tool_specified"; then
10643             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10644 $as_echo "not found" >&6; }
10645             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10646           fi
10647           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10648 $as_echo "$tool_specified" >&6; }
10649         fi
10650       fi
10651     fi
10652 
10653   fi
10654 
10655 
10656 
10657   if test "x$RMDIR" = x; then
10658     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10659   fi
10660 
10661 
10662 
10663 
10664 
10665   # Publish this variable in the help.
10666 
10667 
10668   if [ -z "${SH+x}" ]; then
10669     # The variable is not set by user, try to locate tool using the code snippet
10670     for ac_prog in sh
10671 do
10672   # Extract the first word of "$ac_prog", so it can be a program name with args.
10673 set dummy $ac_prog; ac_word=$2
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675 $as_echo_n "checking for $ac_word... " >&6; }
10676 if ${ac_cv_path_SH+:} false; then :
10677   $as_echo_n "(cached) " >&6
10678 else
10679   case $SH in
10680   [\\/]* | ?:[\\/]*)
10681   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10682   ;;
10683   *)
10684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685 for as_dir in $PATH
10686 do
10687   IFS=$as_save_IFS
10688   test -z "$as_dir" && as_dir=.
10689     for ac_exec_ext in '' $ac_executable_extensions; do
10690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10691     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10693     break 2
10694   fi
10695 done
10696   done
10697 IFS=$as_save_IFS
10698 
10699   ;;
10700 esac
10701 fi
10702 SH=$ac_cv_path_SH
10703 if test -n "$SH"; then
10704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10705 $as_echo "$SH" >&6; }
10706 else
10707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; }
10709 fi
10710 
10711 
10712   test -n "$SH" && break
10713 done
10714 
10715   else
10716     # The variable is set, but is it from the command line or the environment?
10717 
10718     # Try to remove the string !SH! from our list.
10719     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10720     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10721       # If it failed, the variable was not from the command line. Ignore it,
10722       # but warn the user (except for BASH, which is always set by the calling BASH).
10723       if test "xSH" != xBASH; then
10724         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10725 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10726       fi
10727       # Try to locate tool using the code snippet
10728       for ac_prog in sh
10729 do
10730   # Extract the first word of "$ac_prog", so it can be a program name with args.
10731 set dummy $ac_prog; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if ${ac_cv_path_SH+:} false; then :
10735   $as_echo_n "(cached) " >&6
10736 else
10737   case $SH in
10738   [\\/]* | ?:[\\/]*)
10739   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10740   ;;
10741   *)
10742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in $PATH
10744 do
10745   IFS=$as_save_IFS
10746   test -z "$as_dir" && as_dir=.
10747     for ac_exec_ext in '' $ac_executable_extensions; do
10748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10749     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10751     break 2
10752   fi
10753 done
10754   done
10755 IFS=$as_save_IFS
10756 
10757   ;;
10758 esac
10759 fi
10760 SH=$ac_cv_path_SH
10761 if test -n "$SH"; then
10762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10763 $as_echo "$SH" >&6; }
10764 else
10765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10767 fi
10768 
10769 
10770   test -n "$SH" && break
10771 done
10772 
10773     else
10774       # If it succeeded, then it was overridden by the user. We will use it
10775       # for the tool.
10776 
10777       # First remove it from the list of overridden variables, so we can test
10778       # for unknown variables in the end.
10779       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10780 
10781       # Check if we try to supply an empty value
10782       if test "x$SH" = x; then
10783         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10784 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10785         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10786 $as_echo_n "checking for SH... " >&6; }
10787         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10788 $as_echo "disabled" >&6; }
10789       else
10790         # Check if the provided tool contains a complete path.
10791         tool_specified="$SH"
10792         tool_basename="${tool_specified##*/}"
10793         if test "x$tool_basename" = "x$tool_specified"; then
10794           # A command without a complete path is provided, search $PATH.
10795           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10796 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10797           # Extract the first word of "$tool_basename", so it can be a program name with args.
10798 set dummy $tool_basename; ac_word=$2
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10800 $as_echo_n "checking for $ac_word... " >&6; }
10801 if ${ac_cv_path_SH+:} false; then :
10802   $as_echo_n "(cached) " >&6
10803 else
10804   case $SH in
10805   [\\/]* | ?:[\\/]*)
10806   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10807   ;;
10808   *)
10809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810 for as_dir in $PATH
10811 do
10812   IFS=$as_save_IFS
10813   test -z "$as_dir" && as_dir=.
10814     for ac_exec_ext in '' $ac_executable_extensions; do
10815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10816     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10818     break 2
10819   fi
10820 done
10821   done
10822 IFS=$as_save_IFS
10823 
10824   ;;
10825 esac
10826 fi
10827 SH=$ac_cv_path_SH
10828 if test -n "$SH"; then
10829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10830 $as_echo "$SH" >&6; }
10831 else
10832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10834 fi
10835 
10836 
10837           if test "x$SH" = x; then
10838             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10839           fi
10840         else
10841           # Otherwise we believe it is a complete path. Use it as it is.
10842           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10843 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10844           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10845 $as_echo_n "checking for SH... " >&6; }
10846           if test ! -x "$tool_specified"; then
10847             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10848 $as_echo "not found" >&6; }
10849             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10850           fi
10851           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10852 $as_echo "$tool_specified" >&6; }
10853         fi
10854       fi
10855     fi
10856 
10857   fi
10858 
10859 
10860 
10861   if test "x$SH" = x; then
10862     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10863   fi
10864 
10865 
10866 
10867 
10868 
10869   # Publish this variable in the help.
10870 
10871 
10872   if [ -z "${SORT+x}" ]; then
10873     # The variable is not set by user, try to locate tool using the code snippet
10874     for ac_prog in sort
10875 do
10876   # Extract the first word of "$ac_prog", so it can be a program name with args.
10877 set dummy $ac_prog; ac_word=$2
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879 $as_echo_n "checking for $ac_word... " >&6; }
10880 if ${ac_cv_path_SORT+:} false; then :
10881   $as_echo_n "(cached) " >&6
10882 else
10883   case $SORT in
10884   [\\/]* | ?:[\\/]*)
10885   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10886   ;;
10887   *)
10888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10890 do
10891   IFS=$as_save_IFS
10892   test -z "$as_dir" && as_dir=.
10893     for ac_exec_ext in '' $ac_executable_extensions; do
10894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10897     break 2
10898   fi
10899 done
10900   done
10901 IFS=$as_save_IFS
10902 
10903   ;;
10904 esac
10905 fi
10906 SORT=$ac_cv_path_SORT
10907 if test -n "$SORT"; then
10908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10909 $as_echo "$SORT" >&6; }
10910 else
10911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10912 $as_echo "no" >&6; }
10913 fi
10914 
10915 
10916   test -n "$SORT" && break
10917 done
10918 
10919   else
10920     # The variable is set, but is it from the command line or the environment?
10921 
10922     # Try to remove the string !SORT! from our list.
10923     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10924     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10925       # If it failed, the variable was not from the command line. Ignore it,
10926       # but warn the user (except for BASH, which is always set by the calling BASH).
10927       if test "xSORT" != xBASH; then
10928         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10929 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10930       fi
10931       # Try to locate tool using the code snippet
10932       for ac_prog in sort
10933 do
10934   # Extract the first word of "$ac_prog", so it can be a program name with args.
10935 set dummy $ac_prog; ac_word=$2
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937 $as_echo_n "checking for $ac_word... " >&6; }
10938 if ${ac_cv_path_SORT+:} false; then :
10939   $as_echo_n "(cached) " >&6
10940 else
10941   case $SORT in
10942   [\\/]* | ?:[\\/]*)
10943   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10944   ;;
10945   *)
10946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947 for as_dir in $PATH
10948 do
10949   IFS=$as_save_IFS
10950   test -z "$as_dir" && as_dir=.
10951     for ac_exec_ext in '' $ac_executable_extensions; do
10952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10953     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10955     break 2
10956   fi
10957 done
10958   done
10959 IFS=$as_save_IFS
10960 
10961   ;;
10962 esac
10963 fi
10964 SORT=$ac_cv_path_SORT
10965 if test -n "$SORT"; then
10966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10967 $as_echo "$SORT" >&6; }
10968 else
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10971 fi
10972 
10973 
10974   test -n "$SORT" && break
10975 done
10976 
10977     else
10978       # If it succeeded, then it was overridden by the user. We will use it
10979       # for the tool.
10980 
10981       # First remove it from the list of overridden variables, so we can test
10982       # for unknown variables in the end.
10983       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10984 
10985       # Check if we try to supply an empty value
10986       if test "x$SORT" = x; then
10987         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10988 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10989         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10990 $as_echo_n "checking for SORT... " >&6; }
10991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10992 $as_echo "disabled" >&6; }
10993       else
10994         # Check if the provided tool contains a complete path.
10995         tool_specified="$SORT"
10996         tool_basename="${tool_specified##*/}"
10997         if test "x$tool_basename" = "x$tool_specified"; then
10998           # A command without a complete path is provided, search $PATH.
10999           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11000 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11001           # Extract the first word of "$tool_basename", so it can be a program name with args.
11002 set dummy $tool_basename; ac_word=$2
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11004 $as_echo_n "checking for $ac_word... " >&6; }
11005 if ${ac_cv_path_SORT+:} false; then :
11006   $as_echo_n "(cached) " >&6
11007 else
11008   case $SORT in
11009   [\\/]* | ?:[\\/]*)
11010   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11011   ;;
11012   *)
11013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11015 do
11016   IFS=$as_save_IFS
11017   test -z "$as_dir" && as_dir=.
11018     for ac_exec_ext in '' $ac_executable_extensions; do
11019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11022     break 2
11023   fi
11024 done
11025   done
11026 IFS=$as_save_IFS
11027 
11028   ;;
11029 esac
11030 fi
11031 SORT=$ac_cv_path_SORT
11032 if test -n "$SORT"; then
11033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11034 $as_echo "$SORT" >&6; }
11035 else
11036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11038 fi
11039 
11040 
11041           if test "x$SORT" = x; then
11042             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11043           fi
11044         else
11045           # Otherwise we believe it is a complete path. Use it as it is.
11046           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11047 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11048           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11049 $as_echo_n "checking for SORT... " >&6; }
11050           if test ! -x "$tool_specified"; then
11051             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11052 $as_echo "not found" >&6; }
11053             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11054           fi
11055           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11056 $as_echo "$tool_specified" >&6; }
11057         fi
11058       fi
11059     fi
11060 
11061   fi
11062 
11063 
11064 
11065   if test "x$SORT" = x; then
11066     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11067   fi
11068 
11069 
11070 
11071 
11072 
11073   # Publish this variable in the help.
11074 
11075 
11076   if [ -z "${TAIL+x}" ]; then
11077     # The variable is not set by user, try to locate tool using the code snippet
11078     for ac_prog in tail
11079 do
11080   # Extract the first word of "$ac_prog", so it can be a program name with args.
11081 set dummy $ac_prog; ac_word=$2
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11083 $as_echo_n "checking for $ac_word... " >&6; }
11084 if ${ac_cv_path_TAIL+:} false; then :
11085   $as_echo_n "(cached) " >&6
11086 else
11087   case $TAIL in
11088   [\\/]* | ?:[\\/]*)
11089   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11090   ;;
11091   *)
11092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093 for as_dir in $PATH
11094 do
11095   IFS=$as_save_IFS
11096   test -z "$as_dir" && as_dir=.
11097     for ac_exec_ext in '' $ac_executable_extensions; do
11098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11099     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11101     break 2
11102   fi
11103 done
11104   done
11105 IFS=$as_save_IFS
11106 
11107   ;;
11108 esac
11109 fi
11110 TAIL=$ac_cv_path_TAIL
11111 if test -n "$TAIL"; then
11112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11113 $as_echo "$TAIL" >&6; }
11114 else
11115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11117 fi
11118 
11119 
11120   test -n "$TAIL" && break
11121 done
11122 
11123   else
11124     # The variable is set, but is it from the command line or the environment?
11125 
11126     # Try to remove the string !TAIL! from our list.
11127     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11128     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11129       # If it failed, the variable was not from the command line. Ignore it,
11130       # but warn the user (except for BASH, which is always set by the calling BASH).
11131       if test "xTAIL" != xBASH; then
11132         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11133 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11134       fi
11135       # Try to locate tool using the code snippet
11136       for ac_prog in tail
11137 do
11138   # Extract the first word of "$ac_prog", so it can be a program name with args.
11139 set dummy $ac_prog; ac_word=$2
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141 $as_echo_n "checking for $ac_word... " >&6; }
11142 if ${ac_cv_path_TAIL+:} false; then :
11143   $as_echo_n "(cached) " >&6
11144 else
11145   case $TAIL in
11146   [\\/]* | ?:[\\/]*)
11147   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11148   ;;
11149   *)
11150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151 for as_dir in $PATH
11152 do
11153   IFS=$as_save_IFS
11154   test -z "$as_dir" && as_dir=.
11155     for ac_exec_ext in '' $ac_executable_extensions; do
11156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11157     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11159     break 2
11160   fi
11161 done
11162   done
11163 IFS=$as_save_IFS
11164 
11165   ;;
11166 esac
11167 fi
11168 TAIL=$ac_cv_path_TAIL
11169 if test -n "$TAIL"; then
11170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11171 $as_echo "$TAIL" >&6; }
11172 else
11173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11175 fi
11176 
11177 
11178   test -n "$TAIL" && break
11179 done
11180 
11181     else
11182       # If it succeeded, then it was overridden by the user. We will use it
11183       # for the tool.
11184 
11185       # First remove it from the list of overridden variables, so we can test
11186       # for unknown variables in the end.
11187       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11188 
11189       # Check if we try to supply an empty value
11190       if test "x$TAIL" = x; then
11191         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11192 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11193         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11194 $as_echo_n "checking for TAIL... " >&6; }
11195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11196 $as_echo "disabled" >&6; }
11197       else
11198         # Check if the provided tool contains a complete path.
11199         tool_specified="$TAIL"
11200         tool_basename="${tool_specified##*/}"
11201         if test "x$tool_basename" = "x$tool_specified"; then
11202           # A command without a complete path is provided, search $PATH.
11203           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11204 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11205           # Extract the first word of "$tool_basename", so it can be a program name with args.
11206 set dummy $tool_basename; ac_word=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if ${ac_cv_path_TAIL+:} false; then :
11210   $as_echo_n "(cached) " >&6
11211 else
11212   case $TAIL in
11213   [\\/]* | ?:[\\/]*)
11214   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11215   ;;
11216   *)
11217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH
11219 do
11220   IFS=$as_save_IFS
11221   test -z "$as_dir" && as_dir=.
11222     for ac_exec_ext in '' $ac_executable_extensions; do
11223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11224     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226     break 2
11227   fi
11228 done
11229   done
11230 IFS=$as_save_IFS
11231 
11232   ;;
11233 esac
11234 fi
11235 TAIL=$ac_cv_path_TAIL
11236 if test -n "$TAIL"; then
11237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11238 $as_echo "$TAIL" >&6; }
11239 else
11240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241 $as_echo "no" >&6; }
11242 fi
11243 
11244 
11245           if test "x$TAIL" = x; then
11246             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11247           fi
11248         else
11249           # Otherwise we believe it is a complete path. Use it as it is.
11250           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11251 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11252           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11253 $as_echo_n "checking for TAIL... " >&6; }
11254           if test ! -x "$tool_specified"; then
11255             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11256 $as_echo "not found" >&6; }
11257             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11258           fi
11259           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11260 $as_echo "$tool_specified" >&6; }
11261         fi
11262       fi
11263     fi
11264 
11265   fi
11266 
11267 
11268 
11269   if test "x$TAIL" = x; then
11270     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11271   fi
11272 
11273 
11274 
11275 
11276 
11277   # Publish this variable in the help.
11278 
11279 
11280   if [ -z "${TAR+x}" ]; then
11281     # The variable is not set by user, try to locate tool using the code snippet
11282     for ac_prog in gtar tar
11283 do
11284   # Extract the first word of "$ac_prog", so it can be a program name with args.
11285 set dummy $ac_prog; ac_word=$2
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287 $as_echo_n "checking for $ac_word... " >&6; }
11288 if ${ac_cv_path_TAR+:} false; then :
11289   $as_echo_n "(cached) " >&6
11290 else
11291   case $TAR in
11292   [\\/]* | ?:[\\/]*)
11293   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11294   ;;
11295   *)
11296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297 for as_dir in $PATH
11298 do
11299   IFS=$as_save_IFS
11300   test -z "$as_dir" && as_dir=.
11301     for ac_exec_ext in '' $ac_executable_extensions; do
11302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305     break 2
11306   fi
11307 done
11308   done
11309 IFS=$as_save_IFS
11310 
11311   ;;
11312 esac
11313 fi
11314 TAR=$ac_cv_path_TAR
11315 if test -n "$TAR"; then
11316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11317 $as_echo "$TAR" >&6; }
11318 else
11319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11321 fi
11322 
11323 
11324   test -n "$TAR" && break
11325 done
11326 
11327   else
11328     # The variable is set, but is it from the command line or the environment?
11329 
11330     # Try to remove the string !TAR! from our list.
11331     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11332     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11333       # If it failed, the variable was not from the command line. Ignore it,
11334       # but warn the user (except for BASH, which is always set by the calling BASH).
11335       if test "xTAR" != xBASH; then
11336         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11337 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11338       fi
11339       # Try to locate tool using the code snippet
11340       for ac_prog in gtar tar
11341 do
11342   # Extract the first word of "$ac_prog", so it can be a program name with args.
11343 set dummy $ac_prog; ac_word=$2
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345 $as_echo_n "checking for $ac_word... " >&6; }
11346 if ${ac_cv_path_TAR+:} false; then :
11347   $as_echo_n "(cached) " >&6
11348 else
11349   case $TAR in
11350   [\\/]* | ?:[\\/]*)
11351   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11352   ;;
11353   *)
11354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11356 do
11357   IFS=$as_save_IFS
11358   test -z "$as_dir" && as_dir=.
11359     for ac_exec_ext in '' $ac_executable_extensions; do
11360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363     break 2
11364   fi
11365 done
11366   done
11367 IFS=$as_save_IFS
11368 
11369   ;;
11370 esac
11371 fi
11372 TAR=$ac_cv_path_TAR
11373 if test -n "$TAR"; then
11374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11375 $as_echo "$TAR" >&6; }
11376 else
11377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 $as_echo "no" >&6; }
11379 fi
11380 
11381 
11382   test -n "$TAR" && break
11383 done
11384 
11385     else
11386       # If it succeeded, then it was overridden by the user. We will use it
11387       # for the tool.
11388 
11389       # First remove it from the list of overridden variables, so we can test
11390       # for unknown variables in the end.
11391       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11392 
11393       # Check if we try to supply an empty value
11394       if test "x$TAR" = x; then
11395         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11396 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11398 $as_echo_n "checking for TAR... " >&6; }
11399         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11400 $as_echo "disabled" >&6; }
11401       else
11402         # Check if the provided tool contains a complete path.
11403         tool_specified="$TAR"
11404         tool_basename="${tool_specified##*/}"
11405         if test "x$tool_basename" = "x$tool_specified"; then
11406           # A command without a complete path is provided, search $PATH.
11407           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11408 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11409           # Extract the first word of "$tool_basename", so it can be a program name with args.
11410 set dummy $tool_basename; ac_word=$2
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11412 $as_echo_n "checking for $ac_word... " >&6; }
11413 if ${ac_cv_path_TAR+:} false; then :
11414   $as_echo_n "(cached) " >&6
11415 else
11416   case $TAR in
11417   [\\/]* | ?:[\\/]*)
11418   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11419   ;;
11420   *)
11421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11422 for as_dir in $PATH
11423 do
11424   IFS=$as_save_IFS
11425   test -z "$as_dir" && as_dir=.
11426     for ac_exec_ext in '' $ac_executable_extensions; do
11427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11428     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11430     break 2
11431   fi
11432 done
11433   done
11434 IFS=$as_save_IFS
11435 
11436   ;;
11437 esac
11438 fi
11439 TAR=$ac_cv_path_TAR
11440 if test -n "$TAR"; then
11441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11442 $as_echo "$TAR" >&6; }
11443 else
11444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445 $as_echo "no" >&6; }
11446 fi
11447 
11448 
11449           if test "x$TAR" = x; then
11450             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11451           fi
11452         else
11453           # Otherwise we believe it is a complete path. Use it as it is.
11454           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11455 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11456           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11457 $as_echo_n "checking for TAR... " >&6; }
11458           if test ! -x "$tool_specified"; then
11459             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11460 $as_echo "not found" >&6; }
11461             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11462           fi
11463           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11464 $as_echo "$tool_specified" >&6; }
11465         fi
11466       fi
11467     fi
11468 
11469   fi
11470 
11471 
11472 
11473   if test "x$TAR" = x; then
11474     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11475   fi
11476 
11477 
11478 
11479 
11480 
11481   # Publish this variable in the help.
11482 
11483 
11484   if [ -z "${TEE+x}" ]; then
11485     # The variable is not set by user, try to locate tool using the code snippet
11486     for ac_prog in tee
11487 do
11488   # Extract the first word of "$ac_prog", so it can be a program name with args.
11489 set dummy $ac_prog; ac_word=$2
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11491 $as_echo_n "checking for $ac_word... " >&6; }
11492 if ${ac_cv_path_TEE+:} false; then :
11493   $as_echo_n "(cached) " >&6
11494 else
11495   case $TEE in
11496   [\\/]* | ?:[\\/]*)
11497   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11498   ;;
11499   *)
11500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11502 do
11503   IFS=$as_save_IFS
11504   test -z "$as_dir" && as_dir=.
11505     for ac_exec_ext in '' $ac_executable_extensions; do
11506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11507     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11509     break 2
11510   fi
11511 done
11512   done
11513 IFS=$as_save_IFS
11514 
11515   ;;
11516 esac
11517 fi
11518 TEE=$ac_cv_path_TEE
11519 if test -n "$TEE"; then
11520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11521 $as_echo "$TEE" >&6; }
11522 else
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11525 fi
11526 
11527 
11528   test -n "$TEE" && break
11529 done
11530 
11531   else
11532     # The variable is set, but is it from the command line or the environment?
11533 
11534     # Try to remove the string !TEE! from our list.
11535     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11536     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11537       # If it failed, the variable was not from the command line. Ignore it,
11538       # but warn the user (except for BASH, which is always set by the calling BASH).
11539       if test "xTEE" != xBASH; then
11540         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11541 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11542       fi
11543       # Try to locate tool using the code snippet
11544       for ac_prog in tee
11545 do
11546   # Extract the first word of "$ac_prog", so it can be a program name with args.
11547 set dummy $ac_prog; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if ${ac_cv_path_TEE+:} false; then :
11551   $as_echo_n "(cached) " >&6
11552 else
11553   case $TEE in
11554   [\\/]* | ?:[\\/]*)
11555   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11556   ;;
11557   *)
11558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11560 do
11561   IFS=$as_save_IFS
11562   test -z "$as_dir" && as_dir=.
11563     for ac_exec_ext in '' $ac_executable_extensions; do
11564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567     break 2
11568   fi
11569 done
11570   done
11571 IFS=$as_save_IFS
11572 
11573   ;;
11574 esac
11575 fi
11576 TEE=$ac_cv_path_TEE
11577 if test -n "$TEE"; then
11578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11579 $as_echo "$TEE" >&6; }
11580 else
11581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11583 fi
11584 
11585 
11586   test -n "$TEE" && break
11587 done
11588 
11589     else
11590       # If it succeeded, then it was overridden by the user. We will use it
11591       # for the tool.
11592 
11593       # First remove it from the list of overridden variables, so we can test
11594       # for unknown variables in the end.
11595       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11596 
11597       # Check if we try to supply an empty value
11598       if test "x$TEE" = x; then
11599         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11600 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11601         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11602 $as_echo_n "checking for TEE... " >&6; }
11603         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11604 $as_echo "disabled" >&6; }
11605       else
11606         # Check if the provided tool contains a complete path.
11607         tool_specified="$TEE"
11608         tool_basename="${tool_specified##*/}"
11609         if test "x$tool_basename" = "x$tool_specified"; then
11610           # A command without a complete path is provided, search $PATH.
11611           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11612 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11613           # Extract the first word of "$tool_basename", so it can be a program name with args.
11614 set dummy $tool_basename; ac_word=$2
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616 $as_echo_n "checking for $ac_word... " >&6; }
11617 if ${ac_cv_path_TEE+:} false; then :
11618   $as_echo_n "(cached) " >&6
11619 else
11620   case $TEE in
11621   [\\/]* | ?:[\\/]*)
11622   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11623   ;;
11624   *)
11625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626 for as_dir in $PATH
11627 do
11628   IFS=$as_save_IFS
11629   test -z "$as_dir" && as_dir=.
11630     for ac_exec_ext in '' $ac_executable_extensions; do
11631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11632     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11634     break 2
11635   fi
11636 done
11637   done
11638 IFS=$as_save_IFS
11639 
11640   ;;
11641 esac
11642 fi
11643 TEE=$ac_cv_path_TEE
11644 if test -n "$TEE"; then
11645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11646 $as_echo "$TEE" >&6; }
11647 else
11648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649 $as_echo "no" >&6; }
11650 fi
11651 
11652 
11653           if test "x$TEE" = x; then
11654             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11655           fi
11656         else
11657           # Otherwise we believe it is a complete path. Use it as it is.
11658           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11659 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11660           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11661 $as_echo_n "checking for TEE... " >&6; }
11662           if test ! -x "$tool_specified"; then
11663             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11664 $as_echo "not found" >&6; }
11665             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11666           fi
11667           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11668 $as_echo "$tool_specified" >&6; }
11669         fi
11670       fi
11671     fi
11672 
11673   fi
11674 
11675 
11676 
11677   if test "x$TEE" = x; then
11678     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11679   fi
11680 
11681 
11682 
11683 
11684 
11685   # Publish this variable in the help.
11686 
11687 
11688   if [ -z "${TOUCH+x}" ]; then
11689     # The variable is not set by user, try to locate tool using the code snippet
11690     for ac_prog in touch
11691 do
11692   # Extract the first word of "$ac_prog", so it can be a program name with args.
11693 set dummy $ac_prog; ac_word=$2
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11695 $as_echo_n "checking for $ac_word... " >&6; }
11696 if ${ac_cv_path_TOUCH+:} false; then :
11697   $as_echo_n "(cached) " >&6
11698 else
11699   case $TOUCH in
11700   [\\/]* | ?:[\\/]*)
11701   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11702   ;;
11703   *)
11704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11706 do
11707   IFS=$as_save_IFS
11708   test -z "$as_dir" && as_dir=.
11709     for ac_exec_ext in '' $ac_executable_extensions; do
11710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11713     break 2
11714   fi
11715 done
11716   done
11717 IFS=$as_save_IFS
11718 
11719   ;;
11720 esac
11721 fi
11722 TOUCH=$ac_cv_path_TOUCH
11723 if test -n "$TOUCH"; then
11724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11725 $as_echo "$TOUCH" >&6; }
11726 else
11727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728 $as_echo "no" >&6; }
11729 fi
11730 
11731 
11732   test -n "$TOUCH" && break
11733 done
11734 
11735   else
11736     # The variable is set, but is it from the command line or the environment?
11737 
11738     # Try to remove the string !TOUCH! from our list.
11739     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11740     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11741       # If it failed, the variable was not from the command line. Ignore it,
11742       # but warn the user (except for BASH, which is always set by the calling BASH).
11743       if test "xTOUCH" != xBASH; then
11744         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11745 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11746       fi
11747       # Try to locate tool using the code snippet
11748       for ac_prog in touch
11749 do
11750   # Extract the first word of "$ac_prog", so it can be a program name with args.
11751 set dummy $ac_prog; ac_word=$2
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753 $as_echo_n "checking for $ac_word... " >&6; }
11754 if ${ac_cv_path_TOUCH+:} false; then :
11755   $as_echo_n "(cached) " >&6
11756 else
11757   case $TOUCH in
11758   [\\/]* | ?:[\\/]*)
11759   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11760   ;;
11761   *)
11762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763 for as_dir in $PATH
11764 do
11765   IFS=$as_save_IFS
11766   test -z "$as_dir" && as_dir=.
11767     for ac_exec_ext in '' $ac_executable_extensions; do
11768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11769     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11771     break 2
11772   fi
11773 done
11774   done
11775 IFS=$as_save_IFS
11776 
11777   ;;
11778 esac
11779 fi
11780 TOUCH=$ac_cv_path_TOUCH
11781 if test -n "$TOUCH"; then
11782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11783 $as_echo "$TOUCH" >&6; }
11784 else
11785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11787 fi
11788 
11789 
11790   test -n "$TOUCH" && break
11791 done
11792 
11793     else
11794       # If it succeeded, then it was overridden by the user. We will use it
11795       # for the tool.
11796 
11797       # First remove it from the list of overridden variables, so we can test
11798       # for unknown variables in the end.
11799       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11800 
11801       # Check if we try to supply an empty value
11802       if test "x$TOUCH" = x; then
11803         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11804 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11806 $as_echo_n "checking for TOUCH... " >&6; }
11807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11808 $as_echo "disabled" >&6; }
11809       else
11810         # Check if the provided tool contains a complete path.
11811         tool_specified="$TOUCH"
11812         tool_basename="${tool_specified##*/}"
11813         if test "x$tool_basename" = "x$tool_specified"; then
11814           # A command without a complete path is provided, search $PATH.
11815           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11816 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11817           # Extract the first word of "$tool_basename", so it can be a program name with args.
11818 set dummy $tool_basename; ac_word=$2
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820 $as_echo_n "checking for $ac_word... " >&6; }
11821 if ${ac_cv_path_TOUCH+:} false; then :
11822   $as_echo_n "(cached) " >&6
11823 else
11824   case $TOUCH in
11825   [\\/]* | ?:[\\/]*)
11826   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11827   ;;
11828   *)
11829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $PATH
11831 do
11832   IFS=$as_save_IFS
11833   test -z "$as_dir" && as_dir=.
11834     for ac_exec_ext in '' $ac_executable_extensions; do
11835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11836     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11838     break 2
11839   fi
11840 done
11841   done
11842 IFS=$as_save_IFS
11843 
11844   ;;
11845 esac
11846 fi
11847 TOUCH=$ac_cv_path_TOUCH
11848 if test -n "$TOUCH"; then
11849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11850 $as_echo "$TOUCH" >&6; }
11851 else
11852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11854 fi
11855 
11856 
11857           if test "x$TOUCH" = x; then
11858             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11859           fi
11860         else
11861           # Otherwise we believe it is a complete path. Use it as it is.
11862           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11863 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11864           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11865 $as_echo_n "checking for TOUCH... " >&6; }
11866           if test ! -x "$tool_specified"; then
11867             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11868 $as_echo "not found" >&6; }
11869             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11870           fi
11871           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11872 $as_echo "$tool_specified" >&6; }
11873         fi
11874       fi
11875     fi
11876 
11877   fi
11878 
11879 
11880 
11881   if test "x$TOUCH" = x; then
11882     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11883   fi
11884 
11885 
11886 
11887 
11888 
11889   # Publish this variable in the help.
11890 
11891 
11892   if [ -z "${TR+x}" ]; then
11893     # The variable is not set by user, try to locate tool using the code snippet
11894     for ac_prog in tr
11895 do
11896   # Extract the first word of "$ac_prog", so it can be a program name with args.
11897 set dummy $ac_prog; ac_word=$2
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899 $as_echo_n "checking for $ac_word... " >&6; }
11900 if ${ac_cv_path_TR+:} false; then :
11901   $as_echo_n "(cached) " >&6
11902 else
11903   case $TR in
11904   [\\/]* | ?:[\\/]*)
11905   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11906   ;;
11907   *)
11908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11910 do
11911   IFS=$as_save_IFS
11912   test -z "$as_dir" && as_dir=.
11913     for ac_exec_ext in '' $ac_executable_extensions; do
11914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11915     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11917     break 2
11918   fi
11919 done
11920   done
11921 IFS=$as_save_IFS
11922 
11923   ;;
11924 esac
11925 fi
11926 TR=$ac_cv_path_TR
11927 if test -n "$TR"; then
11928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11929 $as_echo "$TR" >&6; }
11930 else
11931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11933 fi
11934 
11935 
11936   test -n "$TR" && break
11937 done
11938 
11939   else
11940     # The variable is set, but is it from the command line or the environment?
11941 
11942     # Try to remove the string !TR! from our list.
11943     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11944     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11945       # If it failed, the variable was not from the command line. Ignore it,
11946       # but warn the user (except for BASH, which is always set by the calling BASH).
11947       if test "xTR" != xBASH; then
11948         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11949 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11950       fi
11951       # Try to locate tool using the code snippet
11952       for ac_prog in tr
11953 do
11954   # Extract the first word of "$ac_prog", so it can be a program name with args.
11955 set dummy $ac_prog; ac_word=$2
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11957 $as_echo_n "checking for $ac_word... " >&6; }
11958 if ${ac_cv_path_TR+:} false; then :
11959   $as_echo_n "(cached) " >&6
11960 else
11961   case $TR in
11962   [\\/]* | ?:[\\/]*)
11963   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11964   ;;
11965   *)
11966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11968 do
11969   IFS=$as_save_IFS
11970   test -z "$as_dir" && as_dir=.
11971     for ac_exec_ext in '' $ac_executable_extensions; do
11972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11973     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975     break 2
11976   fi
11977 done
11978   done
11979 IFS=$as_save_IFS
11980 
11981   ;;
11982 esac
11983 fi
11984 TR=$ac_cv_path_TR
11985 if test -n "$TR"; then
11986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11987 $as_echo "$TR" >&6; }
11988 else
11989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991 fi
11992 
11993 
11994   test -n "$TR" && break
11995 done
11996 
11997     else
11998       # If it succeeded, then it was overridden by the user. We will use it
11999       # for the tool.
12000 
12001       # First remove it from the list of overridden variables, so we can test
12002       # for unknown variables in the end.
12003       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12004 
12005       # Check if we try to supply an empty value
12006       if test "x$TR" = x; then
12007         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12008 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12009         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12010 $as_echo_n "checking for TR... " >&6; }
12011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12012 $as_echo "disabled" >&6; }
12013       else
12014         # Check if the provided tool contains a complete path.
12015         tool_specified="$TR"
12016         tool_basename="${tool_specified##*/}"
12017         if test "x$tool_basename" = "x$tool_specified"; then
12018           # A command without a complete path is provided, search $PATH.
12019           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12020 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12021           # Extract the first word of "$tool_basename", so it can be a program name with args.
12022 set dummy $tool_basename; ac_word=$2
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12024 $as_echo_n "checking for $ac_word... " >&6; }
12025 if ${ac_cv_path_TR+:} false; then :
12026   $as_echo_n "(cached) " >&6
12027 else
12028   case $TR in
12029   [\\/]* | ?:[\\/]*)
12030   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12031   ;;
12032   *)
12033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034 for as_dir in $PATH
12035 do
12036   IFS=$as_save_IFS
12037   test -z "$as_dir" && as_dir=.
12038     for ac_exec_ext in '' $ac_executable_extensions; do
12039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12040     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12042     break 2
12043   fi
12044 done
12045   done
12046 IFS=$as_save_IFS
12047 
12048   ;;
12049 esac
12050 fi
12051 TR=$ac_cv_path_TR
12052 if test -n "$TR"; then
12053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12054 $as_echo "$TR" >&6; }
12055 else
12056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057 $as_echo "no" >&6; }
12058 fi
12059 
12060 
12061           if test "x$TR" = x; then
12062             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12063           fi
12064         else
12065           # Otherwise we believe it is a complete path. Use it as it is.
12066           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12067 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12068           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12069 $as_echo_n "checking for TR... " >&6; }
12070           if test ! -x "$tool_specified"; then
12071             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12072 $as_echo "not found" >&6; }
12073             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12074           fi
12075           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12076 $as_echo "$tool_specified" >&6; }
12077         fi
12078       fi
12079     fi
12080 
12081   fi
12082 
12083 
12084 
12085   if test "x$TR" = x; then
12086     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12087   fi
12088 
12089 
12090 
12091 
12092 
12093   # Publish this variable in the help.
12094 
12095 
12096   if [ -z "${UNAME+x}" ]; then
12097     # The variable is not set by user, try to locate tool using the code snippet
12098     for ac_prog in uname
12099 do
12100   # Extract the first word of "$ac_prog", so it can be a program name with args.
12101 set dummy $ac_prog; ac_word=$2
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if ${ac_cv_path_UNAME+:} false; then :
12105   $as_echo_n "(cached) " >&6
12106 else
12107   case $UNAME in
12108   [\\/]* | ?:[\\/]*)
12109   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12110   ;;
12111   *)
12112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH
12114 do
12115   IFS=$as_save_IFS
12116   test -z "$as_dir" && as_dir=.
12117     for ac_exec_ext in '' $ac_executable_extensions; do
12118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12119     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121     break 2
12122   fi
12123 done
12124   done
12125 IFS=$as_save_IFS
12126 
12127   ;;
12128 esac
12129 fi
12130 UNAME=$ac_cv_path_UNAME
12131 if test -n "$UNAME"; then
12132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12133 $as_echo "$UNAME" >&6; }
12134 else
12135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12137 fi
12138 
12139 
12140   test -n "$UNAME" && break
12141 done
12142 
12143   else
12144     # The variable is set, but is it from the command line or the environment?
12145 
12146     # Try to remove the string !UNAME! from our list.
12147     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12148     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12149       # If it failed, the variable was not from the command line. Ignore it,
12150       # but warn the user (except for BASH, which is always set by the calling BASH).
12151       if test "xUNAME" != xBASH; then
12152         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12153 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12154       fi
12155       # Try to locate tool using the code snippet
12156       for ac_prog in uname
12157 do
12158   # Extract the first word of "$ac_prog", so it can be a program name with args.
12159 set dummy $ac_prog; ac_word=$2
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161 $as_echo_n "checking for $ac_word... " >&6; }
12162 if ${ac_cv_path_UNAME+:} false; then :
12163   $as_echo_n "(cached) " >&6
12164 else
12165   case $UNAME in
12166   [\\/]* | ?:[\\/]*)
12167   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12168   ;;
12169   *)
12170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in $PATH
12172 do
12173   IFS=$as_save_IFS
12174   test -z "$as_dir" && as_dir=.
12175     for ac_exec_ext in '' $ac_executable_extensions; do
12176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12177     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12179     break 2
12180   fi
12181 done
12182   done
12183 IFS=$as_save_IFS
12184 
12185   ;;
12186 esac
12187 fi
12188 UNAME=$ac_cv_path_UNAME
12189 if test -n "$UNAME"; then
12190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12191 $as_echo "$UNAME" >&6; }
12192 else
12193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12195 fi
12196 
12197 
12198   test -n "$UNAME" && break
12199 done
12200 
12201     else
12202       # If it succeeded, then it was overridden by the user. We will use it
12203       # for the tool.
12204 
12205       # First remove it from the list of overridden variables, so we can test
12206       # for unknown variables in the end.
12207       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12208 
12209       # Check if we try to supply an empty value
12210       if test "x$UNAME" = x; then
12211         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12212 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12213         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12214 $as_echo_n "checking for UNAME... " >&6; }
12215         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12216 $as_echo "disabled" >&6; }
12217       else
12218         # Check if the provided tool contains a complete path.
12219         tool_specified="$UNAME"
12220         tool_basename="${tool_specified##*/}"
12221         if test "x$tool_basename" = "x$tool_specified"; then
12222           # A command without a complete path is provided, search $PATH.
12223           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12224 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12225           # Extract the first word of "$tool_basename", so it can be a program name with args.
12226 set dummy $tool_basename; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if ${ac_cv_path_UNAME+:} false; then :
12230   $as_echo_n "(cached) " >&6
12231 else
12232   case $UNAME in
12233   [\\/]* | ?:[\\/]*)
12234   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12235   ;;
12236   *)
12237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in $PATH
12239 do
12240   IFS=$as_save_IFS
12241   test -z "$as_dir" && as_dir=.
12242     for ac_exec_ext in '' $ac_executable_extensions; do
12243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12244     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12246     break 2
12247   fi
12248 done
12249   done
12250 IFS=$as_save_IFS
12251 
12252   ;;
12253 esac
12254 fi
12255 UNAME=$ac_cv_path_UNAME
12256 if test -n "$UNAME"; then
12257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12258 $as_echo "$UNAME" >&6; }
12259 else
12260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12262 fi
12263 
12264 
12265           if test "x$UNAME" = x; then
12266             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12267           fi
12268         else
12269           # Otherwise we believe it is a complete path. Use it as it is.
12270           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12271 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12272           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12273 $as_echo_n "checking for UNAME... " >&6; }
12274           if test ! -x "$tool_specified"; then
12275             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12276 $as_echo "not found" >&6; }
12277             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12278           fi
12279           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12280 $as_echo "$tool_specified" >&6; }
12281         fi
12282       fi
12283     fi
12284 
12285   fi
12286 
12287 
12288 
12289   if test "x$UNAME" = x; then
12290     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12291   fi
12292 
12293 
12294 
12295 
12296 
12297   # Publish this variable in the help.
12298 
12299 
12300   if [ -z "${UNIQ+x}" ]; then
12301     # The variable is not set by user, try to locate tool using the code snippet
12302     for ac_prog in uniq
12303 do
12304   # Extract the first word of "$ac_prog", so it can be a program name with args.
12305 set dummy $ac_prog; ac_word=$2
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307 $as_echo_n "checking for $ac_word... " >&6; }
12308 if ${ac_cv_path_UNIQ+:} false; then :
12309   $as_echo_n "(cached) " >&6
12310 else
12311   case $UNIQ in
12312   [\\/]* | ?:[\\/]*)
12313   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12314   ;;
12315   *)
12316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12318 do
12319   IFS=$as_save_IFS
12320   test -z "$as_dir" && as_dir=.
12321     for ac_exec_ext in '' $ac_executable_extensions; do
12322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12325     break 2
12326   fi
12327 done
12328   done
12329 IFS=$as_save_IFS
12330 
12331   ;;
12332 esac
12333 fi
12334 UNIQ=$ac_cv_path_UNIQ
12335 if test -n "$UNIQ"; then
12336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12337 $as_echo "$UNIQ" >&6; }
12338 else
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12341 fi
12342 
12343 
12344   test -n "$UNIQ" && break
12345 done
12346 
12347   else
12348     # The variable is set, but is it from the command line or the environment?
12349 
12350     # Try to remove the string !UNIQ! from our list.
12351     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12352     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12353       # If it failed, the variable was not from the command line. Ignore it,
12354       # but warn the user (except for BASH, which is always set by the calling BASH).
12355       if test "xUNIQ" != xBASH; then
12356         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12357 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12358       fi
12359       # Try to locate tool using the code snippet
12360       for ac_prog in uniq
12361 do
12362   # Extract the first word of "$ac_prog", so it can be a program name with args.
12363 set dummy $ac_prog; ac_word=$2
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365 $as_echo_n "checking for $ac_word... " >&6; }
12366 if ${ac_cv_path_UNIQ+:} false; then :
12367   $as_echo_n "(cached) " >&6
12368 else
12369   case $UNIQ in
12370   [\\/]* | ?:[\\/]*)
12371   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12372   ;;
12373   *)
12374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12376 do
12377   IFS=$as_save_IFS
12378   test -z "$as_dir" && as_dir=.
12379     for ac_exec_ext in '' $ac_executable_extensions; do
12380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12381     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12383     break 2
12384   fi
12385 done
12386   done
12387 IFS=$as_save_IFS
12388 
12389   ;;
12390 esac
12391 fi
12392 UNIQ=$ac_cv_path_UNIQ
12393 if test -n "$UNIQ"; then
12394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12395 $as_echo "$UNIQ" >&6; }
12396 else
12397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12399 fi
12400 
12401 
12402   test -n "$UNIQ" && break
12403 done
12404 
12405     else
12406       # If it succeeded, then it was overridden by the user. We will use it
12407       # for the tool.
12408 
12409       # First remove it from the list of overridden variables, so we can test
12410       # for unknown variables in the end.
12411       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12412 
12413       # Check if we try to supply an empty value
12414       if test "x$UNIQ" = x; then
12415         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12416 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12417         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12418 $as_echo_n "checking for UNIQ... " >&6; }
12419         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12420 $as_echo "disabled" >&6; }
12421       else
12422         # Check if the provided tool contains a complete path.
12423         tool_specified="$UNIQ"
12424         tool_basename="${tool_specified##*/}"
12425         if test "x$tool_basename" = "x$tool_specified"; then
12426           # A command without a complete path is provided, search $PATH.
12427           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12428 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12429           # Extract the first word of "$tool_basename", so it can be a program name with args.
12430 set dummy $tool_basename; ac_word=$2
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12432 $as_echo_n "checking for $ac_word... " >&6; }
12433 if ${ac_cv_path_UNIQ+:} false; then :
12434   $as_echo_n "(cached) " >&6
12435 else
12436   case $UNIQ in
12437   [\\/]* | ?:[\\/]*)
12438   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12439   ;;
12440   *)
12441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12443 do
12444   IFS=$as_save_IFS
12445   test -z "$as_dir" && as_dir=.
12446     for ac_exec_ext in '' $ac_executable_extensions; do
12447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12448     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450     break 2
12451   fi
12452 done
12453   done
12454 IFS=$as_save_IFS
12455 
12456   ;;
12457 esac
12458 fi
12459 UNIQ=$ac_cv_path_UNIQ
12460 if test -n "$UNIQ"; then
12461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12462 $as_echo "$UNIQ" >&6; }
12463 else
12464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465 $as_echo "no" >&6; }
12466 fi
12467 
12468 
12469           if test "x$UNIQ" = x; then
12470             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12471           fi
12472         else
12473           # Otherwise we believe it is a complete path. Use it as it is.
12474           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12475 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12476           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12477 $as_echo_n "checking for UNIQ... " >&6; }
12478           if test ! -x "$tool_specified"; then
12479             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12480 $as_echo "not found" >&6; }
12481             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12482           fi
12483           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12484 $as_echo "$tool_specified" >&6; }
12485         fi
12486       fi
12487     fi
12488 
12489   fi
12490 
12491 
12492 
12493   if test "x$UNIQ" = x; then
12494     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12495   fi
12496 
12497 
12498 
12499 
12500 
12501   # Publish this variable in the help.
12502 
12503 
12504   if [ -z "${WC+x}" ]; then
12505     # The variable is not set by user, try to locate tool using the code snippet
12506     for ac_prog in wc
12507 do
12508   # Extract the first word of "$ac_prog", so it can be a program name with args.
12509 set dummy $ac_prog; ac_word=$2
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12511 $as_echo_n "checking for $ac_word... " >&6; }
12512 if ${ac_cv_path_WC+:} false; then :
12513   $as_echo_n "(cached) " >&6
12514 else
12515   case $WC in
12516   [\\/]* | ?:[\\/]*)
12517   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12518   ;;
12519   *)
12520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12521 for as_dir in $PATH
12522 do
12523   IFS=$as_save_IFS
12524   test -z "$as_dir" && as_dir=.
12525     for ac_exec_ext in '' $ac_executable_extensions; do
12526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12527     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12529     break 2
12530   fi
12531 done
12532   done
12533 IFS=$as_save_IFS
12534 
12535   ;;
12536 esac
12537 fi
12538 WC=$ac_cv_path_WC
12539 if test -n "$WC"; then
12540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12541 $as_echo "$WC" >&6; }
12542 else
12543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12545 fi
12546 
12547 
12548   test -n "$WC" && break
12549 done
12550 
12551   else
12552     # The variable is set, but is it from the command line or the environment?
12553 
12554     # Try to remove the string !WC! from our list.
12555     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12556     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12557       # If it failed, the variable was not from the command line. Ignore it,
12558       # but warn the user (except for BASH, which is always set by the calling BASH).
12559       if test "xWC" != xBASH; then
12560         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12561 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12562       fi
12563       # Try to locate tool using the code snippet
12564       for ac_prog in wc
12565 do
12566   # Extract the first word of "$ac_prog", so it can be a program name with args.
12567 set dummy $ac_prog; ac_word=$2
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12569 $as_echo_n "checking for $ac_word... " >&6; }
12570 if ${ac_cv_path_WC+:} false; then :
12571   $as_echo_n "(cached) " >&6
12572 else
12573   case $WC in
12574   [\\/]* | ?:[\\/]*)
12575   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12576   ;;
12577   *)
12578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12579 for as_dir in $PATH
12580 do
12581   IFS=$as_save_IFS
12582   test -z "$as_dir" && as_dir=.
12583     for ac_exec_ext in '' $ac_executable_extensions; do
12584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12585     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12587     break 2
12588   fi
12589 done
12590   done
12591 IFS=$as_save_IFS
12592 
12593   ;;
12594 esac
12595 fi
12596 WC=$ac_cv_path_WC
12597 if test -n "$WC"; then
12598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12599 $as_echo "$WC" >&6; }
12600 else
12601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602 $as_echo "no" >&6; }
12603 fi
12604 
12605 
12606   test -n "$WC" && break
12607 done
12608 
12609     else
12610       # If it succeeded, then it was overridden by the user. We will use it
12611       # for the tool.
12612 
12613       # First remove it from the list of overridden variables, so we can test
12614       # for unknown variables in the end.
12615       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12616 
12617       # Check if we try to supply an empty value
12618       if test "x$WC" = x; then
12619         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12620 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12621         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12622 $as_echo_n "checking for WC... " >&6; }
12623         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12624 $as_echo "disabled" >&6; }
12625       else
12626         # Check if the provided tool contains a complete path.
12627         tool_specified="$WC"
12628         tool_basename="${tool_specified##*/}"
12629         if test "x$tool_basename" = "x$tool_specified"; then
12630           # A command without a complete path is provided, search $PATH.
12631           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12632 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12633           # Extract the first word of "$tool_basename", so it can be a program name with args.
12634 set dummy $tool_basename; ac_word=$2
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636 $as_echo_n "checking for $ac_word... " >&6; }
12637 if ${ac_cv_path_WC+:} false; then :
12638   $as_echo_n "(cached) " >&6
12639 else
12640   case $WC in
12641   [\\/]* | ?:[\\/]*)
12642   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12643   ;;
12644   *)
12645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12647 do
12648   IFS=$as_save_IFS
12649   test -z "$as_dir" && as_dir=.
12650     for ac_exec_ext in '' $ac_executable_extensions; do
12651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12652     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654     break 2
12655   fi
12656 done
12657   done
12658 IFS=$as_save_IFS
12659 
12660   ;;
12661 esac
12662 fi
12663 WC=$ac_cv_path_WC
12664 if test -n "$WC"; then
12665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12666 $as_echo "$WC" >&6; }
12667 else
12668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12670 fi
12671 
12672 
12673           if test "x$WC" = x; then
12674             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12675           fi
12676         else
12677           # Otherwise we believe it is a complete path. Use it as it is.
12678           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12679 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12680           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12681 $as_echo_n "checking for WC... " >&6; }
12682           if test ! -x "$tool_specified"; then
12683             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12684 $as_echo "not found" >&6; }
12685             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12686           fi
12687           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12688 $as_echo "$tool_specified" >&6; }
12689         fi
12690       fi
12691     fi
12692 
12693   fi
12694 
12695 
12696 
12697   if test "x$WC" = x; then
12698     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12699   fi
12700 
12701 
12702 
12703 
12704 
12705   # Publish this variable in the help.
12706 
12707 
12708   if [ -z "${WHICH+x}" ]; then
12709     # The variable is not set by user, try to locate tool using the code snippet
12710     for ac_prog in which
12711 do
12712   # Extract the first word of "$ac_prog", so it can be a program name with args.
12713 set dummy $ac_prog; ac_word=$2
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715 $as_echo_n "checking for $ac_word... " >&6; }
12716 if ${ac_cv_path_WHICH+:} false; then :
12717   $as_echo_n "(cached) " >&6
12718 else
12719   case $WHICH in
12720   [\\/]* | ?:[\\/]*)
12721   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12722   ;;
12723   *)
12724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12726 do
12727   IFS=$as_save_IFS
12728   test -z "$as_dir" && as_dir=.
12729     for ac_exec_ext in '' $ac_executable_extensions; do
12730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12731     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12733     break 2
12734   fi
12735 done
12736   done
12737 IFS=$as_save_IFS
12738 
12739   ;;
12740 esac
12741 fi
12742 WHICH=$ac_cv_path_WHICH
12743 if test -n "$WHICH"; then
12744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12745 $as_echo "$WHICH" >&6; }
12746 else
12747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 $as_echo "no" >&6; }
12749 fi
12750 
12751 
12752   test -n "$WHICH" && break
12753 done
12754 
12755   else
12756     # The variable is set, but is it from the command line or the environment?
12757 
12758     # Try to remove the string !WHICH! from our list.
12759     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12760     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12761       # If it failed, the variable was not from the command line. Ignore it,
12762       # but warn the user (except for BASH, which is always set by the calling BASH).
12763       if test "xWHICH" != xBASH; then
12764         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12765 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12766       fi
12767       # Try to locate tool using the code snippet
12768       for ac_prog in which
12769 do
12770   # Extract the first word of "$ac_prog", so it can be a program name with args.
12771 set dummy $ac_prog; ac_word=$2
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12773 $as_echo_n "checking for $ac_word... " >&6; }
12774 if ${ac_cv_path_WHICH+:} false; then :
12775   $as_echo_n "(cached) " >&6
12776 else
12777   case $WHICH in
12778   [\\/]* | ?:[\\/]*)
12779   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12780   ;;
12781   *)
12782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH
12784 do
12785   IFS=$as_save_IFS
12786   test -z "$as_dir" && as_dir=.
12787     for ac_exec_ext in '' $ac_executable_extensions; do
12788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12789     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791     break 2
12792   fi
12793 done
12794   done
12795 IFS=$as_save_IFS
12796 
12797   ;;
12798 esac
12799 fi
12800 WHICH=$ac_cv_path_WHICH
12801 if test -n "$WHICH"; then
12802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12803 $as_echo "$WHICH" >&6; }
12804 else
12805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12807 fi
12808 
12809 
12810   test -n "$WHICH" && break
12811 done
12812 
12813     else
12814       # If it succeeded, then it was overridden by the user. We will use it
12815       # for the tool.
12816 
12817       # First remove it from the list of overridden variables, so we can test
12818       # for unknown variables in the end.
12819       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12820 
12821       # Check if we try to supply an empty value
12822       if test "x$WHICH" = x; then
12823         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12824 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12825         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12826 $as_echo_n "checking for WHICH... " >&6; }
12827         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12828 $as_echo "disabled" >&6; }
12829       else
12830         # Check if the provided tool contains a complete path.
12831         tool_specified="$WHICH"
12832         tool_basename="${tool_specified##*/}"
12833         if test "x$tool_basename" = "x$tool_specified"; then
12834           # A command without a complete path is provided, search $PATH.
12835           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12836 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12837           # Extract the first word of "$tool_basename", so it can be a program name with args.
12838 set dummy $tool_basename; ac_word=$2
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12840 $as_echo_n "checking for $ac_word... " >&6; }
12841 if ${ac_cv_path_WHICH+:} false; then :
12842   $as_echo_n "(cached) " >&6
12843 else
12844   case $WHICH in
12845   [\\/]* | ?:[\\/]*)
12846   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12847   ;;
12848   *)
12849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850 for as_dir in $PATH
12851 do
12852   IFS=$as_save_IFS
12853   test -z "$as_dir" && as_dir=.
12854     for ac_exec_ext in '' $ac_executable_extensions; do
12855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12856     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12858     break 2
12859   fi
12860 done
12861   done
12862 IFS=$as_save_IFS
12863 
12864   ;;
12865 esac
12866 fi
12867 WHICH=$ac_cv_path_WHICH
12868 if test -n "$WHICH"; then
12869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12870 $as_echo "$WHICH" >&6; }
12871 else
12872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12874 fi
12875 
12876 
12877           if test "x$WHICH" = x; then
12878             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12879           fi
12880         else
12881           # Otherwise we believe it is a complete path. Use it as it is.
12882           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12883 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12884           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12885 $as_echo_n "checking for WHICH... " >&6; }
12886           if test ! -x "$tool_specified"; then
12887             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12888 $as_echo "not found" >&6; }
12889             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12890           fi
12891           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12892 $as_echo "$tool_specified" >&6; }
12893         fi
12894       fi
12895     fi
12896 
12897   fi
12898 
12899 
12900 
12901   if test "x$WHICH" = x; then
12902     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12903   fi
12904 
12905 
12906 
12907 
12908 
12909   # Publish this variable in the help.
12910 
12911 
12912   if [ -z "${XARGS+x}" ]; then
12913     # The variable is not set by user, try to locate tool using the code snippet
12914     for ac_prog in xargs
12915 do
12916   # Extract the first word of "$ac_prog", so it can be a program name with args.
12917 set dummy $ac_prog; ac_word=$2
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919 $as_echo_n "checking for $ac_word... " >&6; }
12920 if ${ac_cv_path_XARGS+:} false; then :
12921   $as_echo_n "(cached) " >&6
12922 else
12923   case $XARGS in
12924   [\\/]* | ?:[\\/]*)
12925   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12926   ;;
12927   *)
12928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12930 do
12931   IFS=$as_save_IFS
12932   test -z "$as_dir" && as_dir=.
12933     for ac_exec_ext in '' $ac_executable_extensions; do
12934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12935     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12937     break 2
12938   fi
12939 done
12940   done
12941 IFS=$as_save_IFS
12942 
12943   ;;
12944 esac
12945 fi
12946 XARGS=$ac_cv_path_XARGS
12947 if test -n "$XARGS"; then
12948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12949 $as_echo "$XARGS" >&6; }
12950 else
12951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952 $as_echo "no" >&6; }
12953 fi
12954 
12955 
12956   test -n "$XARGS" && break
12957 done
12958 
12959   else
12960     # The variable is set, but is it from the command line or the environment?
12961 
12962     # Try to remove the string !XARGS! from our list.
12963     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12964     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12965       # If it failed, the variable was not from the command line. Ignore it,
12966       # but warn the user (except for BASH, which is always set by the calling BASH).
12967       if test "xXARGS" != xBASH; then
12968         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12969 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12970       fi
12971       # Try to locate tool using the code snippet
12972       for ac_prog in xargs
12973 do
12974   # Extract the first word of "$ac_prog", so it can be a program name with args.
12975 set dummy $ac_prog; ac_word=$2
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12977 $as_echo_n "checking for $ac_word... " >&6; }
12978 if ${ac_cv_path_XARGS+:} false; then :
12979   $as_echo_n "(cached) " >&6
12980 else
12981   case $XARGS in
12982   [\\/]* | ?:[\\/]*)
12983   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12984   ;;
12985   *)
12986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987 for as_dir in $PATH
12988 do
12989   IFS=$as_save_IFS
12990   test -z "$as_dir" && as_dir=.
12991     for ac_exec_ext in '' $ac_executable_extensions; do
12992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12993     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12995     break 2
12996   fi
12997 done
12998   done
12999 IFS=$as_save_IFS
13000 
13001   ;;
13002 esac
13003 fi
13004 XARGS=$ac_cv_path_XARGS
13005 if test -n "$XARGS"; then
13006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13007 $as_echo "$XARGS" >&6; }
13008 else
13009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13010 $as_echo "no" >&6; }
13011 fi
13012 
13013 
13014   test -n "$XARGS" && break
13015 done
13016 
13017     else
13018       # If it succeeded, then it was overridden by the user. We will use it
13019       # for the tool.
13020 
13021       # First remove it from the list of overridden variables, so we can test
13022       # for unknown variables in the end.
13023       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13024 
13025       # Check if we try to supply an empty value
13026       if test "x$XARGS" = x; then
13027         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13028 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13030 $as_echo_n "checking for XARGS... " >&6; }
13031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13032 $as_echo "disabled" >&6; }
13033       else
13034         # Check if the provided tool contains a complete path.
13035         tool_specified="$XARGS"
13036         tool_basename="${tool_specified##*/}"
13037         if test "x$tool_basename" = "x$tool_specified"; then
13038           # A command without a complete path is provided, search $PATH.
13039           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13040 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13041           # Extract the first word of "$tool_basename", so it can be a program name with args.
13042 set dummy $tool_basename; ac_word=$2
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044 $as_echo_n "checking for $ac_word... " >&6; }
13045 if ${ac_cv_path_XARGS+:} false; then :
13046   $as_echo_n "(cached) " >&6
13047 else
13048   case $XARGS in
13049   [\\/]* | ?:[\\/]*)
13050   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13051   ;;
13052   *)
13053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13055 do
13056   IFS=$as_save_IFS
13057   test -z "$as_dir" && as_dir=.
13058     for ac_exec_ext in '' $ac_executable_extensions; do
13059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13060     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13062     break 2
13063   fi
13064 done
13065   done
13066 IFS=$as_save_IFS
13067 
13068   ;;
13069 esac
13070 fi
13071 XARGS=$ac_cv_path_XARGS
13072 if test -n "$XARGS"; then
13073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13074 $as_echo "$XARGS" >&6; }
13075 else
13076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13078 fi
13079 
13080 
13081           if test "x$XARGS" = x; then
13082             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13083           fi
13084         else
13085           # Otherwise we believe it is a complete path. Use it as it is.
13086           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13087 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13088           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13089 $as_echo_n "checking for XARGS... " >&6; }
13090           if test ! -x "$tool_specified"; then
13091             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13092 $as_echo "not found" >&6; }
13093             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13094           fi
13095           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13096 $as_echo "$tool_specified" >&6; }
13097         fi
13098       fi
13099     fi
13100 
13101   fi
13102 
13103 
13104 
13105   if test "x$XARGS" = x; then
13106     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13107   fi
13108 
13109 
13110 
13111   # Then required tools that require some special treatment.
13112 
13113 
13114   # Publish this variable in the help.
13115 
13116 
13117   if [ -z "${AWK+x}" ]; then
13118     # The variable is not set by user, try to locate tool using the code snippet
13119     for ac_prog in gawk mawk nawk awk
13120 do
13121   # Extract the first word of "$ac_prog", so it can be a program name with args.
13122 set dummy $ac_prog; ac_word=$2
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124 $as_echo_n "checking for $ac_word... " >&6; }
13125 if ${ac_cv_prog_AWK+:} false; then :
13126   $as_echo_n "(cached) " >&6
13127 else
13128   if test -n "$AWK"; then
13129   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13130 else
13131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13133 do
13134   IFS=$as_save_IFS
13135   test -z "$as_dir" && as_dir=.
13136     for ac_exec_ext in '' $ac_executable_extensions; do
13137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13138     ac_cv_prog_AWK="$ac_prog"
13139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13140     break 2
13141   fi
13142 done
13143   done
13144 IFS=$as_save_IFS
13145 
13146 fi
13147 fi
13148 AWK=$ac_cv_prog_AWK
13149 if test -n "$AWK"; then
13150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13151 $as_echo "$AWK" >&6; }
13152 else
13153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13155 fi
13156 
13157 
13158   test -n "$AWK" && break
13159 done
13160 
13161   else
13162     # The variable is set, but is it from the command line or the environment?
13163 
13164     # Try to remove the string !AWK! from our list.
13165     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13166     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13167       # If it failed, the variable was not from the command line. Ignore it,
13168       # but warn the user (except for BASH, which is always set by the calling BASH).
13169       if test "xAWK" != xBASH; then
13170         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13171 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13172       fi
13173       # Try to locate tool using the code snippet
13174       for ac_prog in gawk mawk nawk awk
13175 do
13176   # Extract the first word of "$ac_prog", so it can be a program name with args.
13177 set dummy $ac_prog; ac_word=$2
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179 $as_echo_n "checking for $ac_word... " >&6; }
13180 if ${ac_cv_prog_AWK+:} false; then :
13181   $as_echo_n "(cached) " >&6
13182 else
13183   if test -n "$AWK"; then
13184   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13185 else
13186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187 for as_dir in $PATH
13188 do
13189   IFS=$as_save_IFS
13190   test -z "$as_dir" && as_dir=.
13191     for ac_exec_ext in '' $ac_executable_extensions; do
13192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13193     ac_cv_prog_AWK="$ac_prog"
13194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13195     break 2
13196   fi
13197 done
13198   done
13199 IFS=$as_save_IFS
13200 
13201 fi
13202 fi
13203 AWK=$ac_cv_prog_AWK
13204 if test -n "$AWK"; then
13205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13206 $as_echo "$AWK" >&6; }
13207 else
13208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13210 fi
13211 
13212 
13213   test -n "$AWK" && break
13214 done
13215 
13216     else
13217       # If it succeeded, then it was overridden by the user. We will use it
13218       # for the tool.
13219 
13220       # First remove it from the list of overridden variables, so we can test
13221       # for unknown variables in the end.
13222       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13223 
13224       # Check if we try to supply an empty value
13225       if test "x$AWK" = x; then
13226         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13227 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13228         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13229 $as_echo_n "checking for AWK... " >&6; }
13230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13231 $as_echo "disabled" >&6; }
13232       else
13233         # Check if the provided tool contains a complete path.
13234         tool_specified="$AWK"
13235         tool_basename="${tool_specified##*/}"
13236         if test "x$tool_basename" = "x$tool_specified"; then
13237           # A command without a complete path is provided, search $PATH.
13238           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13239 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13240           # Extract the first word of "$tool_basename", so it can be a program name with args.
13241 set dummy $tool_basename; ac_word=$2
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243 $as_echo_n "checking for $ac_word... " >&6; }
13244 if ${ac_cv_path_AWK+:} false; then :
13245   $as_echo_n "(cached) " >&6
13246 else
13247   case $AWK in
13248   [\\/]* | ?:[\\/]*)
13249   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13250   ;;
13251   *)
13252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 for as_dir in $PATH
13254 do
13255   IFS=$as_save_IFS
13256   test -z "$as_dir" && as_dir=.
13257     for ac_exec_ext in '' $ac_executable_extensions; do
13258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13259     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13261     break 2
13262   fi
13263 done
13264   done
13265 IFS=$as_save_IFS
13266 
13267   ;;
13268 esac
13269 fi
13270 AWK=$ac_cv_path_AWK
13271 if test -n "$AWK"; then
13272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13273 $as_echo "$AWK" >&6; }
13274 else
13275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 $as_echo "no" >&6; }
13277 fi
13278 
13279 
13280           if test "x$AWK" = x; then
13281             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13282           fi
13283         else
13284           # Otherwise we believe it is a complete path. Use it as it is.
13285           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13286 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13287           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13288 $as_echo_n "checking for AWK... " >&6; }
13289           if test ! -x "$tool_specified"; then
13290             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13291 $as_echo "not found" >&6; }
13292             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13293           fi
13294           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13295 $as_echo "$tool_specified" >&6; }
13296         fi
13297       fi
13298     fi
13299 
13300   fi
13301 
13302 
13303   if test "x$AWK" = x; then
13304     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13305   fi
13306 
13307 
13308 
13309 
13310   # Publish this variable in the help.
13311 
13312 
13313   if [ -z "${GREP+x}" ]; then
13314     # The variable is not set by user, try to locate tool using the code snippet
13315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13316 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13317 if ${ac_cv_path_GREP+:} false; then :
13318   $as_echo_n "(cached) " >&6
13319 else
13320   if test -z "$GREP"; then
13321   ac_path_GREP_found=false
13322   # Loop through the user's path and test for each of PROGNAME-LIST
13323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13325 do
13326   IFS=$as_save_IFS
13327   test -z "$as_dir" && as_dir=.
13328     for ac_prog in grep ggrep; do
13329     for ac_exec_ext in '' $ac_executable_extensions; do
13330       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13331       as_fn_executable_p "$ac_path_GREP" || continue
13332 # Check for GNU ac_path_GREP and select it if it is found.
13333   # Check for GNU $ac_path_GREP
13334 case `"$ac_path_GREP" --version 2>&1` in
13335 *GNU*)
13336   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13337 *)
13338   ac_count=0
13339   $as_echo_n 0123456789 >"conftest.in"
13340   while :
13341   do
13342     cat "conftest.in" "conftest.in" >"conftest.tmp"
13343     mv "conftest.tmp" "conftest.in"
13344     cp "conftest.in" "conftest.nl"
13345     $as_echo 'GREP' >> "conftest.nl"
13346     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13347     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13348     as_fn_arith $ac_count + 1 && ac_count=$as_val
13349     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13350       # Best one so far, save it but keep looking for a better one
13351       ac_cv_path_GREP="$ac_path_GREP"
13352       ac_path_GREP_max=$ac_count
13353     fi
13354     # 10*(2^10) chars as input seems more than enough
13355     test $ac_count -gt 10 && break
13356   done
13357   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13358 esac
13359 
13360       $ac_path_GREP_found && break 3
13361     done
13362   done
13363   done
13364 IFS=$as_save_IFS
13365   if test -z "$ac_cv_path_GREP"; then
13366     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13367   fi
13368 else
13369   ac_cv_path_GREP=$GREP
13370 fi
13371 
13372 fi
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13374 $as_echo "$ac_cv_path_GREP" >&6; }
13375  GREP="$ac_cv_path_GREP"
13376 
13377 
13378   else
13379     # The variable is set, but is it from the command line or the environment?
13380 
13381     # Try to remove the string !GREP! from our list.
13382     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13383     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13384       # If it failed, the variable was not from the command line. Ignore it,
13385       # but warn the user (except for BASH, which is always set by the calling BASH).
13386       if test "xGREP" != xBASH; then
13387         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13388 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13389       fi
13390       # Try to locate tool using the code snippet
13391       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13392 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13393 if ${ac_cv_path_GREP+:} false; then :
13394   $as_echo_n "(cached) " >&6
13395 else
13396   if test -z "$GREP"; then
13397   ac_path_GREP_found=false
13398   # Loop through the user's path and test for each of PROGNAME-LIST
13399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13400 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13401 do
13402   IFS=$as_save_IFS
13403   test -z "$as_dir" && as_dir=.
13404     for ac_prog in grep ggrep; do
13405     for ac_exec_ext in '' $ac_executable_extensions; do
13406       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13407       as_fn_executable_p "$ac_path_GREP" || continue
13408 # Check for GNU ac_path_GREP and select it if it is found.
13409   # Check for GNU $ac_path_GREP
13410 case `"$ac_path_GREP" --version 2>&1` in
13411 *GNU*)
13412   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13413 *)
13414   ac_count=0
13415   $as_echo_n 0123456789 >"conftest.in"
13416   while :
13417   do
13418     cat "conftest.in" "conftest.in" >"conftest.tmp"
13419     mv "conftest.tmp" "conftest.in"
13420     cp "conftest.in" "conftest.nl"
13421     $as_echo 'GREP' >> "conftest.nl"
13422     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13423     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13424     as_fn_arith $ac_count + 1 && ac_count=$as_val
13425     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13426       # Best one so far, save it but keep looking for a better one
13427       ac_cv_path_GREP="$ac_path_GREP"
13428       ac_path_GREP_max=$ac_count
13429     fi
13430     # 10*(2^10) chars as input seems more than enough
13431     test $ac_count -gt 10 && break
13432   done
13433   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13434 esac
13435 
13436       $ac_path_GREP_found && break 3
13437     done
13438   done
13439   done
13440 IFS=$as_save_IFS
13441   if test -z "$ac_cv_path_GREP"; then
13442     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13443   fi
13444 else
13445   ac_cv_path_GREP=$GREP
13446 fi
13447 
13448 fi
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13450 $as_echo "$ac_cv_path_GREP" >&6; }
13451  GREP="$ac_cv_path_GREP"
13452 
13453 
13454     else
13455       # If it succeeded, then it was overridden by the user. We will use it
13456       # for the tool.
13457 
13458       # First remove it from the list of overridden variables, so we can test
13459       # for unknown variables in the end.
13460       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13461 
13462       # Check if we try to supply an empty value
13463       if test "x$GREP" = x; then
13464         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13465 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13466         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13467 $as_echo_n "checking for GREP... " >&6; }
13468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13469 $as_echo "disabled" >&6; }
13470       else
13471         # Check if the provided tool contains a complete path.
13472         tool_specified="$GREP"
13473         tool_basename="${tool_specified##*/}"
13474         if test "x$tool_basename" = "x$tool_specified"; then
13475           # A command without a complete path is provided, search $PATH.
13476           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13477 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13478           # Extract the first word of "$tool_basename", so it can be a program name with args.
13479 set dummy $tool_basename; ac_word=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if ${ac_cv_path_GREP+:} false; then :
13483   $as_echo_n "(cached) " >&6
13484 else
13485   case $GREP in
13486   [\\/]* | ?:[\\/]*)
13487   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13488   ;;
13489   *)
13490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491 for as_dir in $PATH
13492 do
13493   IFS=$as_save_IFS
13494   test -z "$as_dir" && as_dir=.
13495     for ac_exec_ext in '' $ac_executable_extensions; do
13496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13497     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499     break 2
13500   fi
13501 done
13502   done
13503 IFS=$as_save_IFS
13504 
13505   ;;
13506 esac
13507 fi
13508 GREP=$ac_cv_path_GREP
13509 if test -n "$GREP"; then
13510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13511 $as_echo "$GREP" >&6; }
13512 else
13513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13515 fi
13516 
13517 
13518           if test "x$GREP" = x; then
13519             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13520           fi
13521         else
13522           # Otherwise we believe it is a complete path. Use it as it is.
13523           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13524 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13525           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13526 $as_echo_n "checking for GREP... " >&6; }
13527           if test ! -x "$tool_specified"; then
13528             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13529 $as_echo "not found" >&6; }
13530             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13531           fi
13532           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13533 $as_echo "$tool_specified" >&6; }
13534         fi
13535       fi
13536     fi
13537 
13538   fi
13539 
13540 
13541   if test "x$GREP" = x; then
13542     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13543   fi
13544 
13545 
13546 
13547 
13548   # Publish this variable in the help.
13549 
13550 
13551   if [ -z "${EGREP+x}" ]; then
13552     # The variable is not set by user, try to locate tool using the code snippet
13553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13554 $as_echo_n "checking for egrep... " >&6; }
13555 if ${ac_cv_path_EGREP+:} false; then :
13556   $as_echo_n "(cached) " >&6
13557 else
13558   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13559    then ac_cv_path_EGREP="$GREP -E"
13560    else
13561      if test -z "$EGREP"; then
13562   ac_path_EGREP_found=false
13563   # Loop through the user's path and test for each of PROGNAME-LIST
13564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13566 do
13567   IFS=$as_save_IFS
13568   test -z "$as_dir" && as_dir=.
13569     for ac_prog in egrep; do
13570     for ac_exec_ext in '' $ac_executable_extensions; do
13571       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13572       as_fn_executable_p "$ac_path_EGREP" || continue
13573 # Check for GNU ac_path_EGREP and select it if it is found.
13574   # Check for GNU $ac_path_EGREP
13575 case `"$ac_path_EGREP" --version 2>&1` in
13576 *GNU*)
13577   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13578 *)
13579   ac_count=0
13580   $as_echo_n 0123456789 >"conftest.in"
13581   while :
13582   do
13583     cat "conftest.in" "conftest.in" >"conftest.tmp"
13584     mv "conftest.tmp" "conftest.in"
13585     cp "conftest.in" "conftest.nl"
13586     $as_echo 'EGREP' >> "conftest.nl"
13587     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13588     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13589     as_fn_arith $ac_count + 1 && ac_count=$as_val
13590     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13591       # Best one so far, save it but keep looking for a better one
13592       ac_cv_path_EGREP="$ac_path_EGREP"
13593       ac_path_EGREP_max=$ac_count
13594     fi
13595     # 10*(2^10) chars as input seems more than enough
13596     test $ac_count -gt 10 && break
13597   done
13598   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13599 esac
13600 
13601       $ac_path_EGREP_found && break 3
13602     done
13603   done
13604   done
13605 IFS=$as_save_IFS
13606   if test -z "$ac_cv_path_EGREP"; then
13607     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13608   fi
13609 else
13610   ac_cv_path_EGREP=$EGREP
13611 fi
13612 
13613    fi
13614 fi
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13616 $as_echo "$ac_cv_path_EGREP" >&6; }
13617  EGREP="$ac_cv_path_EGREP"
13618 
13619 
13620   else
13621     # The variable is set, but is it from the command line or the environment?
13622 
13623     # Try to remove the string !EGREP! from our list.
13624     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13625     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13626       # If it failed, the variable was not from the command line. Ignore it,
13627       # but warn the user (except for BASH, which is always set by the calling BASH).
13628       if test "xEGREP" != xBASH; then
13629         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13630 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13631       fi
13632       # Try to locate tool using the code snippet
13633       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13634 $as_echo_n "checking for egrep... " >&6; }
13635 if ${ac_cv_path_EGREP+:} false; then :
13636   $as_echo_n "(cached) " >&6
13637 else
13638   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13639    then ac_cv_path_EGREP="$GREP -E"
13640    else
13641      if test -z "$EGREP"; then
13642   ac_path_EGREP_found=false
13643   # Loop through the user's path and test for each of PROGNAME-LIST
13644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13646 do
13647   IFS=$as_save_IFS
13648   test -z "$as_dir" && as_dir=.
13649     for ac_prog in egrep; do
13650     for ac_exec_ext in '' $ac_executable_extensions; do
13651       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13652       as_fn_executable_p "$ac_path_EGREP" || continue
13653 # Check for GNU ac_path_EGREP and select it if it is found.
13654   # Check for GNU $ac_path_EGREP
13655 case `"$ac_path_EGREP" --version 2>&1` in
13656 *GNU*)
13657   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13658 *)
13659   ac_count=0
13660   $as_echo_n 0123456789 >"conftest.in"
13661   while :
13662   do
13663     cat "conftest.in" "conftest.in" >"conftest.tmp"
13664     mv "conftest.tmp" "conftest.in"
13665     cp "conftest.in" "conftest.nl"
13666     $as_echo 'EGREP' >> "conftest.nl"
13667     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13668     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13669     as_fn_arith $ac_count + 1 && ac_count=$as_val
13670     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13671       # Best one so far, save it but keep looking for a better one
13672       ac_cv_path_EGREP="$ac_path_EGREP"
13673       ac_path_EGREP_max=$ac_count
13674     fi
13675     # 10*(2^10) chars as input seems more than enough
13676     test $ac_count -gt 10 && break
13677   done
13678   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13679 esac
13680 
13681       $ac_path_EGREP_found && break 3
13682     done
13683   done
13684   done
13685 IFS=$as_save_IFS
13686   if test -z "$ac_cv_path_EGREP"; then
13687     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13688   fi
13689 else
13690   ac_cv_path_EGREP=$EGREP
13691 fi
13692 
13693    fi
13694 fi
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13696 $as_echo "$ac_cv_path_EGREP" >&6; }
13697  EGREP="$ac_cv_path_EGREP"
13698 
13699 
13700     else
13701       # If it succeeded, then it was overridden by the user. We will use it
13702       # for the tool.
13703 
13704       # First remove it from the list of overridden variables, so we can test
13705       # for unknown variables in the end.
13706       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13707 
13708       # Check if we try to supply an empty value
13709       if test "x$EGREP" = x; then
13710         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13711 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13712         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13713 $as_echo_n "checking for EGREP... " >&6; }
13714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13715 $as_echo "disabled" >&6; }
13716       else
13717         # Check if the provided tool contains a complete path.
13718         tool_specified="$EGREP"
13719         tool_basename="${tool_specified##*/}"
13720         if test "x$tool_basename" = "x$tool_specified"; then
13721           # A command without a complete path is provided, search $PATH.
13722           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13723 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13724           # Extract the first word of "$tool_basename", so it can be a program name with args.
13725 set dummy $tool_basename; ac_word=$2
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13727 $as_echo_n "checking for $ac_word... " >&6; }
13728 if ${ac_cv_path_EGREP+:} false; then :
13729   $as_echo_n "(cached) " >&6
13730 else
13731   case $EGREP in
13732   [\\/]* | ?:[\\/]*)
13733   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13734   ;;
13735   *)
13736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737 for as_dir in $PATH
13738 do
13739   IFS=$as_save_IFS
13740   test -z "$as_dir" && as_dir=.
13741     for ac_exec_ext in '' $ac_executable_extensions; do
13742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13743     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13745     break 2
13746   fi
13747 done
13748   done
13749 IFS=$as_save_IFS
13750 
13751   ;;
13752 esac
13753 fi
13754 EGREP=$ac_cv_path_EGREP
13755 if test -n "$EGREP"; then
13756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13757 $as_echo "$EGREP" >&6; }
13758 else
13759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760 $as_echo "no" >&6; }
13761 fi
13762 
13763 
13764           if test "x$EGREP" = x; then
13765             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13766           fi
13767         else
13768           # Otherwise we believe it is a complete path. Use it as it is.
13769           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13770 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13771           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13772 $as_echo_n "checking for EGREP... " >&6; }
13773           if test ! -x "$tool_specified"; then
13774             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13775 $as_echo "not found" >&6; }
13776             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13777           fi
13778           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13779 $as_echo "$tool_specified" >&6; }
13780         fi
13781       fi
13782     fi
13783 
13784   fi
13785 
13786 
13787   if test "x$EGREP" = x; then
13788     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13789   fi
13790 
13791 
13792 
13793 
13794   # Publish this variable in the help.
13795 
13796 
13797   if [ -z "${FGREP+x}" ]; then
13798     # The variable is not set by user, try to locate tool using the code snippet
13799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13800 $as_echo_n "checking for fgrep... " >&6; }
13801 if ${ac_cv_path_FGREP+:} false; then :
13802   $as_echo_n "(cached) " >&6
13803 else
13804   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13805    then ac_cv_path_FGREP="$GREP -F"
13806    else
13807      if test -z "$FGREP"; then
13808   ac_path_FGREP_found=false
13809   # Loop through the user's path and test for each of PROGNAME-LIST
13810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13812 do
13813   IFS=$as_save_IFS
13814   test -z "$as_dir" && as_dir=.
13815     for ac_prog in fgrep; do
13816     for ac_exec_ext in '' $ac_executable_extensions; do
13817       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13818       as_fn_executable_p "$ac_path_FGREP" || continue
13819 # Check for GNU ac_path_FGREP and select it if it is found.
13820   # Check for GNU $ac_path_FGREP
13821 case `"$ac_path_FGREP" --version 2>&1` in
13822 *GNU*)
13823   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13824 *)
13825   ac_count=0
13826   $as_echo_n 0123456789 >"conftest.in"
13827   while :
13828   do
13829     cat "conftest.in" "conftest.in" >"conftest.tmp"
13830     mv "conftest.tmp" "conftest.in"
13831     cp "conftest.in" "conftest.nl"
13832     $as_echo 'FGREP' >> "conftest.nl"
13833     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13834     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13835     as_fn_arith $ac_count + 1 && ac_count=$as_val
13836     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13837       # Best one so far, save it but keep looking for a better one
13838       ac_cv_path_FGREP="$ac_path_FGREP"
13839       ac_path_FGREP_max=$ac_count
13840     fi
13841     # 10*(2^10) chars as input seems more than enough
13842     test $ac_count -gt 10 && break
13843   done
13844   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13845 esac
13846 
13847       $ac_path_FGREP_found && break 3
13848     done
13849   done
13850   done
13851 IFS=$as_save_IFS
13852   if test -z "$ac_cv_path_FGREP"; then
13853     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13854   fi
13855 else
13856   ac_cv_path_FGREP=$FGREP
13857 fi
13858 
13859    fi
13860 fi
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13862 $as_echo "$ac_cv_path_FGREP" >&6; }
13863  FGREP="$ac_cv_path_FGREP"
13864 
13865 
13866   else
13867     # The variable is set, but is it from the command line or the environment?
13868 
13869     # Try to remove the string !FGREP! from our list.
13870     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13871     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13872       # If it failed, the variable was not from the command line. Ignore it,
13873       # but warn the user (except for BASH, which is always set by the calling BASH).
13874       if test "xFGREP" != xBASH; then
13875         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13876 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13877       fi
13878       # Try to locate tool using the code snippet
13879       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13880 $as_echo_n "checking for fgrep... " >&6; }
13881 if ${ac_cv_path_FGREP+:} false; then :
13882   $as_echo_n "(cached) " >&6
13883 else
13884   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13885    then ac_cv_path_FGREP="$GREP -F"
13886    else
13887      if test -z "$FGREP"; then
13888   ac_path_FGREP_found=false
13889   # Loop through the user's path and test for each of PROGNAME-LIST
13890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13892 do
13893   IFS=$as_save_IFS
13894   test -z "$as_dir" && as_dir=.
13895     for ac_prog in fgrep; do
13896     for ac_exec_ext in '' $ac_executable_extensions; do
13897       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13898       as_fn_executable_p "$ac_path_FGREP" || continue
13899 # Check for GNU ac_path_FGREP and select it if it is found.
13900   # Check for GNU $ac_path_FGREP
13901 case `"$ac_path_FGREP" --version 2>&1` in
13902 *GNU*)
13903   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13904 *)
13905   ac_count=0
13906   $as_echo_n 0123456789 >"conftest.in"
13907   while :
13908   do
13909     cat "conftest.in" "conftest.in" >"conftest.tmp"
13910     mv "conftest.tmp" "conftest.in"
13911     cp "conftest.in" "conftest.nl"
13912     $as_echo 'FGREP' >> "conftest.nl"
13913     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13914     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13915     as_fn_arith $ac_count + 1 && ac_count=$as_val
13916     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13917       # Best one so far, save it but keep looking for a better one
13918       ac_cv_path_FGREP="$ac_path_FGREP"
13919       ac_path_FGREP_max=$ac_count
13920     fi
13921     # 10*(2^10) chars as input seems more than enough
13922     test $ac_count -gt 10 && break
13923   done
13924   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13925 esac
13926 
13927       $ac_path_FGREP_found && break 3
13928     done
13929   done
13930   done
13931 IFS=$as_save_IFS
13932   if test -z "$ac_cv_path_FGREP"; then
13933     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13934   fi
13935 else
13936   ac_cv_path_FGREP=$FGREP
13937 fi
13938 
13939    fi
13940 fi
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13942 $as_echo "$ac_cv_path_FGREP" >&6; }
13943  FGREP="$ac_cv_path_FGREP"
13944 
13945 
13946     else
13947       # If it succeeded, then it was overridden by the user. We will use it
13948       # for the tool.
13949 
13950       # First remove it from the list of overridden variables, so we can test
13951       # for unknown variables in the end.
13952       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13953 
13954       # Check if we try to supply an empty value
13955       if test "x$FGREP" = x; then
13956         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13957 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13958         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13959 $as_echo_n "checking for FGREP... " >&6; }
13960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13961 $as_echo "disabled" >&6; }
13962       else
13963         # Check if the provided tool contains a complete path.
13964         tool_specified="$FGREP"
13965         tool_basename="${tool_specified##*/}"
13966         if test "x$tool_basename" = "x$tool_specified"; then
13967           # A command without a complete path is provided, search $PATH.
13968           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13969 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13970           # Extract the first word of "$tool_basename", so it can be a program name with args.
13971 set dummy $tool_basename; ac_word=$2
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13973 $as_echo_n "checking for $ac_word... " >&6; }
13974 if ${ac_cv_path_FGREP+:} false; then :
13975   $as_echo_n "(cached) " >&6
13976 else
13977   case $FGREP in
13978   [\\/]* | ?:[\\/]*)
13979   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13980   ;;
13981   *)
13982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13983 for as_dir in $PATH
13984 do
13985   IFS=$as_save_IFS
13986   test -z "$as_dir" && as_dir=.
13987     for ac_exec_ext in '' $ac_executable_extensions; do
13988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13989     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13991     break 2
13992   fi
13993 done
13994   done
13995 IFS=$as_save_IFS
13996 
13997   ;;
13998 esac
13999 fi
14000 FGREP=$ac_cv_path_FGREP
14001 if test -n "$FGREP"; then
14002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14003 $as_echo "$FGREP" >&6; }
14004 else
14005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14006 $as_echo "no" >&6; }
14007 fi
14008 
14009 
14010           if test "x$FGREP" = x; then
14011             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14012           fi
14013         else
14014           # Otherwise we believe it is a complete path. Use it as it is.
14015           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14016 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14017           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14018 $as_echo_n "checking for FGREP... " >&6; }
14019           if test ! -x "$tool_specified"; then
14020             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14021 $as_echo "not found" >&6; }
14022             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14023           fi
14024           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14025 $as_echo "$tool_specified" >&6; }
14026         fi
14027       fi
14028     fi
14029 
14030   fi
14031 
14032 
14033   if test "x$FGREP" = x; then
14034     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14035   fi
14036 
14037 
14038 
14039 
14040   # Publish this variable in the help.
14041 
14042 
14043   if [ -z "${SED+x}" ]; then
14044     # The variable is not set by user, try to locate tool using the code snippet
14045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14046 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14047 if ${ac_cv_path_SED+:} false; then :
14048   $as_echo_n "(cached) " >&6
14049 else
14050             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14051      for ac_i in 1 2 3 4 5 6 7; do
14052        ac_script="$ac_script$as_nl$ac_script"
14053      done
14054      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14055      { ac_script=; unset ac_script;}
14056      if test -z "$SED"; then
14057   ac_path_SED_found=false
14058   # Loop through the user's path and test for each of PROGNAME-LIST
14059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14061 do
14062   IFS=$as_save_IFS
14063   test -z "$as_dir" && as_dir=.
14064     for ac_prog in sed gsed; do
14065     for ac_exec_ext in '' $ac_executable_extensions; do
14066       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14067       as_fn_executable_p "$ac_path_SED" || continue
14068 # Check for GNU ac_path_SED and select it if it is found.
14069   # Check for GNU $ac_path_SED
14070 case `"$ac_path_SED" --version 2>&1` in
14071 *GNU*)
14072   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14073 *)
14074   ac_count=0
14075   $as_echo_n 0123456789 >"conftest.in"
14076   while :
14077   do
14078     cat "conftest.in" "conftest.in" >"conftest.tmp"
14079     mv "conftest.tmp" "conftest.in"
14080     cp "conftest.in" "conftest.nl"
14081     $as_echo '' >> "conftest.nl"
14082     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14083     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14084     as_fn_arith $ac_count + 1 && ac_count=$as_val
14085     if test $ac_count -gt ${ac_path_SED_max-0}; then
14086       # Best one so far, save it but keep looking for a better one
14087       ac_cv_path_SED="$ac_path_SED"
14088       ac_path_SED_max=$ac_count
14089     fi
14090     # 10*(2^10) chars as input seems more than enough
14091     test $ac_count -gt 10 && break
14092   done
14093   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14094 esac
14095 
14096       $ac_path_SED_found && break 3
14097     done
14098   done
14099   done
14100 IFS=$as_save_IFS
14101   if test -z "$ac_cv_path_SED"; then
14102     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14103   fi
14104 else
14105   ac_cv_path_SED=$SED
14106 fi
14107 
14108 fi
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14110 $as_echo "$ac_cv_path_SED" >&6; }
14111  SED="$ac_cv_path_SED"
14112   rm -f conftest.sed
14113 
14114   else
14115     # The variable is set, but is it from the command line or the environment?
14116 
14117     # Try to remove the string !SED! from our list.
14118     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14119     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14120       # If it failed, the variable was not from the command line. Ignore it,
14121       # but warn the user (except for BASH, which is always set by the calling BASH).
14122       if test "xSED" != xBASH; then
14123         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14124 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14125       fi
14126       # Try to locate tool using the code snippet
14127       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14128 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14129 if ${ac_cv_path_SED+:} false; then :
14130   $as_echo_n "(cached) " >&6
14131 else
14132             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14133      for ac_i in 1 2 3 4 5 6 7; do
14134        ac_script="$ac_script$as_nl$ac_script"
14135      done
14136      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14137      { ac_script=; unset ac_script;}
14138      if test -z "$SED"; then
14139   ac_path_SED_found=false
14140   # Loop through the user's path and test for each of PROGNAME-LIST
14141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142 for as_dir in $PATH
14143 do
14144   IFS=$as_save_IFS
14145   test -z "$as_dir" && as_dir=.
14146     for ac_prog in sed gsed; do
14147     for ac_exec_ext in '' $ac_executable_extensions; do
14148       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14149       as_fn_executable_p "$ac_path_SED" || continue
14150 # Check for GNU ac_path_SED and select it if it is found.
14151   # Check for GNU $ac_path_SED
14152 case `"$ac_path_SED" --version 2>&1` in
14153 *GNU*)
14154   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14155 *)
14156   ac_count=0
14157   $as_echo_n 0123456789 >"conftest.in"
14158   while :
14159   do
14160     cat "conftest.in" "conftest.in" >"conftest.tmp"
14161     mv "conftest.tmp" "conftest.in"
14162     cp "conftest.in" "conftest.nl"
14163     $as_echo '' >> "conftest.nl"
14164     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14165     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14166     as_fn_arith $ac_count + 1 && ac_count=$as_val
14167     if test $ac_count -gt ${ac_path_SED_max-0}; then
14168       # Best one so far, save it but keep looking for a better one
14169       ac_cv_path_SED="$ac_path_SED"
14170       ac_path_SED_max=$ac_count
14171     fi
14172     # 10*(2^10) chars as input seems more than enough
14173     test $ac_count -gt 10 && break
14174   done
14175   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14176 esac
14177 
14178       $ac_path_SED_found && break 3
14179     done
14180   done
14181   done
14182 IFS=$as_save_IFS
14183   if test -z "$ac_cv_path_SED"; then
14184     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14185   fi
14186 else
14187   ac_cv_path_SED=$SED
14188 fi
14189 
14190 fi
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14192 $as_echo "$ac_cv_path_SED" >&6; }
14193  SED="$ac_cv_path_SED"
14194   rm -f conftest.sed
14195 
14196     else
14197       # If it succeeded, then it was overridden by the user. We will use it
14198       # for the tool.
14199 
14200       # First remove it from the list of overridden variables, so we can test
14201       # for unknown variables in the end.
14202       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14203 
14204       # Check if we try to supply an empty value
14205       if test "x$SED" = x; then
14206         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14207 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14208         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14209 $as_echo_n "checking for SED... " >&6; }
14210         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14211 $as_echo "disabled" >&6; }
14212       else
14213         # Check if the provided tool contains a complete path.
14214         tool_specified="$SED"
14215         tool_basename="${tool_specified##*/}"
14216         if test "x$tool_basename" = "x$tool_specified"; then
14217           # A command without a complete path is provided, search $PATH.
14218           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14219 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14220           # Extract the first word of "$tool_basename", so it can be a program name with args.
14221 set dummy $tool_basename; ac_word=$2
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223 $as_echo_n "checking for $ac_word... " >&6; }
14224 if ${ac_cv_path_SED+:} false; then :
14225   $as_echo_n "(cached) " >&6
14226 else
14227   case $SED in
14228   [\\/]* | ?:[\\/]*)
14229   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14230   ;;
14231   *)
14232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14233 for as_dir in $PATH
14234 do
14235   IFS=$as_save_IFS
14236   test -z "$as_dir" && as_dir=.
14237     for ac_exec_ext in '' $ac_executable_extensions; do
14238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14239     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14241     break 2
14242   fi
14243 done
14244   done
14245 IFS=$as_save_IFS
14246 
14247   ;;
14248 esac
14249 fi
14250 SED=$ac_cv_path_SED
14251 if test -n "$SED"; then
14252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14253 $as_echo "$SED" >&6; }
14254 else
14255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256 $as_echo "no" >&6; }
14257 fi
14258 
14259 
14260           if test "x$SED" = x; then
14261             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14262           fi
14263         else
14264           # Otherwise we believe it is a complete path. Use it as it is.
14265           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14266 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14267           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14268 $as_echo_n "checking for SED... " >&6; }
14269           if test ! -x "$tool_specified"; then
14270             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14271 $as_echo "not found" >&6; }
14272             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14273           fi
14274           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14275 $as_echo "$tool_specified" >&6; }
14276         fi
14277       fi
14278     fi
14279 
14280   fi
14281 
14282 
14283   if test "x$SED" = x; then
14284     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14285   fi
14286 
14287 
14288 
14289   # Always force rm.
14290   RM="$RM -f"
14291 
14292   # pwd behaves differently on various platforms and some don't support the -L flag.
14293   # Always use the bash builtin pwd to get uniform behavior.
14294   THEPWDCMD=pwd
14295 
14296   # These are not required on all platforms
14297 
14298 
14299   # Publish this variable in the help.
14300 
14301 
14302   if [ -z "${CYGPATH+x}" ]; then
14303     # The variable is not set by user, try to locate tool using the code snippet
14304     for ac_prog in cygpath
14305 do
14306   # Extract the first word of "$ac_prog", so it can be a program name with args.
14307 set dummy $ac_prog; ac_word=$2
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14309 $as_echo_n "checking for $ac_word... " >&6; }
14310 if ${ac_cv_path_CYGPATH+:} false; then :
14311   $as_echo_n "(cached) " >&6
14312 else
14313   case $CYGPATH in
14314   [\\/]* | ?:[\\/]*)
14315   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14316   ;;
14317   *)
14318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14319 for as_dir in $PATH
14320 do
14321   IFS=$as_save_IFS
14322   test -z "$as_dir" && as_dir=.
14323     for ac_exec_ext in '' $ac_executable_extensions; do
14324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14325     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14327     break 2
14328   fi
14329 done
14330   done
14331 IFS=$as_save_IFS
14332 
14333   ;;
14334 esac
14335 fi
14336 CYGPATH=$ac_cv_path_CYGPATH
14337 if test -n "$CYGPATH"; then
14338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14339 $as_echo "$CYGPATH" >&6; }
14340 else
14341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14343 fi
14344 
14345 
14346   test -n "$CYGPATH" && break
14347 done
14348 
14349   else
14350     # The variable is set, but is it from the command line or the environment?
14351 
14352     # Try to remove the string !CYGPATH! from our list.
14353     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14354     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14355       # If it failed, the variable was not from the command line. Ignore it,
14356       # but warn the user (except for BASH, which is always set by the calling BASH).
14357       if test "xCYGPATH" != xBASH; then
14358         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14359 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14360       fi
14361       # Try to locate tool using the code snippet
14362       for ac_prog in cygpath
14363 do
14364   # Extract the first word of "$ac_prog", so it can be a program name with args.
14365 set dummy $ac_prog; ac_word=$2
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14367 $as_echo_n "checking for $ac_word... " >&6; }
14368 if ${ac_cv_path_CYGPATH+:} false; then :
14369   $as_echo_n "(cached) " >&6
14370 else
14371   case $CYGPATH in
14372   [\\/]* | ?:[\\/]*)
14373   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14374   ;;
14375   *)
14376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14377 for as_dir in $PATH
14378 do
14379   IFS=$as_save_IFS
14380   test -z "$as_dir" && as_dir=.
14381     for ac_exec_ext in '' $ac_executable_extensions; do
14382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14383     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14385     break 2
14386   fi
14387 done
14388   done
14389 IFS=$as_save_IFS
14390 
14391   ;;
14392 esac
14393 fi
14394 CYGPATH=$ac_cv_path_CYGPATH
14395 if test -n "$CYGPATH"; then
14396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14397 $as_echo "$CYGPATH" >&6; }
14398 else
14399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14400 $as_echo "no" >&6; }
14401 fi
14402 
14403 
14404   test -n "$CYGPATH" && break
14405 done
14406 
14407     else
14408       # If it succeeded, then it was overridden by the user. We will use it
14409       # for the tool.
14410 
14411       # First remove it from the list of overridden variables, so we can test
14412       # for unknown variables in the end.
14413       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14414 
14415       # Check if we try to supply an empty value
14416       if test "x$CYGPATH" = x; then
14417         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14418 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14419         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14420 $as_echo_n "checking for CYGPATH... " >&6; }
14421         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14422 $as_echo "disabled" >&6; }
14423       else
14424         # Check if the provided tool contains a complete path.
14425         tool_specified="$CYGPATH"
14426         tool_basename="${tool_specified##*/}"
14427         if test "x$tool_basename" = "x$tool_specified"; then
14428           # A command without a complete path is provided, search $PATH.
14429           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14430 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14431           # Extract the first word of "$tool_basename", so it can be a program name with args.
14432 set dummy $tool_basename; ac_word=$2
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14434 $as_echo_n "checking for $ac_word... " >&6; }
14435 if ${ac_cv_path_CYGPATH+:} false; then :
14436   $as_echo_n "(cached) " >&6
14437 else
14438   case $CYGPATH in
14439   [\\/]* | ?:[\\/]*)
14440   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14441   ;;
14442   *)
14443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14444 for as_dir in $PATH
14445 do
14446   IFS=$as_save_IFS
14447   test -z "$as_dir" && as_dir=.
14448     for ac_exec_ext in '' $ac_executable_extensions; do
14449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14450     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14452     break 2
14453   fi
14454 done
14455   done
14456 IFS=$as_save_IFS
14457 
14458   ;;
14459 esac
14460 fi
14461 CYGPATH=$ac_cv_path_CYGPATH
14462 if test -n "$CYGPATH"; then
14463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14464 $as_echo "$CYGPATH" >&6; }
14465 else
14466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14467 $as_echo "no" >&6; }
14468 fi
14469 
14470 
14471           if test "x$CYGPATH" = x; then
14472             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14473           fi
14474         else
14475           # Otherwise we believe it is a complete path. Use it as it is.
14476           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14477 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14478           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14479 $as_echo_n "checking for CYGPATH... " >&6; }
14480           if test ! -x "$tool_specified"; then
14481             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14482 $as_echo "not found" >&6; }
14483             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14484           fi
14485           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14486 $as_echo "$tool_specified" >&6; }
14487         fi
14488       fi
14489     fi
14490 
14491   fi
14492 
14493 
14494 
14495 
14496   # Publish this variable in the help.
14497 
14498 
14499   if [ -z "${READLINK+x}" ]; then
14500     # The variable is not set by user, try to locate tool using the code snippet
14501     for ac_prog in greadlink readlink
14502 do
14503   # Extract the first word of "$ac_prog", so it can be a program name with args.
14504 set dummy $ac_prog; ac_word=$2
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14506 $as_echo_n "checking for $ac_word... " >&6; }
14507 if ${ac_cv_path_READLINK+:} false; then :
14508   $as_echo_n "(cached) " >&6
14509 else
14510   case $READLINK in
14511   [\\/]* | ?:[\\/]*)
14512   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14513   ;;
14514   *)
14515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14516 for as_dir in $PATH
14517 do
14518   IFS=$as_save_IFS
14519   test -z "$as_dir" && as_dir=.
14520     for ac_exec_ext in '' $ac_executable_extensions; do
14521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14522     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14524     break 2
14525   fi
14526 done
14527   done
14528 IFS=$as_save_IFS
14529 
14530   ;;
14531 esac
14532 fi
14533 READLINK=$ac_cv_path_READLINK
14534 if test -n "$READLINK"; then
14535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14536 $as_echo "$READLINK" >&6; }
14537 else
14538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14539 $as_echo "no" >&6; }
14540 fi
14541 
14542 
14543   test -n "$READLINK" && break
14544 done
14545 
14546   else
14547     # The variable is set, but is it from the command line or the environment?
14548 
14549     # Try to remove the string !READLINK! from our list.
14550     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14551     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14552       # If it failed, the variable was not from the command line. Ignore it,
14553       # but warn the user (except for BASH, which is always set by the calling BASH).
14554       if test "xREADLINK" != xBASH; then
14555         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14556 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14557       fi
14558       # Try to locate tool using the code snippet
14559       for ac_prog in greadlink readlink
14560 do
14561   # Extract the first word of "$ac_prog", so it can be a program name with args.
14562 set dummy $ac_prog; ac_word=$2
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14564 $as_echo_n "checking for $ac_word... " >&6; }
14565 if ${ac_cv_path_READLINK+:} false; then :
14566   $as_echo_n "(cached) " >&6
14567 else
14568   case $READLINK in
14569   [\\/]* | ?:[\\/]*)
14570   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14571   ;;
14572   *)
14573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14574 for as_dir in $PATH
14575 do
14576   IFS=$as_save_IFS
14577   test -z "$as_dir" && as_dir=.
14578     for ac_exec_ext in '' $ac_executable_extensions; do
14579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14580     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14582     break 2
14583   fi
14584 done
14585   done
14586 IFS=$as_save_IFS
14587 
14588   ;;
14589 esac
14590 fi
14591 READLINK=$ac_cv_path_READLINK
14592 if test -n "$READLINK"; then
14593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14594 $as_echo "$READLINK" >&6; }
14595 else
14596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14597 $as_echo "no" >&6; }
14598 fi
14599 
14600 
14601   test -n "$READLINK" && break
14602 done
14603 
14604     else
14605       # If it succeeded, then it was overridden by the user. We will use it
14606       # for the tool.
14607 
14608       # First remove it from the list of overridden variables, so we can test
14609       # for unknown variables in the end.
14610       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14611 
14612       # Check if we try to supply an empty value
14613       if test "x$READLINK" = x; then
14614         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14615 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14616         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14617 $as_echo_n "checking for READLINK... " >&6; }
14618         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14619 $as_echo "disabled" >&6; }
14620       else
14621         # Check if the provided tool contains a complete path.
14622         tool_specified="$READLINK"
14623         tool_basename="${tool_specified##*/}"
14624         if test "x$tool_basename" = "x$tool_specified"; then
14625           # A command without a complete path is provided, search $PATH.
14626           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14627 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14628           # Extract the first word of "$tool_basename", so it can be a program name with args.
14629 set dummy $tool_basename; ac_word=$2
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14631 $as_echo_n "checking for $ac_word... " >&6; }
14632 if ${ac_cv_path_READLINK+:} false; then :
14633   $as_echo_n "(cached) " >&6
14634 else
14635   case $READLINK in
14636   [\\/]* | ?:[\\/]*)
14637   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14638   ;;
14639   *)
14640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641 for as_dir in $PATH
14642 do
14643   IFS=$as_save_IFS
14644   test -z "$as_dir" && as_dir=.
14645     for ac_exec_ext in '' $ac_executable_extensions; do
14646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14647     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14649     break 2
14650   fi
14651 done
14652   done
14653 IFS=$as_save_IFS
14654 
14655   ;;
14656 esac
14657 fi
14658 READLINK=$ac_cv_path_READLINK
14659 if test -n "$READLINK"; then
14660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14661 $as_echo "$READLINK" >&6; }
14662 else
14663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14664 $as_echo "no" >&6; }
14665 fi
14666 
14667 
14668           if test "x$READLINK" = x; then
14669             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14670           fi
14671         else
14672           # Otherwise we believe it is a complete path. Use it as it is.
14673           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14674 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14675           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14676 $as_echo_n "checking for READLINK... " >&6; }
14677           if test ! -x "$tool_specified"; then
14678             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14679 $as_echo "not found" >&6; }
14680             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14681           fi
14682           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14683 $as_echo "$tool_specified" >&6; }
14684         fi
14685       fi
14686     fi
14687 
14688   fi
14689 
14690 
14691 
14692 
14693   # Publish this variable in the help.
14694 
14695 
14696   if [ -z "${DF+x}" ]; then
14697     # The variable is not set by user, try to locate tool using the code snippet
14698     for ac_prog in df
14699 do
14700   # Extract the first word of "$ac_prog", so it can be a program name with args.
14701 set dummy $ac_prog; ac_word=$2
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703 $as_echo_n "checking for $ac_word... " >&6; }
14704 if ${ac_cv_path_DF+:} false; then :
14705   $as_echo_n "(cached) " >&6
14706 else
14707   case $DF in
14708   [\\/]* | ?:[\\/]*)
14709   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14710   ;;
14711   *)
14712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14713 for as_dir in $PATH
14714 do
14715   IFS=$as_save_IFS
14716   test -z "$as_dir" && as_dir=.
14717     for ac_exec_ext in '' $ac_executable_extensions; do
14718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14719     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14721     break 2
14722   fi
14723 done
14724   done
14725 IFS=$as_save_IFS
14726 
14727   ;;
14728 esac
14729 fi
14730 DF=$ac_cv_path_DF
14731 if test -n "$DF"; then
14732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14733 $as_echo "$DF" >&6; }
14734 else
14735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 $as_echo "no" >&6; }
14737 fi
14738 
14739 
14740   test -n "$DF" && break
14741 done
14742 
14743   else
14744     # The variable is set, but is it from the command line or the environment?
14745 
14746     # Try to remove the string !DF! from our list.
14747     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14748     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14749       # If it failed, the variable was not from the command line. Ignore it,
14750       # but warn the user (except for BASH, which is always set by the calling BASH).
14751       if test "xDF" != xBASH; then
14752         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14753 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14754       fi
14755       # Try to locate tool using the code snippet
14756       for ac_prog in df
14757 do
14758   # Extract the first word of "$ac_prog", so it can be a program name with args.
14759 set dummy $ac_prog; ac_word=$2
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14761 $as_echo_n "checking for $ac_word... " >&6; }
14762 if ${ac_cv_path_DF+:} false; then :
14763   $as_echo_n "(cached) " >&6
14764 else
14765   case $DF in
14766   [\\/]* | ?:[\\/]*)
14767   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14768   ;;
14769   *)
14770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14771 for as_dir in $PATH
14772 do
14773   IFS=$as_save_IFS
14774   test -z "$as_dir" && as_dir=.
14775     for ac_exec_ext in '' $ac_executable_extensions; do
14776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14777     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14779     break 2
14780   fi
14781 done
14782   done
14783 IFS=$as_save_IFS
14784 
14785   ;;
14786 esac
14787 fi
14788 DF=$ac_cv_path_DF
14789 if test -n "$DF"; then
14790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14791 $as_echo "$DF" >&6; }
14792 else
14793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794 $as_echo "no" >&6; }
14795 fi
14796 
14797 
14798   test -n "$DF" && break
14799 done
14800 
14801     else
14802       # If it succeeded, then it was overridden by the user. We will use it
14803       # for the tool.
14804 
14805       # First remove it from the list of overridden variables, so we can test
14806       # for unknown variables in the end.
14807       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14808 
14809       # Check if we try to supply an empty value
14810       if test "x$DF" = x; then
14811         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14812 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14813         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14814 $as_echo_n "checking for DF... " >&6; }
14815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14816 $as_echo "disabled" >&6; }
14817       else
14818         # Check if the provided tool contains a complete path.
14819         tool_specified="$DF"
14820         tool_basename="${tool_specified##*/}"
14821         if test "x$tool_basename" = "x$tool_specified"; then
14822           # A command without a complete path is provided, search $PATH.
14823           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14824 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14825           # Extract the first word of "$tool_basename", so it can be a program name with args.
14826 set dummy $tool_basename; ac_word=$2
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14828 $as_echo_n "checking for $ac_word... " >&6; }
14829 if ${ac_cv_path_DF+:} false; then :
14830   $as_echo_n "(cached) " >&6
14831 else
14832   case $DF in
14833   [\\/]* | ?:[\\/]*)
14834   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14835   ;;
14836   *)
14837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14838 for as_dir in $PATH
14839 do
14840   IFS=$as_save_IFS
14841   test -z "$as_dir" && as_dir=.
14842     for ac_exec_ext in '' $ac_executable_extensions; do
14843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14844     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14846     break 2
14847   fi
14848 done
14849   done
14850 IFS=$as_save_IFS
14851 
14852   ;;
14853 esac
14854 fi
14855 DF=$ac_cv_path_DF
14856 if test -n "$DF"; then
14857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14858 $as_echo "$DF" >&6; }
14859 else
14860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14861 $as_echo "no" >&6; }
14862 fi
14863 
14864 
14865           if test "x$DF" = x; then
14866             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14867           fi
14868         else
14869           # Otherwise we believe it is a complete path. Use it as it is.
14870           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14871 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14872           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14873 $as_echo_n "checking for DF... " >&6; }
14874           if test ! -x "$tool_specified"; then
14875             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14876 $as_echo "not found" >&6; }
14877             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14878           fi
14879           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14880 $as_echo "$tool_specified" >&6; }
14881         fi
14882       fi
14883     fi
14884 
14885   fi
14886 
14887 
14888 
14889 
14890   # Publish this variable in the help.
14891 
14892 
14893   if [ -z "${CPIO+x}" ]; then
14894     # The variable is not set by user, try to locate tool using the code snippet
14895     for ac_prog in cpio bsdcpio
14896 do
14897   # Extract the first word of "$ac_prog", so it can be a program name with args.
14898 set dummy $ac_prog; ac_word=$2
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14900 $as_echo_n "checking for $ac_word... " >&6; }
14901 if ${ac_cv_path_CPIO+:} false; then :
14902   $as_echo_n "(cached) " >&6
14903 else
14904   case $CPIO in
14905   [\\/]* | ?:[\\/]*)
14906   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14907   ;;
14908   *)
14909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14910 for as_dir in $PATH
14911 do
14912   IFS=$as_save_IFS
14913   test -z "$as_dir" && as_dir=.
14914     for ac_exec_ext in '' $ac_executable_extensions; do
14915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14916     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14918     break 2
14919   fi
14920 done
14921   done
14922 IFS=$as_save_IFS
14923 
14924   ;;
14925 esac
14926 fi
14927 CPIO=$ac_cv_path_CPIO
14928 if test -n "$CPIO"; then
14929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14930 $as_echo "$CPIO" >&6; }
14931 else
14932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14933 $as_echo "no" >&6; }
14934 fi
14935 
14936 
14937   test -n "$CPIO" && break
14938 done
14939 
14940   else
14941     # The variable is set, but is it from the command line or the environment?
14942 
14943     # Try to remove the string !CPIO! from our list.
14944     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14945     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14946       # If it failed, the variable was not from the command line. Ignore it,
14947       # but warn the user (except for BASH, which is always set by the calling BASH).
14948       if test "xCPIO" != xBASH; then
14949         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14950 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14951       fi
14952       # Try to locate tool using the code snippet
14953       for ac_prog in cpio bsdcpio
14954 do
14955   # Extract the first word of "$ac_prog", so it can be a program name with args.
14956 set dummy $ac_prog; ac_word=$2
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14958 $as_echo_n "checking for $ac_word... " >&6; }
14959 if ${ac_cv_path_CPIO+:} false; then :
14960   $as_echo_n "(cached) " >&6
14961 else
14962   case $CPIO in
14963   [\\/]* | ?:[\\/]*)
14964   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14965   ;;
14966   *)
14967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14968 for as_dir in $PATH
14969 do
14970   IFS=$as_save_IFS
14971   test -z "$as_dir" && as_dir=.
14972     for ac_exec_ext in '' $ac_executable_extensions; do
14973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14974     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14976     break 2
14977   fi
14978 done
14979   done
14980 IFS=$as_save_IFS
14981 
14982   ;;
14983 esac
14984 fi
14985 CPIO=$ac_cv_path_CPIO
14986 if test -n "$CPIO"; then
14987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14988 $as_echo "$CPIO" >&6; }
14989 else
14990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14991 $as_echo "no" >&6; }
14992 fi
14993 
14994 
14995   test -n "$CPIO" && break
14996 done
14997 
14998     else
14999       # If it succeeded, then it was overridden by the user. We will use it
15000       # for the tool.
15001 
15002       # First remove it from the list of overridden variables, so we can test
15003       # for unknown variables in the end.
15004       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15005 
15006       # Check if we try to supply an empty value
15007       if test "x$CPIO" = x; then
15008         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15009 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15010         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15011 $as_echo_n "checking for CPIO... " >&6; }
15012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15013 $as_echo "disabled" >&6; }
15014       else
15015         # Check if the provided tool contains a complete path.
15016         tool_specified="$CPIO"
15017         tool_basename="${tool_specified##*/}"
15018         if test "x$tool_basename" = "x$tool_specified"; then
15019           # A command without a complete path is provided, search $PATH.
15020           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15021 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15022           # Extract the first word of "$tool_basename", so it can be a program name with args.
15023 set dummy $tool_basename; ac_word=$2
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15025 $as_echo_n "checking for $ac_word... " >&6; }
15026 if ${ac_cv_path_CPIO+:} false; then :
15027   $as_echo_n "(cached) " >&6
15028 else
15029   case $CPIO in
15030   [\\/]* | ?:[\\/]*)
15031   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15032   ;;
15033   *)
15034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15035 for as_dir in $PATH
15036 do
15037   IFS=$as_save_IFS
15038   test -z "$as_dir" && as_dir=.
15039     for ac_exec_ext in '' $ac_executable_extensions; do
15040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15041     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15043     break 2
15044   fi
15045 done
15046   done
15047 IFS=$as_save_IFS
15048 
15049   ;;
15050 esac
15051 fi
15052 CPIO=$ac_cv_path_CPIO
15053 if test -n "$CPIO"; then
15054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15055 $as_echo "$CPIO" >&6; }
15056 else
15057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15058 $as_echo "no" >&6; }
15059 fi
15060 
15061 
15062           if test "x$CPIO" = x; then
15063             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15064           fi
15065         else
15066           # Otherwise we believe it is a complete path. Use it as it is.
15067           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15068 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15069           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15070 $as_echo_n "checking for CPIO... " >&6; }
15071           if test ! -x "$tool_specified"; then
15072             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15073 $as_echo "not found" >&6; }
15074             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15075           fi
15076           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15077 $as_echo "$tool_specified" >&6; }
15078         fi
15079       fi
15080     fi
15081 
15082   fi
15083 
15084 
15085 
15086 
15087   # Publish this variable in the help.
15088 
15089 
15090   if [ -z "${NICE+x}" ]; then
15091     # The variable is not set by user, try to locate tool using the code snippet
15092     for ac_prog in nice
15093 do
15094   # Extract the first word of "$ac_prog", so it can be a program name with args.
15095 set dummy $ac_prog; ac_word=$2
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15097 $as_echo_n "checking for $ac_word... " >&6; }
15098 if ${ac_cv_path_NICE+:} false; then :
15099   $as_echo_n "(cached) " >&6
15100 else
15101   case $NICE in
15102   [\\/]* | ?:[\\/]*)
15103   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15104   ;;
15105   *)
15106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107 for as_dir in $PATH
15108 do
15109   IFS=$as_save_IFS
15110   test -z "$as_dir" && as_dir=.
15111     for ac_exec_ext in '' $ac_executable_extensions; do
15112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15113     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15115     break 2
15116   fi
15117 done
15118   done
15119 IFS=$as_save_IFS
15120 
15121   ;;
15122 esac
15123 fi
15124 NICE=$ac_cv_path_NICE
15125 if test -n "$NICE"; then
15126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15127 $as_echo "$NICE" >&6; }
15128 else
15129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15130 $as_echo "no" >&6; }
15131 fi
15132 
15133 
15134   test -n "$NICE" && break
15135 done
15136 
15137   else
15138     # The variable is set, but is it from the command line or the environment?
15139 
15140     # Try to remove the string !NICE! from our list.
15141     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15142     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15143       # If it failed, the variable was not from the command line. Ignore it,
15144       # but warn the user (except for BASH, which is always set by the calling BASH).
15145       if test "xNICE" != xBASH; then
15146         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15147 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15148       fi
15149       # Try to locate tool using the code snippet
15150       for ac_prog in nice
15151 do
15152   # Extract the first word of "$ac_prog", so it can be a program name with args.
15153 set dummy $ac_prog; ac_word=$2
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15155 $as_echo_n "checking for $ac_word... " >&6; }
15156 if ${ac_cv_path_NICE+:} false; then :
15157   $as_echo_n "(cached) " >&6
15158 else
15159   case $NICE in
15160   [\\/]* | ?:[\\/]*)
15161   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15162   ;;
15163   *)
15164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15165 for as_dir in $PATH
15166 do
15167   IFS=$as_save_IFS
15168   test -z "$as_dir" && as_dir=.
15169     for ac_exec_ext in '' $ac_executable_extensions; do
15170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15171     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15173     break 2
15174   fi
15175 done
15176   done
15177 IFS=$as_save_IFS
15178 
15179   ;;
15180 esac
15181 fi
15182 NICE=$ac_cv_path_NICE
15183 if test -n "$NICE"; then
15184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15185 $as_echo "$NICE" >&6; }
15186 else
15187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15188 $as_echo "no" >&6; }
15189 fi
15190 
15191 
15192   test -n "$NICE" && break
15193 done
15194 
15195     else
15196       # If it succeeded, then it was overridden by the user. We will use it
15197       # for the tool.
15198 
15199       # First remove it from the list of overridden variables, so we can test
15200       # for unknown variables in the end.
15201       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15202 
15203       # Check if we try to supply an empty value
15204       if test "x$NICE" = x; then
15205         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15206 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15207         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15208 $as_echo_n "checking for NICE... " >&6; }
15209         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15210 $as_echo "disabled" >&6; }
15211       else
15212         # Check if the provided tool contains a complete path.
15213         tool_specified="$NICE"
15214         tool_basename="${tool_specified##*/}"
15215         if test "x$tool_basename" = "x$tool_specified"; then
15216           # A command without a complete path is provided, search $PATH.
15217           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15218 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15219           # Extract the first word of "$tool_basename", so it can be a program name with args.
15220 set dummy $tool_basename; ac_word=$2
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15222 $as_echo_n "checking for $ac_word... " >&6; }
15223 if ${ac_cv_path_NICE+:} false; then :
15224   $as_echo_n "(cached) " >&6
15225 else
15226   case $NICE in
15227   [\\/]* | ?:[\\/]*)
15228   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15229   ;;
15230   *)
15231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15232 for as_dir in $PATH
15233 do
15234   IFS=$as_save_IFS
15235   test -z "$as_dir" && as_dir=.
15236     for ac_exec_ext in '' $ac_executable_extensions; do
15237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15238     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15240     break 2
15241   fi
15242 done
15243   done
15244 IFS=$as_save_IFS
15245 
15246   ;;
15247 esac
15248 fi
15249 NICE=$ac_cv_path_NICE
15250 if test -n "$NICE"; then
15251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15252 $as_echo "$NICE" >&6; }
15253 else
15254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15255 $as_echo "no" >&6; }
15256 fi
15257 
15258 
15259           if test "x$NICE" = x; then
15260             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15261           fi
15262         else
15263           # Otherwise we believe it is a complete path. Use it as it is.
15264           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15265 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15266           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15267 $as_echo_n "checking for NICE... " >&6; }
15268           if test ! -x "$tool_specified"; then
15269             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15270 $as_echo "not found" >&6; }
15271             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15272           fi
15273           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15274 $as_echo "$tool_specified" >&6; }
15275         fi
15276       fi
15277     fi
15278 
15279   fi
15280 
15281 
15282 
15283 
15284 # Now we can determine OpenJDK build and target platforms. This is required to
15285 # have early on.
15286 # Make sure we can run config.sub.
15287 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15288   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15289 
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15291 $as_echo_n "checking build system type... " >&6; }
15292 if ${ac_cv_build+:} false; then :
15293   $as_echo_n "(cached) " >&6
15294 else
15295   ac_build_alias=$build_alias
15296 test "x$ac_build_alias" = x &&
15297   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15298 test "x$ac_build_alias" = x &&
15299   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15300 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15301   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15302 
15303 fi
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15305 $as_echo "$ac_cv_build" >&6; }
15306 case $ac_cv_build in
15307 *-*-*) ;;
15308 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15309 esac
15310 build=$ac_cv_build
15311 ac_save_IFS=$IFS; IFS='-'
15312 set x $ac_cv_build
15313 shift
15314 build_cpu=$1
15315 build_vendor=$2
15316 shift; shift
15317 # Remember, the first character of IFS is used to create $*,
15318 # except with old shells:
15319 build_os=$*
15320 IFS=$ac_save_IFS
15321 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15322 
15323 
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15325 $as_echo_n "checking host system type... " >&6; }
15326 if ${ac_cv_host+:} false; then :
15327   $as_echo_n "(cached) " >&6
15328 else
15329   if test "x$host_alias" = x; then
15330   ac_cv_host=$ac_cv_build
15331 else
15332   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15333     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15334 fi
15335 
15336 fi
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15338 $as_echo "$ac_cv_host" >&6; }
15339 case $ac_cv_host in
15340 *-*-*) ;;
15341 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15342 esac
15343 host=$ac_cv_host
15344 ac_save_IFS=$IFS; IFS='-'
15345 set x $ac_cv_host
15346 shift
15347 host_cpu=$1
15348 host_vendor=$2
15349 shift; shift
15350 # Remember, the first character of IFS is used to create $*,
15351 # except with old shells:
15352 host_os=$*
15353 IFS=$ac_save_IFS
15354 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15355 
15356 
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15358 $as_echo_n "checking target system type... " >&6; }
15359 if ${ac_cv_target+:} false; then :
15360   $as_echo_n "(cached) " >&6
15361 else
15362   if test "x$target_alias" = x; then
15363   ac_cv_target=$ac_cv_host
15364 else
15365   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15366     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15367 fi
15368 
15369 fi
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15371 $as_echo "$ac_cv_target" >&6; }
15372 case $ac_cv_target in
15373 *-*-*) ;;
15374 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15375 esac
15376 target=$ac_cv_target
15377 ac_save_IFS=$IFS; IFS='-'
15378 set x $ac_cv_target
15379 shift
15380 target_cpu=$1
15381 target_vendor=$2
15382 shift; shift
15383 # Remember, the first character of IFS is used to create $*,
15384 # except with old shells:
15385 target_os=$*
15386 IFS=$ac_save_IFS
15387 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15388 
15389 
15390 # The aliases save the names the user supplied, while $host etc.
15391 # will get canonicalized.
15392 test -n "$target_alias" &&
15393   test "$program_prefix$program_suffix$program_transform_name" = \
15394     NONENONEs,x,x, &&
15395   program_prefix=${target_alias}-
15396 
15397   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15398   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15399   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15400   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15401   # to use the configure naming style.
15402 
15403 
15404 
15405 
15406 
15407   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15408   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15409   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15410   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15411   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15412   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15413 
15414 
15415 
15416   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15417 
15418   case "$build_os" in
15419     *linux*)
15420       VAR_OS=linux
15421       VAR_OS_TYPE=unix
15422       ;;
15423     *solaris*)
15424       VAR_OS=solaris
15425       VAR_OS_TYPE=unix
15426       ;;
15427     *darwin*)
15428       VAR_OS=macosx
15429       VAR_OS_TYPE=unix
15430       ;;
15431     *bsd*)
15432       VAR_OS=bsd
15433       VAR_OS_TYPE=unix
15434       ;;
15435     *cygwin*)
15436       VAR_OS=windows
15437       VAR_OS_ENV=windows.cygwin
15438       ;;
15439     *mingw*)
15440       VAR_OS=windows
15441       VAR_OS_ENV=windows.msys
15442       ;;
15443     *aix*)
15444       VAR_OS=aix
15445       VAR_OS_TYPE=unix
15446       ;;
15447     *)
15448       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15449       ;;
15450   esac
15451 
15452 
15453   # First argument is the cpu name from the trip/quad
15454   case "$build_cpu" in
15455     x86_64)
15456       VAR_CPU=x86_64
15457       VAR_CPU_ARCH=x86
15458       VAR_CPU_BITS=64
15459       VAR_CPU_ENDIAN=little
15460       ;;
15461     i?86)
15462       VAR_CPU=x86
15463       VAR_CPU_ARCH=x86
15464       VAR_CPU_BITS=32
15465       VAR_CPU_ENDIAN=little
15466       ;;
15467     arm*)
15468       VAR_CPU=arm
15469       VAR_CPU_ARCH=arm
15470       VAR_CPU_BITS=32
15471       VAR_CPU_ENDIAN=little
15472       ;;
15473     aarch64)
15474       VAR_CPU=aarch64
15475       VAR_CPU_ARCH=aarch64
15476       VAR_CPU_BITS=64
15477       VAR_CPU_ENDIAN=little
15478       ;;
15479     powerpc)
15480       VAR_CPU=ppc
15481       VAR_CPU_ARCH=ppc
15482       VAR_CPU_BITS=32
15483       VAR_CPU_ENDIAN=big
15484       ;;
15485     powerpc64)
15486       VAR_CPU=ppc64
15487       VAR_CPU_ARCH=ppc
15488       VAR_CPU_BITS=64
15489       VAR_CPU_ENDIAN=big
15490       ;;
15491     powerpc64le)
15492       VAR_CPU=ppc64le
15493       VAR_CPU_ARCH=ppc
15494       VAR_CPU_BITS=64
15495       VAR_CPU_ENDIAN=little
15496       ;;
15497     s390)
15498       VAR_CPU=s390
15499       VAR_CPU_ARCH=s390
15500       VAR_CPU_BITS=32
15501       VAR_CPU_ENDIAN=big
15502       ;;
15503     s390x)
15504       VAR_CPU=s390x
15505       VAR_CPU_ARCH=s390
15506       VAR_CPU_BITS=64
15507       VAR_CPU_ENDIAN=big
15508       ;;
15509     sparc)
15510       VAR_CPU=sparc
15511       VAR_CPU_ARCH=sparc
15512       VAR_CPU_BITS=32
15513       VAR_CPU_ENDIAN=big
15514       ;;
15515     sparcv9|sparc64)
15516       VAR_CPU=sparcv9
15517       VAR_CPU_ARCH=sparc
15518       VAR_CPU_BITS=64
15519       VAR_CPU_ENDIAN=big
15520       ;;
15521     *)
15522       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15523       ;;
15524   esac
15525 
15526   # ..and setup our own variables. (Do this explicitely to facilitate searching)
15527   OPENJDK_BUILD_OS="$VAR_OS"
15528   if test "x$VAR_OS_TYPE" != x; then
15529     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15530   else
15531     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15532   fi
15533   if test "x$VAR_OS_ENV" != x; then
15534     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15535   else
15536     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15537   fi
15538   OPENJDK_BUILD_CPU="$VAR_CPU"
15539   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15540   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15541   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15542 
15543 
15544 
15545 
15546 
15547 
15548 
15549 
15550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15551 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15553 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15554 
15555   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15556 
15557   case "$host_os" in
15558     *linux*)
15559       VAR_OS=linux
15560       VAR_OS_TYPE=unix
15561       ;;
15562     *solaris*)
15563       VAR_OS=solaris
15564       VAR_OS_TYPE=unix
15565       ;;
15566     *darwin*)
15567       VAR_OS=macosx
15568       VAR_OS_TYPE=unix
15569       ;;
15570     *bsd*)
15571       VAR_OS=bsd
15572       VAR_OS_TYPE=unix
15573       ;;
15574     *cygwin*)
15575       VAR_OS=windows
15576       VAR_OS_ENV=windows.cygwin
15577       ;;
15578     *mingw*)
15579       VAR_OS=windows
15580       VAR_OS_ENV=windows.msys
15581       ;;
15582     *aix*)
15583       VAR_OS=aix
15584       VAR_OS_TYPE=unix
15585       ;;
15586     *)
15587       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15588       ;;
15589   esac
15590 
15591 
15592   # First argument is the cpu name from the trip/quad
15593   case "$host_cpu" in
15594     x86_64)
15595       VAR_CPU=x86_64
15596       VAR_CPU_ARCH=x86
15597       VAR_CPU_BITS=64
15598       VAR_CPU_ENDIAN=little
15599       ;;
15600     i?86)
15601       VAR_CPU=x86
15602       VAR_CPU_ARCH=x86
15603       VAR_CPU_BITS=32
15604       VAR_CPU_ENDIAN=little
15605       ;;
15606     arm*)
15607       VAR_CPU=arm
15608       VAR_CPU_ARCH=arm
15609       VAR_CPU_BITS=32
15610       VAR_CPU_ENDIAN=little
15611       ;;
15612     aarch64)
15613       VAR_CPU=aarch64
15614       VAR_CPU_ARCH=aarch64
15615       VAR_CPU_BITS=64
15616       VAR_CPU_ENDIAN=little
15617       ;;
15618     powerpc)
15619       VAR_CPU=ppc
15620       VAR_CPU_ARCH=ppc
15621       VAR_CPU_BITS=32
15622       VAR_CPU_ENDIAN=big
15623       ;;
15624     powerpc64)
15625       VAR_CPU=ppc64
15626       VAR_CPU_ARCH=ppc
15627       VAR_CPU_BITS=64
15628       VAR_CPU_ENDIAN=big
15629       ;;
15630     powerpc64le)
15631       VAR_CPU=ppc64le
15632       VAR_CPU_ARCH=ppc
15633       VAR_CPU_BITS=64
15634       VAR_CPU_ENDIAN=little
15635       ;;
15636     s390)
15637       VAR_CPU=s390
15638       VAR_CPU_ARCH=s390
15639       VAR_CPU_BITS=32
15640       VAR_CPU_ENDIAN=big
15641       ;;
15642     s390x)
15643       VAR_CPU=s390x
15644       VAR_CPU_ARCH=s390
15645       VAR_CPU_BITS=64
15646       VAR_CPU_ENDIAN=big
15647       ;;
15648     sparc)
15649       VAR_CPU=sparc
15650       VAR_CPU_ARCH=sparc
15651       VAR_CPU_BITS=32
15652       VAR_CPU_ENDIAN=big
15653       ;;
15654     sparcv9|sparc64)
15655       VAR_CPU=sparcv9
15656       VAR_CPU_ARCH=sparc
15657       VAR_CPU_BITS=64
15658       VAR_CPU_ENDIAN=big
15659       ;;
15660     *)
15661       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
15662       ;;
15663   esac
15664 
15665   # ... and setup our own variables. (Do this explicitely to facilitate searching)
15666   OPENJDK_TARGET_OS="$VAR_OS"
15667   if test "x$VAR_OS_TYPE" != x; then
15668     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
15669   else
15670     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
15671   fi
15672   if test "x$VAR_OS_ENV" != x; then
15673     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
15674   else
15675     OPENJDK_TARGET_OS_ENV="$VAR_OS"
15676   fi
15677   OPENJDK_TARGET_CPU="$VAR_CPU"
15678   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
15679   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
15680   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15681 
15682 
15683 
15684 
15685 
15686 
15687 
15688 
15689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
15690 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
15691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
15692 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
15693 
15694 
15695 
15696 # Check whether --with-target-bits was given.
15697 if test "${with_target_bits+set}" = set; then :
15698   withval=$with_target_bits;
15699 fi
15700 
15701 
15702   # We have three types of compiles:
15703   # native  == normal compilation, target system == build system
15704   # cross   == traditional cross compilation, target system != build system; special toolchain needed
15705   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
15706   #
15707   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
15708     # We're doing a proper cross-compilation
15709     COMPILE_TYPE="cross"
15710   else
15711     COMPILE_TYPE="native"
15712   fi
15713 
15714   if test "x$with_target_bits" != x; then
15715     if test "x$COMPILE_TYPE" = "xcross"; then
15716       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
15717     fi
15718 
15719     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15720       # A reduced build is requested
15721       COMPILE_TYPE="reduced"
15722       OPENJDK_TARGET_CPU_BITS=32
15723       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
15724         OPENJDK_TARGET_CPU=x86
15725       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
15726         OPENJDK_TARGET_CPU=sparc
15727       else
15728         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
15729       fi
15730     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
15731       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
15732     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
15733       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
15734 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
15735     else
15736       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
15737     fi
15738   fi
15739 
15740 
15741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
15742 $as_echo_n "checking compilation type... " >&6; }
15743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
15744 $as_echo "$COMPILE_TYPE" >&6; }
15745 
15746 
15747   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
15748     REQUIRED_OS_NAME=SunOS
15749     REQUIRED_OS_VERSION=5.10
15750   fi
15751   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
15752     REQUIRED_OS_NAME=Linux
15753     REQUIRED_OS_VERSION=2.6
15754   fi
15755   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15756     REQUIRED_OS_NAME=Windows
15757     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
15758       REQUIRED_OS_VERSION=5.2
15759     else
15760       REQUIRED_OS_VERSION=5.1
15761     fi
15762   fi
15763   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15764     REQUIRED_OS_NAME=Darwin
15765     REQUIRED_OS_VERSION=11.2
15766   fi
15767   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
15768     REQUIRED_OS_NAME=AIX
15769     REQUIRED_OS_VERSION=7.1
15770   fi
15771 
15772 
15773 
15774 
15775 
15776 
15777   # Also store the legacy naming of the cpu.
15778   # Ie i586 and amd64 instead of x86 and x86_64
15779   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
15780   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15781     OPENJDK_TARGET_CPU_LEGACY="i586"
15782   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15783     # On all platforms except MacOSX replace x86_64 with amd64.
15784     OPENJDK_TARGET_CPU_LEGACY="amd64"
15785   fi
15786 
15787 
15788   # And the second legacy naming of the cpu.
15789   # Ie i386 and amd64 instead of x86 and x86_64.
15790   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
15791   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15792     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
15793   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15794     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
15795   fi
15796 
15797 
15798   # This is the name of the cpu (but using i386 and amd64 instead of
15799   # x86 and x86_64, respectively), preceeded by a /, to be used when
15800   # locating libraries. On macosx, it's empty, though.
15801   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
15802   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15803     OPENJDK_TARGET_CPU_LIBDIR=""
15804   fi
15805 
15806 
15807   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15808   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15809   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
15810   OPENJDK_TARGET_CPU_ISADIR=""
15811   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15812     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15813       OPENJDK_TARGET_CPU_ISADIR="/amd64"
15814     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15815       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
15816     fi
15817   fi
15818 
15819 
15820   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
15821   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
15822   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
15823     # On linux only, we replace x86 with i386.
15824     OPENJDK_TARGET_CPU_OSARCH="i386"
15825   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15826     # On all platforms except macosx, we replace x86_64 with amd64.
15827     OPENJDK_TARGET_CPU_OSARCH="amd64"
15828   fi
15829 
15830 
15831   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
15832   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15833     OPENJDK_TARGET_CPU_JLI="i386"
15834   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15835     # On all platforms except macosx, we replace x86_64 with amd64.
15836     OPENJDK_TARGET_CPU_JLI="amd64"
15837   fi
15838   # Now setup the -D flags for building libjli.
15839   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
15840   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15841     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
15842       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
15843     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
15844       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
15845     fi
15846   fi
15847 
15848 
15849   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15850       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
15851   else
15852       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
15853   fi
15854 
15855 
15856   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
15857   # Macosx is osx and x86_64 is x64
15858   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15859     OPENJDK_TARGET_OS_BUNDLE="osx"
15860   else
15861     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
15862   fi
15863   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15864     OPENJDK_TARGET_CPU_BUNDLE="x64"
15865   else
15866     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
15867   fi
15868   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
15869 
15870 
15871 
15872 
15873   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15874     A_LP64="LP64:="
15875     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15876     # unpack200.exe
15877     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
15878       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
15879     fi
15880   fi
15881   LP64=$A_LP64
15882 
15883 
15884   if test "x$COMPILE_TYPE" = "xcross"; then
15885     # FIXME: ... or should this include reduced builds..?
15886     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15887   else
15888     DEFINE_CROSS_COMPILE_ARCH=""
15889   fi
15890 
15891 
15892   # Convert openjdk platform names to hotspot names
15893 
15894   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
15895   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15896     HOTSPOT_TARGET_OS=bsd
15897   fi
15898 
15899 
15900   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
15901   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
15902     HOTSPOT_TARGET_OS_TYPE=posix
15903   fi
15904 
15905 
15906   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
15907   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15908     HOTSPOT_TARGET_CPU=x86_32
15909   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15910     HOTSPOT_TARGET_CPU=sparc
15911   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15912     HOTSPOT_TARGET_CPU=ppc_64
15913   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15914     HOTSPOT_TARGET_CPU=ppc_64
15915   fi
15916 
15917 
15918   # This is identical with OPENJDK_*, but define anyway for consistency.
15919   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
15920 
15921 
15922   # Setup HOTSPOT_TARGET_CPU_DEFINE
15923   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15924     HOTSPOT_TARGET_CPU_DEFINE=IA32
15925   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15926     HOTSPOT_TARGET_CPU_DEFINE=AMD64
15927   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15928     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15929   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15930     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
15931   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15932     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15933   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15934     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15935 
15936   # The cpu defines below are for zero, we don't support them directly.
15937   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
15938     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15939   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
15940     HOTSPOT_TARGET_CPU_DEFINE=PPC32
15941   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
15942     HOTSPOT_TARGET_CPU_DEFINE=S390
15943   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
15944     HOTSPOT_TARGET_CPU_DEFINE=S390
15945   elif test "x$OPENJDK_TARGET_CPU" != x; then
15946     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
15947   fi
15948 
15949 
15950 
15951 
15952   # Also store the legacy naming of the cpu.
15953   # Ie i586 and amd64 instead of x86 and x86_64
15954   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
15955   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15956     OPENJDK_BUILD_CPU_LEGACY="i586"
15957   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15958     # On all platforms except MacOSX replace x86_64 with amd64.
15959     OPENJDK_BUILD_CPU_LEGACY="amd64"
15960   fi
15961 
15962 
15963   # And the second legacy naming of the cpu.
15964   # Ie i386 and amd64 instead of x86 and x86_64.
15965   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
15966   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15967     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
15968   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15969     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
15970   fi
15971 
15972 
15973   # This is the name of the cpu (but using i386 and amd64 instead of
15974   # x86 and x86_64, respectively), preceeded by a /, to be used when
15975   # locating libraries. On macosx, it's empty, though.
15976   OPENJDK_BUILD_CPU_LIBDIR="/$OPENJDK_BUILD_CPU_LEGACY_LIB"
15977   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
15978     OPENJDK_BUILD_CPU_LIBDIR=""
15979   fi
15980 
15981 
15982   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15983   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15984   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
15985   OPENJDK_BUILD_CPU_ISADIR=""
15986   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
15987     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15988       OPENJDK_BUILD_CPU_ISADIR="/amd64"
15989     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
15990       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
15991     fi
15992   fi
15993 
15994 
15995   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
15996   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
15997   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
15998     # On linux only, we replace x86 with i386.
15999     OPENJDK_BUILD_CPU_OSARCH="i386"
16000   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16001     # On all platforms except macosx, we replace x86_64 with amd64.
16002     OPENJDK_BUILD_CPU_OSARCH="amd64"
16003   fi
16004 
16005 
16006   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16007   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16008     OPENJDK_BUILD_CPU_JLI="i386"
16009   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16010     # On all platforms except macosx, we replace x86_64 with amd64.
16011     OPENJDK_BUILD_CPU_JLI="amd64"
16012   fi
16013   # Now setup the -D flags for building libjli.
16014   OPENJDK_BUILD_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_BUILD_CPU_JLI\"'"
16015   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16016     if test "x$OPENJDK_BUILD_CPU_ARCH" = xsparc; then
16017       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
16018     elif test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then
16019       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
16020     fi
16021   fi
16022 
16023 
16024   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16025       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
16026   else
16027       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
16028   fi
16029 
16030 
16031   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16032   # Macosx is osx and x86_64 is x64
16033   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16034     OPENJDK_BUILD_OS_BUNDLE="osx"
16035   else
16036     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16037   fi
16038   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16039     OPENJDK_BUILD_CPU_BUNDLE="x64"
16040   else
16041     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16042   fi
16043   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16044 
16045 
16046 
16047 
16048   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16049     A_LP64="LP64:="
16050     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16051     # unpack200.exe
16052     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16053       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16054     fi
16055   fi
16056   LP64=$A_LP64
16057 
16058 
16059   if test "x$COMPILE_TYPE" = "xcross"; then
16060     # FIXME: ... or should this include reduced builds..?
16061     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16062   else
16063     DEFINE_CROSS_COMPILE_ARCH=""
16064   fi
16065 
16066 
16067   # Convert openjdk platform names to hotspot names
16068 
16069   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16070   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16071     HOTSPOT_BUILD_OS=bsd
16072   fi
16073 
16074 
16075   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16076   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16077     HOTSPOT_BUILD_OS_TYPE=posix
16078   fi
16079 
16080 
16081   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16082   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16083     HOTSPOT_BUILD_CPU=x86_32
16084   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16085     HOTSPOT_BUILD_CPU=sparc
16086   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16087     HOTSPOT_BUILD_CPU=ppc_64
16088   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16089     HOTSPOT_BUILD_CPU=ppc_64
16090   fi
16091 
16092 
16093   # This is identical with OPENJDK_*, but define anyway for consistency.
16094   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16095 
16096 
16097   # Setup HOTSPOT_BUILD_CPU_DEFINE
16098   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16099     HOTSPOT_BUILD_CPU_DEFINE=IA32
16100   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16101     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16102   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16103     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16104   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16105     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16106   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16107     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16108   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16109     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16110 
16111   # The cpu defines below are for zero, we don't support them directly.
16112   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16113     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16114   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16115     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16116   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16117     HOTSPOT_BUILD_CPU_DEFINE=S390
16118   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16119     HOTSPOT_BUILD_CPU_DEFINE=S390
16120   elif test "x$OPENJDK_BUILD_CPU" != x; then
16121     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16122   fi
16123 
16124 
16125 
16126 
16127   # ZERO_ARCHDEF is used to enable architecture-specific code.
16128   # This is used in legacy hotspot build.
16129   ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE"
16130 
16131 
16132 
16133 
16134 
16135 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16136 
16137   # Save the current directory this script was started from
16138   CURDIR="$PWD"
16139 
16140   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16141   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16142   # was not available at that time.
16143   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16144   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16145     ORIGINAL_PATH="$REWRITTEN_PATH"
16146     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16147 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16148   fi
16149 
16150   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16151     PATH_SEP=";"
16152 
16153   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16154   if test $SRC_ROOT_LENGTH -gt 100; then
16155     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16156   fi
16157 
16158   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16160 $as_echo_n "checking cygwin release... " >&6; }
16161     CYGWIN_VERSION=`$UNAME -r`
16162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16163 $as_echo "$CYGWIN_VERSION" >&6; }
16164     WINDOWS_ENV_VENDOR='cygwin'
16165     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16166 
16167     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16168     if test "x$CYGWIN_VERSION_OLD" != x; then
16169       { $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
16170 $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;}
16171       as_fn_error $? "Cannot continue" "$LINENO" 5
16172     fi
16173     if test "x$CYGPATH" = x; then
16174       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16175     fi
16176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16177 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16178     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16179     cygwin_winpath_root=`cd / ; cmd /c cd | $GREP ".*"`
16180     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16181     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16183 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16184     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16185     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16186     if test "x$test_cygdrive_prefix" = x; then
16187       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16188     fi
16189   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16191 $as_echo_n "checking msys release... " >&6; }
16192     MSYS_VERSION=`$UNAME -r`
16193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16194 $as_echo "$MSYS_VERSION" >&6; }
16195 
16196     WINDOWS_ENV_VENDOR='msys'
16197     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16198 
16199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16200 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16201     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16202     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16203 
16204   windows_path="$MSYS_ROOT_PATH"
16205   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16206     unix_path=`$CYGPATH -u "$windows_path"`
16207     MSYS_ROOT_PATH="$unix_path"
16208   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16209     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16210     MSYS_ROOT_PATH="$unix_path"
16211   fi
16212 
16213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16214 $as_echo "$MSYS_ROOT_PATH" >&6; }
16215     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16216   else
16217     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16218   fi
16219 
16220   # Test if windows or unix (cygwin/msys) find is first in path.
16221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16222 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16223   FIND_BINARY_OUTPUT=`find --version 2>&1`
16224   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16226 $as_echo "unix style" >&6; }
16227   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16229 $as_echo "Windows" >&6; }
16230     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16231 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16232     { $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
16233 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16234     as_fn_error $? "Cannot continue" "$LINENO" 5
16235   else
16236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16237 $as_echo "unknown" >&6; }
16238     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16239 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16240   fi
16241 
16242   else
16243     PATH_SEP=":"
16244   fi
16245 
16246 
16247   # We get the top-level directory from the supporting wrappers.
16248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16249 $as_echo_n "checking for top-level directory... " >&6; }
16250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16251 $as_echo "$TOPDIR" >&6; }
16252 
16253 
16254   # Save the original version of TOPDIR for string comparisons
16255   ORIGINAL_TOPDIR="$TOPDIR"
16256 
16257 
16258   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16259 
16260   # Only process if variable expands to non-empty
16261 
16262   if test "x$CURDIR" != x; then
16263     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16264 
16265   # Input might be given as Windows format, start by converting to
16266   # unix format.
16267   path="$CURDIR"
16268   new_path=`$CYGPATH -u "$path"`
16269 
16270   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16271   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16272   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16273   # "foo.exe" is OK but "foo" is an error.
16274   #
16275   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16276   # It is also a way to make sure we got the proper file name for the real test later on.
16277   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16278   if test "x$test_shortpath" = x; then
16279     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16280 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16281     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16282   fi
16283 
16284   # Call helper function which possibly converts this using DOS-style short mode.
16285   # If so, the updated path is stored in $new_path.
16286 
16287   input_path="$new_path"
16288   # Check if we need to convert this using DOS-style short mode. If the path
16289   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16290   # take no chances and rewrite it.
16291   # Note: m4 eats our [], so we need to use [ and ] instead.
16292   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16293   if test "x$has_forbidden_chars" != x; then
16294     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16295     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16296     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16297     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16298       # Going to short mode and back again did indeed matter. Since short mode is
16299       # case insensitive, let's make it lowercase to improve readability.
16300       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16301       # Now convert it back to Unix-style (cygpath)
16302       input_path=`$CYGPATH -u "$shortmode_path"`
16303       new_path="$input_path"
16304     fi
16305   fi
16306 
16307   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16308   if test "x$test_cygdrive_prefix" = x; then
16309     # As a simple fix, exclude /usr/bin since it's not a real path.
16310     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16311       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16312       # a path prefixed by /cygdrive for fixpath to work.
16313       new_path="$CYGWIN_ROOT_PATH$input_path"
16314     fi
16315   fi
16316 
16317 
16318   if test "x$path" != "x$new_path"; then
16319     CURDIR="$new_path"
16320     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16321 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16322   fi
16323 
16324     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16325 
16326   path="$CURDIR"
16327   has_colon=`$ECHO $path | $GREP ^.:`
16328   new_path="$path"
16329   if test "x$has_colon" = x; then
16330     # Not in mixed or Windows style, start by that.
16331     new_path=`cmd //c echo $path`
16332   fi
16333 
16334 
16335   input_path="$new_path"
16336   # Check if we need to convert this using DOS-style short mode. If the path
16337   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16338   # take no chances and rewrite it.
16339   # Note: m4 eats our [], so we need to use [ and ] instead.
16340   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16341   if test "x$has_forbidden_chars" != x; then
16342     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16343     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16344   fi
16345 
16346 
16347   windows_path="$new_path"
16348   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16349     unix_path=`$CYGPATH -u "$windows_path"`
16350     new_path="$unix_path"
16351   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16352     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16353     new_path="$unix_path"
16354   fi
16355 
16356   if test "x$path" != "x$new_path"; then
16357     CURDIR="$new_path"
16358     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16359 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16360   fi
16361 
16362   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16363   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16364 
16365     else
16366       # We're on a unix platform. Hooray! :)
16367       path="$CURDIR"
16368       has_space=`$ECHO "$path" | $GREP " "`
16369       if test "x$has_space" != x; then
16370         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16371 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16372         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16373       fi
16374 
16375       # Use eval to expand a potential ~
16376       eval path="$path"
16377       if test ! -f "$path" && test ! -d "$path"; then
16378         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16379       fi
16380 
16381       if test -d "$path"; then
16382         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16383       else
16384         dir="`$DIRNAME "$path"`"
16385         base="`$BASENAME "$path"`"
16386         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16387       fi
16388     fi
16389   fi
16390 
16391 
16392   # Only process if variable expands to non-empty
16393 
16394   if test "x$TOPDIR" != x; then
16395     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16396 
16397   # Input might be given as Windows format, start by converting to
16398   # unix format.
16399   path="$TOPDIR"
16400   new_path=`$CYGPATH -u "$path"`
16401 
16402   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16403   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16404   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16405   # "foo.exe" is OK but "foo" is an error.
16406   #
16407   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16408   # It is also a way to make sure we got the proper file name for the real test later on.
16409   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16410   if test "x$test_shortpath" = x; then
16411     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16412 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16413     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16414   fi
16415 
16416   # Call helper function which possibly converts this using DOS-style short mode.
16417   # If so, the updated path is stored in $new_path.
16418 
16419   input_path="$new_path"
16420   # Check if we need to convert this using DOS-style short mode. If the path
16421   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16422   # take no chances and rewrite it.
16423   # Note: m4 eats our [], so we need to use [ and ] instead.
16424   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16425   if test "x$has_forbidden_chars" != x; then
16426     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16427     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16428     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16429     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16430       # Going to short mode and back again did indeed matter. Since short mode is
16431       # case insensitive, let's make it lowercase to improve readability.
16432       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16433       # Now convert it back to Unix-style (cygpath)
16434       input_path=`$CYGPATH -u "$shortmode_path"`
16435       new_path="$input_path"
16436     fi
16437   fi
16438 
16439   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16440   if test "x$test_cygdrive_prefix" = x; then
16441     # As a simple fix, exclude /usr/bin since it's not a real path.
16442     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16443       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16444       # a path prefixed by /cygdrive for fixpath to work.
16445       new_path="$CYGWIN_ROOT_PATH$input_path"
16446     fi
16447   fi
16448 
16449 
16450   if test "x$path" != "x$new_path"; then
16451     TOPDIR="$new_path"
16452     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16453 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16454   fi
16455 
16456     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16457 
16458   path="$TOPDIR"
16459   has_colon=`$ECHO $path | $GREP ^.:`
16460   new_path="$path"
16461   if test "x$has_colon" = x; then
16462     # Not in mixed or Windows style, start by that.
16463     new_path=`cmd //c echo $path`
16464   fi
16465 
16466 
16467   input_path="$new_path"
16468   # Check if we need to convert this using DOS-style short mode. If the path
16469   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16470   # take no chances and rewrite it.
16471   # Note: m4 eats our [], so we need to use [ and ] instead.
16472   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16473   if test "x$has_forbidden_chars" != x; then
16474     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16475     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16476   fi
16477 
16478 
16479   windows_path="$new_path"
16480   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16481     unix_path=`$CYGPATH -u "$windows_path"`
16482     new_path="$unix_path"
16483   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16484     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16485     new_path="$unix_path"
16486   fi
16487 
16488   if test "x$path" != "x$new_path"; then
16489     TOPDIR="$new_path"
16490     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16491 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16492   fi
16493 
16494   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16495   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16496 
16497     else
16498       # We're on a unix platform. Hooray! :)
16499       path="$TOPDIR"
16500       has_space=`$ECHO "$path" | $GREP " "`
16501       if test "x$has_space" != x; then
16502         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16503 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16504         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16505       fi
16506 
16507       # Use eval to expand a potential ~
16508       eval path="$path"
16509       if test ! -f "$path" && test ! -d "$path"; then
16510         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16511       fi
16512 
16513       if test -d "$path"; then
16514         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16515       else
16516         dir="`$DIRNAME "$path"`"
16517         base="`$BASENAME "$path"`"
16518         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16519       fi
16520     fi
16521   fi
16522 
16523   # SRC_ROOT is a traditional alias for TOPDIR.
16524   SRC_ROOT=$TOPDIR
16525 
16526   # Calculate a canonical version of TOPDIR for string comparisons
16527   CANONICAL_TOPDIR=$TOPDIR
16528 
16529   if test "x$OPENJDK_BUILD_OS" != xwindows; then
16530     # Follow a chain of symbolic links. Use readlink
16531     # where it exists, else fall back to horribly
16532     # complicated shell code.
16533     if test "x$READLINK_TESTED" != yes; then
16534       # On MacOSX there is a readlink tool with a different
16535       # purpose than the GNU readlink tool. Check the found readlink.
16536       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
16537       if test "x$ISGNU" = x; then
16538         # A readlink that we do not know how to use.
16539         # Are there other non-GNU readlinks out there?
16540         READLINK_TESTED=yes
16541         READLINK=
16542       fi
16543     fi
16544 
16545     if test "x$READLINK" != x; then
16546       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
16547     else
16548       # Save the current directory for restoring afterwards
16549       STARTDIR=$PWD
16550       COUNTER=0
16551       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
16552       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
16553       cd $sym_link_dir
16554       # Use -P flag to resolve symlinks in directories.
16555       cd `$THEPWDCMD -P`
16556       sym_link_dir=`$THEPWDCMD -P`
16557       # Resolve file symlinks
16558       while test $COUNTER -lt 20; do
16559         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
16560         if test "x$ISLINK" == x; then
16561           # This is not a symbolic link! We are done!
16562           break
16563         fi
16564         # Again resolve directory symlinks since the target of the just found
16565         # link could be in a different directory
16566         cd `$DIRNAME $ISLINK`
16567         sym_link_dir=`$THEPWDCMD -P`
16568         sym_link_file=`$BASENAME $ISLINK`
16569         let COUNTER=COUNTER+1
16570       done
16571       cd $STARTDIR
16572       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
16573     fi
16574   fi
16575 
16576 
16577 
16578   # Locate the directory of this script.
16579   AUTOCONF_DIR=$TOPDIR/common/autoconf
16580 
16581   # Setup username (for use in adhoc version strings etc)
16582   # Outer [ ] to quote m4.
16583    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16584 
16585 
16586 
16587 # Check if it's a pure open build or if custom sources are to be used.
16588 
16589   # Check whether --enable-openjdk-only was given.
16590 if test "${enable_openjdk_only+set}" = set; then :
16591   enableval=$enable_openjdk_only;
16592 else
16593   enable_openjdk_only="no"
16594 fi
16595 
16596 
16597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16598 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16600 $as_echo "$enable_openjdk_only" >&6; }
16601   if test "x$enable_openjdk_only" = "xyes"; then
16602     SUPPRESS_CUSTOM_EXTENSIONS="true"
16603   elif test "x$enable_openjdk_only" = "xno"; then
16604     SUPPRESS_CUSTOM_EXTENSIONS="false"
16605   else
16606     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16607   fi
16608 
16609   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16610   # the IncludeCustomExtension macro.
16611 
16612 
16613 # Check whether --with-custom-make-dir was given.
16614 if test "${with_custom_make_dir+set}" = set; then :
16615   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
16616 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16617 fi
16618 
16619 
16620 
16621 
16622 # These are needed to be able to create a configuration name (and thus the output directory)
16623 
16624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16625 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16626 
16627 # Check whether --with-jdk-variant was given.
16628 if test "${with_jdk_variant+set}" = set; then :
16629   withval=$with_jdk_variant;
16630 fi
16631 
16632 
16633   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16634     JDK_VARIANT="normal"
16635   else
16636     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16637   fi
16638 
16639 
16640 
16641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16642 $as_echo "$JDK_VARIANT" >&6; }
16643 
16644 
16645   DEBUG_LEVEL="release"
16646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16647 $as_echo_n "checking which debug level to use... " >&6; }
16648   # Check whether --enable-debug was given.
16649 if test "${enable_debug+set}" = set; then :
16650   enableval=$enable_debug;
16651         ENABLE_DEBUG="${enableval}"
16652         DEBUG_LEVEL="fastdebug"
16653 
16654 else
16655   ENABLE_DEBUG="no"
16656 fi
16657 
16658 
16659 
16660 # Check whether --with-debug-level was given.
16661 if test "${with_debug_level+set}" = set; then :
16662   withval=$with_debug_level;
16663         DEBUG_LEVEL="${withval}"
16664         if test "x$ENABLE_DEBUG" = xyes; then
16665           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16666         fi
16667 
16668 fi
16669 
16670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16671 $as_echo "$DEBUG_LEVEL" >&6; }
16672 
16673   if test "x$DEBUG_LEVEL" != xrelease && \
16674       test "x$DEBUG_LEVEL" != xoptimized && \
16675       test "x$DEBUG_LEVEL" != xfastdebug && \
16676       test "x$DEBUG_LEVEL" != xslowdebug; then
16677     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16678   fi
16679 
16680   # Translate DEBUG_LEVEL to debug level used by Hotspot
16681   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16682   if test "x$DEBUG_LEVEL" = xrelease; then
16683     HOTSPOT_DEBUG_LEVEL="product"
16684   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16685     HOTSPOT_DEBUG_LEVEL="debug"
16686   fi
16687 
16688   if test "x$DEBUG_LEVEL" = xoptimized; then
16689     # The debug level 'optimized' is a little special because it is currently only
16690     # applicable to the HotSpot build where it means to build a completely
16691     # optimized version of the VM without any debugging code (like for the
16692     # 'release' debug level which is called 'product' in the HotSpot build) but
16693     # with the exception that it can contain additional code which is otherwise
16694     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16695     # test new and/or experimental features which are not intended for customer
16696     # shipment. Because these new features need to be tested and benchmarked in
16697     # real world scenarios, we want to build the containing JDK at the 'release'
16698     # debug level.
16699     DEBUG_LEVEL="release"
16700   fi
16701 
16702 
16703 
16704 
16705 
16706 
16707 # Check whether --with-jvm-variants was given.
16708 if test "${with_jvm_variants+set}" = set; then :
16709   withval=$with_jvm_variants;
16710 fi
16711 
16712 
16713   if test "x$with_jvm_variants" = x; then
16714     with_jvm_variants="server"
16715   fi
16716   JVM_VARIANTS_OPT="$with_jvm_variants"
16717 
16718   # Has the user listed more than one variant?
16719   # Additional [] needed to keep m4 from mangling shell constructs.
16720   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
16721     BUILDING_MULTIPLE_JVM_VARIANTS=true
16722   else
16723     BUILDING_MULTIPLE_JVM_VARIANTS=false
16724   fi
16725   # Replace the commas with AND for use in the build directory name.
16726   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
16727 
16728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
16729 $as_echo_n "checking which variants of the JVM to build... " >&6; }
16730   # JVM_VARIANTS is a space-separated list.
16731   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
16732   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
16733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
16734 $as_echo "$JVM_VARIANTS" >&6; }
16735 
16736   # Check that the selected variants are valid
16737 
16738   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
16739   # Notice that the original variant failes on SLES 10 and 11
16740   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
16741   STACK=${JVM_VARIANTS// /$'\n'}
16742   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16743   if test "x$INVALID_VARIANTS" != x; then
16744     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
16745 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
16746     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
16747   fi
16748 
16749   # All "special" variants share the same output directory ("server")
16750   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
16751   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
16752   STACK=${JVM_VARIANTS// /$'\n'}
16753   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16754   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
16755     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
16756   fi
16757 
16758 
16759 
16760 
16761   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
16762     # zero behaves as a platform and rewrites these values. This is really weird. :(
16763     # We are guaranteed that we do not build any other variants when building zero.
16764     HOTSPOT_TARGET_CPU=zero
16765     HOTSPOT_TARGET_CPU_ARCH=zero
16766   fi
16767 
16768 
16769 # With basic setup done, call the custom early hook.
16770 
16771 
16772 # Check if we have devkits, extra paths or sysroot set.
16773 
16774 
16775 # Check whether --with-devkit was given.
16776 if test "${with_devkit+set}" = set; then :
16777   withval=$with_devkit;
16778 
16779   # Only process if variable expands to non-empty
16780 
16781   if test "x$with_devkit" != x; then
16782     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16783 
16784   # Input might be given as Windows format, start by converting to
16785   # unix format.
16786   path="$with_devkit"
16787   new_path=`$CYGPATH -u "$path"`
16788 
16789   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16790   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16791   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16792   # "foo.exe" is OK but "foo" is an error.
16793   #
16794   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16795   # It is also a way to make sure we got the proper file name for the real test later on.
16796   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16797   if test "x$test_shortpath" = x; then
16798     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16799 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16800     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
16801   fi
16802 
16803   # Call helper function which possibly converts this using DOS-style short mode.
16804   # If so, the updated path is stored in $new_path.
16805 
16806   input_path="$new_path"
16807   # Check if we need to convert this using DOS-style short mode. If the path
16808   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16809   # take no chances and rewrite it.
16810   # Note: m4 eats our [], so we need to use [ and ] instead.
16811   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16812   if test "x$has_forbidden_chars" != x; then
16813     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16814     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16815     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16816     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16817       # Going to short mode and back again did indeed matter. Since short mode is
16818       # case insensitive, let's make it lowercase to improve readability.
16819       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16820       # Now convert it back to Unix-style (cygpath)
16821       input_path=`$CYGPATH -u "$shortmode_path"`
16822       new_path="$input_path"
16823     fi
16824   fi
16825 
16826   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16827   if test "x$test_cygdrive_prefix" = x; then
16828     # As a simple fix, exclude /usr/bin since it's not a real path.
16829     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16830       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16831       # a path prefixed by /cygdrive for fixpath to work.
16832       new_path="$CYGWIN_ROOT_PATH$input_path"
16833     fi
16834   fi
16835 
16836 
16837   if test "x$path" != "x$new_path"; then
16838     with_devkit="$new_path"
16839     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16840 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16841   fi
16842 
16843     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16844 
16845   path="$with_devkit"
16846   has_colon=`$ECHO $path | $GREP ^.:`
16847   new_path="$path"
16848   if test "x$has_colon" = x; then
16849     # Not in mixed or Windows style, start by that.
16850     new_path=`cmd //c echo $path`
16851   fi
16852 
16853 
16854   input_path="$new_path"
16855   # Check if we need to convert this using DOS-style short mode. If the path
16856   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16857   # take no chances and rewrite it.
16858   # Note: m4 eats our [], so we need to use [ and ] instead.
16859   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16860   if test "x$has_forbidden_chars" != x; then
16861     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16862     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16863   fi
16864 
16865 
16866   windows_path="$new_path"
16867   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16868     unix_path=`$CYGPATH -u "$windows_path"`
16869     new_path="$unix_path"
16870   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16871     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16872     new_path="$unix_path"
16873   fi
16874 
16875   if test "x$path" != "x$new_path"; then
16876     with_devkit="$new_path"
16877     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16878 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16879   fi
16880 
16881   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16882   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16883 
16884     else
16885       # We're on a unix platform. Hooray! :)
16886       path="$with_devkit"
16887       has_space=`$ECHO "$path" | $GREP " "`
16888       if test "x$has_space" != x; then
16889         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16890 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16891         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16892       fi
16893 
16894       # Use eval to expand a potential ~
16895       eval path="$path"
16896       if test ! -f "$path" && test ! -d "$path"; then
16897         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
16898       fi
16899 
16900       if test -d "$path"; then
16901         with_devkit="`cd "$path"; $THEPWDCMD -L`"
16902       else
16903         dir="`$DIRNAME "$path"`"
16904         base="`$BASENAME "$path"`"
16905         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
16906       fi
16907     fi
16908   fi
16909 
16910         DEVKIT_ROOT="$with_devkit"
16911         # Check for a meta data info file in the root of the devkit
16912         if test -f "$DEVKIT_ROOT/devkit.info"; then
16913           . $DEVKIT_ROOT/devkit.info
16914           # This potentially sets the following:
16915           # A descriptive name of the devkit
16916 
16917   if test "x$DEVKIT_NAME" = x; then
16918     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
16919   fi
16920 
16921           # Corresponds to --with-extra-path
16922 
16923   if test "x$DEVKIT_EXTRA_PATH" = x; then
16924     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
16925   fi
16926 
16927           # Corresponds to --with-toolchain-path
16928 
16929   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16930     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
16931   fi
16932 
16933           # Corresponds to --with-sysroot
16934 
16935   if test "x$DEVKIT_SYSROOT" = x; then
16936     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
16937   fi
16938 
16939 
16940           # Identifies the Visual Studio version in the devkit
16941 
16942   if test "x$DEVKIT_VS_VERSION" = x; then
16943     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
16944   fi
16945 
16946           # The Visual Studio include environment variable
16947 
16948   if test "x$DEVKIT_VS_INCLUDE" = x; then
16949     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
16950   fi
16951 
16952           # The Visual Studio lib environment variable
16953 
16954   if test "x$DEVKIT_VS_LIB" = x; then
16955     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
16956   fi
16957 
16958           # Corresponds to --with-msvcr-dll
16959 
16960   if test "x$DEVKIT_MSVCR_DLL" = x; then
16961     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
16962   fi
16963 
16964           # Corresponds to --with-msvcp-dll
16965 
16966   if test "x$DEVKIT_MSVCP_DLL" = x; then
16967     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
16968   fi
16969 
16970         fi
16971 
16972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
16973 $as_echo_n "checking for devkit... " >&6; }
16974         if test "x$DEVKIT_NAME" != x; then
16975           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
16976 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
16977         else
16978           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
16979 $as_echo "$DEVKIT_ROOT" >&6; }
16980         fi
16981 
16982 
16983   if test "x$DEVKIT_EXTRA_PATH" != x; then
16984     if test "x$EXTRA_PATH" = x; then
16985       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
16986     else
16987       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
16988     fi
16989   fi
16990 
16991 
16992         # Fallback default of just /bin if DEVKIT_PATH is not defined
16993         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16994           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
16995         fi
16996 
16997   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
16998     if test "x$TOOLCHAIN_PATH" = x; then
16999       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17000     else
17001       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17002     fi
17003   fi
17004 
17005 
17006         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17007         # places for backwards compatiblity.
17008         if test "x$DEVKIT_SYSROOT" != x; then
17009           SYSROOT="$DEVKIT_SYSROOT"
17010         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17011           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17012         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17013           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17014         fi
17015 
17016 
17017 fi
17018 
17019 
17020   # You can force the sysroot if the sysroot encoded into the compiler tools
17021   # is not correct.
17022 
17023 # Check whether --with-sys-root was given.
17024 if test "${with_sys_root+set}" = set; then :
17025   withval=$with_sys_root; SYSROOT=$with_sys_root
17026 
17027 fi
17028 
17029 
17030 
17031 # Check whether --with-sysroot was given.
17032 if test "${with_sysroot+set}" = set; then :
17033   withval=$with_sysroot; SYSROOT=$with_sysroot
17034 
17035 fi
17036 
17037 
17038 
17039 # Check whether --with-tools-dir was given.
17040 if test "${with_tools_dir+set}" = set; then :
17041   withval=$with_tools_dir;
17042   if test "x$with_tools_dir" != x; then
17043     if test "x$TOOLCHAIN_PATH" = x; then
17044       TOOLCHAIN_PATH="$with_tools_dir"
17045     else
17046       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17047     fi
17048   fi
17049 
17050 
17051 fi
17052 
17053 
17054 
17055 # Check whether --with-toolchain-path was given.
17056 if test "${with_toolchain_path+set}" = set; then :
17057   withval=$with_toolchain_path;
17058   if test "x$with_toolchain_path" != x; then
17059     if test "x$TOOLCHAIN_PATH" = x; then
17060       TOOLCHAIN_PATH="$with_toolchain_path"
17061     else
17062       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17063     fi
17064   fi
17065 
17066 
17067 fi
17068 
17069 
17070 
17071 # Check whether --with-extra-path was given.
17072 if test "${with_extra_path+set}" = set; then :
17073   withval=$with_extra_path;
17074   if test "x$with_extra_path" != x; then
17075     if test "x$EXTRA_PATH" = x; then
17076       EXTRA_PATH="$with_extra_path"
17077     else
17078       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17079     fi
17080   fi
17081 
17082 
17083 fi
17084 
17085 
17086   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17087     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17088     # If not, detect if Xcode is installed by running xcodebuild -version
17089     # if no Xcode installed, xcodebuild exits with 1
17090     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17091     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17092       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17093       # fall back on the stub binary in /usr/bin/xcodebuild
17094       # Extract the first word of "xcodebuild", so it can be a program name with args.
17095 set dummy xcodebuild; ac_word=$2
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17097 $as_echo_n "checking for $ac_word... " >&6; }
17098 if ${ac_cv_path_XCODEBUILD+:} false; then :
17099   $as_echo_n "(cached) " >&6
17100 else
17101   case $XCODEBUILD in
17102   [\\/]* | ?:[\\/]*)
17103   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17104   ;;
17105   *)
17106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17107 for as_dir in $TOOLCHAIN_PATH
17108 do
17109   IFS=$as_save_IFS
17110   test -z "$as_dir" && as_dir=.
17111     for ac_exec_ext in '' $ac_executable_extensions; do
17112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17113     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17115     break 2
17116   fi
17117 done
17118   done
17119 IFS=$as_save_IFS
17120 
17121   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17122   ;;
17123 esac
17124 fi
17125 XCODEBUILD=$ac_cv_path_XCODEBUILD
17126 if test -n "$XCODEBUILD"; then
17127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17128 $as_echo "$XCODEBUILD" >&6; }
17129 else
17130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131 $as_echo "no" >&6; }
17132 fi
17133 
17134 
17135     else
17136       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17137       # when only the command line tools are installed there are no SDKs, so headers
17138       # are copied into the system frameworks
17139       XCODEBUILD=
17140 
17141     fi
17142 
17143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17144 $as_echo_n "checking for sdk name... " >&6; }
17145 
17146 # Check whether --with-sdk-name was given.
17147 if test "${with_sdk_name+set}" = set; then :
17148   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17149 
17150 fi
17151 
17152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17153 $as_echo "$SDKNAME" >&6; }
17154 
17155     # if toolchain path is specified then don't rely on system headers, they may not compile
17156     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17157     test -z "$TOOLCHAIN_PATH" && \
17158       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17159 
17160     if test -z "$SYSROOT"; then
17161       if test -n "$XCODEBUILD"; then
17162         # if we don't have system headers, use default SDK name (last resort)
17163         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17164           SDKNAME=${SDKNAME:-macosx}
17165         fi
17166 
17167         if test -n "$SDKNAME"; then
17168           # Call xcodebuild to determine SYSROOT
17169           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17170         fi
17171       else
17172         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17173           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
17174         fi
17175       fi
17176     else
17177       # warn user if --with-sdk-name was also set
17178       if test -n "$with_sdk_name"; then
17179         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17180 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17181       fi
17182     fi
17183 
17184     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17185       # If no system framework headers, then SYSROOT must be set, or we won't build
17186       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
17187     fi
17188 
17189     # Perform a basic sanity test
17190     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17191       if test -z "$SYSROOT"; then
17192         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
17193       else
17194         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17195       fi
17196     fi
17197 
17198     # set SDKROOT too, Xcode tools will pick it up
17199     SDKROOT=$SYSROOT
17200 
17201   fi
17202 
17203   # Prepend the extra path to the global path
17204 
17205   if test "x$EXTRA_PATH" != x; then
17206     if test "x$PATH" = x; then
17207       PATH="$EXTRA_PATH"
17208     else
17209       PATH="$EXTRA_PATH:$PATH"
17210     fi
17211   fi
17212 
17213 
17214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17215 $as_echo_n "checking for sysroot... " >&6; }
17216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17217 $as_echo "$SYSROOT" >&6; }
17218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17219 $as_echo_n "checking for toolchain path... " >&6; }
17220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17221 $as_echo "$TOOLCHAIN_PATH" >&6; }
17222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17223 $as_echo_n "checking for extra path... " >&6; }
17224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17225 $as_echo "$EXTRA_PATH" >&6; }
17226 
17227 
17228 # To properly create a configuration name, we need to have the OpenJDK target
17229 # and options (variants and debug level) parsed.
17230 
17231 
17232 
17233 # Check whether --with-conf-name was given.
17234 if test "${with_conf_name+set}" = set; then :
17235   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17236 fi
17237 
17238 
17239   # Test from where we are running configure, in or outside of src root.
17240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17241 $as_echo_n "checking where to store configuration... " >&6; }
17242   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
17243       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
17244       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
17245     # We are running configure from the src root.
17246     # Create a default ./build/target-variant-debuglevel output root.
17247     if test "x${CONF_NAME}" = x; then
17248       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17249 $as_echo "in default location" >&6; }
17250       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17251     else
17252       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17253 $as_echo "in build directory with custom name" >&6; }
17254     fi
17255     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
17256     $MKDIR -p "$OUTPUT_ROOT"
17257     if test ! -d "$OUTPUT_ROOT"; then
17258       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
17259     fi
17260   else
17261     # We are running configure from outside of the src dir.
17262     # Then use the current directory as output dir!
17263     # If configuration is situated in normal build directory, just use the build
17264     # directory name as configuration name, otherwise use the complete path.
17265     if test "x${CONF_NAME}" = x; then
17266       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
17267     fi
17268     OUTPUT_ROOT="$CURDIR"
17269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17270 $as_echo "in current directory" >&6; }
17271 
17272     # WARNING: This might be a bad thing to do. You need to be sure you want to
17273     # have a configuration in this directory. Do some sanity checks!
17274 
17275     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
17276       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17277       # other files
17278       files_present=`$LS $OUTPUT_ROOT`
17279       # Configure has already touched config.log and confdefs.h in the current dir when this check
17280       # is performed.
17281       filtered_files=`$ECHO "$files_present" \
17282           | $SED -e 's/config.log//g' \
17283               -e 's/configure.log//g' \
17284               -e 's/confdefs.h//g' \
17285               -e 's/ //g' \
17286           | $TR -d '\n'`
17287       if test "x$filtered_files" != x; then
17288         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17289 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17290         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17291 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17292         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17293 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17294         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17295 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17296         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17297 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17298         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
17299 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
17300         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17301 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17302         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17303       fi
17304     fi
17305   fi
17306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17307 $as_echo_n "checking what configuration name to use... " >&6; }
17308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17309 $as_echo "$CONF_NAME" >&6; }
17310 
17311 
17312   # Only process if variable expands to non-empty
17313 
17314   if test "x$OUTPUT_ROOT" != x; then
17315     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17316 
17317   # Input might be given as Windows format, start by converting to
17318   # unix format.
17319   path="$OUTPUT_ROOT"
17320   new_path=`$CYGPATH -u "$path"`
17321 
17322   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17323   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17324   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17325   # "foo.exe" is OK but "foo" is an error.
17326   #
17327   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17328   # It is also a way to make sure we got the proper file name for the real test later on.
17329   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17330   if test "x$test_shortpath" = x; then
17331     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17332 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17333     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
17334   fi
17335 
17336   # Call helper function which possibly converts this using DOS-style short mode.
17337   # If so, the updated path is stored in $new_path.
17338 
17339   input_path="$new_path"
17340   # Check if we need to convert this using DOS-style short mode. If the path
17341   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17342   # take no chances and rewrite it.
17343   # Note: m4 eats our [], so we need to use [ and ] instead.
17344   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17345   if test "x$has_forbidden_chars" != x; then
17346     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17347     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17348     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17349     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17350       # Going to short mode and back again did indeed matter. Since short mode is
17351       # case insensitive, let's make it lowercase to improve readability.
17352       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17353       # Now convert it back to Unix-style (cygpath)
17354       input_path=`$CYGPATH -u "$shortmode_path"`
17355       new_path="$input_path"
17356     fi
17357   fi
17358 
17359   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17360   if test "x$test_cygdrive_prefix" = x; then
17361     # As a simple fix, exclude /usr/bin since it's not a real path.
17362     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17363       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17364       # a path prefixed by /cygdrive for fixpath to work.
17365       new_path="$CYGWIN_ROOT_PATH$input_path"
17366     fi
17367   fi
17368 
17369 
17370   if test "x$path" != "x$new_path"; then
17371     OUTPUT_ROOT="$new_path"
17372     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17373 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17374   fi
17375 
17376     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17377 
17378   path="$OUTPUT_ROOT"
17379   has_colon=`$ECHO $path | $GREP ^.:`
17380   new_path="$path"
17381   if test "x$has_colon" = x; then
17382     # Not in mixed or Windows style, start by that.
17383     new_path=`cmd //c echo $path`
17384   fi
17385 
17386 
17387   input_path="$new_path"
17388   # Check if we need to convert this using DOS-style short mode. If the path
17389   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17390   # take no chances and rewrite it.
17391   # Note: m4 eats our [], so we need to use [ and ] instead.
17392   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17393   if test "x$has_forbidden_chars" != x; then
17394     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17395     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17396   fi
17397 
17398 
17399   windows_path="$new_path"
17400   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17401     unix_path=`$CYGPATH -u "$windows_path"`
17402     new_path="$unix_path"
17403   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17404     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17405     new_path="$unix_path"
17406   fi
17407 
17408   if test "x$path" != "x$new_path"; then
17409     OUTPUT_ROOT="$new_path"
17410     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17411 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17412   fi
17413 
17414   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17415   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17416 
17417     else
17418       # We're on a unix platform. Hooray! :)
17419       path="$OUTPUT_ROOT"
17420       has_space=`$ECHO "$path" | $GREP " "`
17421       if test "x$has_space" != x; then
17422         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17423 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17424         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17425       fi
17426 
17427       # Use eval to expand a potential ~
17428       eval path="$path"
17429       if test ! -f "$path" && test ! -d "$path"; then
17430         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
17431       fi
17432 
17433       if test -d "$path"; then
17434         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
17435       else
17436         dir="`$DIRNAME "$path"`"
17437         base="`$BASENAME "$path"`"
17438         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
17439       fi
17440     fi
17441   fi
17442 
17443 
17444   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
17445   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17446 
17447   SPEC=$OUTPUT_ROOT/spec.gmk
17448 
17449   CONF_NAME=$CONF_NAME
17450 
17451   OUTPUT_ROOT=$OUTPUT_ROOT
17452 
17453 
17454 
17455   # The spec.gmk file contains all variables for the make system.
17456   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17457 
17458   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17459   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17460 
17461   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17462   ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17463 
17464   # The compare.sh is used to compare the build output to other builds.
17465   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17466 
17467   # The generated Makefile knows where the spec.gmk is and where the source is.
17468   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
17469   # which will look for generated configurations
17470   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
17471 
17472 
17473 
17474 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17475 
17476   for ac_prog in apt-get yum port pkgutil pkgadd
17477 do
17478   # Extract the first word of "$ac_prog", so it can be a program name with args.
17479 set dummy $ac_prog; ac_word=$2
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17481 $as_echo_n "checking for $ac_word... " >&6; }
17482 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17483   $as_echo_n "(cached) " >&6
17484 else
17485   if test -n "$PKGHANDLER"; then
17486   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17487 else
17488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17489 for as_dir in $PATH
17490 do
17491   IFS=$as_save_IFS
17492   test -z "$as_dir" && as_dir=.
17493     for ac_exec_ext in '' $ac_executable_extensions; do
17494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17495     ac_cv_prog_PKGHANDLER="$ac_prog"
17496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17497     break 2
17498   fi
17499 done
17500   done
17501 IFS=$as_save_IFS
17502 
17503 fi
17504 fi
17505 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17506 if test -n "$PKGHANDLER"; then
17507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17508 $as_echo "$PKGHANDLER" >&6; }
17509 else
17510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17511 $as_echo "no" >&6; }
17512 fi
17513 
17514 
17515   test -n "$PKGHANDLER" && break
17516 done
17517 
17518 
17519 
17520 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17521 
17522 
17523 
17524   # Publish this variable in the help.
17525 
17526 
17527   if [ -z "${MAKE+x}" ]; then
17528     # The variable is not set by user, try to locate tool using the code snippet
17529 
17530     # Try our hardest to locate a correct version of GNU make
17531     for ac_prog in gmake
17532 do
17533   # Extract the first word of "$ac_prog", so it can be a program name with args.
17534 set dummy $ac_prog; ac_word=$2
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17536 $as_echo_n "checking for $ac_word... " >&6; }
17537 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17538   $as_echo_n "(cached) " >&6
17539 else
17540   case $CHECK_GMAKE in
17541   [\\/]* | ?:[\\/]*)
17542   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17543   ;;
17544   *)
17545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17546 for as_dir in $PATH
17547 do
17548   IFS=$as_save_IFS
17549   test -z "$as_dir" && as_dir=.
17550     for ac_exec_ext in '' $ac_executable_extensions; do
17551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17552     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17554     break 2
17555   fi
17556 done
17557   done
17558 IFS=$as_save_IFS
17559 
17560   ;;
17561 esac
17562 fi
17563 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17564 if test -n "$CHECK_GMAKE"; then
17565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17566 $as_echo "$CHECK_GMAKE" >&6; }
17567 else
17568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17569 $as_echo "no" >&6; }
17570 fi
17571 
17572 
17573   test -n "$CHECK_GMAKE" && break
17574 done
17575 
17576 
17577   MAKE_CANDIDATE=""$CHECK_GMAKE""
17578   DESCRIPTION="gmake in PATH"
17579 
17580   # On Cygwin, we require a newer version of make than on other platforms
17581   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17582     MAKE_VERSION_EXPR="-e 4\."
17583     MAKE_REQUIRED_VERSION="4.0"
17584    else
17585     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17586     MAKE_REQUIRED_VERSION="3.81"
17587   fi
17588 
17589   if test "x$MAKE_CANDIDATE" != x; then
17590     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17591 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17592     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17593     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17594     if test "x$IS_GNU_MAKE" = x; then
17595       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17596 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17597     else
17598       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17599       if test "x$IS_MODERN_MAKE" = x; then
17600         { $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
17601 $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;}
17602       else
17603         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17604           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17605             MAKE_EXPECTED_ENV='cygwin'
17606           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17607             MAKE_EXPECTED_ENV='msys'
17608           else
17609             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17610           fi
17611           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17612           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17613         else
17614           # Not relevant for non-Windows
17615           IS_MAKE_CORRECT_ENV=true
17616         fi
17617         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17618           { $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
17619 $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;}
17620         else
17621           FOUND_MAKE=$MAKE_CANDIDATE
17622 
17623   # Only process if variable expands to non-empty
17624 
17625   if test "x$FOUND_MAKE" != x; then
17626     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17627 
17628   # First separate the path from the arguments. This will split at the first
17629   # space.
17630   complete="$FOUND_MAKE"
17631   path="${complete%% *}"
17632   tmp="$complete EOL"
17633   arguments="${tmp#* }"
17634 
17635   # Input might be given as Windows format, start by converting to
17636   # unix format.
17637   new_path=`$CYGPATH -u "$path"`
17638 
17639   # Now try to locate executable using which
17640   new_path=`$WHICH "$new_path" 2> /dev/null`
17641   # bat and cmd files are not always considered executable in cygwin causing which
17642   # to not find them
17643   if test "x$new_path" = x \
17644       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17645       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17646     new_path=`$CYGPATH -u "$path"`
17647   fi
17648   if test "x$new_path" = x; then
17649     # Oops. Which didn't find the executable.
17650     # The splitting of arguments from the executable at a space might have been incorrect,
17651     # since paths with space are more likely in Windows. Give it another try with the whole
17652     # argument.
17653     path="$complete"
17654     arguments="EOL"
17655     new_path=`$CYGPATH -u "$path"`
17656     new_path=`$WHICH "$new_path" 2> /dev/null`
17657     # bat and cmd files are not always considered executable in cygwin causing which
17658     # to not find them
17659     if test "x$new_path" = x \
17660         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17661         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17662       new_path=`$CYGPATH -u "$path"`
17663     fi
17664     if test "x$new_path" = x; then
17665       # It's still not found. Now this is an unrecoverable error.
17666       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17667 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17668       has_space=`$ECHO "$complete" | $GREP " "`
17669       if test "x$has_space" != x; then
17670         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17671 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17672       fi
17673       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17674     fi
17675   fi
17676 
17677   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17678   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17679   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17680   # "foo.exe" is OK but "foo" is an error.
17681   #
17682   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17683   # It is also a way to make sure we got the proper file name for the real test later on.
17684   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17685   if test "x$test_shortpath" = x; then
17686     # Short path failed, file does not exist as specified.
17687     # Try adding .exe or .cmd
17688     if test -f "${new_path}.exe"; then
17689       input_to_shortpath="${new_path}.exe"
17690     elif test -f "${new_path}.cmd"; then
17691       input_to_shortpath="${new_path}.cmd"
17692     else
17693       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17694 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17695       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17696 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17697       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17698     fi
17699   else
17700     input_to_shortpath="$new_path"
17701   fi
17702 
17703   # Call helper function which possibly converts this using DOS-style short mode.
17704   # If so, the updated path is stored in $new_path.
17705   new_path="$input_to_shortpath"
17706 
17707   input_path="$input_to_shortpath"
17708   # Check if we need to convert this using DOS-style short mode. If the path
17709   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17710   # take no chances and rewrite it.
17711   # Note: m4 eats our [], so we need to use [ and ] instead.
17712   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17713   if test "x$has_forbidden_chars" != x; then
17714     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17715     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17716     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17717     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17718       # Going to short mode and back again did indeed matter. Since short mode is
17719       # case insensitive, let's make it lowercase to improve readability.
17720       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17721       # Now convert it back to Unix-style (cygpath)
17722       input_path=`$CYGPATH -u "$shortmode_path"`
17723       new_path="$input_path"
17724     fi
17725   fi
17726 
17727   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17728   if test "x$test_cygdrive_prefix" = x; then
17729     # As a simple fix, exclude /usr/bin since it's not a real path.
17730     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17731       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17732       # a path prefixed by /cygdrive for fixpath to work.
17733       new_path="$CYGWIN_ROOT_PATH$input_path"
17734     fi
17735   fi
17736 
17737   # remove trailing .exe if any
17738   new_path="${new_path/%.exe/}"
17739 
17740     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17741 
17742   # First separate the path from the arguments. This will split at the first
17743   # space.
17744   complete="$FOUND_MAKE"
17745   path="${complete%% *}"
17746   tmp="$complete EOL"
17747   arguments="${tmp#* }"
17748 
17749   # Input might be given as Windows format, start by converting to
17750   # unix format.
17751   new_path="$path"
17752 
17753   windows_path="$new_path"
17754   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17755     unix_path=`$CYGPATH -u "$windows_path"`
17756     new_path="$unix_path"
17757   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17758     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17759     new_path="$unix_path"
17760   fi
17761 
17762 
17763   # Now try to locate executable using which
17764   new_path=`$WHICH "$new_path" 2> /dev/null`
17765 
17766   if test "x$new_path" = x; then
17767     # Oops. Which didn't find the executable.
17768     # The splitting of arguments from the executable at a space might have been incorrect,
17769     # since paths with space are more likely in Windows. Give it another try with the whole
17770     # argument.
17771     path="$complete"
17772     arguments="EOL"
17773     new_path="$path"
17774 
17775   windows_path="$new_path"
17776   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17777     unix_path=`$CYGPATH -u "$windows_path"`
17778     new_path="$unix_path"
17779   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17780     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17781     new_path="$unix_path"
17782   fi
17783 
17784 
17785     new_path=`$WHICH "$new_path" 2> /dev/null`
17786     # bat and cmd files are not always considered executable in MSYS causing which
17787     # to not find them
17788     if test "x$new_path" = x \
17789         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17790         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17791       new_path="$path"
17792 
17793   windows_path="$new_path"
17794   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17795     unix_path=`$CYGPATH -u "$windows_path"`
17796     new_path="$unix_path"
17797   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17798     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17799     new_path="$unix_path"
17800   fi
17801 
17802     fi
17803 
17804     if test "x$new_path" = x; then
17805       # It's still not found. Now this is an unrecoverable error.
17806       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17807 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17808       has_space=`$ECHO "$complete" | $GREP " "`
17809       if test "x$has_space" != x; then
17810         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17811 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17812       fi
17813       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17814     fi
17815   fi
17816 
17817   # Now new_path has a complete unix path to the binary
17818   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17819     # Keep paths in /bin as-is, but remove trailing .exe if any
17820     new_path="${new_path/%.exe/}"
17821     # Do not save /bin paths to all_fixpath_prefixes!
17822   else
17823     # Not in mixed or Windows style, start by that.
17824     new_path=`cmd //c echo $new_path`
17825 
17826   input_path="$new_path"
17827   # Check if we need to convert this using DOS-style short mode. If the path
17828   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17829   # take no chances and rewrite it.
17830   # Note: m4 eats our [], so we need to use [ and ] instead.
17831   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17832   if test "x$has_forbidden_chars" != x; then
17833     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17834     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17835   fi
17836 
17837     # Output is in $new_path
17838 
17839   windows_path="$new_path"
17840   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17841     unix_path=`$CYGPATH -u "$windows_path"`
17842     new_path="$unix_path"
17843   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17844     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17845     new_path="$unix_path"
17846   fi
17847 
17848     # remove trailing .exe if any
17849     new_path="${new_path/%.exe/}"
17850 
17851     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17852     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17853   fi
17854 
17855     else
17856       # We're on a unix platform. Hooray! :)
17857       # First separate the path from the arguments. This will split at the first
17858       # space.
17859       complete="$FOUND_MAKE"
17860       path="${complete%% *}"
17861       tmp="$complete EOL"
17862       arguments="${tmp#* }"
17863 
17864       # Cannot rely on the command "which" here since it doesn't always work.
17865       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17866       if test -z "$is_absolute_path"; then
17867         # Path to executable is not absolute. Find it.
17868         IFS_save="$IFS"
17869         IFS=:
17870         for p in $PATH; do
17871           if test -f "$p/$path" && test -x "$p/$path"; then
17872             new_path="$p/$path"
17873             break
17874           fi
17875         done
17876         IFS="$IFS_save"
17877       else
17878         # This is an absolute path, we can use it without further modifications.
17879         new_path="$path"
17880       fi
17881 
17882       if test "x$new_path" = x; then
17883         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17884 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17885         has_space=`$ECHO "$complete" | $GREP " "`
17886         if test "x$has_space" != x; then
17887           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17888 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17889         fi
17890         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17891       fi
17892     fi
17893 
17894     # Now join together the path and the arguments once again
17895     if test "x$arguments" != xEOL; then
17896       new_complete="$new_path ${arguments% *}"
17897     else
17898       new_complete="$new_path"
17899     fi
17900 
17901     if test "x$complete" != "x$new_complete"; then
17902       FOUND_MAKE="$new_complete"
17903       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17904 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17905     fi
17906   fi
17907 
17908         fi
17909       fi
17910     fi
17911   fi
17912 
17913 
17914     if test "x$FOUND_MAKE" = x; then
17915       for ac_prog in make
17916 do
17917   # Extract the first word of "$ac_prog", so it can be a program name with args.
17918 set dummy $ac_prog; ac_word=$2
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17920 $as_echo_n "checking for $ac_word... " >&6; }
17921 if ${ac_cv_path_CHECK_MAKE+:} false; then :
17922   $as_echo_n "(cached) " >&6
17923 else
17924   case $CHECK_MAKE in
17925   [\\/]* | ?:[\\/]*)
17926   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
17927   ;;
17928   *)
17929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17930 for as_dir in $PATH
17931 do
17932   IFS=$as_save_IFS
17933   test -z "$as_dir" && as_dir=.
17934     for ac_exec_ext in '' $ac_executable_extensions; do
17935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17936     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
17937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17938     break 2
17939   fi
17940 done
17941   done
17942 IFS=$as_save_IFS
17943 
17944   ;;
17945 esac
17946 fi
17947 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
17948 if test -n "$CHECK_MAKE"; then
17949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
17950 $as_echo "$CHECK_MAKE" >&6; }
17951 else
17952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17953 $as_echo "no" >&6; }
17954 fi
17955 
17956 
17957   test -n "$CHECK_MAKE" && break
17958 done
17959 
17960 
17961   MAKE_CANDIDATE=""$CHECK_MAKE""
17962   DESCRIPTION="make in PATH"
17963 
17964   # On Cygwin, we require a newer version of make than on other platforms
17965   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17966     MAKE_VERSION_EXPR="-e 4\."
17967     MAKE_REQUIRED_VERSION="4.0"
17968    else
17969     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17970     MAKE_REQUIRED_VERSION="3.81"
17971   fi
17972 
17973   if test "x$MAKE_CANDIDATE" != x; then
17974     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17975 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17976     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17977     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17978     if test "x$IS_GNU_MAKE" = x; then
17979       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17980 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17981     else
17982       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17983       if test "x$IS_MODERN_MAKE" = x; then
17984         { $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
17985 $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;}
17986       else
17987         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17988           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17989             MAKE_EXPECTED_ENV='cygwin'
17990           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17991             MAKE_EXPECTED_ENV='msys'
17992           else
17993             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17994           fi
17995           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17996           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17997         else
17998           # Not relevant for non-Windows
17999           IS_MAKE_CORRECT_ENV=true
18000         fi
18001         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18002           { $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
18003 $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;}
18004         else
18005           FOUND_MAKE=$MAKE_CANDIDATE
18006 
18007   # Only process if variable expands to non-empty
18008 
18009   if test "x$FOUND_MAKE" != x; then
18010     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18011 
18012   # First separate the path from the arguments. This will split at the first
18013   # space.
18014   complete="$FOUND_MAKE"
18015   path="${complete%% *}"
18016   tmp="$complete EOL"
18017   arguments="${tmp#* }"
18018 
18019   # Input might be given as Windows format, start by converting to
18020   # unix format.
18021   new_path=`$CYGPATH -u "$path"`
18022 
18023   # Now try to locate executable using which
18024   new_path=`$WHICH "$new_path" 2> /dev/null`
18025   # bat and cmd files are not always considered executable in cygwin causing which
18026   # to not find them
18027   if test "x$new_path" = x \
18028       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18029       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18030     new_path=`$CYGPATH -u "$path"`
18031   fi
18032   if test "x$new_path" = x; then
18033     # Oops. Which didn't find the executable.
18034     # The splitting of arguments from the executable at a space might have been incorrect,
18035     # since paths with space are more likely in Windows. Give it another try with the whole
18036     # argument.
18037     path="$complete"
18038     arguments="EOL"
18039     new_path=`$CYGPATH -u "$path"`
18040     new_path=`$WHICH "$new_path" 2> /dev/null`
18041     # bat and cmd files are not always considered executable in cygwin causing which
18042     # to not find them
18043     if test "x$new_path" = x \
18044         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18045         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18046       new_path=`$CYGPATH -u "$path"`
18047     fi
18048     if test "x$new_path" = x; then
18049       # It's still not found. Now this is an unrecoverable error.
18050       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18051 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18052       has_space=`$ECHO "$complete" | $GREP " "`
18053       if test "x$has_space" != x; then
18054         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18055 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18056       fi
18057       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18058     fi
18059   fi
18060 
18061   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18062   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18063   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18064   # "foo.exe" is OK but "foo" is an error.
18065   #
18066   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18067   # It is also a way to make sure we got the proper file name for the real test later on.
18068   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18069   if test "x$test_shortpath" = x; then
18070     # Short path failed, file does not exist as specified.
18071     # Try adding .exe or .cmd
18072     if test -f "${new_path}.exe"; then
18073       input_to_shortpath="${new_path}.exe"
18074     elif test -f "${new_path}.cmd"; then
18075       input_to_shortpath="${new_path}.cmd"
18076     else
18077       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18078 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18079       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18080 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18081       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18082     fi
18083   else
18084     input_to_shortpath="$new_path"
18085   fi
18086 
18087   # Call helper function which possibly converts this using DOS-style short mode.
18088   # If so, the updated path is stored in $new_path.
18089   new_path="$input_to_shortpath"
18090 
18091   input_path="$input_to_shortpath"
18092   # Check if we need to convert this using DOS-style short mode. If the path
18093   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18094   # take no chances and rewrite it.
18095   # Note: m4 eats our [], so we need to use [ and ] instead.
18096   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18097   if test "x$has_forbidden_chars" != x; then
18098     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18099     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18100     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18101     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18102       # Going to short mode and back again did indeed matter. Since short mode is
18103       # case insensitive, let's make it lowercase to improve readability.
18104       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18105       # Now convert it back to Unix-style (cygpath)
18106       input_path=`$CYGPATH -u "$shortmode_path"`
18107       new_path="$input_path"
18108     fi
18109   fi
18110 
18111   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18112   if test "x$test_cygdrive_prefix" = x; then
18113     # As a simple fix, exclude /usr/bin since it's not a real path.
18114     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18115       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18116       # a path prefixed by /cygdrive for fixpath to work.
18117       new_path="$CYGWIN_ROOT_PATH$input_path"
18118     fi
18119   fi
18120 
18121   # remove trailing .exe if any
18122   new_path="${new_path/%.exe/}"
18123 
18124     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18125 
18126   # First separate the path from the arguments. This will split at the first
18127   # space.
18128   complete="$FOUND_MAKE"
18129   path="${complete%% *}"
18130   tmp="$complete EOL"
18131   arguments="${tmp#* }"
18132 
18133   # Input might be given as Windows format, start by converting to
18134   # unix format.
18135   new_path="$path"
18136 
18137   windows_path="$new_path"
18138   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18139     unix_path=`$CYGPATH -u "$windows_path"`
18140     new_path="$unix_path"
18141   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18142     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18143     new_path="$unix_path"
18144   fi
18145 
18146 
18147   # Now try to locate executable using which
18148   new_path=`$WHICH "$new_path" 2> /dev/null`
18149 
18150   if test "x$new_path" = x; then
18151     # Oops. Which didn't find the executable.
18152     # The splitting of arguments from the executable at a space might have been incorrect,
18153     # since paths with space are more likely in Windows. Give it another try with the whole
18154     # argument.
18155     path="$complete"
18156     arguments="EOL"
18157     new_path="$path"
18158 
18159   windows_path="$new_path"
18160   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18161     unix_path=`$CYGPATH -u "$windows_path"`
18162     new_path="$unix_path"
18163   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18164     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18165     new_path="$unix_path"
18166   fi
18167 
18168 
18169     new_path=`$WHICH "$new_path" 2> /dev/null`
18170     # bat and cmd files are not always considered executable in MSYS causing which
18171     # to not find them
18172     if test "x$new_path" = x \
18173         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18174         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18175       new_path="$path"
18176 
18177   windows_path="$new_path"
18178   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18179     unix_path=`$CYGPATH -u "$windows_path"`
18180     new_path="$unix_path"
18181   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18182     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18183     new_path="$unix_path"
18184   fi
18185 
18186     fi
18187 
18188     if test "x$new_path" = x; then
18189       # It's still not found. Now this is an unrecoverable error.
18190       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18191 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18192       has_space=`$ECHO "$complete" | $GREP " "`
18193       if test "x$has_space" != x; then
18194         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18195 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18196       fi
18197       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18198     fi
18199   fi
18200 
18201   # Now new_path has a complete unix path to the binary
18202   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18203     # Keep paths in /bin as-is, but remove trailing .exe if any
18204     new_path="${new_path/%.exe/}"
18205     # Do not save /bin paths to all_fixpath_prefixes!
18206   else
18207     # Not in mixed or Windows style, start by that.
18208     new_path=`cmd //c echo $new_path`
18209 
18210   input_path="$new_path"
18211   # Check if we need to convert this using DOS-style short mode. If the path
18212   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18213   # take no chances and rewrite it.
18214   # Note: m4 eats our [], so we need to use [ and ] instead.
18215   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18216   if test "x$has_forbidden_chars" != x; then
18217     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18218     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18219   fi
18220 
18221     # Output is in $new_path
18222 
18223   windows_path="$new_path"
18224   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18225     unix_path=`$CYGPATH -u "$windows_path"`
18226     new_path="$unix_path"
18227   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18228     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18229     new_path="$unix_path"
18230   fi
18231 
18232     # remove trailing .exe if any
18233     new_path="${new_path/%.exe/}"
18234 
18235     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18236     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18237   fi
18238 
18239     else
18240       # We're on a unix platform. Hooray! :)
18241       # First separate the path from the arguments. This will split at the first
18242       # space.
18243       complete="$FOUND_MAKE"
18244       path="${complete%% *}"
18245       tmp="$complete EOL"
18246       arguments="${tmp#* }"
18247 
18248       # Cannot rely on the command "which" here since it doesn't always work.
18249       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18250       if test -z "$is_absolute_path"; then
18251         # Path to executable is not absolute. Find it.
18252         IFS_save="$IFS"
18253         IFS=:
18254         for p in $PATH; do
18255           if test -f "$p/$path" && test -x "$p/$path"; then
18256             new_path="$p/$path"
18257             break
18258           fi
18259         done
18260         IFS="$IFS_save"
18261       else
18262         # This is an absolute path, we can use it without further modifications.
18263         new_path="$path"
18264       fi
18265 
18266       if test "x$new_path" = x; then
18267         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18268 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18269         has_space=`$ECHO "$complete" | $GREP " "`
18270         if test "x$has_space" != x; then
18271           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18272 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18273         fi
18274         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18275       fi
18276     fi
18277 
18278     # Now join together the path and the arguments once again
18279     if test "x$arguments" != xEOL; then
18280       new_complete="$new_path ${arguments% *}"
18281     else
18282       new_complete="$new_path"
18283     fi
18284 
18285     if test "x$complete" != "x$new_complete"; then
18286       FOUND_MAKE="$new_complete"
18287       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18288 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18289     fi
18290   fi
18291 
18292         fi
18293       fi
18294     fi
18295   fi
18296 
18297     fi
18298 
18299     if test "x$FOUND_MAKE" = x; then
18300       if test "x$TOOLCHAIN_PATH" != x; then
18301         # We have a toolchain path, check that as well before giving up.
18302         OLD_PATH=$PATH
18303         PATH=$TOOLCHAIN_PATH:$PATH
18304         for ac_prog in gmake
18305 do
18306   # Extract the first word of "$ac_prog", so it can be a program name with args.
18307 set dummy $ac_prog; ac_word=$2
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18309 $as_echo_n "checking for $ac_word... " >&6; }
18310 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18311   $as_echo_n "(cached) " >&6
18312 else
18313   case $CHECK_TOOLSDIR_GMAKE in
18314   [\\/]* | ?:[\\/]*)
18315   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18316   ;;
18317   *)
18318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18319 for as_dir in $PATH
18320 do
18321   IFS=$as_save_IFS
18322   test -z "$as_dir" && as_dir=.
18323     for ac_exec_ext in '' $ac_executable_extensions; do
18324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18325     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18327     break 2
18328   fi
18329 done
18330   done
18331 IFS=$as_save_IFS
18332 
18333   ;;
18334 esac
18335 fi
18336 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18337 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18339 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18340 else
18341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18342 $as_echo "no" >&6; }
18343 fi
18344 
18345 
18346   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18347 done
18348 
18349 
18350   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18351   DESCRIPTION="gmake in tools-dir"
18352 
18353   # On Cygwin, we require a newer version of make than on other platforms
18354   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18355     MAKE_VERSION_EXPR="-e 4\."
18356     MAKE_REQUIRED_VERSION="4.0"
18357    else
18358     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18359     MAKE_REQUIRED_VERSION="3.81"
18360   fi
18361 
18362   if test "x$MAKE_CANDIDATE" != x; then
18363     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18364 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18365     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18366     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18367     if test "x$IS_GNU_MAKE" = x; then
18368       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18369 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18370     else
18371       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18372       if test "x$IS_MODERN_MAKE" = x; then
18373         { $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
18374 $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;}
18375       else
18376         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18377           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18378             MAKE_EXPECTED_ENV='cygwin'
18379           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18380             MAKE_EXPECTED_ENV='msys'
18381           else
18382             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18383           fi
18384           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18385           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18386         else
18387           # Not relevant for non-Windows
18388           IS_MAKE_CORRECT_ENV=true
18389         fi
18390         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18391           { $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
18392 $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;}
18393         else
18394           FOUND_MAKE=$MAKE_CANDIDATE
18395 
18396   # Only process if variable expands to non-empty
18397 
18398   if test "x$FOUND_MAKE" != x; then
18399     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18400 
18401   # First separate the path from the arguments. This will split at the first
18402   # space.
18403   complete="$FOUND_MAKE"
18404   path="${complete%% *}"
18405   tmp="$complete EOL"
18406   arguments="${tmp#* }"
18407 
18408   # Input might be given as Windows format, start by converting to
18409   # unix format.
18410   new_path=`$CYGPATH -u "$path"`
18411 
18412   # Now try to locate executable using which
18413   new_path=`$WHICH "$new_path" 2> /dev/null`
18414   # bat and cmd files are not always considered executable in cygwin causing which
18415   # to not find them
18416   if test "x$new_path" = x \
18417       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18418       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18419     new_path=`$CYGPATH -u "$path"`
18420   fi
18421   if test "x$new_path" = x; then
18422     # Oops. Which didn't find the executable.
18423     # The splitting of arguments from the executable at a space might have been incorrect,
18424     # since paths with space are more likely in Windows. Give it another try with the whole
18425     # argument.
18426     path="$complete"
18427     arguments="EOL"
18428     new_path=`$CYGPATH -u "$path"`
18429     new_path=`$WHICH "$new_path" 2> /dev/null`
18430     # bat and cmd files are not always considered executable in cygwin causing which
18431     # to not find them
18432     if test "x$new_path" = x \
18433         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18434         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18435       new_path=`$CYGPATH -u "$path"`
18436     fi
18437     if test "x$new_path" = x; then
18438       # It's still not found. Now this is an unrecoverable error.
18439       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18440 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18441       has_space=`$ECHO "$complete" | $GREP " "`
18442       if test "x$has_space" != x; then
18443         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18444 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18445       fi
18446       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18447     fi
18448   fi
18449 
18450   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18451   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18452   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18453   # "foo.exe" is OK but "foo" is an error.
18454   #
18455   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18456   # It is also a way to make sure we got the proper file name for the real test later on.
18457   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18458   if test "x$test_shortpath" = x; then
18459     # Short path failed, file does not exist as specified.
18460     # Try adding .exe or .cmd
18461     if test -f "${new_path}.exe"; then
18462       input_to_shortpath="${new_path}.exe"
18463     elif test -f "${new_path}.cmd"; then
18464       input_to_shortpath="${new_path}.cmd"
18465     else
18466       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18467 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18468       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18469 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18470       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18471     fi
18472   else
18473     input_to_shortpath="$new_path"
18474   fi
18475 
18476   # Call helper function which possibly converts this using DOS-style short mode.
18477   # If so, the updated path is stored in $new_path.
18478   new_path="$input_to_shortpath"
18479 
18480   input_path="$input_to_shortpath"
18481   # Check if we need to convert this using DOS-style short mode. If the path
18482   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18483   # take no chances and rewrite it.
18484   # Note: m4 eats our [], so we need to use [ and ] instead.
18485   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18486   if test "x$has_forbidden_chars" != x; then
18487     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18488     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18489     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18490     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18491       # Going to short mode and back again did indeed matter. Since short mode is
18492       # case insensitive, let's make it lowercase to improve readability.
18493       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18494       # Now convert it back to Unix-style (cygpath)
18495       input_path=`$CYGPATH -u "$shortmode_path"`
18496       new_path="$input_path"
18497     fi
18498   fi
18499 
18500   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18501   if test "x$test_cygdrive_prefix" = x; then
18502     # As a simple fix, exclude /usr/bin since it's not a real path.
18503     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18504       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18505       # a path prefixed by /cygdrive for fixpath to work.
18506       new_path="$CYGWIN_ROOT_PATH$input_path"
18507     fi
18508   fi
18509 
18510   # remove trailing .exe if any
18511   new_path="${new_path/%.exe/}"
18512 
18513     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18514 
18515   # First separate the path from the arguments. This will split at the first
18516   # space.
18517   complete="$FOUND_MAKE"
18518   path="${complete%% *}"
18519   tmp="$complete EOL"
18520   arguments="${tmp#* }"
18521 
18522   # Input might be given as Windows format, start by converting to
18523   # unix format.
18524   new_path="$path"
18525 
18526   windows_path="$new_path"
18527   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18528     unix_path=`$CYGPATH -u "$windows_path"`
18529     new_path="$unix_path"
18530   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18531     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18532     new_path="$unix_path"
18533   fi
18534 
18535 
18536   # Now try to locate executable using which
18537   new_path=`$WHICH "$new_path" 2> /dev/null`
18538 
18539   if test "x$new_path" = x; then
18540     # Oops. Which didn't find the executable.
18541     # The splitting of arguments from the executable at a space might have been incorrect,
18542     # since paths with space are more likely in Windows. Give it another try with the whole
18543     # argument.
18544     path="$complete"
18545     arguments="EOL"
18546     new_path="$path"
18547 
18548   windows_path="$new_path"
18549   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18550     unix_path=`$CYGPATH -u "$windows_path"`
18551     new_path="$unix_path"
18552   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18553     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18554     new_path="$unix_path"
18555   fi
18556 
18557 
18558     new_path=`$WHICH "$new_path" 2> /dev/null`
18559     # bat and cmd files are not always considered executable in MSYS causing which
18560     # to not find them
18561     if test "x$new_path" = x \
18562         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18563         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18564       new_path="$path"
18565 
18566   windows_path="$new_path"
18567   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18568     unix_path=`$CYGPATH -u "$windows_path"`
18569     new_path="$unix_path"
18570   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18571     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18572     new_path="$unix_path"
18573   fi
18574 
18575     fi
18576 
18577     if test "x$new_path" = x; then
18578       # It's still not found. Now this is an unrecoverable error.
18579       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18580 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18581       has_space=`$ECHO "$complete" | $GREP " "`
18582       if test "x$has_space" != x; then
18583         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18584 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18585       fi
18586       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18587     fi
18588   fi
18589 
18590   # Now new_path has a complete unix path to the binary
18591   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18592     # Keep paths in /bin as-is, but remove trailing .exe if any
18593     new_path="${new_path/%.exe/}"
18594     # Do not save /bin paths to all_fixpath_prefixes!
18595   else
18596     # Not in mixed or Windows style, start by that.
18597     new_path=`cmd //c echo $new_path`
18598 
18599   input_path="$new_path"
18600   # Check if we need to convert this using DOS-style short mode. If the path
18601   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18602   # take no chances and rewrite it.
18603   # Note: m4 eats our [], so we need to use [ and ] instead.
18604   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18605   if test "x$has_forbidden_chars" != x; then
18606     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18607     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18608   fi
18609 
18610     # Output is in $new_path
18611 
18612   windows_path="$new_path"
18613   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18614     unix_path=`$CYGPATH -u "$windows_path"`
18615     new_path="$unix_path"
18616   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18617     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18618     new_path="$unix_path"
18619   fi
18620 
18621     # remove trailing .exe if any
18622     new_path="${new_path/%.exe/}"
18623 
18624     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18625     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18626   fi
18627 
18628     else
18629       # We're on a unix platform. Hooray! :)
18630       # First separate the path from the arguments. This will split at the first
18631       # space.
18632       complete="$FOUND_MAKE"
18633       path="${complete%% *}"
18634       tmp="$complete EOL"
18635       arguments="${tmp#* }"
18636 
18637       # Cannot rely on the command "which" here since it doesn't always work.
18638       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18639       if test -z "$is_absolute_path"; then
18640         # Path to executable is not absolute. Find it.
18641         IFS_save="$IFS"
18642         IFS=:
18643         for p in $PATH; do
18644           if test -f "$p/$path" && test -x "$p/$path"; then
18645             new_path="$p/$path"
18646             break
18647           fi
18648         done
18649         IFS="$IFS_save"
18650       else
18651         # This is an absolute path, we can use it without further modifications.
18652         new_path="$path"
18653       fi
18654 
18655       if test "x$new_path" = x; then
18656         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18657 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18658         has_space=`$ECHO "$complete" | $GREP " "`
18659         if test "x$has_space" != x; then
18660           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18661 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18662         fi
18663         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18664       fi
18665     fi
18666 
18667     # Now join together the path and the arguments once again
18668     if test "x$arguments" != xEOL; then
18669       new_complete="$new_path ${arguments% *}"
18670     else
18671       new_complete="$new_path"
18672     fi
18673 
18674     if test "x$complete" != "x$new_complete"; then
18675       FOUND_MAKE="$new_complete"
18676       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18677 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18678     fi
18679   fi
18680 
18681         fi
18682       fi
18683     fi
18684   fi
18685 
18686         if test "x$FOUND_MAKE" = x; then
18687           for ac_prog in make
18688 do
18689   # Extract the first word of "$ac_prog", so it can be a program name with args.
18690 set dummy $ac_prog; ac_word=$2
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18692 $as_echo_n "checking for $ac_word... " >&6; }
18693 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
18694   $as_echo_n "(cached) " >&6
18695 else
18696   case $CHECK_TOOLSDIR_MAKE in
18697   [\\/]* | ?:[\\/]*)
18698   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
18699   ;;
18700   *)
18701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18702 for as_dir in $PATH
18703 do
18704   IFS=$as_save_IFS
18705   test -z "$as_dir" && as_dir=.
18706     for ac_exec_ext in '' $ac_executable_extensions; do
18707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18708     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
18709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18710     break 2
18711   fi
18712 done
18713   done
18714 IFS=$as_save_IFS
18715 
18716   ;;
18717 esac
18718 fi
18719 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
18720 if test -n "$CHECK_TOOLSDIR_MAKE"; then
18721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
18722 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
18723 else
18724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18725 $as_echo "no" >&6; }
18726 fi
18727 
18728 
18729   test -n "$CHECK_TOOLSDIR_MAKE" && break
18730 done
18731 
18732 
18733   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
18734   DESCRIPTION="make in tools-dir"
18735 
18736   # On Cygwin, we require a newer version of make than on other platforms
18737   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18738     MAKE_VERSION_EXPR="-e 4\."
18739     MAKE_REQUIRED_VERSION="4.0"
18740    else
18741     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18742     MAKE_REQUIRED_VERSION="3.81"
18743   fi
18744 
18745   if test "x$MAKE_CANDIDATE" != x; then
18746     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18747 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18748     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18749     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18750     if test "x$IS_GNU_MAKE" = x; then
18751       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18752 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18753     else
18754       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18755       if test "x$IS_MODERN_MAKE" = x; then
18756         { $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
18757 $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;}
18758       else
18759         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18760           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18761             MAKE_EXPECTED_ENV='cygwin'
18762           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18763             MAKE_EXPECTED_ENV='msys'
18764           else
18765             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18766           fi
18767           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18768           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18769         else
18770           # Not relevant for non-Windows
18771           IS_MAKE_CORRECT_ENV=true
18772         fi
18773         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18774           { $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
18775 $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;}
18776         else
18777           FOUND_MAKE=$MAKE_CANDIDATE
18778 
18779   # Only process if variable expands to non-empty
18780 
18781   if test "x$FOUND_MAKE" != x; then
18782     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18783 
18784   # First separate the path from the arguments. This will split at the first
18785   # space.
18786   complete="$FOUND_MAKE"
18787   path="${complete%% *}"
18788   tmp="$complete EOL"
18789   arguments="${tmp#* }"
18790 
18791   # Input might be given as Windows format, start by converting to
18792   # unix format.
18793   new_path=`$CYGPATH -u "$path"`
18794 
18795   # Now try to locate executable using which
18796   new_path=`$WHICH "$new_path" 2> /dev/null`
18797   # bat and cmd files are not always considered executable in cygwin causing which
18798   # to not find them
18799   if test "x$new_path" = x \
18800       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18801       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18802     new_path=`$CYGPATH -u "$path"`
18803   fi
18804   if test "x$new_path" = x; then
18805     # Oops. Which didn't find the executable.
18806     # The splitting of arguments from the executable at a space might have been incorrect,
18807     # since paths with space are more likely in Windows. Give it another try with the whole
18808     # argument.
18809     path="$complete"
18810     arguments="EOL"
18811     new_path=`$CYGPATH -u "$path"`
18812     new_path=`$WHICH "$new_path" 2> /dev/null`
18813     # bat and cmd files are not always considered executable in cygwin causing which
18814     # to not find them
18815     if test "x$new_path" = x \
18816         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18817         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18818       new_path=`$CYGPATH -u "$path"`
18819     fi
18820     if test "x$new_path" = x; then
18821       # It's still not found. Now this is an unrecoverable error.
18822       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18823 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18824       has_space=`$ECHO "$complete" | $GREP " "`
18825       if test "x$has_space" != x; then
18826         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18827 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18828       fi
18829       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18830     fi
18831   fi
18832 
18833   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18834   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18835   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18836   # "foo.exe" is OK but "foo" is an error.
18837   #
18838   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18839   # It is also a way to make sure we got the proper file name for the real test later on.
18840   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18841   if test "x$test_shortpath" = x; then
18842     # Short path failed, file does not exist as specified.
18843     # Try adding .exe or .cmd
18844     if test -f "${new_path}.exe"; then
18845       input_to_shortpath="${new_path}.exe"
18846     elif test -f "${new_path}.cmd"; then
18847       input_to_shortpath="${new_path}.cmd"
18848     else
18849       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18850 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18851       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18852 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18853       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18854     fi
18855   else
18856     input_to_shortpath="$new_path"
18857   fi
18858 
18859   # Call helper function which possibly converts this using DOS-style short mode.
18860   # If so, the updated path is stored in $new_path.
18861   new_path="$input_to_shortpath"
18862 
18863   input_path="$input_to_shortpath"
18864   # Check if we need to convert this using DOS-style short mode. If the path
18865   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18866   # take no chances and rewrite it.
18867   # Note: m4 eats our [], so we need to use [ and ] instead.
18868   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18869   if test "x$has_forbidden_chars" != x; then
18870     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18871     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18872     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18873     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18874       # Going to short mode and back again did indeed matter. Since short mode is
18875       # case insensitive, let's make it lowercase to improve readability.
18876       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18877       # Now convert it back to Unix-style (cygpath)
18878       input_path=`$CYGPATH -u "$shortmode_path"`
18879       new_path="$input_path"
18880     fi
18881   fi
18882 
18883   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18884   if test "x$test_cygdrive_prefix" = x; then
18885     # As a simple fix, exclude /usr/bin since it's not a real path.
18886     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18887       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18888       # a path prefixed by /cygdrive for fixpath to work.
18889       new_path="$CYGWIN_ROOT_PATH$input_path"
18890     fi
18891   fi
18892 
18893   # remove trailing .exe if any
18894   new_path="${new_path/%.exe/}"
18895 
18896     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18897 
18898   # First separate the path from the arguments. This will split at the first
18899   # space.
18900   complete="$FOUND_MAKE"
18901   path="${complete%% *}"
18902   tmp="$complete EOL"
18903   arguments="${tmp#* }"
18904 
18905   # Input might be given as Windows format, start by converting to
18906   # unix format.
18907   new_path="$path"
18908 
18909   windows_path="$new_path"
18910   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18911     unix_path=`$CYGPATH -u "$windows_path"`
18912     new_path="$unix_path"
18913   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18914     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18915     new_path="$unix_path"
18916   fi
18917 
18918 
18919   # Now try to locate executable using which
18920   new_path=`$WHICH "$new_path" 2> /dev/null`
18921 
18922   if test "x$new_path" = x; then
18923     # Oops. Which didn't find the executable.
18924     # The splitting of arguments from the executable at a space might have been incorrect,
18925     # since paths with space are more likely in Windows. Give it another try with the whole
18926     # argument.
18927     path="$complete"
18928     arguments="EOL"
18929     new_path="$path"
18930 
18931   windows_path="$new_path"
18932   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18933     unix_path=`$CYGPATH -u "$windows_path"`
18934     new_path="$unix_path"
18935   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18936     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18937     new_path="$unix_path"
18938   fi
18939 
18940 
18941     new_path=`$WHICH "$new_path" 2> /dev/null`
18942     # bat and cmd files are not always considered executable in MSYS causing which
18943     # to not find them
18944     if test "x$new_path" = x \
18945         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18946         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18947       new_path="$path"
18948 
18949   windows_path="$new_path"
18950   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18951     unix_path=`$CYGPATH -u "$windows_path"`
18952     new_path="$unix_path"
18953   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18954     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18955     new_path="$unix_path"
18956   fi
18957 
18958     fi
18959 
18960     if test "x$new_path" = x; then
18961       # It's still not found. Now this is an unrecoverable error.
18962       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18963 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18964       has_space=`$ECHO "$complete" | $GREP " "`
18965       if test "x$has_space" != x; then
18966         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18967 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18968       fi
18969       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18970     fi
18971   fi
18972 
18973   # Now new_path has a complete unix path to the binary
18974   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18975     # Keep paths in /bin as-is, but remove trailing .exe if any
18976     new_path="${new_path/%.exe/}"
18977     # Do not save /bin paths to all_fixpath_prefixes!
18978   else
18979     # Not in mixed or Windows style, start by that.
18980     new_path=`cmd //c echo $new_path`
18981 
18982   input_path="$new_path"
18983   # Check if we need to convert this using DOS-style short mode. If the path
18984   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18985   # take no chances and rewrite it.
18986   # Note: m4 eats our [], so we need to use [ and ] instead.
18987   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18988   if test "x$has_forbidden_chars" != x; then
18989     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18990     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18991   fi
18992 
18993     # Output is in $new_path
18994 
18995   windows_path="$new_path"
18996   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18997     unix_path=`$CYGPATH -u "$windows_path"`
18998     new_path="$unix_path"
18999   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19000     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19001     new_path="$unix_path"
19002   fi
19003 
19004     # remove trailing .exe if any
19005     new_path="${new_path/%.exe/}"
19006 
19007     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19008     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19009   fi
19010 
19011     else
19012       # We're on a unix platform. Hooray! :)
19013       # First separate the path from the arguments. This will split at the first
19014       # space.
19015       complete="$FOUND_MAKE"
19016       path="${complete%% *}"
19017       tmp="$complete EOL"
19018       arguments="${tmp#* }"
19019 
19020       # Cannot rely on the command "which" here since it doesn't always work.
19021       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19022       if test -z "$is_absolute_path"; then
19023         # Path to executable is not absolute. Find it.
19024         IFS_save="$IFS"
19025         IFS=:
19026         for p in $PATH; do
19027           if test -f "$p/$path" && test -x "$p/$path"; then
19028             new_path="$p/$path"
19029             break
19030           fi
19031         done
19032         IFS="$IFS_save"
19033       else
19034         # This is an absolute path, we can use it without further modifications.
19035         new_path="$path"
19036       fi
19037 
19038       if test "x$new_path" = x; then
19039         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19040 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19041         has_space=`$ECHO "$complete" | $GREP " "`
19042         if test "x$has_space" != x; then
19043           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19044 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19045         fi
19046         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19047       fi
19048     fi
19049 
19050     # Now join together the path and the arguments once again
19051     if test "x$arguments" != xEOL; then
19052       new_complete="$new_path ${arguments% *}"
19053     else
19054       new_complete="$new_path"
19055     fi
19056 
19057     if test "x$complete" != "x$new_complete"; then
19058       FOUND_MAKE="$new_complete"
19059       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19060 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19061     fi
19062   fi
19063 
19064         fi
19065       fi
19066     fi
19067   fi
19068 
19069         fi
19070         PATH=$OLD_PATH
19071       fi
19072     fi
19073 
19074     if test "x$FOUND_MAKE" = x; then
19075       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
19076     fi
19077 
19078   else
19079     # The variable is set, but is it from the command line or the environment?
19080 
19081     # Try to remove the string !MAKE! from our list.
19082     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19083     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19084       # If it failed, the variable was not from the command line. Ignore it,
19085       # but warn the user (except for BASH, which is always set by the calling BASH).
19086       if test "xMAKE" != xBASH; then
19087         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19088 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19089       fi
19090       # Try to locate tool using the code snippet
19091 
19092     # Try our hardest to locate a correct version of GNU make
19093     for ac_prog in gmake
19094 do
19095   # Extract the first word of "$ac_prog", so it can be a program name with args.
19096 set dummy $ac_prog; ac_word=$2
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19098 $as_echo_n "checking for $ac_word... " >&6; }
19099 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19100   $as_echo_n "(cached) " >&6
19101 else
19102   case $CHECK_GMAKE in
19103   [\\/]* | ?:[\\/]*)
19104   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19105   ;;
19106   *)
19107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19108 for as_dir in $PATH
19109 do
19110   IFS=$as_save_IFS
19111   test -z "$as_dir" && as_dir=.
19112     for ac_exec_ext in '' $ac_executable_extensions; do
19113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19114     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19116     break 2
19117   fi
19118 done
19119   done
19120 IFS=$as_save_IFS
19121 
19122   ;;
19123 esac
19124 fi
19125 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19126 if test -n "$CHECK_GMAKE"; then
19127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19128 $as_echo "$CHECK_GMAKE" >&6; }
19129 else
19130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19131 $as_echo "no" >&6; }
19132 fi
19133 
19134 
19135   test -n "$CHECK_GMAKE" && break
19136 done
19137 
19138 
19139   MAKE_CANDIDATE=""$CHECK_GMAKE""
19140   DESCRIPTION="gmake in PATH"
19141 
19142   # On Cygwin, we require a newer version of make than on other platforms
19143   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19144     MAKE_VERSION_EXPR="-e 4\."
19145     MAKE_REQUIRED_VERSION="4.0"
19146    else
19147     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19148     MAKE_REQUIRED_VERSION="3.81"
19149   fi
19150 
19151   if test "x$MAKE_CANDIDATE" != x; then
19152     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19153 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19154     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19155     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19156     if test "x$IS_GNU_MAKE" = x; then
19157       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19158 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19159     else
19160       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19161       if test "x$IS_MODERN_MAKE" = x; then
19162         { $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
19163 $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;}
19164       else
19165         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19166           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19167             MAKE_EXPECTED_ENV='cygwin'
19168           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19169             MAKE_EXPECTED_ENV='msys'
19170           else
19171             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19172           fi
19173           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19174           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19175         else
19176           # Not relevant for non-Windows
19177           IS_MAKE_CORRECT_ENV=true
19178         fi
19179         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19180           { $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
19181 $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;}
19182         else
19183           FOUND_MAKE=$MAKE_CANDIDATE
19184 
19185   # Only process if variable expands to non-empty
19186 
19187   if test "x$FOUND_MAKE" != x; then
19188     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19189 
19190   # First separate the path from the arguments. This will split at the first
19191   # space.
19192   complete="$FOUND_MAKE"
19193   path="${complete%% *}"
19194   tmp="$complete EOL"
19195   arguments="${tmp#* }"
19196 
19197   # Input might be given as Windows format, start by converting to
19198   # unix format.
19199   new_path=`$CYGPATH -u "$path"`
19200 
19201   # Now try to locate executable using which
19202   new_path=`$WHICH "$new_path" 2> /dev/null`
19203   # bat and cmd files are not always considered executable in cygwin causing which
19204   # to not find them
19205   if test "x$new_path" = x \
19206       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19207       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19208     new_path=`$CYGPATH -u "$path"`
19209   fi
19210   if test "x$new_path" = x; then
19211     # Oops. Which didn't find the executable.
19212     # The splitting of arguments from the executable at a space might have been incorrect,
19213     # since paths with space are more likely in Windows. Give it another try with the whole
19214     # argument.
19215     path="$complete"
19216     arguments="EOL"
19217     new_path=`$CYGPATH -u "$path"`
19218     new_path=`$WHICH "$new_path" 2> /dev/null`
19219     # bat and cmd files are not always considered executable in cygwin causing which
19220     # to not find them
19221     if test "x$new_path" = x \
19222         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19223         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19224       new_path=`$CYGPATH -u "$path"`
19225     fi
19226     if test "x$new_path" = x; then
19227       # It's still not found. Now this is an unrecoverable error.
19228       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19229 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19230       has_space=`$ECHO "$complete" | $GREP " "`
19231       if test "x$has_space" != x; then
19232         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19233 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19234       fi
19235       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19236     fi
19237   fi
19238 
19239   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19240   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19241   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19242   # "foo.exe" is OK but "foo" is an error.
19243   #
19244   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19245   # It is also a way to make sure we got the proper file name for the real test later on.
19246   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19247   if test "x$test_shortpath" = x; then
19248     # Short path failed, file does not exist as specified.
19249     # Try adding .exe or .cmd
19250     if test -f "${new_path}.exe"; then
19251       input_to_shortpath="${new_path}.exe"
19252     elif test -f "${new_path}.cmd"; then
19253       input_to_shortpath="${new_path}.cmd"
19254     else
19255       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19256 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19257       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19258 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19259       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19260     fi
19261   else
19262     input_to_shortpath="$new_path"
19263   fi
19264 
19265   # Call helper function which possibly converts this using DOS-style short mode.
19266   # If so, the updated path is stored in $new_path.
19267   new_path="$input_to_shortpath"
19268 
19269   input_path="$input_to_shortpath"
19270   # Check if we need to convert this using DOS-style short mode. If the path
19271   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19272   # take no chances and rewrite it.
19273   # Note: m4 eats our [], so we need to use [ and ] instead.
19274   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19275   if test "x$has_forbidden_chars" != x; then
19276     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19277     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19278     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19279     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19280       # Going to short mode and back again did indeed matter. Since short mode is
19281       # case insensitive, let's make it lowercase to improve readability.
19282       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19283       # Now convert it back to Unix-style (cygpath)
19284       input_path=`$CYGPATH -u "$shortmode_path"`
19285       new_path="$input_path"
19286     fi
19287   fi
19288 
19289   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19290   if test "x$test_cygdrive_prefix" = x; then
19291     # As a simple fix, exclude /usr/bin since it's not a real path.
19292     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19293       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19294       # a path prefixed by /cygdrive for fixpath to work.
19295       new_path="$CYGWIN_ROOT_PATH$input_path"
19296     fi
19297   fi
19298 
19299   # remove trailing .exe if any
19300   new_path="${new_path/%.exe/}"
19301 
19302     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19303 
19304   # First separate the path from the arguments. This will split at the first
19305   # space.
19306   complete="$FOUND_MAKE"
19307   path="${complete%% *}"
19308   tmp="$complete EOL"
19309   arguments="${tmp#* }"
19310 
19311   # Input might be given as Windows format, start by converting to
19312   # unix format.
19313   new_path="$path"
19314 
19315   windows_path="$new_path"
19316   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19317     unix_path=`$CYGPATH -u "$windows_path"`
19318     new_path="$unix_path"
19319   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19320     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19321     new_path="$unix_path"
19322   fi
19323 
19324 
19325   # Now try to locate executable using which
19326   new_path=`$WHICH "$new_path" 2> /dev/null`
19327 
19328   if test "x$new_path" = x; then
19329     # Oops. Which didn't find the executable.
19330     # The splitting of arguments from the executable at a space might have been incorrect,
19331     # since paths with space are more likely in Windows. Give it another try with the whole
19332     # argument.
19333     path="$complete"
19334     arguments="EOL"
19335     new_path="$path"
19336 
19337   windows_path="$new_path"
19338   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19339     unix_path=`$CYGPATH -u "$windows_path"`
19340     new_path="$unix_path"
19341   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19342     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19343     new_path="$unix_path"
19344   fi
19345 
19346 
19347     new_path=`$WHICH "$new_path" 2> /dev/null`
19348     # bat and cmd files are not always considered executable in MSYS causing which
19349     # to not find them
19350     if test "x$new_path" = x \
19351         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19352         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19353       new_path="$path"
19354 
19355   windows_path="$new_path"
19356   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19357     unix_path=`$CYGPATH -u "$windows_path"`
19358     new_path="$unix_path"
19359   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19360     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19361     new_path="$unix_path"
19362   fi
19363 
19364     fi
19365 
19366     if test "x$new_path" = x; then
19367       # It's still not found. Now this is an unrecoverable error.
19368       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19369 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19370       has_space=`$ECHO "$complete" | $GREP " "`
19371       if test "x$has_space" != x; then
19372         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19373 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19374       fi
19375       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19376     fi
19377   fi
19378 
19379   # Now new_path has a complete unix path to the binary
19380   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19381     # Keep paths in /bin as-is, but remove trailing .exe if any
19382     new_path="${new_path/%.exe/}"
19383     # Do not save /bin paths to all_fixpath_prefixes!
19384   else
19385     # Not in mixed or Windows style, start by that.
19386     new_path=`cmd //c echo $new_path`
19387 
19388   input_path="$new_path"
19389   # Check if we need to convert this using DOS-style short mode. If the path
19390   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19391   # take no chances and rewrite it.
19392   # Note: m4 eats our [], so we need to use [ and ] instead.
19393   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19394   if test "x$has_forbidden_chars" != x; then
19395     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19396     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19397   fi
19398 
19399     # Output is in $new_path
19400 
19401   windows_path="$new_path"
19402   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19403     unix_path=`$CYGPATH -u "$windows_path"`
19404     new_path="$unix_path"
19405   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19406     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19407     new_path="$unix_path"
19408   fi
19409 
19410     # remove trailing .exe if any
19411     new_path="${new_path/%.exe/}"
19412 
19413     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19414     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19415   fi
19416 
19417     else
19418       # We're on a unix platform. Hooray! :)
19419       # First separate the path from the arguments. This will split at the first
19420       # space.
19421       complete="$FOUND_MAKE"
19422       path="${complete%% *}"
19423       tmp="$complete EOL"
19424       arguments="${tmp#* }"
19425 
19426       # Cannot rely on the command "which" here since it doesn't always work.
19427       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19428       if test -z "$is_absolute_path"; then
19429         # Path to executable is not absolute. Find it.
19430         IFS_save="$IFS"
19431         IFS=:
19432         for p in $PATH; do
19433           if test -f "$p/$path" && test -x "$p/$path"; then
19434             new_path="$p/$path"
19435             break
19436           fi
19437         done
19438         IFS="$IFS_save"
19439       else
19440         # This is an absolute path, we can use it without further modifications.
19441         new_path="$path"
19442       fi
19443 
19444       if test "x$new_path" = x; then
19445         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19446 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19447         has_space=`$ECHO "$complete" | $GREP " "`
19448         if test "x$has_space" != x; then
19449           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19450 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19451         fi
19452         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19453       fi
19454     fi
19455 
19456     # Now join together the path and the arguments once again
19457     if test "x$arguments" != xEOL; then
19458       new_complete="$new_path ${arguments% *}"
19459     else
19460       new_complete="$new_path"
19461     fi
19462 
19463     if test "x$complete" != "x$new_complete"; then
19464       FOUND_MAKE="$new_complete"
19465       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19466 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19467     fi
19468   fi
19469 
19470         fi
19471       fi
19472     fi
19473   fi
19474 
19475 
19476     if test "x$FOUND_MAKE" = x; then
19477       for ac_prog in make
19478 do
19479   # Extract the first word of "$ac_prog", so it can be a program name with args.
19480 set dummy $ac_prog; ac_word=$2
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19482 $as_echo_n "checking for $ac_word... " >&6; }
19483 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19484   $as_echo_n "(cached) " >&6
19485 else
19486   case $CHECK_MAKE in
19487   [\\/]* | ?:[\\/]*)
19488   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19489   ;;
19490   *)
19491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19492 for as_dir in $PATH
19493 do
19494   IFS=$as_save_IFS
19495   test -z "$as_dir" && as_dir=.
19496     for ac_exec_ext in '' $ac_executable_extensions; do
19497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19498     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19500     break 2
19501   fi
19502 done
19503   done
19504 IFS=$as_save_IFS
19505 
19506   ;;
19507 esac
19508 fi
19509 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19510 if test -n "$CHECK_MAKE"; then
19511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19512 $as_echo "$CHECK_MAKE" >&6; }
19513 else
19514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19515 $as_echo "no" >&6; }
19516 fi
19517 
19518 
19519   test -n "$CHECK_MAKE" && break
19520 done
19521 
19522 
19523   MAKE_CANDIDATE=""$CHECK_MAKE""
19524   DESCRIPTION="make in PATH"
19525 
19526   # On Cygwin, we require a newer version of make than on other platforms
19527   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19528     MAKE_VERSION_EXPR="-e 4\."
19529     MAKE_REQUIRED_VERSION="4.0"
19530    else
19531     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19532     MAKE_REQUIRED_VERSION="3.81"
19533   fi
19534 
19535   if test "x$MAKE_CANDIDATE" != x; then
19536     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19537 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19538     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19539     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19540     if test "x$IS_GNU_MAKE" = x; then
19541       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19542 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19543     else
19544       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19545       if test "x$IS_MODERN_MAKE" = x; then
19546         { $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
19547 $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;}
19548       else
19549         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19550           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19551             MAKE_EXPECTED_ENV='cygwin'
19552           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19553             MAKE_EXPECTED_ENV='msys'
19554           else
19555             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19556           fi
19557           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19558           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19559         else
19560           # Not relevant for non-Windows
19561           IS_MAKE_CORRECT_ENV=true
19562         fi
19563         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19564           { $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
19565 $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;}
19566         else
19567           FOUND_MAKE=$MAKE_CANDIDATE
19568 
19569   # Only process if variable expands to non-empty
19570 
19571   if test "x$FOUND_MAKE" != x; then
19572     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19573 
19574   # First separate the path from the arguments. This will split at the first
19575   # space.
19576   complete="$FOUND_MAKE"
19577   path="${complete%% *}"
19578   tmp="$complete EOL"
19579   arguments="${tmp#* }"
19580 
19581   # Input might be given as Windows format, start by converting to
19582   # unix format.
19583   new_path=`$CYGPATH -u "$path"`
19584 
19585   # Now try to locate executable using which
19586   new_path=`$WHICH "$new_path" 2> /dev/null`
19587   # bat and cmd files are not always considered executable in cygwin causing which
19588   # to not find them
19589   if test "x$new_path" = x \
19590       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19591       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19592     new_path=`$CYGPATH -u "$path"`
19593   fi
19594   if test "x$new_path" = x; then
19595     # Oops. Which didn't find the executable.
19596     # The splitting of arguments from the executable at a space might have been incorrect,
19597     # since paths with space are more likely in Windows. Give it another try with the whole
19598     # argument.
19599     path="$complete"
19600     arguments="EOL"
19601     new_path=`$CYGPATH -u "$path"`
19602     new_path=`$WHICH "$new_path" 2> /dev/null`
19603     # bat and cmd files are not always considered executable in cygwin causing which
19604     # to not find them
19605     if test "x$new_path" = x \
19606         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19607         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19608       new_path=`$CYGPATH -u "$path"`
19609     fi
19610     if test "x$new_path" = x; then
19611       # It's still not found. Now this is an unrecoverable error.
19612       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19613 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19614       has_space=`$ECHO "$complete" | $GREP " "`
19615       if test "x$has_space" != x; then
19616         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19617 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19618       fi
19619       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19620     fi
19621   fi
19622 
19623   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19624   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19625   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19626   # "foo.exe" is OK but "foo" is an error.
19627   #
19628   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19629   # It is also a way to make sure we got the proper file name for the real test later on.
19630   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19631   if test "x$test_shortpath" = x; then
19632     # Short path failed, file does not exist as specified.
19633     # Try adding .exe or .cmd
19634     if test -f "${new_path}.exe"; then
19635       input_to_shortpath="${new_path}.exe"
19636     elif test -f "${new_path}.cmd"; then
19637       input_to_shortpath="${new_path}.cmd"
19638     else
19639       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19640 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19641       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19642 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19643       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19644     fi
19645   else
19646     input_to_shortpath="$new_path"
19647   fi
19648 
19649   # Call helper function which possibly converts this using DOS-style short mode.
19650   # If so, the updated path is stored in $new_path.
19651   new_path="$input_to_shortpath"
19652 
19653   input_path="$input_to_shortpath"
19654   # Check if we need to convert this using DOS-style short mode. If the path
19655   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19656   # take no chances and rewrite it.
19657   # Note: m4 eats our [], so we need to use [ and ] instead.
19658   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19659   if test "x$has_forbidden_chars" != x; then
19660     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19661     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19662     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19663     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19664       # Going to short mode and back again did indeed matter. Since short mode is
19665       # case insensitive, let's make it lowercase to improve readability.
19666       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19667       # Now convert it back to Unix-style (cygpath)
19668       input_path=`$CYGPATH -u "$shortmode_path"`
19669       new_path="$input_path"
19670     fi
19671   fi
19672 
19673   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19674   if test "x$test_cygdrive_prefix" = x; then
19675     # As a simple fix, exclude /usr/bin since it's not a real path.
19676     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19677       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19678       # a path prefixed by /cygdrive for fixpath to work.
19679       new_path="$CYGWIN_ROOT_PATH$input_path"
19680     fi
19681   fi
19682 
19683   # remove trailing .exe if any
19684   new_path="${new_path/%.exe/}"
19685 
19686     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19687 
19688   # First separate the path from the arguments. This will split at the first
19689   # space.
19690   complete="$FOUND_MAKE"
19691   path="${complete%% *}"
19692   tmp="$complete EOL"
19693   arguments="${tmp#* }"
19694 
19695   # Input might be given as Windows format, start by converting to
19696   # unix format.
19697   new_path="$path"
19698 
19699   windows_path="$new_path"
19700   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19701     unix_path=`$CYGPATH -u "$windows_path"`
19702     new_path="$unix_path"
19703   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19704     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19705     new_path="$unix_path"
19706   fi
19707 
19708 
19709   # Now try to locate executable using which
19710   new_path=`$WHICH "$new_path" 2> /dev/null`
19711 
19712   if test "x$new_path" = x; then
19713     # Oops. Which didn't find the executable.
19714     # The splitting of arguments from the executable at a space might have been incorrect,
19715     # since paths with space are more likely in Windows. Give it another try with the whole
19716     # argument.
19717     path="$complete"
19718     arguments="EOL"
19719     new_path="$path"
19720 
19721   windows_path="$new_path"
19722   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19723     unix_path=`$CYGPATH -u "$windows_path"`
19724     new_path="$unix_path"
19725   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19726     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19727     new_path="$unix_path"
19728   fi
19729 
19730 
19731     new_path=`$WHICH "$new_path" 2> /dev/null`
19732     # bat and cmd files are not always considered executable in MSYS causing which
19733     # to not find them
19734     if test "x$new_path" = x \
19735         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19736         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19737       new_path="$path"
19738 
19739   windows_path="$new_path"
19740   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19741     unix_path=`$CYGPATH -u "$windows_path"`
19742     new_path="$unix_path"
19743   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19744     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19745     new_path="$unix_path"
19746   fi
19747 
19748     fi
19749 
19750     if test "x$new_path" = x; then
19751       # It's still not found. Now this is an unrecoverable error.
19752       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19753 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19754       has_space=`$ECHO "$complete" | $GREP " "`
19755       if test "x$has_space" != x; then
19756         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19757 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19758       fi
19759       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19760     fi
19761   fi
19762 
19763   # Now new_path has a complete unix path to the binary
19764   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19765     # Keep paths in /bin as-is, but remove trailing .exe if any
19766     new_path="${new_path/%.exe/}"
19767     # Do not save /bin paths to all_fixpath_prefixes!
19768   else
19769     # Not in mixed or Windows style, start by that.
19770     new_path=`cmd //c echo $new_path`
19771 
19772   input_path="$new_path"
19773   # Check if we need to convert this using DOS-style short mode. If the path
19774   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19775   # take no chances and rewrite it.
19776   # Note: m4 eats our [], so we need to use [ and ] instead.
19777   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19778   if test "x$has_forbidden_chars" != x; then
19779     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19780     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19781   fi
19782 
19783     # Output is in $new_path
19784 
19785   windows_path="$new_path"
19786   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19787     unix_path=`$CYGPATH -u "$windows_path"`
19788     new_path="$unix_path"
19789   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19790     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19791     new_path="$unix_path"
19792   fi
19793 
19794     # remove trailing .exe if any
19795     new_path="${new_path/%.exe/}"
19796 
19797     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19798     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19799   fi
19800 
19801     else
19802       # We're on a unix platform. Hooray! :)
19803       # First separate the path from the arguments. This will split at the first
19804       # space.
19805       complete="$FOUND_MAKE"
19806       path="${complete%% *}"
19807       tmp="$complete EOL"
19808       arguments="${tmp#* }"
19809 
19810       # Cannot rely on the command "which" here since it doesn't always work.
19811       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19812       if test -z "$is_absolute_path"; then
19813         # Path to executable is not absolute. Find it.
19814         IFS_save="$IFS"
19815         IFS=:
19816         for p in $PATH; do
19817           if test -f "$p/$path" && test -x "$p/$path"; then
19818             new_path="$p/$path"
19819             break
19820           fi
19821         done
19822         IFS="$IFS_save"
19823       else
19824         # This is an absolute path, we can use it without further modifications.
19825         new_path="$path"
19826       fi
19827 
19828       if test "x$new_path" = x; then
19829         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19830 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19831         has_space=`$ECHO "$complete" | $GREP " "`
19832         if test "x$has_space" != x; then
19833           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19834 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19835         fi
19836         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19837       fi
19838     fi
19839 
19840     # Now join together the path and the arguments once again
19841     if test "x$arguments" != xEOL; then
19842       new_complete="$new_path ${arguments% *}"
19843     else
19844       new_complete="$new_path"
19845     fi
19846 
19847     if test "x$complete" != "x$new_complete"; then
19848       FOUND_MAKE="$new_complete"
19849       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19850 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19851     fi
19852   fi
19853 
19854         fi
19855       fi
19856     fi
19857   fi
19858 
19859     fi
19860 
19861     if test "x$FOUND_MAKE" = x; then
19862       if test "x$TOOLCHAIN_PATH" != x; then
19863         # We have a toolchain path, check that as well before giving up.
19864         OLD_PATH=$PATH
19865         PATH=$TOOLCHAIN_PATH:$PATH
19866         for ac_prog in gmake
19867 do
19868   # Extract the first word of "$ac_prog", so it can be a program name with args.
19869 set dummy $ac_prog; ac_word=$2
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19871 $as_echo_n "checking for $ac_word... " >&6; }
19872 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
19873   $as_echo_n "(cached) " >&6
19874 else
19875   case $CHECK_TOOLSDIR_GMAKE in
19876   [\\/]* | ?:[\\/]*)
19877   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
19878   ;;
19879   *)
19880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19881 for as_dir in $PATH
19882 do
19883   IFS=$as_save_IFS
19884   test -z "$as_dir" && as_dir=.
19885     for ac_exec_ext in '' $ac_executable_extensions; do
19886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19887     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19889     break 2
19890   fi
19891 done
19892   done
19893 IFS=$as_save_IFS
19894 
19895   ;;
19896 esac
19897 fi
19898 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
19899 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
19900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
19901 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
19902 else
19903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19904 $as_echo "no" >&6; }
19905 fi
19906 
19907 
19908   test -n "$CHECK_TOOLSDIR_GMAKE" && break
19909 done
19910 
19911 
19912   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
19913   DESCRIPTION="gmake in tools-dir"
19914 
19915   # On Cygwin, we require a newer version of make than on other platforms
19916   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19917     MAKE_VERSION_EXPR="-e 4\."
19918     MAKE_REQUIRED_VERSION="4.0"
19919    else
19920     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19921     MAKE_REQUIRED_VERSION="3.81"
19922   fi
19923 
19924   if test "x$MAKE_CANDIDATE" != x; then
19925     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19926 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19927     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19928     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19929     if test "x$IS_GNU_MAKE" = x; then
19930       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19931 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19932     else
19933       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19934       if test "x$IS_MODERN_MAKE" = x; then
19935         { $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
19936 $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;}
19937       else
19938         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19939           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19940             MAKE_EXPECTED_ENV='cygwin'
19941           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19942             MAKE_EXPECTED_ENV='msys'
19943           else
19944             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19945           fi
19946           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19947           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19948         else
19949           # Not relevant for non-Windows
19950           IS_MAKE_CORRECT_ENV=true
19951         fi
19952         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19953           { $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
19954 $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;}
19955         else
19956           FOUND_MAKE=$MAKE_CANDIDATE
19957 
19958   # Only process if variable expands to non-empty
19959 
19960   if test "x$FOUND_MAKE" != x; then
19961     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19962 
19963   # First separate the path from the arguments. This will split at the first
19964   # space.
19965   complete="$FOUND_MAKE"
19966   path="${complete%% *}"
19967   tmp="$complete EOL"
19968   arguments="${tmp#* }"
19969 
19970   # Input might be given as Windows format, start by converting to
19971   # unix format.
19972   new_path=`$CYGPATH -u "$path"`
19973 
19974   # Now try to locate executable using which
19975   new_path=`$WHICH "$new_path" 2> /dev/null`
19976   # bat and cmd files are not always considered executable in cygwin causing which
19977   # to not find them
19978   if test "x$new_path" = x \
19979       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19980       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19981     new_path=`$CYGPATH -u "$path"`
19982   fi
19983   if test "x$new_path" = x; then
19984     # Oops. Which didn't find the executable.
19985     # The splitting of arguments from the executable at a space might have been incorrect,
19986     # since paths with space are more likely in Windows. Give it another try with the whole
19987     # argument.
19988     path="$complete"
19989     arguments="EOL"
19990     new_path=`$CYGPATH -u "$path"`
19991     new_path=`$WHICH "$new_path" 2> /dev/null`
19992     # bat and cmd files are not always considered executable in cygwin causing which
19993     # to not find them
19994     if test "x$new_path" = x \
19995         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19996         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19997       new_path=`$CYGPATH -u "$path"`
19998     fi
19999     if test "x$new_path" = x; then
20000       # It's still not found. Now this is an unrecoverable error.
20001       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20002 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20003       has_space=`$ECHO "$complete" | $GREP " "`
20004       if test "x$has_space" != x; then
20005         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20006 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20007       fi
20008       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20009     fi
20010   fi
20011 
20012   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20013   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20014   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20015   # "foo.exe" is OK but "foo" is an error.
20016   #
20017   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20018   # It is also a way to make sure we got the proper file name for the real test later on.
20019   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20020   if test "x$test_shortpath" = x; then
20021     # Short path failed, file does not exist as specified.
20022     # Try adding .exe or .cmd
20023     if test -f "${new_path}.exe"; then
20024       input_to_shortpath="${new_path}.exe"
20025     elif test -f "${new_path}.cmd"; then
20026       input_to_shortpath="${new_path}.cmd"
20027     else
20028       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20029 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20030       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20031 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20032       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20033     fi
20034   else
20035     input_to_shortpath="$new_path"
20036   fi
20037 
20038   # Call helper function which possibly converts this using DOS-style short mode.
20039   # If so, the updated path is stored in $new_path.
20040   new_path="$input_to_shortpath"
20041 
20042   input_path="$input_to_shortpath"
20043   # Check if we need to convert this using DOS-style short mode. If the path
20044   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20045   # take no chances and rewrite it.
20046   # Note: m4 eats our [], so we need to use [ and ] instead.
20047   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20048   if test "x$has_forbidden_chars" != x; then
20049     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20050     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20051     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20052     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20053       # Going to short mode and back again did indeed matter. Since short mode is
20054       # case insensitive, let's make it lowercase to improve readability.
20055       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20056       # Now convert it back to Unix-style (cygpath)
20057       input_path=`$CYGPATH -u "$shortmode_path"`
20058       new_path="$input_path"
20059     fi
20060   fi
20061 
20062   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20063   if test "x$test_cygdrive_prefix" = x; then
20064     # As a simple fix, exclude /usr/bin since it's not a real path.
20065     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20066       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20067       # a path prefixed by /cygdrive for fixpath to work.
20068       new_path="$CYGWIN_ROOT_PATH$input_path"
20069     fi
20070   fi
20071 
20072   # remove trailing .exe if any
20073   new_path="${new_path/%.exe/}"
20074 
20075     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20076 
20077   # First separate the path from the arguments. This will split at the first
20078   # space.
20079   complete="$FOUND_MAKE"
20080   path="${complete%% *}"
20081   tmp="$complete EOL"
20082   arguments="${tmp#* }"
20083 
20084   # Input might be given as Windows format, start by converting to
20085   # unix format.
20086   new_path="$path"
20087 
20088   windows_path="$new_path"
20089   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20090     unix_path=`$CYGPATH -u "$windows_path"`
20091     new_path="$unix_path"
20092   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20093     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20094     new_path="$unix_path"
20095   fi
20096 
20097 
20098   # Now try to locate executable using which
20099   new_path=`$WHICH "$new_path" 2> /dev/null`
20100 
20101   if test "x$new_path" = x; then
20102     # Oops. Which didn't find the executable.
20103     # The splitting of arguments from the executable at a space might have been incorrect,
20104     # since paths with space are more likely in Windows. Give it another try with the whole
20105     # argument.
20106     path="$complete"
20107     arguments="EOL"
20108     new_path="$path"
20109 
20110   windows_path="$new_path"
20111   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20112     unix_path=`$CYGPATH -u "$windows_path"`
20113     new_path="$unix_path"
20114   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20115     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20116     new_path="$unix_path"
20117   fi
20118 
20119 
20120     new_path=`$WHICH "$new_path" 2> /dev/null`
20121     # bat and cmd files are not always considered executable in MSYS causing which
20122     # to not find them
20123     if test "x$new_path" = x \
20124         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20125         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20126       new_path="$path"
20127 
20128   windows_path="$new_path"
20129   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20130     unix_path=`$CYGPATH -u "$windows_path"`
20131     new_path="$unix_path"
20132   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20133     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20134     new_path="$unix_path"
20135   fi
20136 
20137     fi
20138 
20139     if test "x$new_path" = x; then
20140       # It's still not found. Now this is an unrecoverable error.
20141       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20142 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20143       has_space=`$ECHO "$complete" | $GREP " "`
20144       if test "x$has_space" != x; then
20145         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20146 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20147       fi
20148       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20149     fi
20150   fi
20151 
20152   # Now new_path has a complete unix path to the binary
20153   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20154     # Keep paths in /bin as-is, but remove trailing .exe if any
20155     new_path="${new_path/%.exe/}"
20156     # Do not save /bin paths to all_fixpath_prefixes!
20157   else
20158     # Not in mixed or Windows style, start by that.
20159     new_path=`cmd //c echo $new_path`
20160 
20161   input_path="$new_path"
20162   # Check if we need to convert this using DOS-style short mode. If the path
20163   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20164   # take no chances and rewrite it.
20165   # Note: m4 eats our [], so we need to use [ and ] instead.
20166   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20167   if test "x$has_forbidden_chars" != x; then
20168     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20169     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20170   fi
20171 
20172     # Output is in $new_path
20173 
20174   windows_path="$new_path"
20175   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20176     unix_path=`$CYGPATH -u "$windows_path"`
20177     new_path="$unix_path"
20178   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20179     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20180     new_path="$unix_path"
20181   fi
20182 
20183     # remove trailing .exe if any
20184     new_path="${new_path/%.exe/}"
20185 
20186     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20187     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20188   fi
20189 
20190     else
20191       # We're on a unix platform. Hooray! :)
20192       # First separate the path from the arguments. This will split at the first
20193       # space.
20194       complete="$FOUND_MAKE"
20195       path="${complete%% *}"
20196       tmp="$complete EOL"
20197       arguments="${tmp#* }"
20198 
20199       # Cannot rely on the command "which" here since it doesn't always work.
20200       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20201       if test -z "$is_absolute_path"; then
20202         # Path to executable is not absolute. Find it.
20203         IFS_save="$IFS"
20204         IFS=:
20205         for p in $PATH; do
20206           if test -f "$p/$path" && test -x "$p/$path"; then
20207             new_path="$p/$path"
20208             break
20209           fi
20210         done
20211         IFS="$IFS_save"
20212       else
20213         # This is an absolute path, we can use it without further modifications.
20214         new_path="$path"
20215       fi
20216 
20217       if test "x$new_path" = x; then
20218         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20219 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20220         has_space=`$ECHO "$complete" | $GREP " "`
20221         if test "x$has_space" != x; then
20222           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20223 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20224         fi
20225         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20226       fi
20227     fi
20228 
20229     # Now join together the path and the arguments once again
20230     if test "x$arguments" != xEOL; then
20231       new_complete="$new_path ${arguments% *}"
20232     else
20233       new_complete="$new_path"
20234     fi
20235 
20236     if test "x$complete" != "x$new_complete"; then
20237       FOUND_MAKE="$new_complete"
20238       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20239 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20240     fi
20241   fi
20242 
20243         fi
20244       fi
20245     fi
20246   fi
20247 
20248         if test "x$FOUND_MAKE" = x; then
20249           for ac_prog in make
20250 do
20251   # Extract the first word of "$ac_prog", so it can be a program name with args.
20252 set dummy $ac_prog; ac_word=$2
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20254 $as_echo_n "checking for $ac_word... " >&6; }
20255 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20256   $as_echo_n "(cached) " >&6
20257 else
20258   case $CHECK_TOOLSDIR_MAKE in
20259   [\\/]* | ?:[\\/]*)
20260   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20261   ;;
20262   *)
20263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20264 for as_dir in $PATH
20265 do
20266   IFS=$as_save_IFS
20267   test -z "$as_dir" && as_dir=.
20268     for ac_exec_ext in '' $ac_executable_extensions; do
20269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20270     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20272     break 2
20273   fi
20274 done
20275   done
20276 IFS=$as_save_IFS
20277 
20278   ;;
20279 esac
20280 fi
20281 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20282 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20284 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20285 else
20286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20287 $as_echo "no" >&6; }
20288 fi
20289 
20290 
20291   test -n "$CHECK_TOOLSDIR_MAKE" && break
20292 done
20293 
20294 
20295   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20296   DESCRIPTION="make in tools-dir"
20297 
20298   # On Cygwin, we require a newer version of make than on other platforms
20299   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20300     MAKE_VERSION_EXPR="-e 4\."
20301     MAKE_REQUIRED_VERSION="4.0"
20302    else
20303     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20304     MAKE_REQUIRED_VERSION="3.81"
20305   fi
20306 
20307   if test "x$MAKE_CANDIDATE" != x; then
20308     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20309 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20310     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20311     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20312     if test "x$IS_GNU_MAKE" = x; then
20313       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20314 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20315     else
20316       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20317       if test "x$IS_MODERN_MAKE" = x; then
20318         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
20319 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
20320       else
20321         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20322           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20323             MAKE_EXPECTED_ENV='cygwin'
20324           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20325             MAKE_EXPECTED_ENV='msys'
20326           else
20327             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20328           fi
20329           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20330           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20331         else
20332           # Not relevant for non-Windows
20333           IS_MAKE_CORRECT_ENV=true
20334         fi
20335         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20336           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
20337 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
20338         else
20339           FOUND_MAKE=$MAKE_CANDIDATE
20340 
20341   # Only process if variable expands to non-empty
20342 
20343   if test "x$FOUND_MAKE" != x; then
20344     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20345 
20346   # First separate the path from the arguments. This will split at the first
20347   # space.
20348   complete="$FOUND_MAKE"
20349   path="${complete%% *}"
20350   tmp="$complete EOL"
20351   arguments="${tmp#* }"
20352 
20353   # Input might be given as Windows format, start by converting to
20354   # unix format.
20355   new_path=`$CYGPATH -u "$path"`
20356 
20357   # Now try to locate executable using which
20358   new_path=`$WHICH "$new_path" 2> /dev/null`
20359   # bat and cmd files are not always considered executable in cygwin causing which
20360   # to not find them
20361   if test "x$new_path" = x \
20362       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20363       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20364     new_path=`$CYGPATH -u "$path"`
20365   fi
20366   if test "x$new_path" = x; then
20367     # Oops. Which didn't find the executable.
20368     # The splitting of arguments from the executable at a space might have been incorrect,
20369     # since paths with space are more likely in Windows. Give it another try with the whole
20370     # argument.
20371     path="$complete"
20372     arguments="EOL"
20373     new_path=`$CYGPATH -u "$path"`
20374     new_path=`$WHICH "$new_path" 2> /dev/null`
20375     # bat and cmd files are not always considered executable in cygwin causing which
20376     # to not find them
20377     if test "x$new_path" = x \
20378         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20379         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20380       new_path=`$CYGPATH -u "$path"`
20381     fi
20382     if test "x$new_path" = x; then
20383       # It's still not found. Now this is an unrecoverable error.
20384       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20385 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20386       has_space=`$ECHO "$complete" | $GREP " "`
20387       if test "x$has_space" != x; then
20388         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20389 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20390       fi
20391       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20392     fi
20393   fi
20394 
20395   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20396   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20397   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20398   # "foo.exe" is OK but "foo" is an error.
20399   #
20400   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20401   # It is also a way to make sure we got the proper file name for the real test later on.
20402   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20403   if test "x$test_shortpath" = x; then
20404     # Short path failed, file does not exist as specified.
20405     # Try adding .exe or .cmd
20406     if test -f "${new_path}.exe"; then
20407       input_to_shortpath="${new_path}.exe"
20408     elif test -f "${new_path}.cmd"; then
20409       input_to_shortpath="${new_path}.cmd"
20410     else
20411       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20412 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20413       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20414 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20415       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20416     fi
20417   else
20418     input_to_shortpath="$new_path"
20419   fi
20420 
20421   # Call helper function which possibly converts this using DOS-style short mode.
20422   # If so, the updated path is stored in $new_path.
20423   new_path="$input_to_shortpath"
20424 
20425   input_path="$input_to_shortpath"
20426   # Check if we need to convert this using DOS-style short mode. If the path
20427   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20428   # take no chances and rewrite it.
20429   # Note: m4 eats our [], so we need to use [ and ] instead.
20430   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20431   if test "x$has_forbidden_chars" != x; then
20432     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20433     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20434     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20435     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20436       # Going to short mode and back again did indeed matter. Since short mode is
20437       # case insensitive, let's make it lowercase to improve readability.
20438       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20439       # Now convert it back to Unix-style (cygpath)
20440       input_path=`$CYGPATH -u "$shortmode_path"`
20441       new_path="$input_path"
20442     fi
20443   fi
20444 
20445   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20446   if test "x$test_cygdrive_prefix" = x; then
20447     # As a simple fix, exclude /usr/bin since it's not a real path.
20448     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20449       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20450       # a path prefixed by /cygdrive for fixpath to work.
20451       new_path="$CYGWIN_ROOT_PATH$input_path"
20452     fi
20453   fi
20454 
20455   # remove trailing .exe if any
20456   new_path="${new_path/%.exe/}"
20457 
20458     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20459 
20460   # First separate the path from the arguments. This will split at the first
20461   # space.
20462   complete="$FOUND_MAKE"
20463   path="${complete%% *}"
20464   tmp="$complete EOL"
20465   arguments="${tmp#* }"
20466 
20467   # Input might be given as Windows format, start by converting to
20468   # unix format.
20469   new_path="$path"
20470 
20471   windows_path="$new_path"
20472   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20473     unix_path=`$CYGPATH -u "$windows_path"`
20474     new_path="$unix_path"
20475   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20476     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20477     new_path="$unix_path"
20478   fi
20479 
20480 
20481   # Now try to locate executable using which
20482   new_path=`$WHICH "$new_path" 2> /dev/null`
20483 
20484   if test "x$new_path" = x; then
20485     # Oops. Which didn't find the executable.
20486     # The splitting of arguments from the executable at a space might have been incorrect,
20487     # since paths with space are more likely in Windows. Give it another try with the whole
20488     # argument.
20489     path="$complete"
20490     arguments="EOL"
20491     new_path="$path"
20492 
20493   windows_path="$new_path"
20494   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20495     unix_path=`$CYGPATH -u "$windows_path"`
20496     new_path="$unix_path"
20497   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20498     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20499     new_path="$unix_path"
20500   fi
20501 
20502 
20503     new_path=`$WHICH "$new_path" 2> /dev/null`
20504     # bat and cmd files are not always considered executable in MSYS causing which
20505     # to not find them
20506     if test "x$new_path" = x \
20507         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20508         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20509       new_path="$path"
20510 
20511   windows_path="$new_path"
20512   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20513     unix_path=`$CYGPATH -u "$windows_path"`
20514     new_path="$unix_path"
20515   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20516     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20517     new_path="$unix_path"
20518   fi
20519 
20520     fi
20521 
20522     if test "x$new_path" = x; then
20523       # It's still not found. Now this is an unrecoverable error.
20524       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20525 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20526       has_space=`$ECHO "$complete" | $GREP " "`
20527       if test "x$has_space" != x; then
20528         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20529 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20530       fi
20531       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20532     fi
20533   fi
20534 
20535   # Now new_path has a complete unix path to the binary
20536   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20537     # Keep paths in /bin as-is, but remove trailing .exe if any
20538     new_path="${new_path/%.exe/}"
20539     # Do not save /bin paths to all_fixpath_prefixes!
20540   else
20541     # Not in mixed or Windows style, start by that.
20542     new_path=`cmd //c echo $new_path`
20543 
20544   input_path="$new_path"
20545   # Check if we need to convert this using DOS-style short mode. If the path
20546   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20547   # take no chances and rewrite it.
20548   # Note: m4 eats our [], so we need to use [ and ] instead.
20549   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20550   if test "x$has_forbidden_chars" != x; then
20551     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20552     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20553   fi
20554 
20555     # Output is in $new_path
20556 
20557   windows_path="$new_path"
20558   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20559     unix_path=`$CYGPATH -u "$windows_path"`
20560     new_path="$unix_path"
20561   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20562     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20563     new_path="$unix_path"
20564   fi
20565 
20566     # remove trailing .exe if any
20567     new_path="${new_path/%.exe/}"
20568 
20569     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20570     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20571   fi
20572 
20573     else
20574       # We're on a unix platform. Hooray! :)
20575       # First separate the path from the arguments. This will split at the first
20576       # space.
20577       complete="$FOUND_MAKE"
20578       path="${complete%% *}"
20579       tmp="$complete EOL"
20580       arguments="${tmp#* }"
20581 
20582       # Cannot rely on the command "which" here since it doesn't always work.
20583       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20584       if test -z "$is_absolute_path"; then
20585         # Path to executable is not absolute. Find it.
20586         IFS_save="$IFS"
20587         IFS=:
20588         for p in $PATH; do
20589           if test -f "$p/$path" && test -x "$p/$path"; then
20590             new_path="$p/$path"
20591             break
20592           fi
20593         done
20594         IFS="$IFS_save"
20595       else
20596         # This is an absolute path, we can use it without further modifications.
20597         new_path="$path"
20598       fi
20599 
20600       if test "x$new_path" = x; then
20601         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20602 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20603         has_space=`$ECHO "$complete" | $GREP " "`
20604         if test "x$has_space" != x; then
20605           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20606 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20607         fi
20608         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20609       fi
20610     fi
20611 
20612     # Now join together the path and the arguments once again
20613     if test "x$arguments" != xEOL; then
20614       new_complete="$new_path ${arguments% *}"
20615     else
20616       new_complete="$new_path"
20617     fi
20618 
20619     if test "x$complete" != "x$new_complete"; then
20620       FOUND_MAKE="$new_complete"
20621       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20622 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20623     fi
20624   fi
20625 
20626         fi
20627       fi
20628     fi
20629   fi
20630 
20631         fi
20632         PATH=$OLD_PATH
20633       fi
20634     fi
20635 
20636     if test "x$FOUND_MAKE" = x; then
20637       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
20638     fi
20639 
20640     else
20641       # If it succeeded, then it was overridden by the user. We will use it
20642       # for the tool.
20643 
20644       # First remove it from the list of overridden variables, so we can test
20645       # for unknown variables in the end.
20646       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20647 
20648       # Check if we try to supply an empty value
20649       if test "x$MAKE" = x; then
20650         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20651 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20652         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20653 $as_echo_n "checking for MAKE... " >&6; }
20654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20655 $as_echo "disabled" >&6; }
20656       else
20657         # Check if the provided tool contains a complete path.
20658         tool_specified="$MAKE"
20659         tool_basename="${tool_specified##*/}"
20660         if test "x$tool_basename" = "x$tool_specified"; then
20661           # A command without a complete path is provided, search $PATH.
20662           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20663 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20664           # Extract the first word of "$tool_basename", so it can be a program name with args.
20665 set dummy $tool_basename; ac_word=$2
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20667 $as_echo_n "checking for $ac_word... " >&6; }
20668 if ${ac_cv_path_MAKE+:} false; then :
20669   $as_echo_n "(cached) " >&6
20670 else
20671   case $MAKE in
20672   [\\/]* | ?:[\\/]*)
20673   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20674   ;;
20675   *)
20676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20677 for as_dir in $PATH
20678 do
20679   IFS=$as_save_IFS
20680   test -z "$as_dir" && as_dir=.
20681     for ac_exec_ext in '' $ac_executable_extensions; do
20682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20683     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20685     break 2
20686   fi
20687 done
20688   done
20689 IFS=$as_save_IFS
20690 
20691   ;;
20692 esac
20693 fi
20694 MAKE=$ac_cv_path_MAKE
20695 if test -n "$MAKE"; then
20696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
20697 $as_echo "$MAKE" >&6; }
20698 else
20699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20700 $as_echo "no" >&6; }
20701 fi
20702 
20703 
20704           if test "x$MAKE" = x; then
20705             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20706           fi
20707         else
20708           # Otherwise we believe it is a complete path. Use it as it is.
20709           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
20710 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
20711           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20712 $as_echo_n "checking for MAKE... " >&6; }
20713           if test ! -x "$tool_specified"; then
20714             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20715 $as_echo "not found" >&6; }
20716             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
20717           fi
20718           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20719 $as_echo "$tool_specified" >&6; }
20720         fi
20721       fi
20722     fi
20723 
20724     # If MAKE was set by user, verify the version
20725 
20726   MAKE_CANDIDATE=""$MAKE""
20727   DESCRIPTION="user supplied MAKE=$MAKE"
20728 
20729   # On Cygwin, we require a newer version of make than on other platforms
20730   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20731     MAKE_VERSION_EXPR="-e 4\."
20732     MAKE_REQUIRED_VERSION="4.0"
20733    else
20734     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20735     MAKE_REQUIRED_VERSION="3.81"
20736   fi
20737 
20738   if test "x$MAKE_CANDIDATE" != x; then
20739     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20740 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20741     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20742     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20743     if test "x$IS_GNU_MAKE" = x; then
20744       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20745 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20746     else
20747       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20748       if test "x$IS_MODERN_MAKE" = x; then
20749         { $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
20750 $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;}
20751       else
20752         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20753           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20754             MAKE_EXPECTED_ENV='cygwin'
20755           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20756             MAKE_EXPECTED_ENV='msys'
20757           else
20758             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20759           fi
20760           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20761           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20762         else
20763           # Not relevant for non-Windows
20764           IS_MAKE_CORRECT_ENV=true
20765         fi
20766         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20767           { $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
20768 $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;}
20769         else
20770           FOUND_MAKE=$MAKE_CANDIDATE
20771 
20772   # Only process if variable expands to non-empty
20773 
20774   if test "x$FOUND_MAKE" != x; then
20775     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20776 
20777   # First separate the path from the arguments. This will split at the first
20778   # space.
20779   complete="$FOUND_MAKE"
20780   path="${complete%% *}"
20781   tmp="$complete EOL"
20782   arguments="${tmp#* }"
20783 
20784   # Input might be given as Windows format, start by converting to
20785   # unix format.
20786   new_path=`$CYGPATH -u "$path"`
20787 
20788   # Now try to locate executable using which
20789   new_path=`$WHICH "$new_path" 2> /dev/null`
20790   # bat and cmd files are not always considered executable in cygwin causing which
20791   # to not find them
20792   if test "x$new_path" = x \
20793       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20794       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20795     new_path=`$CYGPATH -u "$path"`
20796   fi
20797   if test "x$new_path" = x; then
20798     # Oops. Which didn't find the executable.
20799     # The splitting of arguments from the executable at a space might have been incorrect,
20800     # since paths with space are more likely in Windows. Give it another try with the whole
20801     # argument.
20802     path="$complete"
20803     arguments="EOL"
20804     new_path=`$CYGPATH -u "$path"`
20805     new_path=`$WHICH "$new_path" 2> /dev/null`
20806     # bat and cmd files are not always considered executable in cygwin causing which
20807     # to not find them
20808     if test "x$new_path" = x \
20809         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20810         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20811       new_path=`$CYGPATH -u "$path"`
20812     fi
20813     if test "x$new_path" = x; then
20814       # It's still not found. Now this is an unrecoverable error.
20815       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20816 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20817       has_space=`$ECHO "$complete" | $GREP " "`
20818       if test "x$has_space" != x; then
20819         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20820 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20821       fi
20822       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20823     fi
20824   fi
20825 
20826   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20827   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20828   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20829   # "foo.exe" is OK but "foo" is an error.
20830   #
20831   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20832   # It is also a way to make sure we got the proper file name for the real test later on.
20833   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20834   if test "x$test_shortpath" = x; then
20835     # Short path failed, file does not exist as specified.
20836     # Try adding .exe or .cmd
20837     if test -f "${new_path}.exe"; then
20838       input_to_shortpath="${new_path}.exe"
20839     elif test -f "${new_path}.cmd"; then
20840       input_to_shortpath="${new_path}.cmd"
20841     else
20842       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20843 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20844       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20845 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20846       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20847     fi
20848   else
20849     input_to_shortpath="$new_path"
20850   fi
20851 
20852   # Call helper function which possibly converts this using DOS-style short mode.
20853   # If so, the updated path is stored in $new_path.
20854   new_path="$input_to_shortpath"
20855 
20856   input_path="$input_to_shortpath"
20857   # Check if we need to convert this using DOS-style short mode. If the path
20858   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20859   # take no chances and rewrite it.
20860   # Note: m4 eats our [], so we need to use [ and ] instead.
20861   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20862   if test "x$has_forbidden_chars" != x; then
20863     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20864     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20865     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20866     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20867       # Going to short mode and back again did indeed matter. Since short mode is
20868       # case insensitive, let's make it lowercase to improve readability.
20869       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20870       # Now convert it back to Unix-style (cygpath)
20871       input_path=`$CYGPATH -u "$shortmode_path"`
20872       new_path="$input_path"
20873     fi
20874   fi
20875 
20876   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20877   if test "x$test_cygdrive_prefix" = x; then
20878     # As a simple fix, exclude /usr/bin since it's not a real path.
20879     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20880       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20881       # a path prefixed by /cygdrive for fixpath to work.
20882       new_path="$CYGWIN_ROOT_PATH$input_path"
20883     fi
20884   fi
20885 
20886   # remove trailing .exe if any
20887   new_path="${new_path/%.exe/}"
20888 
20889     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20890 
20891   # First separate the path from the arguments. This will split at the first
20892   # space.
20893   complete="$FOUND_MAKE"
20894   path="${complete%% *}"
20895   tmp="$complete EOL"
20896   arguments="${tmp#* }"
20897 
20898   # Input might be given as Windows format, start by converting to
20899   # unix format.
20900   new_path="$path"
20901 
20902   windows_path="$new_path"
20903   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20904     unix_path=`$CYGPATH -u "$windows_path"`
20905     new_path="$unix_path"
20906   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20907     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20908     new_path="$unix_path"
20909   fi
20910 
20911 
20912   # Now try to locate executable using which
20913   new_path=`$WHICH "$new_path" 2> /dev/null`
20914 
20915   if test "x$new_path" = x; then
20916     # Oops. Which didn't find the executable.
20917     # The splitting of arguments from the executable at a space might have been incorrect,
20918     # since paths with space are more likely in Windows. Give it another try with the whole
20919     # argument.
20920     path="$complete"
20921     arguments="EOL"
20922     new_path="$path"
20923 
20924   windows_path="$new_path"
20925   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20926     unix_path=`$CYGPATH -u "$windows_path"`
20927     new_path="$unix_path"
20928   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20929     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20930     new_path="$unix_path"
20931   fi
20932 
20933 
20934     new_path=`$WHICH "$new_path" 2> /dev/null`
20935     # bat and cmd files are not always considered executable in MSYS causing which
20936     # to not find them
20937     if test "x$new_path" = x \
20938         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20939         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20940       new_path="$path"
20941 
20942   windows_path="$new_path"
20943   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20944     unix_path=`$CYGPATH -u "$windows_path"`
20945     new_path="$unix_path"
20946   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20947     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20948     new_path="$unix_path"
20949   fi
20950 
20951     fi
20952 
20953     if test "x$new_path" = x; then
20954       # It's still not found. Now this is an unrecoverable error.
20955       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20956 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20957       has_space=`$ECHO "$complete" | $GREP " "`
20958       if test "x$has_space" != x; then
20959         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20960 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20961       fi
20962       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20963     fi
20964   fi
20965 
20966   # Now new_path has a complete unix path to the binary
20967   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20968     # Keep paths in /bin as-is, but remove trailing .exe if any
20969     new_path="${new_path/%.exe/}"
20970     # Do not save /bin paths to all_fixpath_prefixes!
20971   else
20972     # Not in mixed or Windows style, start by that.
20973     new_path=`cmd //c echo $new_path`
20974 
20975   input_path="$new_path"
20976   # Check if we need to convert this using DOS-style short mode. If the path
20977   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20978   # take no chances and rewrite it.
20979   # Note: m4 eats our [], so we need to use [ and ] instead.
20980   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20981   if test "x$has_forbidden_chars" != x; then
20982     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20983     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20984   fi
20985 
20986     # Output is in $new_path
20987 
20988   windows_path="$new_path"
20989   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20990     unix_path=`$CYGPATH -u "$windows_path"`
20991     new_path="$unix_path"
20992   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20993     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20994     new_path="$unix_path"
20995   fi
20996 
20997     # remove trailing .exe if any
20998     new_path="${new_path/%.exe/}"
20999 
21000     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21001     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21002   fi
21003 
21004     else
21005       # We're on a unix platform. Hooray! :)
21006       # First separate the path from the arguments. This will split at the first
21007       # space.
21008       complete="$FOUND_MAKE"
21009       path="${complete%% *}"
21010       tmp="$complete EOL"
21011       arguments="${tmp#* }"
21012 
21013       # Cannot rely on the command "which" here since it doesn't always work.
21014       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21015       if test -z "$is_absolute_path"; then
21016         # Path to executable is not absolute. Find it.
21017         IFS_save="$IFS"
21018         IFS=:
21019         for p in $PATH; do
21020           if test -f "$p/$path" && test -x "$p/$path"; then
21021             new_path="$p/$path"
21022             break
21023           fi
21024         done
21025         IFS="$IFS_save"
21026       else
21027         # This is an absolute path, we can use it without further modifications.
21028         new_path="$path"
21029       fi
21030 
21031       if test "x$new_path" = x; then
21032         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21033 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21034         has_space=`$ECHO "$complete" | $GREP " "`
21035         if test "x$has_space" != x; then
21036           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21037 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21038         fi
21039         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21040       fi
21041     fi
21042 
21043     # Now join together the path and the arguments once again
21044     if test "x$arguments" != xEOL; then
21045       new_complete="$new_path ${arguments% *}"
21046     else
21047       new_complete="$new_path"
21048     fi
21049 
21050     if test "x$complete" != "x$new_complete"; then
21051       FOUND_MAKE="$new_complete"
21052       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21053 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21054     fi
21055   fi
21056 
21057         fi
21058       fi
21059     fi
21060   fi
21061 
21062     if test "x$FOUND_MAKE" = x; then
21063       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21064     fi
21065 
21066   fi
21067 
21068 
21069   MAKE=$FOUND_MAKE
21070 
21071   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21072 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21073 
21074 
21075   # Check if make supports the output sync option and if so, setup using it.
21076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21077 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21078   if $MAKE --version -O > /dev/null 2>&1; then
21079     OUTPUT_SYNC_SUPPORTED=true
21080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21081 $as_echo "yes" >&6; }
21082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21083 $as_echo_n "checking for output-sync value... " >&6; }
21084 
21085 # Check whether --with-output-sync was given.
21086 if test "${with_output_sync+set}" = set; then :
21087   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21088 fi
21089 
21090     if test "x$OUTPUT_SYNC" = "x"; then
21091       OUTPUT_SYNC=none
21092     fi
21093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21094 $as_echo "$OUTPUT_SYNC" >&6; }
21095     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21096       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21097     fi
21098   else
21099     OUTPUT_SYNC_SUPPORTED=false
21100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21101 $as_echo "no" >&6; }
21102   fi
21103 
21104 
21105 
21106 
21107 
21108 
21109   # Test if find supports -delete
21110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21111 $as_echo_n "checking if find supports -delete... " >&6; }
21112   FIND_DELETE="-delete"
21113 
21114   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21115 
21116   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21117 
21118   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21119   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21120     # No, it does not.
21121     $RM $DELETEDIR/TestIfFindSupportsDelete
21122     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21123       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21124       FIND_DELETE="-print | $XARGS $RM"
21125     else
21126       FIND_DELETE="-exec $RM \{\} \+"
21127     fi
21128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21129 $as_echo "no" >&6; }
21130   else
21131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21132 $as_echo "yes" >&6; }
21133   fi
21134   $RMDIR $DELETEDIR
21135 
21136 
21137 
21138   # Test which kind of tar was found
21139   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21140     TAR_TYPE="gnu"
21141   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21142     TAR_TYPE="bsd"
21143   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21144     TAR_TYPE="solaris"
21145   fi
21146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21147 $as_echo_n "checking what type of tar was found... " >&6; }
21148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21149 $as_echo "$TAR_TYPE" >&6; }
21150 
21151   TAR_CREATE_FILE_PARAM=""
21152 
21153   if test "x$TAR_TYPE" = "xgnu"; then
21154     TAR_INCLUDE_PARAM="T"
21155     TAR_SUPPORTS_TRANSFORM="true"
21156     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21157       # When using gnu tar for Solaris targets, need to use compatibility mode
21158       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21159     fi
21160   else
21161     TAR_INCLUDE_PARAM="I"
21162     TAR_SUPPORTS_TRANSFORM="false"
21163   fi
21164 
21165 
21166 
21167 
21168 
21169 
21170   # These tools might not be installed by default,
21171   # need hint on how to install them.
21172 
21173 
21174 
21175   # Publish this variable in the help.
21176 
21177 
21178   if [ -z "${UNZIP+x}" ]; then
21179     # The variable is not set by user, try to locate tool using the code snippet
21180     for ac_prog in unzip
21181 do
21182   # Extract the first word of "$ac_prog", so it can be a program name with args.
21183 set dummy $ac_prog; ac_word=$2
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21185 $as_echo_n "checking for $ac_word... " >&6; }
21186 if ${ac_cv_path_UNZIP+:} false; then :
21187   $as_echo_n "(cached) " >&6
21188 else
21189   case $UNZIP in
21190   [\\/]* | ?:[\\/]*)
21191   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21192   ;;
21193   *)
21194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21195 for as_dir in $PATH
21196 do
21197   IFS=$as_save_IFS
21198   test -z "$as_dir" && as_dir=.
21199     for ac_exec_ext in '' $ac_executable_extensions; do
21200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21201     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21203     break 2
21204   fi
21205 done
21206   done
21207 IFS=$as_save_IFS
21208 
21209   ;;
21210 esac
21211 fi
21212 UNZIP=$ac_cv_path_UNZIP
21213 if test -n "$UNZIP"; then
21214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21215 $as_echo "$UNZIP" >&6; }
21216 else
21217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21218 $as_echo "no" >&6; }
21219 fi
21220 
21221 
21222   test -n "$UNZIP" && break
21223 done
21224 
21225   else
21226     # The variable is set, but is it from the command line or the environment?
21227 
21228     # Try to remove the string !UNZIP! from our list.
21229     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21230     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21231       # If it failed, the variable was not from the command line. Ignore it,
21232       # but warn the user (except for BASH, which is always set by the calling BASH).
21233       if test "xUNZIP" != xBASH; then
21234         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21235 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21236       fi
21237       # Try to locate tool using the code snippet
21238       for ac_prog in unzip
21239 do
21240   # Extract the first word of "$ac_prog", so it can be a program name with args.
21241 set dummy $ac_prog; ac_word=$2
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21243 $as_echo_n "checking for $ac_word... " >&6; }
21244 if ${ac_cv_path_UNZIP+:} false; then :
21245   $as_echo_n "(cached) " >&6
21246 else
21247   case $UNZIP in
21248   [\\/]* | ?:[\\/]*)
21249   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21250   ;;
21251   *)
21252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21253 for as_dir in $PATH
21254 do
21255   IFS=$as_save_IFS
21256   test -z "$as_dir" && as_dir=.
21257     for ac_exec_ext in '' $ac_executable_extensions; do
21258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21259     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21261     break 2
21262   fi
21263 done
21264   done
21265 IFS=$as_save_IFS
21266 
21267   ;;
21268 esac
21269 fi
21270 UNZIP=$ac_cv_path_UNZIP
21271 if test -n "$UNZIP"; then
21272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21273 $as_echo "$UNZIP" >&6; }
21274 else
21275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21276 $as_echo "no" >&6; }
21277 fi
21278 
21279 
21280   test -n "$UNZIP" && break
21281 done
21282 
21283     else
21284       # If it succeeded, then it was overridden by the user. We will use it
21285       # for the tool.
21286 
21287       # First remove it from the list of overridden variables, so we can test
21288       # for unknown variables in the end.
21289       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21290 
21291       # Check if we try to supply an empty value
21292       if test "x$UNZIP" = x; then
21293         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21294 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21295         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21296 $as_echo_n "checking for UNZIP... " >&6; }
21297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21298 $as_echo "disabled" >&6; }
21299       else
21300         # Check if the provided tool contains a complete path.
21301         tool_specified="$UNZIP"
21302         tool_basename="${tool_specified##*/}"
21303         if test "x$tool_basename" = "x$tool_specified"; then
21304           # A command without a complete path is provided, search $PATH.
21305           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21306 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21307           # Extract the first word of "$tool_basename", so it can be a program name with args.
21308 set dummy $tool_basename; ac_word=$2
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21310 $as_echo_n "checking for $ac_word... " >&6; }
21311 if ${ac_cv_path_UNZIP+:} false; then :
21312   $as_echo_n "(cached) " >&6
21313 else
21314   case $UNZIP in
21315   [\\/]* | ?:[\\/]*)
21316   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21317   ;;
21318   *)
21319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21320 for as_dir in $PATH
21321 do
21322   IFS=$as_save_IFS
21323   test -z "$as_dir" && as_dir=.
21324     for ac_exec_ext in '' $ac_executable_extensions; do
21325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21326     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21328     break 2
21329   fi
21330 done
21331   done
21332 IFS=$as_save_IFS
21333 
21334   ;;
21335 esac
21336 fi
21337 UNZIP=$ac_cv_path_UNZIP
21338 if test -n "$UNZIP"; then
21339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21340 $as_echo "$UNZIP" >&6; }
21341 else
21342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21343 $as_echo "no" >&6; }
21344 fi
21345 
21346 
21347           if test "x$UNZIP" = x; then
21348             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21349           fi
21350         else
21351           # Otherwise we believe it is a complete path. Use it as it is.
21352           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21353 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21354           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21355 $as_echo_n "checking for UNZIP... " >&6; }
21356           if test ! -x "$tool_specified"; then
21357             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21358 $as_echo "not found" >&6; }
21359             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21360           fi
21361           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21362 $as_echo "$tool_specified" >&6; }
21363         fi
21364       fi
21365     fi
21366 
21367   fi
21368 
21369 
21370 
21371   if test "x$UNZIP" = x; then
21372     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21373   fi
21374 
21375 
21376   # Since zip uses "ZIP" as a environment variable for passing options, we need
21377   # to name our variable differently, hence ZIPEXE.
21378 
21379 
21380 
21381   # Publish this variable in the help.
21382 
21383 
21384   if [ -z "${ZIPEXE+x}" ]; then
21385     # The variable is not set by user, try to locate tool using the code snippet
21386     for ac_prog in zip
21387 do
21388   # Extract the first word of "$ac_prog", so it can be a program name with args.
21389 set dummy $ac_prog; ac_word=$2
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21391 $as_echo_n "checking for $ac_word... " >&6; }
21392 if ${ac_cv_path_ZIPEXE+:} false; then :
21393   $as_echo_n "(cached) " >&6
21394 else
21395   case $ZIPEXE in
21396   [\\/]* | ?:[\\/]*)
21397   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21398   ;;
21399   *)
21400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21401 for as_dir in $PATH
21402 do
21403   IFS=$as_save_IFS
21404   test -z "$as_dir" && as_dir=.
21405     for ac_exec_ext in '' $ac_executable_extensions; do
21406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21407     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21409     break 2
21410   fi
21411 done
21412   done
21413 IFS=$as_save_IFS
21414 
21415   ;;
21416 esac
21417 fi
21418 ZIPEXE=$ac_cv_path_ZIPEXE
21419 if test -n "$ZIPEXE"; then
21420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21421 $as_echo "$ZIPEXE" >&6; }
21422 else
21423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21424 $as_echo "no" >&6; }
21425 fi
21426 
21427 
21428   test -n "$ZIPEXE" && break
21429 done
21430 
21431   else
21432     # The variable is set, but is it from the command line or the environment?
21433 
21434     # Try to remove the string !ZIPEXE! from our list.
21435     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/}
21436     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21437       # If it failed, the variable was not from the command line. Ignore it,
21438       # but warn the user (except for BASH, which is always set by the calling BASH).
21439       if test "xZIPEXE" != xBASH; then
21440         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5
21441 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;}
21442       fi
21443       # Try to locate tool using the code snippet
21444       for ac_prog in zip
21445 do
21446   # Extract the first word of "$ac_prog", so it can be a program name with args.
21447 set dummy $ac_prog; ac_word=$2
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21449 $as_echo_n "checking for $ac_word... " >&6; }
21450 if ${ac_cv_path_ZIPEXE+:} false; then :
21451   $as_echo_n "(cached) " >&6
21452 else
21453   case $ZIPEXE in
21454   [\\/]* | ?:[\\/]*)
21455   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21456   ;;
21457   *)
21458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21459 for as_dir in $PATH
21460 do
21461   IFS=$as_save_IFS
21462   test -z "$as_dir" && as_dir=.
21463     for ac_exec_ext in '' $ac_executable_extensions; do
21464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21465     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21467     break 2
21468   fi
21469 done
21470   done
21471 IFS=$as_save_IFS
21472 
21473   ;;
21474 esac
21475 fi
21476 ZIPEXE=$ac_cv_path_ZIPEXE
21477 if test -n "$ZIPEXE"; then
21478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21479 $as_echo "$ZIPEXE" >&6; }
21480 else
21481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21482 $as_echo "no" >&6; }
21483 fi
21484 
21485 
21486   test -n "$ZIPEXE" && break
21487 done
21488 
21489     else
21490       # If it succeeded, then it was overridden by the user. We will use it
21491       # for the tool.
21492 
21493       # First remove it from the list of overridden variables, so we can test
21494       # for unknown variables in the end.
21495       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21496 
21497       # Check if we try to supply an empty value
21498       if test "x$ZIPEXE" = x; then
21499         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5
21500 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;}
21501         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21502 $as_echo_n "checking for ZIPEXE... " >&6; }
21503         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21504 $as_echo "disabled" >&6; }
21505       else
21506         # Check if the provided tool contains a complete path.
21507         tool_specified="$ZIPEXE"
21508         tool_basename="${tool_specified##*/}"
21509         if test "x$tool_basename" = "x$tool_specified"; then
21510           # A command without a complete path is provided, search $PATH.
21511           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5
21512 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;}
21513           # Extract the first word of "$tool_basename", so it can be a program name with args.
21514 set dummy $tool_basename; ac_word=$2
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21516 $as_echo_n "checking for $ac_word... " >&6; }
21517 if ${ac_cv_path_ZIPEXE+:} false; then :
21518   $as_echo_n "(cached) " >&6
21519 else
21520   case $ZIPEXE in
21521   [\\/]* | ?:[\\/]*)
21522   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21523   ;;
21524   *)
21525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21526 for as_dir in $PATH
21527 do
21528   IFS=$as_save_IFS
21529   test -z "$as_dir" && as_dir=.
21530     for ac_exec_ext in '' $ac_executable_extensions; do
21531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21532     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21534     break 2
21535   fi
21536 done
21537   done
21538 IFS=$as_save_IFS
21539 
21540   ;;
21541 esac
21542 fi
21543 ZIPEXE=$ac_cv_path_ZIPEXE
21544 if test -n "$ZIPEXE"; then
21545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21546 $as_echo "$ZIPEXE" >&6; }
21547 else
21548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21549 $as_echo "no" >&6; }
21550 fi
21551 
21552 
21553           if test "x$ZIPEXE" = x; then
21554             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21555           fi
21556         else
21557           # Otherwise we believe it is a complete path. Use it as it is.
21558           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5
21559 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;}
21560           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21561 $as_echo_n "checking for ZIPEXE... " >&6; }
21562           if test ! -x "$tool_specified"; then
21563             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21564 $as_echo "not found" >&6; }
21565             as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
21566           fi
21567           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21568 $as_echo "$tool_specified" >&6; }
21569         fi
21570       fi
21571     fi
21572 
21573   fi
21574 
21575 
21576 
21577   if test "x$ZIPEXE" = x; then
21578     as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5
21579   fi
21580 
21581 
21582 
21583   # Non-required basic tools
21584 
21585 
21586 
21587   # Publish this variable in the help.
21588 
21589 
21590   if [ -z "${LDD+x}" ]; then
21591     # The variable is not set by user, try to locate tool using the code snippet
21592     for ac_prog in ldd
21593 do
21594   # Extract the first word of "$ac_prog", so it can be a program name with args.
21595 set dummy $ac_prog; ac_word=$2
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21597 $as_echo_n "checking for $ac_word... " >&6; }
21598 if ${ac_cv_path_LDD+:} false; then :
21599   $as_echo_n "(cached) " >&6
21600 else
21601   case $LDD in
21602   [\\/]* | ?:[\\/]*)
21603   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21604   ;;
21605   *)
21606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21607 for as_dir in $PATH
21608 do
21609   IFS=$as_save_IFS
21610   test -z "$as_dir" && as_dir=.
21611     for ac_exec_ext in '' $ac_executable_extensions; do
21612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21613     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21615     break 2
21616   fi
21617 done
21618   done
21619 IFS=$as_save_IFS
21620 
21621   ;;
21622 esac
21623 fi
21624 LDD=$ac_cv_path_LDD
21625 if test -n "$LDD"; then
21626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21627 $as_echo "$LDD" >&6; }
21628 else
21629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21630 $as_echo "no" >&6; }
21631 fi
21632 
21633 
21634   test -n "$LDD" && break
21635 done
21636 
21637   else
21638     # The variable is set, but is it from the command line or the environment?
21639 
21640     # Try to remove the string !LDD! from our list.
21641     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21642     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21643       # If it failed, the variable was not from the command line. Ignore it,
21644       # but warn the user (except for BASH, which is always set by the calling BASH).
21645       if test "xLDD" != xBASH; then
21646         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21647 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
21648       fi
21649       # Try to locate tool using the code snippet
21650       for ac_prog in ldd
21651 do
21652   # Extract the first word of "$ac_prog", so it can be a program name with args.
21653 set dummy $ac_prog; ac_word=$2
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21655 $as_echo_n "checking for $ac_word... " >&6; }
21656 if ${ac_cv_path_LDD+:} false; then :
21657   $as_echo_n "(cached) " >&6
21658 else
21659   case $LDD in
21660   [\\/]* | ?:[\\/]*)
21661   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21662   ;;
21663   *)
21664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21665 for as_dir in $PATH
21666 do
21667   IFS=$as_save_IFS
21668   test -z "$as_dir" && as_dir=.
21669     for ac_exec_ext in '' $ac_executable_extensions; do
21670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21671     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21673     break 2
21674   fi
21675 done
21676   done
21677 IFS=$as_save_IFS
21678 
21679   ;;
21680 esac
21681 fi
21682 LDD=$ac_cv_path_LDD
21683 if test -n "$LDD"; then
21684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21685 $as_echo "$LDD" >&6; }
21686 else
21687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21688 $as_echo "no" >&6; }
21689 fi
21690 
21691 
21692   test -n "$LDD" && break
21693 done
21694 
21695     else
21696       # If it succeeded, then it was overridden by the user. We will use it
21697       # for the tool.
21698 
21699       # First remove it from the list of overridden variables, so we can test
21700       # for unknown variables in the end.
21701       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21702 
21703       # Check if we try to supply an empty value
21704       if test "x$LDD" = x; then
21705         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
21706 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
21707         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21708 $as_echo_n "checking for LDD... " >&6; }
21709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21710 $as_echo "disabled" >&6; }
21711       else
21712         # Check if the provided tool contains a complete path.
21713         tool_specified="$LDD"
21714         tool_basename="${tool_specified##*/}"
21715         if test "x$tool_basename" = "x$tool_specified"; then
21716           # A command without a complete path is provided, search $PATH.
21717           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
21718 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
21719           # Extract the first word of "$tool_basename", so it can be a program name with args.
21720 set dummy $tool_basename; ac_word=$2
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21722 $as_echo_n "checking for $ac_word... " >&6; }
21723 if ${ac_cv_path_LDD+:} false; then :
21724   $as_echo_n "(cached) " >&6
21725 else
21726   case $LDD in
21727   [\\/]* | ?:[\\/]*)
21728   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21729   ;;
21730   *)
21731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21732 for as_dir in $PATH
21733 do
21734   IFS=$as_save_IFS
21735   test -z "$as_dir" && as_dir=.
21736     for ac_exec_ext in '' $ac_executable_extensions; do
21737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21738     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21740     break 2
21741   fi
21742 done
21743   done
21744 IFS=$as_save_IFS
21745 
21746   ;;
21747 esac
21748 fi
21749 LDD=$ac_cv_path_LDD
21750 if test -n "$LDD"; then
21751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21752 $as_echo "$LDD" >&6; }
21753 else
21754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21755 $as_echo "no" >&6; }
21756 fi
21757 
21758 
21759           if test "x$LDD" = x; then
21760             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21761           fi
21762         else
21763           # Otherwise we believe it is a complete path. Use it as it is.
21764           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
21765 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
21766           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21767 $as_echo_n "checking for LDD... " >&6; }
21768           if test ! -x "$tool_specified"; then
21769             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21770 $as_echo "not found" >&6; }
21771             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
21772           fi
21773           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21774 $as_echo "$tool_specified" >&6; }
21775         fi
21776       fi
21777     fi
21778 
21779   fi
21780 
21781 
21782   if test "x$LDD" = "x"; then
21783     # List shared lib dependencies is used for
21784     # debug output and checking for forbidden dependencies.
21785     # We can build without it.
21786     LDD="true"
21787   fi
21788 
21789 
21790   # Publish this variable in the help.
21791 
21792 
21793   if [ -z "${OTOOL+x}" ]; then
21794     # The variable is not set by user, try to locate tool using the code snippet
21795     for ac_prog in otool
21796 do
21797   # Extract the first word of "$ac_prog", so it can be a program name with args.
21798 set dummy $ac_prog; ac_word=$2
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21800 $as_echo_n "checking for $ac_word... " >&6; }
21801 if ${ac_cv_path_OTOOL+:} false; then :
21802   $as_echo_n "(cached) " >&6
21803 else
21804   case $OTOOL in
21805   [\\/]* | ?:[\\/]*)
21806   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21807   ;;
21808   *)
21809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21810 for as_dir in $PATH
21811 do
21812   IFS=$as_save_IFS
21813   test -z "$as_dir" && as_dir=.
21814     for ac_exec_ext in '' $ac_executable_extensions; do
21815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21816     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21818     break 2
21819   fi
21820 done
21821   done
21822 IFS=$as_save_IFS
21823 
21824   ;;
21825 esac
21826 fi
21827 OTOOL=$ac_cv_path_OTOOL
21828 if test -n "$OTOOL"; then
21829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21830 $as_echo "$OTOOL" >&6; }
21831 else
21832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21833 $as_echo "no" >&6; }
21834 fi
21835 
21836 
21837   test -n "$OTOOL" && break
21838 done
21839 
21840   else
21841     # The variable is set, but is it from the command line or the environment?
21842 
21843     # Try to remove the string !OTOOL! from our list.
21844     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
21845     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21846       # If it failed, the variable was not from the command line. Ignore it,
21847       # but warn the user (except for BASH, which is always set by the calling BASH).
21848       if test "xOTOOL" != xBASH; then
21849         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
21850 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
21851       fi
21852       # Try to locate tool using the code snippet
21853       for ac_prog in otool
21854 do
21855   # Extract the first word of "$ac_prog", so it can be a program name with args.
21856 set dummy $ac_prog; ac_word=$2
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21858 $as_echo_n "checking for $ac_word... " >&6; }
21859 if ${ac_cv_path_OTOOL+:} false; then :
21860   $as_echo_n "(cached) " >&6
21861 else
21862   case $OTOOL in
21863   [\\/]* | ?:[\\/]*)
21864   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21865   ;;
21866   *)
21867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21868 for as_dir in $PATH
21869 do
21870   IFS=$as_save_IFS
21871   test -z "$as_dir" && as_dir=.
21872     for ac_exec_ext in '' $ac_executable_extensions; do
21873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21874     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21876     break 2
21877   fi
21878 done
21879   done
21880 IFS=$as_save_IFS
21881 
21882   ;;
21883 esac
21884 fi
21885 OTOOL=$ac_cv_path_OTOOL
21886 if test -n "$OTOOL"; then
21887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21888 $as_echo "$OTOOL" >&6; }
21889 else
21890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21891 $as_echo "no" >&6; }
21892 fi
21893 
21894 
21895   test -n "$OTOOL" && break
21896 done
21897 
21898     else
21899       # If it succeeded, then it was overridden by the user. We will use it
21900       # for the tool.
21901 
21902       # First remove it from the list of overridden variables, so we can test
21903       # for unknown variables in the end.
21904       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21905 
21906       # Check if we try to supply an empty value
21907       if test "x$OTOOL" = x; then
21908         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
21909 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
21910         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21911 $as_echo_n "checking for OTOOL... " >&6; }
21912         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21913 $as_echo "disabled" >&6; }
21914       else
21915         # Check if the provided tool contains a complete path.
21916         tool_specified="$OTOOL"
21917         tool_basename="${tool_specified##*/}"
21918         if test "x$tool_basename" = "x$tool_specified"; then
21919           # A command without a complete path is provided, search $PATH.
21920           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
21921 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
21922           # Extract the first word of "$tool_basename", so it can be a program name with args.
21923 set dummy $tool_basename; ac_word=$2
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21925 $as_echo_n "checking for $ac_word... " >&6; }
21926 if ${ac_cv_path_OTOOL+:} false; then :
21927   $as_echo_n "(cached) " >&6
21928 else
21929   case $OTOOL in
21930   [\\/]* | ?:[\\/]*)
21931   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21932   ;;
21933   *)
21934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21935 for as_dir in $PATH
21936 do
21937   IFS=$as_save_IFS
21938   test -z "$as_dir" && as_dir=.
21939     for ac_exec_ext in '' $ac_executable_extensions; do
21940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21941     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21943     break 2
21944   fi
21945 done
21946   done
21947 IFS=$as_save_IFS
21948 
21949   ;;
21950 esac
21951 fi
21952 OTOOL=$ac_cv_path_OTOOL
21953 if test -n "$OTOOL"; then
21954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21955 $as_echo "$OTOOL" >&6; }
21956 else
21957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21958 $as_echo "no" >&6; }
21959 fi
21960 
21961 
21962           if test "x$OTOOL" = x; then
21963             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21964           fi
21965         else
21966           # Otherwise we believe it is a complete path. Use it as it is.
21967           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
21968 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
21969           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21970 $as_echo_n "checking for OTOOL... " >&6; }
21971           if test ! -x "$tool_specified"; then
21972             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21973 $as_echo "not found" >&6; }
21974             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
21975           fi
21976           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21977 $as_echo "$tool_specified" >&6; }
21978         fi
21979       fi
21980     fi
21981 
21982   fi
21983 
21984 
21985   if test "x$OTOOL" = "x"; then
21986     OTOOL="true"
21987   fi
21988 
21989 
21990   # Publish this variable in the help.
21991 
21992 
21993   if [ -z "${READELF+x}" ]; then
21994     # The variable is not set by user, try to locate tool using the code snippet
21995     for ac_prog in greadelf readelf
21996 do
21997   # Extract the first word of "$ac_prog", so it can be a program name with args.
21998 set dummy $ac_prog; ac_word=$2
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22000 $as_echo_n "checking for $ac_word... " >&6; }
22001 if ${ac_cv_path_READELF+:} false; then :
22002   $as_echo_n "(cached) " >&6
22003 else
22004   case $READELF in
22005   [\\/]* | ?:[\\/]*)
22006   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22007   ;;
22008   *)
22009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22010 for as_dir in $PATH
22011 do
22012   IFS=$as_save_IFS
22013   test -z "$as_dir" && as_dir=.
22014     for ac_exec_ext in '' $ac_executable_extensions; do
22015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22016     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22018     break 2
22019   fi
22020 done
22021   done
22022 IFS=$as_save_IFS
22023 
22024   ;;
22025 esac
22026 fi
22027 READELF=$ac_cv_path_READELF
22028 if test -n "$READELF"; then
22029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22030 $as_echo "$READELF" >&6; }
22031 else
22032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22033 $as_echo "no" >&6; }
22034 fi
22035 
22036 
22037   test -n "$READELF" && break
22038 done
22039 
22040   else
22041     # The variable is set, but is it from the command line or the environment?
22042 
22043     # Try to remove the string !READELF! from our list.
22044     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22045     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22046       # If it failed, the variable was not from the command line. Ignore it,
22047       # but warn the user (except for BASH, which is always set by the calling BASH).
22048       if test "xREADELF" != xBASH; then
22049         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22050 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22051       fi
22052       # Try to locate tool using the code snippet
22053       for ac_prog in greadelf readelf
22054 do
22055   # Extract the first word of "$ac_prog", so it can be a program name with args.
22056 set dummy $ac_prog; ac_word=$2
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22058 $as_echo_n "checking for $ac_word... " >&6; }
22059 if ${ac_cv_path_READELF+:} false; then :
22060   $as_echo_n "(cached) " >&6
22061 else
22062   case $READELF in
22063   [\\/]* | ?:[\\/]*)
22064   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22065   ;;
22066   *)
22067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22068 for as_dir in $PATH
22069 do
22070   IFS=$as_save_IFS
22071   test -z "$as_dir" && as_dir=.
22072     for ac_exec_ext in '' $ac_executable_extensions; do
22073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22074     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22076     break 2
22077   fi
22078 done
22079   done
22080 IFS=$as_save_IFS
22081 
22082   ;;
22083 esac
22084 fi
22085 READELF=$ac_cv_path_READELF
22086 if test -n "$READELF"; then
22087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22088 $as_echo "$READELF" >&6; }
22089 else
22090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22091 $as_echo "no" >&6; }
22092 fi
22093 
22094 
22095   test -n "$READELF" && break
22096 done
22097 
22098     else
22099       # If it succeeded, then it was overridden by the user. We will use it
22100       # for the tool.
22101 
22102       # First remove it from the list of overridden variables, so we can test
22103       # for unknown variables in the end.
22104       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22105 
22106       # Check if we try to supply an empty value
22107       if test "x$READELF" = x; then
22108         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22109 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22111 $as_echo_n "checking for READELF... " >&6; }
22112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22113 $as_echo "disabled" >&6; }
22114       else
22115         # Check if the provided tool contains a complete path.
22116         tool_specified="$READELF"
22117         tool_basename="${tool_specified##*/}"
22118         if test "x$tool_basename" = "x$tool_specified"; then
22119           # A command without a complete path is provided, search $PATH.
22120           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22121 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22122           # Extract the first word of "$tool_basename", so it can be a program name with args.
22123 set dummy $tool_basename; ac_word=$2
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22125 $as_echo_n "checking for $ac_word... " >&6; }
22126 if ${ac_cv_path_READELF+:} false; then :
22127   $as_echo_n "(cached) " >&6
22128 else
22129   case $READELF in
22130   [\\/]* | ?:[\\/]*)
22131   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22132   ;;
22133   *)
22134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22135 for as_dir in $PATH
22136 do
22137   IFS=$as_save_IFS
22138   test -z "$as_dir" && as_dir=.
22139     for ac_exec_ext in '' $ac_executable_extensions; do
22140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22141     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22143     break 2
22144   fi
22145 done
22146   done
22147 IFS=$as_save_IFS
22148 
22149   ;;
22150 esac
22151 fi
22152 READELF=$ac_cv_path_READELF
22153 if test -n "$READELF"; then
22154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22155 $as_echo "$READELF" >&6; }
22156 else
22157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22158 $as_echo "no" >&6; }
22159 fi
22160 
22161 
22162           if test "x$READELF" = x; then
22163             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22164           fi
22165         else
22166           # Otherwise we believe it is a complete path. Use it as it is.
22167           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22168 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22169           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22170 $as_echo_n "checking for READELF... " >&6; }
22171           if test ! -x "$tool_specified"; then
22172             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22173 $as_echo "not found" >&6; }
22174             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22175           fi
22176           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22177 $as_echo "$tool_specified" >&6; }
22178         fi
22179       fi
22180     fi
22181 
22182   fi
22183 
22184 
22185 
22186 
22187   # Publish this variable in the help.
22188 
22189 
22190   if [ -z "${HG+x}" ]; then
22191     # The variable is not set by user, try to locate tool using the code snippet
22192     for ac_prog in hg
22193 do
22194   # Extract the first word of "$ac_prog", so it can be a program name with args.
22195 set dummy $ac_prog; ac_word=$2
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22197 $as_echo_n "checking for $ac_word... " >&6; }
22198 if ${ac_cv_path_HG+:} false; then :
22199   $as_echo_n "(cached) " >&6
22200 else
22201   case $HG in
22202   [\\/]* | ?:[\\/]*)
22203   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22204   ;;
22205   *)
22206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22207 for as_dir in $PATH
22208 do
22209   IFS=$as_save_IFS
22210   test -z "$as_dir" && as_dir=.
22211     for ac_exec_ext in '' $ac_executable_extensions; do
22212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22213     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22215     break 2
22216   fi
22217 done
22218   done
22219 IFS=$as_save_IFS
22220 
22221   ;;
22222 esac
22223 fi
22224 HG=$ac_cv_path_HG
22225 if test -n "$HG"; then
22226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22227 $as_echo "$HG" >&6; }
22228 else
22229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22230 $as_echo "no" >&6; }
22231 fi
22232 
22233 
22234   test -n "$HG" && break
22235 done
22236 
22237   else
22238     # The variable is set, but is it from the command line or the environment?
22239 
22240     # Try to remove the string !HG! from our list.
22241     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22242     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22243       # If it failed, the variable was not from the command line. Ignore it,
22244       # but warn the user (except for BASH, which is always set by the calling BASH).
22245       if test "xHG" != xBASH; then
22246         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22247 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22248       fi
22249       # Try to locate tool using the code snippet
22250       for ac_prog in hg
22251 do
22252   # Extract the first word of "$ac_prog", so it can be a program name with args.
22253 set dummy $ac_prog; ac_word=$2
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22255 $as_echo_n "checking for $ac_word... " >&6; }
22256 if ${ac_cv_path_HG+:} false; then :
22257   $as_echo_n "(cached) " >&6
22258 else
22259   case $HG in
22260   [\\/]* | ?:[\\/]*)
22261   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22262   ;;
22263   *)
22264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22265 for as_dir in $PATH
22266 do
22267   IFS=$as_save_IFS
22268   test -z "$as_dir" && as_dir=.
22269     for ac_exec_ext in '' $ac_executable_extensions; do
22270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22271     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22273     break 2
22274   fi
22275 done
22276   done
22277 IFS=$as_save_IFS
22278 
22279   ;;
22280 esac
22281 fi
22282 HG=$ac_cv_path_HG
22283 if test -n "$HG"; then
22284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22285 $as_echo "$HG" >&6; }
22286 else
22287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22288 $as_echo "no" >&6; }
22289 fi
22290 
22291 
22292   test -n "$HG" && break
22293 done
22294 
22295     else
22296       # If it succeeded, then it was overridden by the user. We will use it
22297       # for the tool.
22298 
22299       # First remove it from the list of overridden variables, so we can test
22300       # for unknown variables in the end.
22301       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22302 
22303       # Check if we try to supply an empty value
22304       if test "x$HG" = x; then
22305         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22306 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22308 $as_echo_n "checking for HG... " >&6; }
22309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22310 $as_echo "disabled" >&6; }
22311       else
22312         # Check if the provided tool contains a complete path.
22313         tool_specified="$HG"
22314         tool_basename="${tool_specified##*/}"
22315         if test "x$tool_basename" = "x$tool_specified"; then
22316           # A command without a complete path is provided, search $PATH.
22317           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22318 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22319           # Extract the first word of "$tool_basename", so it can be a program name with args.
22320 set dummy $tool_basename; ac_word=$2
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22322 $as_echo_n "checking for $ac_word... " >&6; }
22323 if ${ac_cv_path_HG+:} false; then :
22324   $as_echo_n "(cached) " >&6
22325 else
22326   case $HG in
22327   [\\/]* | ?:[\\/]*)
22328   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22329   ;;
22330   *)
22331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22332 for as_dir in $PATH
22333 do
22334   IFS=$as_save_IFS
22335   test -z "$as_dir" && as_dir=.
22336     for ac_exec_ext in '' $ac_executable_extensions; do
22337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22338     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22340     break 2
22341   fi
22342 done
22343   done
22344 IFS=$as_save_IFS
22345 
22346   ;;
22347 esac
22348 fi
22349 HG=$ac_cv_path_HG
22350 if test -n "$HG"; then
22351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22352 $as_echo "$HG" >&6; }
22353 else
22354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22355 $as_echo "no" >&6; }
22356 fi
22357 
22358 
22359           if test "x$HG" = x; then
22360             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22361           fi
22362         else
22363           # Otherwise we believe it is a complete path. Use it as it is.
22364           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22365 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22366           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22367 $as_echo_n "checking for HG... " >&6; }
22368           if test ! -x "$tool_specified"; then
22369             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22370 $as_echo "not found" >&6; }
22371             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22372           fi
22373           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22374 $as_echo "$tool_specified" >&6; }
22375         fi
22376       fi
22377     fi
22378 
22379   fi
22380 
22381 
22382 
22383 
22384   # Publish this variable in the help.
22385 
22386 
22387   if [ -z "${STAT+x}" ]; then
22388     # The variable is not set by user, try to locate tool using the code snippet
22389     for ac_prog in stat
22390 do
22391   # Extract the first word of "$ac_prog", so it can be a program name with args.
22392 set dummy $ac_prog; ac_word=$2
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22394 $as_echo_n "checking for $ac_word... " >&6; }
22395 if ${ac_cv_path_STAT+:} false; then :
22396   $as_echo_n "(cached) " >&6
22397 else
22398   case $STAT in
22399   [\\/]* | ?:[\\/]*)
22400   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22401   ;;
22402   *)
22403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22404 for as_dir in $PATH
22405 do
22406   IFS=$as_save_IFS
22407   test -z "$as_dir" && as_dir=.
22408     for ac_exec_ext in '' $ac_executable_extensions; do
22409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22410     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22412     break 2
22413   fi
22414 done
22415   done
22416 IFS=$as_save_IFS
22417 
22418   ;;
22419 esac
22420 fi
22421 STAT=$ac_cv_path_STAT
22422 if test -n "$STAT"; then
22423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22424 $as_echo "$STAT" >&6; }
22425 else
22426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22427 $as_echo "no" >&6; }
22428 fi
22429 
22430 
22431   test -n "$STAT" && break
22432 done
22433 
22434   else
22435     # The variable is set, but is it from the command line or the environment?
22436 
22437     # Try to remove the string !STAT! from our list.
22438     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22439     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22440       # If it failed, the variable was not from the command line. Ignore it,
22441       # but warn the user (except for BASH, which is always set by the calling BASH).
22442       if test "xSTAT" != xBASH; then
22443         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22444 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22445       fi
22446       # Try to locate tool using the code snippet
22447       for ac_prog in stat
22448 do
22449   # Extract the first word of "$ac_prog", so it can be a program name with args.
22450 set dummy $ac_prog; ac_word=$2
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22452 $as_echo_n "checking for $ac_word... " >&6; }
22453 if ${ac_cv_path_STAT+:} false; then :
22454   $as_echo_n "(cached) " >&6
22455 else
22456   case $STAT in
22457   [\\/]* | ?:[\\/]*)
22458   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22459   ;;
22460   *)
22461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22462 for as_dir in $PATH
22463 do
22464   IFS=$as_save_IFS
22465   test -z "$as_dir" && as_dir=.
22466     for ac_exec_ext in '' $ac_executable_extensions; do
22467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22468     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22470     break 2
22471   fi
22472 done
22473   done
22474 IFS=$as_save_IFS
22475 
22476   ;;
22477 esac
22478 fi
22479 STAT=$ac_cv_path_STAT
22480 if test -n "$STAT"; then
22481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22482 $as_echo "$STAT" >&6; }
22483 else
22484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22485 $as_echo "no" >&6; }
22486 fi
22487 
22488 
22489   test -n "$STAT" && break
22490 done
22491 
22492     else
22493       # If it succeeded, then it was overridden by the user. We will use it
22494       # for the tool.
22495 
22496       # First remove it from the list of overridden variables, so we can test
22497       # for unknown variables in the end.
22498       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22499 
22500       # Check if we try to supply an empty value
22501       if test "x$STAT" = x; then
22502         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22503 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22505 $as_echo_n "checking for STAT... " >&6; }
22506         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22507 $as_echo "disabled" >&6; }
22508       else
22509         # Check if the provided tool contains a complete path.
22510         tool_specified="$STAT"
22511         tool_basename="${tool_specified##*/}"
22512         if test "x$tool_basename" = "x$tool_specified"; then
22513           # A command without a complete path is provided, search $PATH.
22514           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22515 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22516           # Extract the first word of "$tool_basename", so it can be a program name with args.
22517 set dummy $tool_basename; ac_word=$2
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22519 $as_echo_n "checking for $ac_word... " >&6; }
22520 if ${ac_cv_path_STAT+:} false; then :
22521   $as_echo_n "(cached) " >&6
22522 else
22523   case $STAT in
22524   [\\/]* | ?:[\\/]*)
22525   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22526   ;;
22527   *)
22528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22529 for as_dir in $PATH
22530 do
22531   IFS=$as_save_IFS
22532   test -z "$as_dir" && as_dir=.
22533     for ac_exec_ext in '' $ac_executable_extensions; do
22534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22535     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22537     break 2
22538   fi
22539 done
22540   done
22541 IFS=$as_save_IFS
22542 
22543   ;;
22544 esac
22545 fi
22546 STAT=$ac_cv_path_STAT
22547 if test -n "$STAT"; then
22548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22549 $as_echo "$STAT" >&6; }
22550 else
22551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22552 $as_echo "no" >&6; }
22553 fi
22554 
22555 
22556           if test "x$STAT" = x; then
22557             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22558           fi
22559         else
22560           # Otherwise we believe it is a complete path. Use it as it is.
22561           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22562 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22563           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22564 $as_echo_n "checking for STAT... " >&6; }
22565           if test ! -x "$tool_specified"; then
22566             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22567 $as_echo "not found" >&6; }
22568             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22569           fi
22570           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22571 $as_echo "$tool_specified" >&6; }
22572         fi
22573       fi
22574     fi
22575 
22576   fi
22577 
22578 
22579 
22580 
22581   # Publish this variable in the help.
22582 
22583 
22584   if [ -z "${TIME+x}" ]; then
22585     # The variable is not set by user, try to locate tool using the code snippet
22586     for ac_prog in time
22587 do
22588   # Extract the first word of "$ac_prog", so it can be a program name with args.
22589 set dummy $ac_prog; ac_word=$2
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22591 $as_echo_n "checking for $ac_word... " >&6; }
22592 if ${ac_cv_path_TIME+:} false; then :
22593   $as_echo_n "(cached) " >&6
22594 else
22595   case $TIME in
22596   [\\/]* | ?:[\\/]*)
22597   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22598   ;;
22599   *)
22600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22601 for as_dir in $PATH
22602 do
22603   IFS=$as_save_IFS
22604   test -z "$as_dir" && as_dir=.
22605     for ac_exec_ext in '' $ac_executable_extensions; do
22606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22607     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22609     break 2
22610   fi
22611 done
22612   done
22613 IFS=$as_save_IFS
22614 
22615   ;;
22616 esac
22617 fi
22618 TIME=$ac_cv_path_TIME
22619 if test -n "$TIME"; then
22620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22621 $as_echo "$TIME" >&6; }
22622 else
22623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22624 $as_echo "no" >&6; }
22625 fi
22626 
22627 
22628   test -n "$TIME" && break
22629 done
22630 
22631   else
22632     # The variable is set, but is it from the command line or the environment?
22633 
22634     # Try to remove the string !TIME! from our list.
22635     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22636     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22637       # If it failed, the variable was not from the command line. Ignore it,
22638       # but warn the user (except for BASH, which is always set by the calling BASH).
22639       if test "xTIME" != xBASH; then
22640         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22641 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22642       fi
22643       # Try to locate tool using the code snippet
22644       for ac_prog in time
22645 do
22646   # Extract the first word of "$ac_prog", so it can be a program name with args.
22647 set dummy $ac_prog; ac_word=$2
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22649 $as_echo_n "checking for $ac_word... " >&6; }
22650 if ${ac_cv_path_TIME+:} false; then :
22651   $as_echo_n "(cached) " >&6
22652 else
22653   case $TIME in
22654   [\\/]* | ?:[\\/]*)
22655   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22656   ;;
22657   *)
22658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22659 for as_dir in $PATH
22660 do
22661   IFS=$as_save_IFS
22662   test -z "$as_dir" && as_dir=.
22663     for ac_exec_ext in '' $ac_executable_extensions; do
22664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22665     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22667     break 2
22668   fi
22669 done
22670   done
22671 IFS=$as_save_IFS
22672 
22673   ;;
22674 esac
22675 fi
22676 TIME=$ac_cv_path_TIME
22677 if test -n "$TIME"; then
22678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22679 $as_echo "$TIME" >&6; }
22680 else
22681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22682 $as_echo "no" >&6; }
22683 fi
22684 
22685 
22686   test -n "$TIME" && break
22687 done
22688 
22689     else
22690       # If it succeeded, then it was overridden by the user. We will use it
22691       # for the tool.
22692 
22693       # First remove it from the list of overridden variables, so we can test
22694       # for unknown variables in the end.
22695       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22696 
22697       # Check if we try to supply an empty value
22698       if test "x$TIME" = x; then
22699         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
22700 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
22701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22702 $as_echo_n "checking for TIME... " >&6; }
22703         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22704 $as_echo "disabled" >&6; }
22705       else
22706         # Check if the provided tool contains a complete path.
22707         tool_specified="$TIME"
22708         tool_basename="${tool_specified##*/}"
22709         if test "x$tool_basename" = "x$tool_specified"; then
22710           # A command without a complete path is provided, search $PATH.
22711           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
22712 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
22713           # Extract the first word of "$tool_basename", so it can be a program name with args.
22714 set dummy $tool_basename; ac_word=$2
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22716 $as_echo_n "checking for $ac_word... " >&6; }
22717 if ${ac_cv_path_TIME+:} false; then :
22718   $as_echo_n "(cached) " >&6
22719 else
22720   case $TIME in
22721   [\\/]* | ?:[\\/]*)
22722   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22723   ;;
22724   *)
22725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22726 for as_dir in $PATH
22727 do
22728   IFS=$as_save_IFS
22729   test -z "$as_dir" && as_dir=.
22730     for ac_exec_ext in '' $ac_executable_extensions; do
22731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22732     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22734     break 2
22735   fi
22736 done
22737   done
22738 IFS=$as_save_IFS
22739 
22740   ;;
22741 esac
22742 fi
22743 TIME=$ac_cv_path_TIME
22744 if test -n "$TIME"; then
22745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22746 $as_echo "$TIME" >&6; }
22747 else
22748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22749 $as_echo "no" >&6; }
22750 fi
22751 
22752 
22753           if test "x$TIME" = x; then
22754             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22755           fi
22756         else
22757           # Otherwise we believe it is a complete path. Use it as it is.
22758           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
22759 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
22760           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22761 $as_echo_n "checking for TIME... " >&6; }
22762           if test ! -x "$tool_specified"; then
22763             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22764 $as_echo "not found" >&6; }
22765             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
22766           fi
22767           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22768 $as_echo "$tool_specified" >&6; }
22769         fi
22770       fi
22771     fi
22772 
22773   fi
22774 
22775 
22776   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
22777   # be in the user path.
22778 
22779 
22780   # Publish this variable in the help.
22781 
22782 
22783   if [ -z "${DTRACE+x}" ]; then
22784     # The variable is not set by user, try to locate tool using the code snippet
22785     for ac_prog in dtrace
22786 do
22787   # Extract the first word of "$ac_prog", so it can be a program name with args.
22788 set dummy $ac_prog; ac_word=$2
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22790 $as_echo_n "checking for $ac_word... " >&6; }
22791 if ${ac_cv_path_DTRACE+:} false; then :
22792   $as_echo_n "(cached) " >&6
22793 else
22794   case $DTRACE in
22795   [\\/]* | ?:[\\/]*)
22796   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22797   ;;
22798   *)
22799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22800 as_dummy="$PATH:/usr/sbin"
22801 for as_dir in $as_dummy
22802 do
22803   IFS=$as_save_IFS
22804   test -z "$as_dir" && as_dir=.
22805     for ac_exec_ext in '' $ac_executable_extensions; do
22806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22807     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22809     break 2
22810   fi
22811 done
22812   done
22813 IFS=$as_save_IFS
22814 
22815   ;;
22816 esac
22817 fi
22818 DTRACE=$ac_cv_path_DTRACE
22819 if test -n "$DTRACE"; then
22820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22821 $as_echo "$DTRACE" >&6; }
22822 else
22823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22824 $as_echo "no" >&6; }
22825 fi
22826 
22827 
22828   test -n "$DTRACE" && break
22829 done
22830 
22831   else
22832     # The variable is set, but is it from the command line or the environment?
22833 
22834     # Try to remove the string !DTRACE! from our list.
22835     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
22836     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22837       # If it failed, the variable was not from the command line. Ignore it,
22838       # but warn the user (except for BASH, which is always set by the calling BASH).
22839       if test "xDTRACE" != xBASH; then
22840         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
22841 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
22842       fi
22843       # Try to locate tool using the code snippet
22844       for ac_prog in dtrace
22845 do
22846   # Extract the first word of "$ac_prog", so it can be a program name with args.
22847 set dummy $ac_prog; ac_word=$2
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22849 $as_echo_n "checking for $ac_word... " >&6; }
22850 if ${ac_cv_path_DTRACE+:} false; then :
22851   $as_echo_n "(cached) " >&6
22852 else
22853   case $DTRACE in
22854   [\\/]* | ?:[\\/]*)
22855   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22856   ;;
22857   *)
22858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22859 as_dummy="$PATH:/usr/sbin"
22860 for as_dir in $as_dummy
22861 do
22862   IFS=$as_save_IFS
22863   test -z "$as_dir" && as_dir=.
22864     for ac_exec_ext in '' $ac_executable_extensions; do
22865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22866     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22868     break 2
22869   fi
22870 done
22871   done
22872 IFS=$as_save_IFS
22873 
22874   ;;
22875 esac
22876 fi
22877 DTRACE=$ac_cv_path_DTRACE
22878 if test -n "$DTRACE"; then
22879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22880 $as_echo "$DTRACE" >&6; }
22881 else
22882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22883 $as_echo "no" >&6; }
22884 fi
22885 
22886 
22887   test -n "$DTRACE" && break
22888 done
22889 
22890     else
22891       # If it succeeded, then it was overridden by the user. We will use it
22892       # for the tool.
22893 
22894       # First remove it from the list of overridden variables, so we can test
22895       # for unknown variables in the end.
22896       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22897 
22898       # Check if we try to supply an empty value
22899       if test "x$DTRACE" = x; then
22900         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
22901 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
22902         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
22903 $as_echo_n "checking for DTRACE... " >&6; }
22904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22905 $as_echo "disabled" >&6; }
22906       else
22907         # Check if the provided tool contains a complete path.
22908         tool_specified="$DTRACE"
22909         tool_basename="${tool_specified##*/}"
22910         if test "x$tool_basename" = "x$tool_specified"; then
22911           # A command without a complete path is provided, search $PATH.
22912           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
22913 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
22914           # Extract the first word of "$tool_basename", so it can be a program name with args.
22915 set dummy $tool_basename; ac_word=$2
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22917 $as_echo_n "checking for $ac_word... " >&6; }
22918 if ${ac_cv_path_DTRACE+:} false; then :
22919   $as_echo_n "(cached) " >&6
22920 else
22921   case $DTRACE in
22922   [\\/]* | ?:[\\/]*)
22923   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22924   ;;
22925   *)
22926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22927 for as_dir in $PATH
22928 do
22929   IFS=$as_save_IFS
22930   test -z "$as_dir" && as_dir=.
22931     for ac_exec_ext in '' $ac_executable_extensions; do
22932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22933     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22935     break 2
22936   fi
22937 done
22938   done
22939 IFS=$as_save_IFS
22940 
22941   ;;
22942 esac
22943 fi
22944 DTRACE=$ac_cv_path_DTRACE
22945 if test -n "$DTRACE"; then
22946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22947 $as_echo "$DTRACE" >&6; }
22948 else
22949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22950 $as_echo "no" >&6; }
22951 fi
22952 
22953 
22954           if test "x$DTRACE" = x; then
22955             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22956           fi
22957         else
22958           # Otherwise we believe it is a complete path. Use it as it is.
22959           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
22960 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
22961           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
22962 $as_echo_n "checking for DTRACE... " >&6; }
22963           if test ! -x "$tool_specified"; then
22964             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22965 $as_echo "not found" >&6; }
22966             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
22967           fi
22968           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22969 $as_echo "$tool_specified" >&6; }
22970         fi
22971       fi
22972     fi
22973 
22974   fi
22975 
22976 
22977 
22978 
22979   # Publish this variable in the help.
22980 
22981 
22982   if [ -z "${PATCH+x}" ]; then
22983     # The variable is not set by user, try to locate tool using the code snippet
22984     for ac_prog in gpatch patch
22985 do
22986   # Extract the first word of "$ac_prog", so it can be a program name with args.
22987 set dummy $ac_prog; ac_word=$2
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22989 $as_echo_n "checking for $ac_word... " >&6; }
22990 if ${ac_cv_path_PATCH+:} false; then :
22991   $as_echo_n "(cached) " >&6
22992 else
22993   case $PATCH in
22994   [\\/]* | ?:[\\/]*)
22995   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22996   ;;
22997   *)
22998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22999 for as_dir in $PATH
23000 do
23001   IFS=$as_save_IFS
23002   test -z "$as_dir" && as_dir=.
23003     for ac_exec_ext in '' $ac_executable_extensions; do
23004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23005     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23007     break 2
23008   fi
23009 done
23010   done
23011 IFS=$as_save_IFS
23012 
23013   ;;
23014 esac
23015 fi
23016 PATCH=$ac_cv_path_PATCH
23017 if test -n "$PATCH"; then
23018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23019 $as_echo "$PATCH" >&6; }
23020 else
23021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23022 $as_echo "no" >&6; }
23023 fi
23024 
23025 
23026   test -n "$PATCH" && break
23027 done
23028 
23029   else
23030     # The variable is set, but is it from the command line or the environment?
23031 
23032     # Try to remove the string !PATCH! from our list.
23033     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23034     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23035       # If it failed, the variable was not from the command line. Ignore it,
23036       # but warn the user (except for BASH, which is always set by the calling BASH).
23037       if test "xPATCH" != xBASH; then
23038         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23039 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23040       fi
23041       # Try to locate tool using the code snippet
23042       for ac_prog in gpatch patch
23043 do
23044   # Extract the first word of "$ac_prog", so it can be a program name with args.
23045 set dummy $ac_prog; ac_word=$2
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23047 $as_echo_n "checking for $ac_word... " >&6; }
23048 if ${ac_cv_path_PATCH+:} false; then :
23049   $as_echo_n "(cached) " >&6
23050 else
23051   case $PATCH in
23052   [\\/]* | ?:[\\/]*)
23053   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23054   ;;
23055   *)
23056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23057 for as_dir in $PATH
23058 do
23059   IFS=$as_save_IFS
23060   test -z "$as_dir" && as_dir=.
23061     for ac_exec_ext in '' $ac_executable_extensions; do
23062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23063     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23065     break 2
23066   fi
23067 done
23068   done
23069 IFS=$as_save_IFS
23070 
23071   ;;
23072 esac
23073 fi
23074 PATCH=$ac_cv_path_PATCH
23075 if test -n "$PATCH"; then
23076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23077 $as_echo "$PATCH" >&6; }
23078 else
23079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23080 $as_echo "no" >&6; }
23081 fi
23082 
23083 
23084   test -n "$PATCH" && break
23085 done
23086 
23087     else
23088       # If it succeeded, then it was overridden by the user. We will use it
23089       # for the tool.
23090 
23091       # First remove it from the list of overridden variables, so we can test
23092       # for unknown variables in the end.
23093       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23094 
23095       # Check if we try to supply an empty value
23096       if test "x$PATCH" = x; then
23097         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23098 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23099         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23100 $as_echo_n "checking for PATCH... " >&6; }
23101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23102 $as_echo "disabled" >&6; }
23103       else
23104         # Check if the provided tool contains a complete path.
23105         tool_specified="$PATCH"
23106         tool_basename="${tool_specified##*/}"
23107         if test "x$tool_basename" = "x$tool_specified"; then
23108           # A command without a complete path is provided, search $PATH.
23109           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23110 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23111           # Extract the first word of "$tool_basename", so it can be a program name with args.
23112 set dummy $tool_basename; ac_word=$2
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23114 $as_echo_n "checking for $ac_word... " >&6; }
23115 if ${ac_cv_path_PATCH+:} false; then :
23116   $as_echo_n "(cached) " >&6
23117 else
23118   case $PATCH in
23119   [\\/]* | ?:[\\/]*)
23120   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23121   ;;
23122   *)
23123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23124 for as_dir in $PATH
23125 do
23126   IFS=$as_save_IFS
23127   test -z "$as_dir" && as_dir=.
23128     for ac_exec_ext in '' $ac_executable_extensions; do
23129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23130     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23132     break 2
23133   fi
23134 done
23135   done
23136 IFS=$as_save_IFS
23137 
23138   ;;
23139 esac
23140 fi
23141 PATCH=$ac_cv_path_PATCH
23142 if test -n "$PATCH"; then
23143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23144 $as_echo "$PATCH" >&6; }
23145 else
23146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23147 $as_echo "no" >&6; }
23148 fi
23149 
23150 
23151           if test "x$PATCH" = x; then
23152             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23153           fi
23154         else
23155           # Otherwise we believe it is a complete path. Use it as it is.
23156           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23157 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23158           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23159 $as_echo_n "checking for PATCH... " >&6; }
23160           if test ! -x "$tool_specified"; then
23161             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23162 $as_echo "not found" >&6; }
23163             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23164           fi
23165           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23166 $as_echo "$tool_specified" >&6; }
23167         fi
23168       fi
23169     fi
23170 
23171   fi
23172 
23173 
23174   # Check if it's GNU time
23175   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23176   if test "x$IS_GNU_TIME" != x; then
23177     IS_GNU_TIME=yes
23178   else
23179     IS_GNU_TIME=no
23180   fi
23181 
23182 
23183   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23184 
23185 
23186 
23187   # Publish this variable in the help.
23188 
23189 
23190   if [ -z "${DSYMUTIL+x}" ]; then
23191     # The variable is not set by user, try to locate tool using the code snippet
23192     for ac_prog in dsymutil
23193 do
23194   # Extract the first word of "$ac_prog", so it can be a program name with args.
23195 set dummy $ac_prog; ac_word=$2
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23197 $as_echo_n "checking for $ac_word... " >&6; }
23198 if ${ac_cv_path_DSYMUTIL+:} false; then :
23199   $as_echo_n "(cached) " >&6
23200 else
23201   case $DSYMUTIL in
23202   [\\/]* | ?:[\\/]*)
23203   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23204   ;;
23205   *)
23206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23207 for as_dir in $PATH
23208 do
23209   IFS=$as_save_IFS
23210   test -z "$as_dir" && as_dir=.
23211     for ac_exec_ext in '' $ac_executable_extensions; do
23212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23213     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23215     break 2
23216   fi
23217 done
23218   done
23219 IFS=$as_save_IFS
23220 
23221   ;;
23222 esac
23223 fi
23224 DSYMUTIL=$ac_cv_path_DSYMUTIL
23225 if test -n "$DSYMUTIL"; then
23226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23227 $as_echo "$DSYMUTIL" >&6; }
23228 else
23229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23230 $as_echo "no" >&6; }
23231 fi
23232 
23233 
23234   test -n "$DSYMUTIL" && break
23235 done
23236 
23237   else
23238     # The variable is set, but is it from the command line or the environment?
23239 
23240     # Try to remove the string !DSYMUTIL! from our list.
23241     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23242     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23243       # If it failed, the variable was not from the command line. Ignore it,
23244       # but warn the user (except for BASH, which is always set by the calling BASH).
23245       if test "xDSYMUTIL" != xBASH; then
23246         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23247 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23248       fi
23249       # Try to locate tool using the code snippet
23250       for ac_prog in dsymutil
23251 do
23252   # Extract the first word of "$ac_prog", so it can be a program name with args.
23253 set dummy $ac_prog; ac_word=$2
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23255 $as_echo_n "checking for $ac_word... " >&6; }
23256 if ${ac_cv_path_DSYMUTIL+:} false; then :
23257   $as_echo_n "(cached) " >&6
23258 else
23259   case $DSYMUTIL in
23260   [\\/]* | ?:[\\/]*)
23261   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23262   ;;
23263   *)
23264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23265 for as_dir in $PATH
23266 do
23267   IFS=$as_save_IFS
23268   test -z "$as_dir" && as_dir=.
23269     for ac_exec_ext in '' $ac_executable_extensions; do
23270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23271     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23273     break 2
23274   fi
23275 done
23276   done
23277 IFS=$as_save_IFS
23278 
23279   ;;
23280 esac
23281 fi
23282 DSYMUTIL=$ac_cv_path_DSYMUTIL
23283 if test -n "$DSYMUTIL"; then
23284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23285 $as_echo "$DSYMUTIL" >&6; }
23286 else
23287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23288 $as_echo "no" >&6; }
23289 fi
23290 
23291 
23292   test -n "$DSYMUTIL" && break
23293 done
23294 
23295     else
23296       # If it succeeded, then it was overridden by the user. We will use it
23297       # for the tool.
23298 
23299       # First remove it from the list of overridden variables, so we can test
23300       # for unknown variables in the end.
23301       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23302 
23303       # Check if we try to supply an empty value
23304       if test "x$DSYMUTIL" = x; then
23305         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23306 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23308 $as_echo_n "checking for DSYMUTIL... " >&6; }
23309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23310 $as_echo "disabled" >&6; }
23311       else
23312         # Check if the provided tool contains a complete path.
23313         tool_specified="$DSYMUTIL"
23314         tool_basename="${tool_specified##*/}"
23315         if test "x$tool_basename" = "x$tool_specified"; then
23316           # A command without a complete path is provided, search $PATH.
23317           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23318 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23319           # Extract the first word of "$tool_basename", so it can be a program name with args.
23320 set dummy $tool_basename; ac_word=$2
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23322 $as_echo_n "checking for $ac_word... " >&6; }
23323 if ${ac_cv_path_DSYMUTIL+:} false; then :
23324   $as_echo_n "(cached) " >&6
23325 else
23326   case $DSYMUTIL in
23327   [\\/]* | ?:[\\/]*)
23328   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23329   ;;
23330   *)
23331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23332 for as_dir in $PATH
23333 do
23334   IFS=$as_save_IFS
23335   test -z "$as_dir" && as_dir=.
23336     for ac_exec_ext in '' $ac_executable_extensions; do
23337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23338     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23340     break 2
23341   fi
23342 done
23343   done
23344 IFS=$as_save_IFS
23345 
23346   ;;
23347 esac
23348 fi
23349 DSYMUTIL=$ac_cv_path_DSYMUTIL
23350 if test -n "$DSYMUTIL"; then
23351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23352 $as_echo "$DSYMUTIL" >&6; }
23353 else
23354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23355 $as_echo "no" >&6; }
23356 fi
23357 
23358 
23359           if test "x$DSYMUTIL" = x; then
23360             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23361           fi
23362         else
23363           # Otherwise we believe it is a complete path. Use it as it is.
23364           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23365 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23366           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23367 $as_echo_n "checking for DSYMUTIL... " >&6; }
23368           if test ! -x "$tool_specified"; then
23369             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23370 $as_echo "not found" >&6; }
23371             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23372           fi
23373           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23374 $as_echo "$tool_specified" >&6; }
23375         fi
23376       fi
23377     fi
23378 
23379   fi
23380 
23381 
23382 
23383   if test "x$DSYMUTIL" = x; then
23384     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23385   fi
23386 
23387 
23388 
23389 
23390 
23391   # Publish this variable in the help.
23392 
23393 
23394   if [ -z "${XATTR+x}" ]; then
23395     # The variable is not set by user, try to locate tool using the code snippet
23396     for ac_prog in xattr
23397 do
23398   # Extract the first word of "$ac_prog", so it can be a program name with args.
23399 set dummy $ac_prog; ac_word=$2
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23401 $as_echo_n "checking for $ac_word... " >&6; }
23402 if ${ac_cv_path_XATTR+:} false; then :
23403   $as_echo_n "(cached) " >&6
23404 else
23405   case $XATTR in
23406   [\\/]* | ?:[\\/]*)
23407   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23408   ;;
23409   *)
23410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23411 for as_dir in $PATH
23412 do
23413   IFS=$as_save_IFS
23414   test -z "$as_dir" && as_dir=.
23415     for ac_exec_ext in '' $ac_executable_extensions; do
23416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23417     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23419     break 2
23420   fi
23421 done
23422   done
23423 IFS=$as_save_IFS
23424 
23425   ;;
23426 esac
23427 fi
23428 XATTR=$ac_cv_path_XATTR
23429 if test -n "$XATTR"; then
23430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23431 $as_echo "$XATTR" >&6; }
23432 else
23433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23434 $as_echo "no" >&6; }
23435 fi
23436 
23437 
23438   test -n "$XATTR" && break
23439 done
23440 
23441   else
23442     # The variable is set, but is it from the command line or the environment?
23443 
23444     # Try to remove the string !XATTR! from our list.
23445     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
23446     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23447       # If it failed, the variable was not from the command line. Ignore it,
23448       # but warn the user (except for BASH, which is always set by the calling BASH).
23449       if test "xXATTR" != xBASH; then
23450         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
23451 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
23452       fi
23453       # Try to locate tool using the code snippet
23454       for ac_prog in xattr
23455 do
23456   # Extract the first word of "$ac_prog", so it can be a program name with args.
23457 set dummy $ac_prog; ac_word=$2
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23459 $as_echo_n "checking for $ac_word... " >&6; }
23460 if ${ac_cv_path_XATTR+:} false; then :
23461   $as_echo_n "(cached) " >&6
23462 else
23463   case $XATTR in
23464   [\\/]* | ?:[\\/]*)
23465   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23466   ;;
23467   *)
23468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23469 for as_dir in $PATH
23470 do
23471   IFS=$as_save_IFS
23472   test -z "$as_dir" && as_dir=.
23473     for ac_exec_ext in '' $ac_executable_extensions; do
23474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23475     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23477     break 2
23478   fi
23479 done
23480   done
23481 IFS=$as_save_IFS
23482 
23483   ;;
23484 esac
23485 fi
23486 XATTR=$ac_cv_path_XATTR
23487 if test -n "$XATTR"; then
23488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23489 $as_echo "$XATTR" >&6; }
23490 else
23491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23492 $as_echo "no" >&6; }
23493 fi
23494 
23495 
23496   test -n "$XATTR" && break
23497 done
23498 
23499     else
23500       # If it succeeded, then it was overridden by the user. We will use it
23501       # for the tool.
23502 
23503       # First remove it from the list of overridden variables, so we can test
23504       # for unknown variables in the end.
23505       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23506 
23507       # Check if we try to supply an empty value
23508       if test "x$XATTR" = x; then
23509         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
23510 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
23511         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23512 $as_echo_n "checking for XATTR... " >&6; }
23513         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23514 $as_echo "disabled" >&6; }
23515       else
23516         # Check if the provided tool contains a complete path.
23517         tool_specified="$XATTR"
23518         tool_basename="${tool_specified##*/}"
23519         if test "x$tool_basename" = "x$tool_specified"; then
23520           # A command without a complete path is provided, search $PATH.
23521           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
23522 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
23523           # Extract the first word of "$tool_basename", so it can be a program name with args.
23524 set dummy $tool_basename; ac_word=$2
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23526 $as_echo_n "checking for $ac_word... " >&6; }
23527 if ${ac_cv_path_XATTR+:} false; then :
23528   $as_echo_n "(cached) " >&6
23529 else
23530   case $XATTR in
23531   [\\/]* | ?:[\\/]*)
23532   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23533   ;;
23534   *)
23535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23536 for as_dir in $PATH
23537 do
23538   IFS=$as_save_IFS
23539   test -z "$as_dir" && as_dir=.
23540     for ac_exec_ext in '' $ac_executable_extensions; do
23541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23542     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23544     break 2
23545   fi
23546 done
23547   done
23548 IFS=$as_save_IFS
23549 
23550   ;;
23551 esac
23552 fi
23553 XATTR=$ac_cv_path_XATTR
23554 if test -n "$XATTR"; then
23555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23556 $as_echo "$XATTR" >&6; }
23557 else
23558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23559 $as_echo "no" >&6; }
23560 fi
23561 
23562 
23563           if test "x$XATTR" = x; then
23564             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23565           fi
23566         else
23567           # Otherwise we believe it is a complete path. Use it as it is.
23568           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
23569 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
23570           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23571 $as_echo_n "checking for XATTR... " >&6; }
23572           if test ! -x "$tool_specified"; then
23573             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23574 $as_echo "not found" >&6; }
23575             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
23576           fi
23577           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23578 $as_echo "$tool_specified" >&6; }
23579         fi
23580       fi
23581     fi
23582 
23583   fi
23584 
23585 
23586 
23587   if test "x$XATTR" = x; then
23588     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
23589   fi
23590 
23591 
23592 
23593 
23594   # Publish this variable in the help.
23595 
23596 
23597   if [ -z "${CODESIGN+x}" ]; then
23598     # The variable is not set by user, try to locate tool using the code snippet
23599     for ac_prog in codesign
23600 do
23601   # Extract the first word of "$ac_prog", so it can be a program name with args.
23602 set dummy $ac_prog; ac_word=$2
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23604 $as_echo_n "checking for $ac_word... " >&6; }
23605 if ${ac_cv_path_CODESIGN+:} false; then :
23606   $as_echo_n "(cached) " >&6
23607 else
23608   case $CODESIGN in
23609   [\\/]* | ?:[\\/]*)
23610   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23611   ;;
23612   *)
23613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23614 for as_dir in $PATH
23615 do
23616   IFS=$as_save_IFS
23617   test -z "$as_dir" && as_dir=.
23618     for ac_exec_ext in '' $ac_executable_extensions; do
23619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23620     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23622     break 2
23623   fi
23624 done
23625   done
23626 IFS=$as_save_IFS
23627 
23628   ;;
23629 esac
23630 fi
23631 CODESIGN=$ac_cv_path_CODESIGN
23632 if test -n "$CODESIGN"; then
23633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23634 $as_echo "$CODESIGN" >&6; }
23635 else
23636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23637 $as_echo "no" >&6; }
23638 fi
23639 
23640 
23641   test -n "$CODESIGN" && break
23642 done
23643 
23644   else
23645     # The variable is set, but is it from the command line or the environment?
23646 
23647     # Try to remove the string !CODESIGN! from our list.
23648     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
23649     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23650       # If it failed, the variable was not from the command line. Ignore it,
23651       # but warn the user (except for BASH, which is always set by the calling BASH).
23652       if test "xCODESIGN" != xBASH; then
23653         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
23654 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
23655       fi
23656       # Try to locate tool using the code snippet
23657       for ac_prog in codesign
23658 do
23659   # Extract the first word of "$ac_prog", so it can be a program name with args.
23660 set dummy $ac_prog; ac_word=$2
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23662 $as_echo_n "checking for $ac_word... " >&6; }
23663 if ${ac_cv_path_CODESIGN+:} false; then :
23664   $as_echo_n "(cached) " >&6
23665 else
23666   case $CODESIGN in
23667   [\\/]* | ?:[\\/]*)
23668   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23669   ;;
23670   *)
23671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23672 for as_dir in $PATH
23673 do
23674   IFS=$as_save_IFS
23675   test -z "$as_dir" && as_dir=.
23676     for ac_exec_ext in '' $ac_executable_extensions; do
23677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23678     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23680     break 2
23681   fi
23682 done
23683   done
23684 IFS=$as_save_IFS
23685 
23686   ;;
23687 esac
23688 fi
23689 CODESIGN=$ac_cv_path_CODESIGN
23690 if test -n "$CODESIGN"; then
23691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23692 $as_echo "$CODESIGN" >&6; }
23693 else
23694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23695 $as_echo "no" >&6; }
23696 fi
23697 
23698 
23699   test -n "$CODESIGN" && break
23700 done
23701 
23702     else
23703       # If it succeeded, then it was overridden by the user. We will use it
23704       # for the tool.
23705 
23706       # First remove it from the list of overridden variables, so we can test
23707       # for unknown variables in the end.
23708       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23709 
23710       # Check if we try to supply an empty value
23711       if test "x$CODESIGN" = x; then
23712         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
23713 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
23714         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23715 $as_echo_n "checking for CODESIGN... " >&6; }
23716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23717 $as_echo "disabled" >&6; }
23718       else
23719         # Check if the provided tool contains a complete path.
23720         tool_specified="$CODESIGN"
23721         tool_basename="${tool_specified##*/}"
23722         if test "x$tool_basename" = "x$tool_specified"; then
23723           # A command without a complete path is provided, search $PATH.
23724           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
23725 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
23726           # Extract the first word of "$tool_basename", so it can be a program name with args.
23727 set dummy $tool_basename; ac_word=$2
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23729 $as_echo_n "checking for $ac_word... " >&6; }
23730 if ${ac_cv_path_CODESIGN+:} false; then :
23731   $as_echo_n "(cached) " >&6
23732 else
23733   case $CODESIGN in
23734   [\\/]* | ?:[\\/]*)
23735   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23736   ;;
23737   *)
23738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23739 for as_dir in $PATH
23740 do
23741   IFS=$as_save_IFS
23742   test -z "$as_dir" && as_dir=.
23743     for ac_exec_ext in '' $ac_executable_extensions; do
23744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23745     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23747     break 2
23748   fi
23749 done
23750   done
23751 IFS=$as_save_IFS
23752 
23753   ;;
23754 esac
23755 fi
23756 CODESIGN=$ac_cv_path_CODESIGN
23757 if test -n "$CODESIGN"; then
23758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23759 $as_echo "$CODESIGN" >&6; }
23760 else
23761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23762 $as_echo "no" >&6; }
23763 fi
23764 
23765 
23766           if test "x$CODESIGN" = x; then
23767             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23768           fi
23769         else
23770           # Otherwise we believe it is a complete path. Use it as it is.
23771           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
23772 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
23773           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23774 $as_echo_n "checking for CODESIGN... " >&6; }
23775           if test ! -x "$tool_specified"; then
23776             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23777 $as_echo "not found" >&6; }
23778             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
23779           fi
23780           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23781 $as_echo "$tool_specified" >&6; }
23782         fi
23783       fi
23784     fi
23785 
23786   fi
23787 
23788 
23789     if test "x$CODESIGN" != "x"; then
23790       # Verify that the openjdk_codesign certificate is present
23791       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
23792 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
23793       $RM codesign-testfile
23794       $TOUCH codesign-testfile
23795       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
23796       $RM codesign-testfile
23797       if test "x$CODESIGN" = x; then
23798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23799 $as_echo "no" >&6; }
23800       else
23801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23802 $as_echo "yes" >&6; }
23803       fi
23804     fi
23805 
23806 
23807 
23808   # Publish this variable in the help.
23809 
23810 
23811   if [ -z "${SETFILE+x}" ]; then
23812     # The variable is not set by user, try to locate tool using the code snippet
23813     for ac_prog in SetFile
23814 do
23815   # Extract the first word of "$ac_prog", so it can be a program name with args.
23816 set dummy $ac_prog; ac_word=$2
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23818 $as_echo_n "checking for $ac_word... " >&6; }
23819 if ${ac_cv_path_SETFILE+:} false; then :
23820   $as_echo_n "(cached) " >&6
23821 else
23822   case $SETFILE in
23823   [\\/]* | ?:[\\/]*)
23824   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23825   ;;
23826   *)
23827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23828 for as_dir in $PATH
23829 do
23830   IFS=$as_save_IFS
23831   test -z "$as_dir" && as_dir=.
23832     for ac_exec_ext in '' $ac_executable_extensions; do
23833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23834     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23836     break 2
23837   fi
23838 done
23839   done
23840 IFS=$as_save_IFS
23841 
23842   ;;
23843 esac
23844 fi
23845 SETFILE=$ac_cv_path_SETFILE
23846 if test -n "$SETFILE"; then
23847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23848 $as_echo "$SETFILE" >&6; }
23849 else
23850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23851 $as_echo "no" >&6; }
23852 fi
23853 
23854 
23855   test -n "$SETFILE" && break
23856 done
23857 
23858   else
23859     # The variable is set, but is it from the command line or the environment?
23860 
23861     # Try to remove the string !SETFILE! from our list.
23862     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
23863     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23864       # If it failed, the variable was not from the command line. Ignore it,
23865       # but warn the user (except for BASH, which is always set by the calling BASH).
23866       if test "xSETFILE" != xBASH; then
23867         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
23868 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
23869       fi
23870       # Try to locate tool using the code snippet
23871       for ac_prog in SetFile
23872 do
23873   # Extract the first word of "$ac_prog", so it can be a program name with args.
23874 set dummy $ac_prog; ac_word=$2
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23876 $as_echo_n "checking for $ac_word... " >&6; }
23877 if ${ac_cv_path_SETFILE+:} false; then :
23878   $as_echo_n "(cached) " >&6
23879 else
23880   case $SETFILE in
23881   [\\/]* | ?:[\\/]*)
23882   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23883   ;;
23884   *)
23885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23886 for as_dir in $PATH
23887 do
23888   IFS=$as_save_IFS
23889   test -z "$as_dir" && as_dir=.
23890     for ac_exec_ext in '' $ac_executable_extensions; do
23891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23892     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23894     break 2
23895   fi
23896 done
23897   done
23898 IFS=$as_save_IFS
23899 
23900   ;;
23901 esac
23902 fi
23903 SETFILE=$ac_cv_path_SETFILE
23904 if test -n "$SETFILE"; then
23905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23906 $as_echo "$SETFILE" >&6; }
23907 else
23908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23909 $as_echo "no" >&6; }
23910 fi
23911 
23912 
23913   test -n "$SETFILE" && break
23914 done
23915 
23916     else
23917       # If it succeeded, then it was overridden by the user. We will use it
23918       # for the tool.
23919 
23920       # First remove it from the list of overridden variables, so we can test
23921       # for unknown variables in the end.
23922       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23923 
23924       # Check if we try to supply an empty value
23925       if test "x$SETFILE" = x; then
23926         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
23927 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
23928         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
23929 $as_echo_n "checking for SETFILE... " >&6; }
23930         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23931 $as_echo "disabled" >&6; }
23932       else
23933         # Check if the provided tool contains a complete path.
23934         tool_specified="$SETFILE"
23935         tool_basename="${tool_specified##*/}"
23936         if test "x$tool_basename" = "x$tool_specified"; then
23937           # A command without a complete path is provided, search $PATH.
23938           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
23939 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
23940           # Extract the first word of "$tool_basename", so it can be a program name with args.
23941 set dummy $tool_basename; ac_word=$2
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23943 $as_echo_n "checking for $ac_word... " >&6; }
23944 if ${ac_cv_path_SETFILE+:} false; then :
23945   $as_echo_n "(cached) " >&6
23946 else
23947   case $SETFILE in
23948   [\\/]* | ?:[\\/]*)
23949   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23950   ;;
23951   *)
23952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23953 for as_dir in $PATH
23954 do
23955   IFS=$as_save_IFS
23956   test -z "$as_dir" && as_dir=.
23957     for ac_exec_ext in '' $ac_executable_extensions; do
23958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23959     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23961     break 2
23962   fi
23963 done
23964   done
23965 IFS=$as_save_IFS
23966 
23967   ;;
23968 esac
23969 fi
23970 SETFILE=$ac_cv_path_SETFILE
23971 if test -n "$SETFILE"; then
23972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23973 $as_echo "$SETFILE" >&6; }
23974 else
23975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23976 $as_echo "no" >&6; }
23977 fi
23978 
23979 
23980           if test "x$SETFILE" = x; then
23981             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23982           fi
23983         else
23984           # Otherwise we believe it is a complete path. Use it as it is.
23985           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
23986 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
23987           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
23988 $as_echo_n "checking for SETFILE... " >&6; }
23989           if test ! -x "$tool_specified"; then
23990             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23991 $as_echo "not found" >&6; }
23992             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
23993           fi
23994           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23995 $as_echo "$tool_specified" >&6; }
23996         fi
23997       fi
23998     fi
23999 
24000   fi
24001 
24002 
24003 
24004   if test "x$SETFILE" = x; then
24005     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24006   fi
24007 
24008 
24009   fi
24010 
24011 
24012   # Test if bash supports pipefail.
24013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24014 $as_echo_n "checking if bash supports pipefail... " >&6; }
24015   if ${BASH} -c 'set -o pipefail'; then
24016     BASH_ARGS="$BASH_ARGS -o pipefail"
24017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24018 $as_echo "yes" >&6; }
24019   else
24020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24021 $as_echo "no" >&6; }
24022   fi
24023 
24024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24025 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24026   if ${BASH} -e -c 'true'; then
24027     BASH_ARGS="$BASH_ARGS -e"
24028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24029 $as_echo "yes" >&6; }
24030   else
24031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24032 $as_echo "no" >&6; }
24033   fi
24034 
24035 
24036 
24037 
24038 # Check if pkg-config is available.
24039 
24040 
24041 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24042         if test -n "$ac_tool_prefix"; then
24043   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24044 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24046 $as_echo_n "checking for $ac_word... " >&6; }
24047 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24048   $as_echo_n "(cached) " >&6
24049 else
24050   case $PKG_CONFIG in
24051   [\\/]* | ?:[\\/]*)
24052   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24053   ;;
24054   *)
24055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24056 for as_dir in $PATH
24057 do
24058   IFS=$as_save_IFS
24059   test -z "$as_dir" && as_dir=.
24060     for ac_exec_ext in '' $ac_executable_extensions; do
24061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24062     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24064     break 2
24065   fi
24066 done
24067   done
24068 IFS=$as_save_IFS
24069 
24070   ;;
24071 esac
24072 fi
24073 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24074 if test -n "$PKG_CONFIG"; then
24075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24076 $as_echo "$PKG_CONFIG" >&6; }
24077 else
24078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24079 $as_echo "no" >&6; }
24080 fi
24081 
24082 
24083 fi
24084 if test -z "$ac_cv_path_PKG_CONFIG"; then
24085   ac_pt_PKG_CONFIG=$PKG_CONFIG
24086   # Extract the first word of "pkg-config", so it can be a program name with args.
24087 set dummy pkg-config; ac_word=$2
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24089 $as_echo_n "checking for $ac_word... " >&6; }
24090 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24091   $as_echo_n "(cached) " >&6
24092 else
24093   case $ac_pt_PKG_CONFIG in
24094   [\\/]* | ?:[\\/]*)
24095   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24096   ;;
24097   *)
24098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24099 for as_dir in $PATH
24100 do
24101   IFS=$as_save_IFS
24102   test -z "$as_dir" && as_dir=.
24103     for ac_exec_ext in '' $ac_executable_extensions; do
24104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24105     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24107     break 2
24108   fi
24109 done
24110   done
24111 IFS=$as_save_IFS
24112 
24113   ;;
24114 esac
24115 fi
24116 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24117 if test -n "$ac_pt_PKG_CONFIG"; then
24118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24119 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24120 else
24121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24122 $as_echo "no" >&6; }
24123 fi
24124 
24125   if test "x$ac_pt_PKG_CONFIG" = x; then
24126     PKG_CONFIG=""
24127   else
24128     case $cross_compiling:$ac_tool_warned in
24129 yes:)
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24132 ac_tool_warned=yes ;;
24133 esac
24134     PKG_CONFIG=$ac_pt_PKG_CONFIG
24135   fi
24136 else
24137   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24138 fi
24139 
24140 fi
24141 if test -n "$PKG_CONFIG"; then
24142         _pkg_min_version=0.9.0
24143         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24144 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24145         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24146                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24147 $as_echo "yes" >&6; }
24148         else
24149                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24150 $as_echo "no" >&6; }
24151                 PKG_CONFIG=""
24152         fi
24153 
24154 fi
24155 
24156 # After basic tools have been setup, we can check build os specific details.
24157 
24158   ###############################################################################
24159 
24160   # Note that this is the build platform OS version!
24161 
24162   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24163   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24164   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24165   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24166 
24167 
24168 
24169 
24170 
24171 # Misc basic settings
24172 
24173 
24174 # Check whether --with-default-make-target was given.
24175 if test "${with_default_make_target+set}" = set; then :
24176   withval=$with_default_make_target;
24177 fi
24178 
24179   if test "x$with_default_make_target" = "x" \
24180       || test "x$with_default_make_target" = "xyes"; then
24181     DEFAULT_MAKE_TARGET="exploded-image"
24182   elif test "x$with_default_make_target" = "xno"; then
24183     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24184   else
24185     DEFAULT_MAKE_TARGET="$with_default_make_target"
24186   fi
24187 
24188 
24189 
24190 
24191 ###############################################################################
24192 #
24193 # Determine OpenJDK variants, options and version numbers.
24194 #
24195 ###############################################################################
24196 
24197 # We need build & target for this.
24198 
24199   # Should we build a JDK without a graphical UI?
24200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24201 $as_echo_n "checking headless only... " >&6; }
24202   # Check whether --enable-headless-only was given.
24203 if test "${enable_headless_only+set}" = set; then :
24204   enableval=$enable_headless_only;
24205 fi
24206 
24207 
24208   if test "x$enable_headless_only" = "xyes"; then
24209     ENABLE_HEADLESS_ONLY="true"
24210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24211 $as_echo "yes" >&6; }
24212   elif test "x$enable_headless_only" = "xno"; then
24213     ENABLE_HEADLESS_ONLY="false"
24214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24215 $as_echo "no" >&6; }
24216   elif test "x$enable_headless_only" = "x"; then
24217     ENABLE_HEADLESS_ONLY="false"
24218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24219 $as_echo "no" >&6; }
24220   else
24221     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24222   fi
24223 
24224 
24225 
24226   # Choose cacerts source file
24227 
24228 # Check whether --with-cacerts-file was given.
24229 if test "${with_cacerts_file+set}" = set; then :
24230   withval=$with_cacerts_file;
24231 fi
24232 
24233   if test "x$with_cacerts_file" != x; then
24234     CACERTS_FILE=$with_cacerts_file
24235   fi
24236 
24237 
24238   # Enable or disable unlimited crypto
24239   # Check whether --enable-unlimited-crypto was given.
24240 if test "${enable_unlimited_crypto+set}" = set; then :
24241   enableval=$enable_unlimited_crypto;
24242 else
24243   enable_unlimited_crypto=no
24244 fi
24245 
24246   if test "x$enable_unlimited_crypto" = "xyes"; then
24247     UNLIMITED_CRYPTO=true
24248   else
24249     UNLIMITED_CRYPTO=false
24250   fi
24251 
24252 
24253   # Should we build the serviceability agent (SA)?
24254   INCLUDE_SA=true
24255   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
24256     INCLUDE_SA=false
24257   fi
24258   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24259     INCLUDE_SA=false
24260   fi
24261 
24262 
24263   # Compress jars
24264   COMPRESS_JARS=false
24265 
24266 
24267 
24268   # Setup default copyright year. Mostly overridden when building close to a new year.
24269 
24270 # Check whether --with-copyright-year was given.
24271 if test "${with_copyright_year+set}" = set; then :
24272   withval=$with_copyright_year;
24273 fi
24274 
24275   if test "x$with_copyright_year" = xyes; then
24276     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
24277   elif test "x$with_copyright_year" != x; then
24278     COPYRIGHT_YEAR="$with_copyright_year"
24279   else
24280     COPYRIGHT_YEAR=`$DATE +'%Y'`
24281   fi
24282 
24283 
24284 
24285   # Check whether --enable-keep-packaged-modules was given.
24286 if test "${enable_keep_packaged_modules+set}" = set; then :
24287   enableval=$enable_keep_packaged_modules;
24288 fi
24289 
24290 
24291   if test "x$enable_keep_packaged_modules" = "xyes"; then
24292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24293 $as_echo_n "checking if packaged modules are kept... " >&6; }
24294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24295 $as_echo "yes" >&6; }
24296     JLINK_KEEP_PACKAGED_MODULES=true
24297   elif test "x$enable_keep_packaged_modules" = "xno"; then
24298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24299 $as_echo_n "checking if packaged modules are kept... " >&6; }
24300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24301 $as_echo "no" >&6; }
24302     JLINK_KEEP_PACKAGED_MODULES=false
24303   elif test "x$enable_keep_packaged_modules" = "x"; then
24304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24305 $as_echo "yes (default)" >&6; }
24306     JLINK_KEEP_PACKAGED_MODULES=true
24307   else
24308     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
24309   fi
24310 
24311 
24312 
24313 
24314   # Warn user that old version arguments are deprecated.
24315 
24316 
24317 # Check whether --with-milestone was given.
24318 if test "${with_milestone+set}" = set; then :
24319   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
24320 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
24321 fi
24322 
24323 
24324 
24325 
24326 # Check whether --with-update-version was given.
24327 if test "${with_update_version+set}" = set; then :
24328   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
24329 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
24330 fi
24331 
24332 
24333 
24334 
24335 # Check whether --with-user-release-suffix was given.
24336 if test "${with_user_release_suffix+set}" = set; then :
24337   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
24338 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
24339 fi
24340 
24341 
24342 
24343 
24344 # Check whether --with-build-number was given.
24345 if test "${with_build_number+set}" = set; then :
24346   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
24347 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
24348 fi
24349 
24350 
24351 
24352   # Source the version numbers file
24353   . $AUTOCONF_DIR/version-numbers
24354 
24355   # Some non-version number information is set in that file
24356 
24357 
24358 
24359 
24360 
24361 
24362 
24363 
24364 
24365   # Override version from arguments
24366 
24367   # If --with-version-string is set, process it first. It is possible to
24368   # override parts with more specific flags, since these are processed later.
24369 
24370 # Check whether --with-version-string was given.
24371 if test "${with_version_string+set}" = set; then :
24372   withval=$with_version_string;
24373 fi
24374 
24375   if test "x$with_version_string" = xyes; then
24376     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
24377   elif test "x$with_version_string" != x; then
24378     # Additional [] needed to keep m4 from mangling shell constructs.
24379     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
24380       VERSION_MAJOR=${BASH_REMATCH[1]}
24381       VERSION_MINOR=${BASH_REMATCH[3]}
24382       VERSION_SECURITY=${BASH_REMATCH[5]}
24383       VERSION_PATCH=${BASH_REMATCH[7]}
24384       VERSION_PRE=${BASH_REMATCH[9]}
24385       version_plus_separator=${BASH_REMATCH[11]}
24386       VERSION_BUILD=${BASH_REMATCH[12]}
24387       VERSION_OPT=${BASH_REMATCH[14]}
24388       # Unspecified numerical fields are interpreted as 0.
24389       if test "x$VERSION_MINOR" = x; then
24390         VERSION_MINOR=0
24391       fi
24392       if test "x$VERSION_SECURITY" = x; then
24393         VERSION_SECURITY=0
24394       fi
24395       if test "x$VERSION_PATCH" = x; then
24396         VERSION_PATCH=0
24397       fi
24398       if test "x$version_plus_separator" != x \
24399           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
24400         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
24401       fi
24402       # Stop the version part process from setting default values.
24403       # We still allow them to explicitely override though.
24404       NO_DEFAULT_VERSION_PARTS=true
24405     else
24406       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
24407     fi
24408   fi
24409 
24410 
24411 # Check whether --with-version-pre was given.
24412 if test "${with_version_pre+set}" = set; then :
24413   withval=$with_version_pre; with_version_pre_present=true
24414 else
24415   with_version_pre_present=false
24416 fi
24417 
24418 
24419   if test "x$with_version_pre_present" = xtrue; then
24420     if test "x$with_version_pre" = xyes; then
24421       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
24422     elif test "x$with_version_pre" = xno; then
24423       # Interpret --without-* as empty string instead of the literal "no"
24424       VERSION_PRE=
24425     else
24426       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
24427        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
24428       if test "x$VERSION_PRE" != "x$with_version_pre"; then
24429         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
24430 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
24431       fi
24432     fi
24433   else
24434     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24435       # Default is to use "internal" as pre
24436       VERSION_PRE="internal"
24437     fi
24438   fi
24439 
24440 
24441 # Check whether --with-version-opt was given.
24442 if test "${with_version_opt+set}" = set; then :
24443   withval=$with_version_opt; with_version_opt_present=true
24444 else
24445   with_version_opt_present=false
24446 fi
24447 
24448 
24449   if test "x$with_version_opt_present" = xtrue; then
24450     if test "x$with_version_opt" = xyes; then
24451       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
24452     elif test "x$with_version_opt" = xno; then
24453       # Interpret --without-* as empty string instead of the literal "no"
24454       VERSION_OPT=
24455     else
24456       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
24457        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
24458       if test "x$VERSION_OPT" != "x$with_version_opt"; then
24459         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
24460 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
24461       fi
24462     fi
24463   else
24464     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24465       # Default is to calculate a string like this <timestamp>.<username>.<base dir name>
24466       timestamp=`$DATE '+%Y-%m-%d-%H%M%S'`
24467       # Outer [ ] to quote m4.
24468        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
24469       VERSION_OPT="$timestamp.$USERNAME.$basedirname"
24470     fi
24471   fi
24472 
24473 
24474 # Check whether --with-version-build was given.
24475 if test "${with_version_build+set}" = set; then :
24476   withval=$with_version_build; with_version_build_present=true
24477 else
24478   with_version_build_present=false
24479 fi
24480 
24481 
24482   if test "x$with_version_build_present" = xtrue; then
24483     if test "x$with_version_build" = xyes; then
24484       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
24485     elif test "x$with_version_build" = xno; then
24486       # Interpret --without-* as empty string instead of the literal "no"
24487       VERSION_BUILD=
24488     elif test "x$with_version_build" = x; then
24489       VERSION_BUILD=
24490     else
24491 
24492   # Additional [] needed to keep m4 from mangling shell constructs.
24493   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24494     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
24495   fi
24496   # Extract the version number without leading zeros.
24497   cleaned_value=${BASH_REMATCH[1]}
24498   if test "x$cleaned_value" = x; then
24499     # Special case for zero
24500     cleaned_value=${BASH_REMATCH[2]}
24501   fi
24502 
24503   if test $cleaned_value -gt 255; then
24504     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
24505   fi
24506   if test "x$cleaned_value" != "x$with_version_build"; then
24507     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
24508 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
24509   fi
24510   VERSION_BUILD=$cleaned_value
24511 
24512     fi
24513   else
24514     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24515       # Default is to not have a build number.
24516       VERSION_BUILD=""
24517       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
24518       VERSION_BUILD=0
24519     fi
24520   fi
24521 
24522 
24523 # Check whether --with-version-major was given.
24524 if test "${with_version_major+set}" = set; then :
24525   withval=$with_version_major; with_version_major_present=true
24526 else
24527   with_version_major_present=false
24528 fi
24529 
24530 
24531   if test "x$with_version_major_present" = xtrue; then
24532     if test "x$with_version_major" = xyes; then
24533       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
24534     else
24535 
24536   # Additional [] needed to keep m4 from mangling shell constructs.
24537   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24538     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
24539   fi
24540   # Extract the version number without leading zeros.
24541   cleaned_value=${BASH_REMATCH[1]}
24542   if test "x$cleaned_value" = x; then
24543     # Special case for zero
24544     cleaned_value=${BASH_REMATCH[2]}
24545   fi
24546 
24547   if test $cleaned_value -gt 255; then
24548     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
24549   fi
24550   if test "x$cleaned_value" != "x$with_version_major"; then
24551     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
24552 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
24553   fi
24554   VERSION_MAJOR=$cleaned_value
24555 
24556     fi
24557   else
24558     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24559       # Default is to get value from version-numbers
24560       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
24561     fi
24562   fi
24563 
24564 
24565 # Check whether --with-version-minor was given.
24566 if test "${with_version_minor+set}" = set; then :
24567   withval=$with_version_minor; with_version_minor_present=true
24568 else
24569   with_version_minor_present=false
24570 fi
24571 
24572 
24573   if test "x$with_version_minor_present" = xtrue; then
24574     if test "x$with_version_minor" = xyes; then
24575       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
24576     elif test "x$with_version_minor" = xno; then
24577       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24578       VERSION_MINOR=0
24579     elif test "x$with_version_minor" = x; then
24580       VERSION_MINOR=0
24581     else
24582 
24583   # Additional [] needed to keep m4 from mangling shell constructs.
24584   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24585     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
24586   fi
24587   # Extract the version number without leading zeros.
24588   cleaned_value=${BASH_REMATCH[1]}
24589   if test "x$cleaned_value" = x; then
24590     # Special case for zero
24591     cleaned_value=${BASH_REMATCH[2]}
24592   fi
24593 
24594   if test $cleaned_value -gt 255; then
24595     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
24596   fi
24597   if test "x$cleaned_value" != "x$with_version_minor"; then
24598     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
24599 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
24600   fi
24601   VERSION_MINOR=$cleaned_value
24602 
24603     fi
24604   else
24605     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24606       # Default is 0, if unspecified
24607       VERSION_MINOR=0
24608     fi
24609   fi
24610 
24611 
24612 # Check whether --with-version-security was given.
24613 if test "${with_version_security+set}" = set; then :
24614   withval=$with_version_security; with_version_security_present=true
24615 else
24616   with_version_security_present=false
24617 fi
24618 
24619 
24620   if test "x$with_version_security_present" = xtrue; then
24621     if test "x$with_version_security" = xyes; then
24622       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
24623     elif test "x$with_version_security" = xno; then
24624       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24625       VERSION_SECURITY=0
24626     elif test "x$with_version_security" = x; then
24627       VERSION_SECURITY=0
24628     else
24629 
24630   # Additional [] needed to keep m4 from mangling shell constructs.
24631   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24632     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
24633   fi
24634   # Extract the version number without leading zeros.
24635   cleaned_value=${BASH_REMATCH[1]}
24636   if test "x$cleaned_value" = x; then
24637     # Special case for zero
24638     cleaned_value=${BASH_REMATCH[2]}
24639   fi
24640 
24641   if test $cleaned_value -gt 255; then
24642     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
24643   fi
24644   if test "x$cleaned_value" != "x$with_version_security"; then
24645     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
24646 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
24647   fi
24648   VERSION_SECURITY=$cleaned_value
24649 
24650     fi
24651   else
24652     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24653       # Default is 0, if unspecified
24654       VERSION_SECURITY=0
24655     fi
24656   fi
24657 
24658 
24659 # Check whether --with-version-patch was given.
24660 if test "${with_version_patch+set}" = set; then :
24661   withval=$with_version_patch; with_version_patch_present=true
24662 else
24663   with_version_patch_present=false
24664 fi
24665 
24666 
24667   if test "x$with_version_patch_present" = xtrue; then
24668     if test "x$with_version_patch" = xyes; then
24669       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
24670     elif test "x$with_version_patch" = xno; then
24671       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24672       VERSION_PATCH=0
24673     elif test "x$with_version_patch" = x; then
24674       VERSION_PATCH=0
24675     else
24676 
24677   # Additional [] needed to keep m4 from mangling shell constructs.
24678   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24679     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
24680   fi
24681   # Extract the version number without leading zeros.
24682   cleaned_value=${BASH_REMATCH[1]}
24683   if test "x$cleaned_value" = x; then
24684     # Special case for zero
24685     cleaned_value=${BASH_REMATCH[2]}
24686   fi
24687 
24688   if test $cleaned_value -gt 255; then
24689     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
24690   fi
24691   if test "x$cleaned_value" != "x$with_version_patch"; then
24692     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
24693 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
24694   fi
24695   VERSION_PATCH=$cleaned_value
24696 
24697     fi
24698   else
24699     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24700       # Default is 0, if unspecified
24701       VERSION_PATCH=0
24702     fi
24703   fi
24704 
24705   # Calculate derived version properties
24706 
24707   # Set VERSION_IS_GA based on if VERSION_PRE has a value
24708   if test "x$VERSION_PRE" = x; then
24709     VERSION_IS_GA=true
24710   else
24711     VERSION_IS_GA=false
24712   fi
24713 
24714   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
24715   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
24716 
24717   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
24718   # Strip trailing zeroes from stripped_version_number
24719   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
24720   VERSION_NUMBER=$stripped_version_number
24721 
24722   # The complete version string, with additional build information
24723   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
24724     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24725   else
24726     # If either build or opt is set, we need a + separator
24727     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
24728   fi
24729 
24730   # The short version string, just VERSION_NUMBER and PRE, if present.
24731   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24732 
24733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
24734 $as_echo_n "checking for version string... " >&6; }
24735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
24736 $as_echo "$VERSION_STRING" >&6; }
24737 
24738 
24739 
24740 
24741 
24742 
24743 
24744 
24745 
24746 
24747 
24748 
24749 
24750 
24751 
24752 ###############################################################################
24753 #
24754 # Setup BootJDK, used to bootstrap the build.
24755 #
24756 ###############################################################################
24757 
24758 
24759   BOOT_JDK_FOUND=no
24760 
24761 # Check whether --with-boot-jdk was given.
24762 if test "${with_boot_jdk+set}" = set; then :
24763   withval=$with_boot_jdk;
24764 fi
24765 
24766 
24767   # We look for the Boot JDK through various means, going from more certain to
24768   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
24769   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
24770   # must check if this is indeed valid; otherwise we'll continue looking.
24771 
24772   # Test: Is bootjdk explicitely set by command line arguments?
24773 
24774   if test "x$BOOT_JDK_FOUND" = xno; then
24775     # Now execute the test
24776 
24777   if test "x$with_boot_jdk" != x; then
24778     BOOT_JDK=$with_boot_jdk
24779     BOOT_JDK_FOUND=maybe
24780     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
24781 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
24782   fi
24783 
24784 
24785     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24786     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24787       # Do we have a bin/java?
24788       if test ! -x "$BOOT_JDK/bin/java"; then
24789         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24790 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24791         BOOT_JDK_FOUND=no
24792       else
24793         # Do we have a bin/javac?
24794         if test ! -x "$BOOT_JDK/bin/javac"; then
24795           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24796 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24797           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24798 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24799           BOOT_JDK_FOUND=no
24800         else
24801           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24802           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
24803 
24804           # Extra M4 quote needed to protect [] in grep expression.
24805           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24806           if test "x$FOUND_CORRECT_VERSION" = x; then
24807             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24808 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24809             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24810 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24811             BOOT_JDK_FOUND=no
24812           else
24813             # We're done! :-)
24814             BOOT_JDK_FOUND=yes
24815 
24816   # Only process if variable expands to non-empty
24817 
24818   if test "x$BOOT_JDK" != x; then
24819     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24820 
24821   # Input might be given as Windows format, start by converting to
24822   # unix format.
24823   path="$BOOT_JDK"
24824   new_path=`$CYGPATH -u "$path"`
24825 
24826   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24827   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24828   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24829   # "foo.exe" is OK but "foo" is an error.
24830   #
24831   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24832   # It is also a way to make sure we got the proper file name for the real test later on.
24833   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24834   if test "x$test_shortpath" = x; then
24835     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24836 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24837     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24838   fi
24839 
24840   # Call helper function which possibly converts this using DOS-style short mode.
24841   # If so, the updated path is stored in $new_path.
24842 
24843   input_path="$new_path"
24844   # Check if we need to convert this using DOS-style short mode. If the path
24845   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24846   # take no chances and rewrite it.
24847   # Note: m4 eats our [], so we need to use [ and ] instead.
24848   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24849   if test "x$has_forbidden_chars" != x; then
24850     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24851     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24852     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24853     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24854       # Going to short mode and back again did indeed matter. Since short mode is
24855       # case insensitive, let's make it lowercase to improve readability.
24856       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24857       # Now convert it back to Unix-style (cygpath)
24858       input_path=`$CYGPATH -u "$shortmode_path"`
24859       new_path="$input_path"
24860     fi
24861   fi
24862 
24863   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24864   if test "x$test_cygdrive_prefix" = x; then
24865     # As a simple fix, exclude /usr/bin since it's not a real path.
24866     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24867       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24868       # a path prefixed by /cygdrive for fixpath to work.
24869       new_path="$CYGWIN_ROOT_PATH$input_path"
24870     fi
24871   fi
24872 
24873 
24874   if test "x$path" != "x$new_path"; then
24875     BOOT_JDK="$new_path"
24876     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24877 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24878   fi
24879 
24880     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24881 
24882   path="$BOOT_JDK"
24883   has_colon=`$ECHO $path | $GREP ^.:`
24884   new_path="$path"
24885   if test "x$has_colon" = x; then
24886     # Not in mixed or Windows style, start by that.
24887     new_path=`cmd //c echo $path`
24888   fi
24889 
24890 
24891   input_path="$new_path"
24892   # Check if we need to convert this using DOS-style short mode. If the path
24893   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24894   # take no chances and rewrite it.
24895   # Note: m4 eats our [], so we need to use [ and ] instead.
24896   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24897   if test "x$has_forbidden_chars" != x; then
24898     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24899     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24900   fi
24901 
24902 
24903   windows_path="$new_path"
24904   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24905     unix_path=`$CYGPATH -u "$windows_path"`
24906     new_path="$unix_path"
24907   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24908     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24909     new_path="$unix_path"
24910   fi
24911 
24912   if test "x$path" != "x$new_path"; then
24913     BOOT_JDK="$new_path"
24914     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24915 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24916   fi
24917 
24918   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24919   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24920 
24921     else
24922       # We're on a unix platform. Hooray! :)
24923       path="$BOOT_JDK"
24924       has_space=`$ECHO "$path" | $GREP " "`
24925       if test "x$has_space" != x; then
24926         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24927 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24928         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24929       fi
24930 
24931       # Use eval to expand a potential ~
24932       eval path="$path"
24933       if test ! -f "$path" && test ! -d "$path"; then
24934         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24935       fi
24936 
24937       if test -d "$path"; then
24938         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24939       else
24940         dir="`$DIRNAME "$path"`"
24941         base="`$BASENAME "$path"`"
24942         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24943       fi
24944     fi
24945   fi
24946 
24947             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24948 $as_echo_n "checking for Boot JDK... " >&6; }
24949             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24950 $as_echo "$BOOT_JDK" >&6; }
24951             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24952 $as_echo_n "checking Boot JDK version... " >&6; }
24953             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24954             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24955 $as_echo "$BOOT_JDK_VERSION" >&6; }
24956           fi # end check jdk version
24957         fi # end check javac
24958       fi # end check java
24959     fi # end check boot jdk found
24960   fi
24961 
24962   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
24963     # Having specified an argument which is incorrect will produce an instant failure;
24964     # we should not go on looking
24965     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
24966   fi
24967 
24968   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
24969 
24970   if test "x$BOOT_JDK_FOUND" = xno; then
24971     # Now execute the test
24972 
24973   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
24974     # First check at user selected default
24975 
24976   if test "x$BOOT_JDK_FOUND" = xno; then
24977     # Now execute the test
24978 
24979   if test -x /usr/libexec/java_home; then
24980     BOOT_JDK=`/usr/libexec/java_home `
24981     BOOT_JDK_FOUND=maybe
24982     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
24983 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
24984   fi
24985 
24986 
24987     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24988     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24989       # Do we have a bin/java?
24990       if test ! -x "$BOOT_JDK/bin/java"; then
24991         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24992 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24993         BOOT_JDK_FOUND=no
24994       else
24995         # Do we have a bin/javac?
24996         if test ! -x "$BOOT_JDK/bin/javac"; then
24997           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24998 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24999           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25000 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25001           BOOT_JDK_FOUND=no
25002         else
25003           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25004           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25005 
25006           # Extra M4 quote needed to protect [] in grep expression.
25007           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25008           if test "x$FOUND_CORRECT_VERSION" = x; then
25009             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25010 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25011             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25012 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25013             BOOT_JDK_FOUND=no
25014           else
25015             # We're done! :-)
25016             BOOT_JDK_FOUND=yes
25017 
25018   # Only process if variable expands to non-empty
25019 
25020   if test "x$BOOT_JDK" != x; then
25021     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25022 
25023   # Input might be given as Windows format, start by converting to
25024   # unix format.
25025   path="$BOOT_JDK"
25026   new_path=`$CYGPATH -u "$path"`
25027 
25028   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25029   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25030   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25031   # "foo.exe" is OK but "foo" is an error.
25032   #
25033   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25034   # It is also a way to make sure we got the proper file name for the real test later on.
25035   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25036   if test "x$test_shortpath" = x; then
25037     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25038 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25039     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25040   fi
25041 
25042   # Call helper function which possibly converts this using DOS-style short mode.
25043   # If so, the updated path is stored in $new_path.
25044 
25045   input_path="$new_path"
25046   # Check if we need to convert this using DOS-style short mode. If the path
25047   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25048   # take no chances and rewrite it.
25049   # Note: m4 eats our [], so we need to use [ and ] instead.
25050   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25051   if test "x$has_forbidden_chars" != x; then
25052     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25053     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25054     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25055     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25056       # Going to short mode and back again did indeed matter. Since short mode is
25057       # case insensitive, let's make it lowercase to improve readability.
25058       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25059       # Now convert it back to Unix-style (cygpath)
25060       input_path=`$CYGPATH -u "$shortmode_path"`
25061       new_path="$input_path"
25062     fi
25063   fi
25064 
25065   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25066   if test "x$test_cygdrive_prefix" = x; then
25067     # As a simple fix, exclude /usr/bin since it's not a real path.
25068     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25069       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25070       # a path prefixed by /cygdrive for fixpath to work.
25071       new_path="$CYGWIN_ROOT_PATH$input_path"
25072     fi
25073   fi
25074 
25075 
25076   if test "x$path" != "x$new_path"; then
25077     BOOT_JDK="$new_path"
25078     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25079 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25080   fi
25081 
25082     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25083 
25084   path="$BOOT_JDK"
25085   has_colon=`$ECHO $path | $GREP ^.:`
25086   new_path="$path"
25087   if test "x$has_colon" = x; then
25088     # Not in mixed or Windows style, start by that.
25089     new_path=`cmd //c echo $path`
25090   fi
25091 
25092 
25093   input_path="$new_path"
25094   # Check if we need to convert this using DOS-style short mode. If the path
25095   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25096   # take no chances and rewrite it.
25097   # Note: m4 eats our [], so we need to use [ and ] instead.
25098   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25099   if test "x$has_forbidden_chars" != x; then
25100     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25101     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25102   fi
25103 
25104 
25105   windows_path="$new_path"
25106   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25107     unix_path=`$CYGPATH -u "$windows_path"`
25108     new_path="$unix_path"
25109   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25110     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25111     new_path="$unix_path"
25112   fi
25113 
25114   if test "x$path" != "x$new_path"; then
25115     BOOT_JDK="$new_path"
25116     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25117 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25118   fi
25119 
25120   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25121   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25122 
25123     else
25124       # We're on a unix platform. Hooray! :)
25125       path="$BOOT_JDK"
25126       has_space=`$ECHO "$path" | $GREP " "`
25127       if test "x$has_space" != x; then
25128         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25129 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25130         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25131       fi
25132 
25133       # Use eval to expand a potential ~
25134       eval path="$path"
25135       if test ! -f "$path" && test ! -d "$path"; then
25136         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25137       fi
25138 
25139       if test -d "$path"; then
25140         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25141       else
25142         dir="`$DIRNAME "$path"`"
25143         base="`$BASENAME "$path"`"
25144         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25145       fi
25146     fi
25147   fi
25148 
25149             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25150 $as_echo_n "checking for Boot JDK... " >&6; }
25151             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25152 $as_echo "$BOOT_JDK" >&6; }
25153             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25154 $as_echo_n "checking Boot JDK version... " >&6; }
25155             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25156             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25157 $as_echo "$BOOT_JDK_VERSION" >&6; }
25158           fi # end check jdk version
25159         fi # end check javac
25160       fi # end check java
25161     fi # end check boot jdk found
25162   fi
25163 
25164     # If that did not work out (e.g. too old), try explicit versions instead
25165 
25166   if test "x$BOOT_JDK_FOUND" = xno; then
25167     # Now execute the test
25168 
25169   if test -x /usr/libexec/java_home; then
25170     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
25171     BOOT_JDK_FOUND=maybe
25172     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
25173 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
25174   fi
25175 
25176 
25177     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25178     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25179       # Do we have a bin/java?
25180       if test ! -x "$BOOT_JDK/bin/java"; then
25181         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25182 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25183         BOOT_JDK_FOUND=no
25184       else
25185         # Do we have a bin/javac?
25186         if test ! -x "$BOOT_JDK/bin/javac"; then
25187           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25188 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25189           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25190 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25191           BOOT_JDK_FOUND=no
25192         else
25193           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25194           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25195 
25196           # Extra M4 quote needed to protect [] in grep expression.
25197           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25198           if test "x$FOUND_CORRECT_VERSION" = x; then
25199             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25200 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25201             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25202 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25203             BOOT_JDK_FOUND=no
25204           else
25205             # We're done! :-)
25206             BOOT_JDK_FOUND=yes
25207 
25208   # Only process if variable expands to non-empty
25209 
25210   if test "x$BOOT_JDK" != x; then
25211     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25212 
25213   # Input might be given as Windows format, start by converting to
25214   # unix format.
25215   path="$BOOT_JDK"
25216   new_path=`$CYGPATH -u "$path"`
25217 
25218   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25219   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25220   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25221   # "foo.exe" is OK but "foo" is an error.
25222   #
25223   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25224   # It is also a way to make sure we got the proper file name for the real test later on.
25225   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25226   if test "x$test_shortpath" = x; then
25227     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25228 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25229     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25230   fi
25231 
25232   # Call helper function which possibly converts this using DOS-style short mode.
25233   # If so, the updated path is stored in $new_path.
25234 
25235   input_path="$new_path"
25236   # Check if we need to convert this using DOS-style short mode. If the path
25237   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25238   # take no chances and rewrite it.
25239   # Note: m4 eats our [], so we need to use [ and ] instead.
25240   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25241   if test "x$has_forbidden_chars" != x; then
25242     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25243     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25244     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25245     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25246       # Going to short mode and back again did indeed matter. Since short mode is
25247       # case insensitive, let's make it lowercase to improve readability.
25248       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25249       # Now convert it back to Unix-style (cygpath)
25250       input_path=`$CYGPATH -u "$shortmode_path"`
25251       new_path="$input_path"
25252     fi
25253   fi
25254 
25255   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25256   if test "x$test_cygdrive_prefix" = x; then
25257     # As a simple fix, exclude /usr/bin since it's not a real path.
25258     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25259       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25260       # a path prefixed by /cygdrive for fixpath to work.
25261       new_path="$CYGWIN_ROOT_PATH$input_path"
25262     fi
25263   fi
25264 
25265 
25266   if test "x$path" != "x$new_path"; then
25267     BOOT_JDK="$new_path"
25268     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25269 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25270   fi
25271 
25272     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25273 
25274   path="$BOOT_JDK"
25275   has_colon=`$ECHO $path | $GREP ^.:`
25276   new_path="$path"
25277   if test "x$has_colon" = x; then
25278     # Not in mixed or Windows style, start by that.
25279     new_path=`cmd //c echo $path`
25280   fi
25281 
25282 
25283   input_path="$new_path"
25284   # Check if we need to convert this using DOS-style short mode. If the path
25285   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25286   # take no chances and rewrite it.
25287   # Note: m4 eats our [], so we need to use [ and ] instead.
25288   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25289   if test "x$has_forbidden_chars" != x; then
25290     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25291     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25292   fi
25293 
25294 
25295   windows_path="$new_path"
25296   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25297     unix_path=`$CYGPATH -u "$windows_path"`
25298     new_path="$unix_path"
25299   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25300     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25301     new_path="$unix_path"
25302   fi
25303 
25304   if test "x$path" != "x$new_path"; then
25305     BOOT_JDK="$new_path"
25306     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25307 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25308   fi
25309 
25310   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25311   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25312 
25313     else
25314       # We're on a unix platform. Hooray! :)
25315       path="$BOOT_JDK"
25316       has_space=`$ECHO "$path" | $GREP " "`
25317       if test "x$has_space" != x; then
25318         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25319 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25320         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25321       fi
25322 
25323       # Use eval to expand a potential ~
25324       eval path="$path"
25325       if test ! -f "$path" && test ! -d "$path"; then
25326         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25327       fi
25328 
25329       if test -d "$path"; then
25330         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25331       else
25332         dir="`$DIRNAME "$path"`"
25333         base="`$BASENAME "$path"`"
25334         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25335       fi
25336     fi
25337   fi
25338 
25339             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25340 $as_echo_n "checking for Boot JDK... " >&6; }
25341             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25342 $as_echo "$BOOT_JDK" >&6; }
25343             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25344 $as_echo_n "checking Boot JDK version... " >&6; }
25345             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25346             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25347 $as_echo "$BOOT_JDK_VERSION" >&6; }
25348           fi # end check jdk version
25349         fi # end check javac
25350       fi # end check java
25351     fi # end check boot jdk found
25352   fi
25353 
25354 
25355   if test "x$BOOT_JDK_FOUND" = xno; then
25356     # Now execute the test
25357 
25358   if test -x /usr/libexec/java_home; then
25359     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
25360     BOOT_JDK_FOUND=maybe
25361     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
25362 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
25363   fi
25364 
25365 
25366     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25367     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25368       # Do we have a bin/java?
25369       if test ! -x "$BOOT_JDK/bin/java"; then
25