1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CFLAGS_CCACHE
 633 CCACHE
 634 USE_PRECOMPILED_HEADER
 635 BUILD_ICECC
 636 ICECC
 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 JAVA_FLAGS_BIG
 648 JAVA_FLAGS
 649 JOBS
 650 MEMORY_SIZE
 651 NUM_CORES
 652 ENABLE_INTREE_EC
 653 SALIB_NAME
 654 HOTSPOT_MAKE_ARGS
 655 LIBZIP_CAN_USE_MMAP
 656 LIBDL
 657 LIBM
 658 USE_EXTERNAL_LCMS
 659 LCMS_LIBS
 660 LCMS_CFLAGS
 661 USE_EXTERNAL_LIBZ
 662 USE_EXTERNAL_LIBPNG
 663 PNG_LIBS
 664 PNG_CFLAGS
 665 USE_EXTERNAL_LIBGIF
 666 USE_EXTERNAL_LIBJPEG
 667 LLVM_LIBS
 668 LLVM_LDFLAGS
 669 LLVM_CFLAGS
 670 LLVM_CONFIG
 671 LIBFFI_LIBS
 672 LIBFFI_CFLAGS
 673 ALSA_LIBS
 674 ALSA_CFLAGS
 675 FREETYPE_BUNDLE_LIB_PATH
 676 FREETYPE_LIBS
 677 FREETYPE_CFLAGS
 678 CUPS_CFLAGS
 679 X_EXTRA_LIBS
 680 X_LIBS
 681 X_PRE_LIBS
 682 X_CFLAGS
 683 XMKMF
 684 MSVCP_DLL
 685 MSVCR_DLL
 686 LIBCXX
 687 STATIC_CXX_SETTING
 688 FIXPATH_DETACH_FLAG
 689 FIXPATH
 690 GCOV_ENABLED
 691 ZIP_DEBUGINFO_FILES
 692 ENABLE_DEBUG_SYMBOLS
 693 STRIP_POLICY
 694 DEBUG_BINARIES
 695 NATIVE_DEBUG_SYMBOLS
 696 CFLAGS_WARNINGS_ARE_ERRORS
 697 DISABLE_WARNING_PREFIX
 698 HOTSPOT_SET_WARNINGS_AS_ERRORS
 699 WARNINGS_AS_ERRORS
 700 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 701 ZERO_ARCHFLAG
 702 LDFLAGS_TESTEXE
 703 LDFLAGS_TESTLIB
 704 LDFLAGS_CXX_JDK
 705 JDKEXE_LIBS
 706 JDKLIB_LIBS
 707 LDFLAGS_JDKEXE
 708 LDFLAGS_JDKLIB
 709 CXXFLAGS_TESTEXE
 710 CXXFLAGS_TESTLIB
 711 CFLAGS_TESTEXE
 712 CFLAGS_TESTLIB
 713 CXXFLAGS_JDKEXE
 714 CXXFLAGS_JDKLIB
 715 CFLAGS_JDKEXE
 716 CFLAGS_JDKLIB
 717 MACOSX_VERSION_MIN
 718 CXX_O_FLAG_NONE
 719 CXX_O_FLAG_DEBUG
 720 CXX_O_FLAG_NORM
 721 CXX_O_FLAG_HI
 722 CXX_O_FLAG_HIGHEST
 723 C_O_FLAG_NONE
 724 C_O_FLAG_DEBUG
 725 C_O_FLAG_NORM
 726 C_O_FLAG_HI
 727 C_O_FLAG_HIGHEST
 728 CXXFLAGS_DEBUG_SYMBOLS
 729 CFLAGS_DEBUG_SYMBOLS
 730 CXX_FLAG_DEPS
 731 C_FLAG_DEPS
 732 SET_SHARED_LIBRARY_MAPFILE
 733 SET_SHARED_LIBRARY_NAME
 734 SET_SHARED_LIBRARY_ORIGIN
 735 SET_EXECUTABLE_ORIGIN
 736 CXX_FLAG_REORDER
 737 C_FLAG_REORDER
 738 RC_FLAGS
 739 AR_OUT_OPTION
 740 LD_OUT_OPTION
 741 EXE_OUT_OPTION
 742 CC_OUT_OPTION
 743 STRIPFLAGS
 744 ARFLAGS
 745 COMPILER_TARGET_BITS_FLAG
 746 JT_HOME
 747 JTREGEXE
 748 USING_BROKEN_SUSE_LD
 749 PACKAGE_PATH
 750 USE_CLANG
 751 HOTSPOT_LD
 752 HOTSPOT_CXX
 753 HOTSPOT_RC
 754 HOTSPOT_MT
 755 BUILD_AS
 756 BUILD_LD
 757 BUILD_AR
 758 BUILD_NM
 759 BUILD_CXX
 760 BUILD_CC
 761 BUILD_SYSROOT_LDFLAGS
 762 BUILD_SYSROOT_CFLAGS
 763 ac_ct_OBJDUMP
 764 OBJDUMP
 765 ac_ct_OBJCOPY
 766 OBJCOPY
 767 ac_ct_NM
 768 ac_ct_STRIP
 769 GNM
 770 NM
 771 STRIP
 772 MSBUILD
 773 DUMPBIN
 774 RC
 775 MT
 776 LIPO
 777 ac_ct_AR
 778 AR
 779 AS
 780 LDCXX
 781 LD
 782 CXXCPP
 783 CPP
 784 ac_ct_CXX
 785 CXXFLAGS
 786 CXX
 787 ac_ct_PROPER_COMPILER_CXX
 788 PROPER_COMPILER_CXX
 789 TOOLCHAIN_PATH_CXX
 790 POTENTIAL_CXX
 791 OBJEXT
 792 EXEEXT
 793 ac_ct_CC
 794 CPPFLAGS
 795 LDFLAGS
 796 CFLAGS
 797 CC
 798 ac_ct_PROPER_COMPILER_CC
 799 PROPER_COMPILER_CC
 800 TOOLCHAIN_PATH_CC
 801 POTENTIAL_CC
 802 VS_LIB
 803 VS_INCLUDE
 804 VS_PATH
 805 CYGWIN_LINK
 806 SYSROOT_LDFLAGS
 807 SYSROOT_CFLAGS
 808 LEGACY_EXTRA_LDFLAGS
 809 LEGACY_EXTRA_CXXFLAGS
 810 LEGACY_EXTRA_CFLAGS
 811 EXE_SUFFIX
 812 OBJ_SUFFIX
 813 STATIC_LIBRARY
 814 SHARED_LIBRARY
 815 STATIC_LIBRARY_SUFFIX
 816 SHARED_LIBRARY_SUFFIX
 817 LIBRARY_PREFIX
 818 TOOLCHAIN_TYPE
 819 STATIC_BUILD
 820 BUILD_HOTSPOT
 821 HOTSPOT_DIST
 822 BUILD_OUTPUT
 823 JDK_TOPDIR
 824 NASHORN_TOPDIR
 825 HOTSPOT_TOPDIR
 826 JAXWS_TOPDIR
 827 JAXP_TOPDIR
 828 CORBA_TOPDIR
 829 LANGTOOLS_TOPDIR
 830 BOOT_JDK_BITS
 831 JAVAC_FLAGS
 832 BOOT_JDK_SOURCETARGET
 833 JARSIGNER
 834 JAR
 835 JAVAH
 836 JAVAC
 837 JAVA
 838 BOOT_JDK
 839 JAVA_CHECK
 840 JAVAC_CHECK
 841 VERSION_IS_GA
 842 VERSION_SHORT
 843 VERSION_STRING
 844 VERSION_NUMBER_FOUR_POSITIONS
 845 VERSION_NUMBER
 846 VERSION_OPT
 847 VERSION_BUILD
 848 VERSION_PRE
 849 VERSION_PATCH
 850 VERSION_SECURITY
 851 VERSION_MINOR
 852 VERSION_MAJOR
 853 MACOSX_BUNDLE_ID_BASE
 854 MACOSX_BUNDLE_NAME_BASE
 855 COMPANY_NAME
 856 JDK_RC_PLATFORM_NAME
 857 PRODUCT_SUFFIX
 858 PRODUCT_NAME
 859 LAUNCHER_NAME
 860 COPYRIGHT_YEAR
 861 COMPRESS_JARS
 862 UNLIMITED_CRYPTO
 863 CACERTS_FILE
 864 TEST_IN_BUILD
 865 BUILD_HEADLESS
 866 SUPPORT_HEADFUL
 867 SUPPORT_HEADLESS
 868 DEFAULT_MAKE_TARGET
 869 OS_VERSION_MICRO
 870 OS_VERSION_MINOR
 871 OS_VERSION_MAJOR
 872 PKG_CONFIG
 873 BASH_ARGS
 874 SETFILE
 875 CODESIGN
 876 XATTR
 877 DSYMUTIL
 878 IS_GNU_TIME
 879 PATCH
 880 TIME
 881 STAT
 882 HG
 883 READELF
 884 OTOOL
 885 LDD
 886 ZIP
 887 UNZIP
 888 FIND_DELETE
 889 OUTPUT_SYNC
 890 OUTPUT_SYNC_SUPPORTED
 891 CHECK_TOOLSDIR_MAKE
 892 CHECK_TOOLSDIR_GMAKE
 893 CHECK_MAKE
 894 CHECK_GMAKE
 895 MAKE
 896 PKGHANDLER
 897 CONFIGURESUPPORT_OUTPUTDIR
 898 OUTPUT_ROOT
 899 CONF_NAME
 900 SPEC
 901 SDKROOT
 902 XCODEBUILD
 903 BUILD_VARIANT_RELEASE
 904 DEBUG_CLASSFILES
 905 FASTDEBUG
 906 VARIANT
 907 DEBUG_LEVEL
 908 MACOSX_UNIVERSAL
 909 INCLUDE_SA
 910 JVM_VARIANT_CORE
 911 JVM_VARIANT_ZEROSHARK
 912 JVM_VARIANT_ZERO
 913 JVM_VARIANT_KERNEL
 914 JVM_VARIANT_MINIMAL1
 915 JVM_VARIANT_CLIENT
 916 JVM_VARIANT_SERVER
 917 JVM_VARIANTS
 918 JVM_INTERPRETER
 919 JDK_VARIANT
 920 SET_OPENJDK
 921 CANONICAL_TOPDIR
 922 ORIGINAL_TOPDIR
 923 TOPDIR
 924 PATH_SEP
 925 ZERO_ARCHDEF
 926 DEFINE_CROSS_COMPILE_ARCH
 927 LP64
 928 OPENJDK_TARGET_OS_EXPORT_DIR
 929 OPENJDK_TARGET_CPU_JLI_CFLAGS
 930 OPENJDK_TARGET_CPU_OSARCH
 931 OPENJDK_TARGET_CPU_ISADIR
 932 OPENJDK_TARGET_CPU_LIBDIR
 933 OPENJDK_TARGET_CPU_LEGACY_LIB
 934 OPENJDK_TARGET_CPU_LEGACY
 935 REQUIRED_OS_VERSION
 936 REQUIRED_OS_NAME
 937 COMPILE_TYPE
 938 OPENJDK_TARGET_CPU_ENDIAN
 939 OPENJDK_TARGET_CPU_BITS
 940 OPENJDK_TARGET_CPU_ARCH
 941 OPENJDK_TARGET_CPU
 942 OPENJDK_TARGET_OS_ENV
 943 OPENJDK_TARGET_OS_TYPE
 944 OPENJDK_TARGET_OS
 945 OPENJDK_BUILD_CPU_ENDIAN
 946 OPENJDK_BUILD_CPU_BITS
 947 OPENJDK_BUILD_CPU_ARCH
 948 OPENJDK_BUILD_CPU
 949 OPENJDK_BUILD_OS_ENV
 950 OPENJDK_BUILD_OS_TYPE
 951 OPENJDK_BUILD_OS
 952 OPENJDK_BUILD_AUTOCONF_NAME
 953 OPENJDK_TARGET_AUTOCONF_NAME
 954 target_os
 955 target_vendor
 956 target_cpu
 957 target
 958 host_os
 959 host_vendor
 960 host_cpu
 961 host
 962 build_os
 963 build_vendor
 964 build_cpu
 965 build
 966 NICE
 967 CPIO
 968 DF
 969 READLINK
 970 CYGPATH
 971 SED
 972 FGREP
 973 EGREP
 974 GREP
 975 AWK
 976 XARGS
 977 WHICH
 978 WC
 979 UNIQ
 980 UNAME
 981 TR
 982 TOUCH
 983 TEE
 984 TAR
 985 TAIL
 986 SORT
 987 SH
 988 RMDIR
 989 RM
 990 PRINTF
 991 NAWK
 992 MV
 993 MKTEMP
 994 MKDIR
 995 LS
 996 LN
 997 HEAD
 998 FIND
 999 FILE
1000 EXPR
1001 ECHO
1002 DIRNAME
1003 DIFF
1004 DATE
1005 CUT
1006 CP
1007 COMM
1008 CMP
1009 CHMOD
1010 CAT
1011 BASH
1012 BASENAME
1013 DATE_WHEN_CONFIGURED
1014 ORIGINAL_PATH
1015 CONFIGURE_COMMAND_LINE
1016 target_alias
1017 host_alias
1018 build_alias
1019 LIBS
1020 ECHO_T
1021 ECHO_N
1022 ECHO_C
1023 DEFS
1024 mandir
1025 localedir
1026 libdir
1027 psdir
1028 pdfdir
1029 dvidir
1030 htmldir
1031 infodir
1032 docdir
1033 oldincludedir
1034 includedir
1035 localstatedir
1036 sharedstatedir
1037 sysconfdir
1038 datadir
1039 datarootdir
1040 libexecdir
1041 sbindir
1042 bindir
1043 program_transform_name
1044 prefix
1045 exec_prefix
1046 PACKAGE_URL
1047 PACKAGE_BUGREPORT
1048 PACKAGE_STRING
1049 PACKAGE_VERSION
1050 PACKAGE_TARNAME
1051 PACKAGE_NAME
1052 PATH_SEPARATOR
1053 SHELL'
1054 ac_subst_files=''
1055 ac_user_opts='
1056 enable_option_checking
1057 with_target_bits
1058 enable_openjdk_only
1059 with_custom_make_dir
1060 with_jdk_variant
1061 with_jvm_interpreter
1062 with_jvm_variants
1063 enable_debug
1064 with_debug_level
1065 with_devkit
1066 with_sys_root
1067 with_sysroot
1068 with_tools_dir
1069 with_toolchain_path
1070 with_extra_path
1071 with_sdk_name
1072 with_conf_name
1073 with_output_sync
1074 with_default_make_target
1075 enable_headful
1076 enable_hotspot_test_in_build
1077 with_cacerts_file
1078 enable_unlimited_crypto
1079 with_copyright_year
1080 with_milestone
1081 with_update_version
1082 with_user_release_suffix
1083 with_build_number
1084 with_version_string
1085 with_version_pre
1086 with_version_opt
1087 with_version_build
1088 with_version_major
1089 with_version_minor
1090 with_version_security
1091 with_version_patch
1092 with_boot_jdk
1093 with_add_source_root
1094 with_override_source_root
1095 with_adds_and_overrides
1096 with_override_langtools
1097 with_override_corba
1098 with_override_jaxp
1099 with_override_jaxws
1100 with_override_hotspot
1101 with_override_nashorn
1102 with_override_jdk
1103 with_import_hotspot
1104 enable_static_build
1105 with_toolchain_type
1106 with_extra_cflags
1107 with_extra_cxxflags
1108 with_extra_ldflags
1109 with_toolchain_version
1110 with_build_devkit
1111 with_jtreg
1112 enable_warnings_as_errors
1113 with_native_debug_symbols
1114 enable_debug_symbols
1115 enable_zip_debug_info
1116 enable_native_coverage
1117 with_stdc__lib
1118 with_msvcr_dll
1119 with_msvcp_dll
1120 with_x
1121 with_cups
1122 with_cups_include
1123 with_freetype
1124 with_freetype_include
1125 with_freetype_lib
1126 with_freetype_src
1127 enable_freetype_bundling
1128 with_alsa
1129 with_alsa_include
1130 with_alsa_lib
1131 with_libffi
1132 with_libffi_include
1133 with_libffi_lib
1134 with_libjpeg
1135 with_giflib
1136 with_libpng
1137 with_zlib
1138 with_lcms
1139 with_dxsdk
1140 with_dxsdk_lib
1141 with_dxsdk_include
1142 with_num_cores
1143 with_memory_size
1144 with_jobs
1145 with_boot_jdk_jvmargs
1146 with_sjavac_server_java
1147 enable_sjavac
1148 enable_javac_server
1149 enable_icecc
1150 enable_precompiled_headers
1151 enable_ccache
1152 with_ccache_dir
1153 '
1154       ac_precious_vars='build_alias
1155 host_alias
1156 target_alias
1157 BASENAME
1158 BASH
1159 CAT
1160 CHMOD
1161 CMP
1162 COMM
1163 CP
1164 CUT
1165 DATE
1166 DIFF
1167 DIRNAME
1168 ECHO
1169 EXPR
1170 FILE
1171 FIND
1172 HEAD
1173 LN
1174 LS
1175 MKDIR
1176 MKTEMP
1177 MV
1178 NAWK
1179 PRINTF
1180 RM
1181 RMDIR
1182 SH
1183 SORT
1184 TAIL
1185 TAR
1186 TEE
1187 TOUCH
1188 TR
1189 UNAME
1190 UNIQ
1191 WC
1192 WHICH
1193 XARGS
1194 AWK
1195 GREP
1196 EGREP
1197 FGREP
1198 SED
1199 CYGPATH
1200 READLINK
1201 DF
1202 CPIO
1203 NICE
1204 MAKE
1205 UNZIP
1206 ZIP
1207 LDD
1208 OTOOL
1209 READELF
1210 HG
1211 STAT
1212 TIME
1213 PATCH
1214 DSYMUTIL
1215 XATTR
1216 CODESIGN
1217 SETFILE
1218 PKG_CONFIG
1219 JAVA
1220 JAVAC
1221 JAVAH
1222 JAR
1223 JARSIGNER
1224 CC
1225 CFLAGS
1226 LDFLAGS
1227 LIBS
1228 CPPFLAGS
1229 CXX
1230 CXXFLAGS
1231 CCC
1232 CPP
1233 CXXCPP
1234 AS
1235 AR
1236 LIPO
1237 STRIP
1238 NM
1239 GNM
1240 OBJCOPY
1241 OBJDUMP
1242 BUILD_CC
1243 BUILD_CXX
1244 BUILD_NM
1245 BUILD_AR
1246 JTREGEXE
1247 XMKMF
1248 FREETYPE_CFLAGS
1249 FREETYPE_LIBS
1250 ALSA_CFLAGS
1251 ALSA_LIBS
1252 LIBFFI_CFLAGS
1253 LIBFFI_LIBS
1254 PNG_CFLAGS
1255 PNG_LIBS
1256 LCMS_CFLAGS
1257 LCMS_LIBS
1258 ICECC_CMD
1259 ICECC_CREATE_ENV
1260 ICECC_WRAPPER
1261 CCACHE'
1262 
1263 
1264 # Initialize some variables set by options.
1265 ac_init_help=
1266 ac_init_version=false
1267 ac_unrecognized_opts=
1268 ac_unrecognized_sep=
1269 # The variables have the same names as the options, with
1270 # dashes changed to underlines.
1271 cache_file=/dev/null
1272 exec_prefix=NONE
1273 no_create=
1274 no_recursion=
1275 prefix=NONE
1276 program_prefix=NONE
1277 program_suffix=NONE
1278 program_transform_name=s,x,x,
1279 silent=
1280 site=
1281 srcdir=
1282 verbose=
1283 x_includes=NONE
1284 x_libraries=NONE
1285 
1286 # Installation directory options.
1287 # These are left unexpanded so users can "make install exec_prefix=/foo"
1288 # and all the variables that are supposed to be based on exec_prefix
1289 # by default will actually change.
1290 # Use braces instead of parens because sh, perl, etc. also accept them.
1291 # (The list follows the same order as the GNU Coding Standards.)
1292 bindir='${exec_prefix}/bin'
1293 sbindir='${exec_prefix}/sbin'
1294 libexecdir='${exec_prefix}/libexec'
1295 datarootdir='${prefix}/share'
1296 datadir='${datarootdir}'
1297 sysconfdir='${prefix}/etc'
1298 sharedstatedir='${prefix}/com'
1299 localstatedir='${prefix}/var'
1300 includedir='${prefix}/include'
1301 oldincludedir='/usr/include'
1302 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1303 infodir='${datarootdir}/info'
1304 htmldir='${docdir}'
1305 dvidir='${docdir}'
1306 pdfdir='${docdir}'
1307 psdir='${docdir}'
1308 libdir='${exec_prefix}/lib'
1309 localedir='${datarootdir}/locale'
1310 mandir='${datarootdir}/man'
1311 
1312 ac_prev=
1313 ac_dashdash=
1314 for ac_option
1315 do
1316   # If the previous option needs an argument, assign it.
1317   if test -n "$ac_prev"; then
1318     eval $ac_prev=\$ac_option
1319     ac_prev=
1320     continue
1321   fi
1322 
1323   case $ac_option in
1324   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1325   *=)   ac_optarg= ;;
1326   *)    ac_optarg=yes ;;
1327   esac
1328 
1329   # Accept the important Cygnus configure options, so we can diagnose typos.
1330 
1331   case $ac_dashdash$ac_option in
1332   --)
1333     ac_dashdash=yes ;;
1334 
1335   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1336     ac_prev=bindir ;;
1337   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1338     bindir=$ac_optarg ;;
1339 
1340   -build | --build | --buil | --bui | --bu)
1341     ac_prev=build_alias ;;
1342   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1343     build_alias=$ac_optarg ;;
1344 
1345   -cache-file | --cache-file | --cache-fil | --cache-fi \
1346   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1347     ac_prev=cache_file ;;
1348   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1349   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1350     cache_file=$ac_optarg ;;
1351 
1352   --config-cache | -C)
1353     cache_file=config.cache ;;
1354 
1355   -datadir | --datadir | --datadi | --datad)
1356     ac_prev=datadir ;;
1357   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1358     datadir=$ac_optarg ;;
1359 
1360   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1361   | --dataroo | --dataro | --datar)
1362     ac_prev=datarootdir ;;
1363   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1364   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1365     datarootdir=$ac_optarg ;;
1366 
1367   -disable-* | --disable-*)
1368     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1369     # Reject names that are not valid shell variable names.
1370     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1371       as_fn_error $? "invalid feature name: $ac_useropt"
1372     ac_useropt_orig=$ac_useropt
1373     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1374     case $ac_user_opts in
1375       *"
1376 "enable_$ac_useropt"
1377 "*) ;;
1378       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1379          ac_unrecognized_sep=', ';;
1380     esac
1381     eval enable_$ac_useropt=no ;;
1382 
1383   -docdir | --docdir | --docdi | --doc | --do)
1384     ac_prev=docdir ;;
1385   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1386     docdir=$ac_optarg ;;
1387 
1388   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1389     ac_prev=dvidir ;;
1390   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1391     dvidir=$ac_optarg ;;
1392 
1393   -enable-* | --enable-*)
1394     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1395     # Reject names that are not valid shell variable names.
1396     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1397       as_fn_error $? "invalid feature name: $ac_useropt"
1398     ac_useropt_orig=$ac_useropt
1399     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1400     case $ac_user_opts in
1401       *"
1402 "enable_$ac_useropt"
1403 "*) ;;
1404       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1405          ac_unrecognized_sep=', ';;
1406     esac
1407     eval enable_$ac_useropt=\$ac_optarg ;;
1408 
1409   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1410   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1411   | --exec | --exe | --ex)
1412     ac_prev=exec_prefix ;;
1413   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1414   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1415   | --exec=* | --exe=* | --ex=*)
1416     exec_prefix=$ac_optarg ;;
1417 
1418   -gas | --gas | --ga | --g)
1419     # Obsolete; use --with-gas.
1420     with_gas=yes ;;
1421 
1422   -help | --help | --hel | --he | -h)
1423     ac_init_help=long ;;
1424   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1425     ac_init_help=recursive ;;
1426   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1427     ac_init_help=short ;;
1428 
1429   -host | --host | --hos | --ho)
1430     ac_prev=host_alias ;;
1431   -host=* | --host=* | --hos=* | --ho=*)
1432     host_alias=$ac_optarg ;;
1433 
1434   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1435     ac_prev=htmldir ;;
1436   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1437   | --ht=*)
1438     htmldir=$ac_optarg ;;
1439 
1440   -includedir | --includedir | --includedi | --included | --include \
1441   | --includ | --inclu | --incl | --inc)
1442     ac_prev=includedir ;;
1443   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1444   | --includ=* | --inclu=* | --incl=* | --inc=*)
1445     includedir=$ac_optarg ;;
1446 
1447   -infodir | --infodir | --infodi | --infod | --info | --inf)
1448     ac_prev=infodir ;;
1449   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1450     infodir=$ac_optarg ;;
1451 
1452   -libdir | --libdir | --libdi | --libd)
1453     ac_prev=libdir ;;
1454   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1455     libdir=$ac_optarg ;;
1456 
1457   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1458   | --libexe | --libex | --libe)
1459     ac_prev=libexecdir ;;
1460   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1461   | --libexe=* | --libex=* | --libe=*)
1462     libexecdir=$ac_optarg ;;
1463 
1464   -localedir | --localedir | --localedi | --localed | --locale)
1465     ac_prev=localedir ;;
1466   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1467     localedir=$ac_optarg ;;
1468 
1469   -localstatedir | --localstatedir | --localstatedi | --localstated \
1470   | --localstate | --localstat | --localsta | --localst | --locals)
1471     ac_prev=localstatedir ;;
1472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1473   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1474     localstatedir=$ac_optarg ;;
1475 
1476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1477     ac_prev=mandir ;;
1478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1479     mandir=$ac_optarg ;;
1480 
1481   -nfp | --nfp | --nf)
1482     # Obsolete; use --without-fp.
1483     with_fp=no ;;
1484 
1485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1486   | --no-cr | --no-c | -n)
1487     no_create=yes ;;
1488 
1489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1491     no_recursion=yes ;;
1492 
1493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1495   | --oldin | --oldi | --old | --ol | --o)
1496     ac_prev=oldincludedir ;;
1497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1500     oldincludedir=$ac_optarg ;;
1501 
1502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1503     ac_prev=prefix ;;
1504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1505     prefix=$ac_optarg ;;
1506 
1507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1508   | --program-pre | --program-pr | --program-p)
1509     ac_prev=program_prefix ;;
1510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1512     program_prefix=$ac_optarg ;;
1513 
1514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1515   | --program-suf | --program-su | --program-s)
1516     ac_prev=program_suffix ;;
1517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1519     program_suffix=$ac_optarg ;;
1520 
1521   -program-transform-name | --program-transform-name \
1522   | --program-transform-nam | --program-transform-na \
1523   | --program-transform-n | --program-transform- \
1524   | --program-transform | --program-transfor \
1525   | --program-transfo | --program-transf \
1526   | --program-trans | --program-tran \
1527   | --progr-tra | --program-tr | --program-t)
1528     ac_prev=program_transform_name ;;
1529   -program-transform-name=* | --program-transform-name=* \
1530   | --program-transform-nam=* | --program-transform-na=* \
1531   | --program-transform-n=* | --program-transform-=* \
1532   | --program-transform=* | --program-transfor=* \
1533   | --program-transfo=* | --program-transf=* \
1534   | --program-trans=* | --program-tran=* \
1535   | --progr-tra=* | --program-tr=* | --program-t=*)
1536     program_transform_name=$ac_optarg ;;
1537 
1538   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1539     ac_prev=pdfdir ;;
1540   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1541     pdfdir=$ac_optarg ;;
1542 
1543   -psdir | --psdir | --psdi | --psd | --ps)
1544     ac_prev=psdir ;;
1545   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1546     psdir=$ac_optarg ;;
1547 
1548   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1549   | -silent | --silent | --silen | --sile | --sil)
1550     silent=yes ;;
1551 
1552   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1553     ac_prev=sbindir ;;
1554   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1555   | --sbi=* | --sb=*)
1556     sbindir=$ac_optarg ;;
1557 
1558   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1559   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1560   | --sharedst | --shareds | --shared | --share | --shar \
1561   | --sha | --sh)
1562     ac_prev=sharedstatedir ;;
1563   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1564   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1565   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1566   | --sha=* | --sh=*)
1567     sharedstatedir=$ac_optarg ;;
1568 
1569   -site | --site | --sit)
1570     ac_prev=site ;;
1571   -site=* | --site=* | --sit=*)
1572     site=$ac_optarg ;;
1573 
1574   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1575     ac_prev=srcdir ;;
1576   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1577     srcdir=$ac_optarg ;;
1578 
1579   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1580   | --syscon | --sysco | --sysc | --sys | --sy)
1581     ac_prev=sysconfdir ;;
1582   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1583   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1584     sysconfdir=$ac_optarg ;;
1585 
1586   -target | --target | --targe | --targ | --tar | --ta | --t)
1587     ac_prev=target_alias ;;
1588   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1589     target_alias=$ac_optarg ;;
1590 
1591   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1592     verbose=yes ;;
1593 
1594   -version | --version | --versio | --versi | --vers | -V)
1595     ac_init_version=: ;;
1596 
1597   -with-* | --with-*)
1598     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1599     # Reject names that are not valid shell variable names.
1600     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1601       as_fn_error $? "invalid package name: $ac_useropt"
1602     ac_useropt_orig=$ac_useropt
1603     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1604     case $ac_user_opts in
1605       *"
1606 "with_$ac_useropt"
1607 "*) ;;
1608       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1609          ac_unrecognized_sep=', ';;
1610     esac
1611     eval with_$ac_useropt=\$ac_optarg ;;
1612 
1613   -without-* | --without-*)
1614     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1615     # Reject names that are not valid shell variable names.
1616     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1617       as_fn_error $? "invalid package name: $ac_useropt"
1618     ac_useropt_orig=$ac_useropt
1619     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1620     case $ac_user_opts in
1621       *"
1622 "with_$ac_useropt"
1623 "*) ;;
1624       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1625          ac_unrecognized_sep=', ';;
1626     esac
1627     eval with_$ac_useropt=no ;;
1628 
1629   --x)
1630     # Obsolete; use --with-x.
1631     with_x=yes ;;
1632 
1633   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1634   | --x-incl | --x-inc | --x-in | --x-i)
1635     ac_prev=x_includes ;;
1636   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1637   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1638     x_includes=$ac_optarg ;;
1639 
1640   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1641   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1642     ac_prev=x_libraries ;;
1643   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1644   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1645     x_libraries=$ac_optarg ;;
1646 
1647   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1648 Try \`$0 --help' for more information"
1649     ;;
1650 
1651   *=*)
1652     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1653     # Reject names that are not valid shell variable names.
1654     case $ac_envvar in #(
1655       '' | [0-9]* | *[!_$as_cr_alnum]* )
1656       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1657     esac
1658     eval $ac_envvar=\$ac_optarg
1659     export $ac_envvar ;;
1660 
1661   *)
1662     # FIXME: should be removed in autoconf 3.0.
1663     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1664     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1665       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1666     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1667     ;;
1668 
1669   esac
1670 done
1671 
1672 if test -n "$ac_prev"; then
1673   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1674   as_fn_error $? "missing argument to $ac_option"
1675 fi
1676 
1677 if test -n "$ac_unrecognized_opts"; then
1678   case $enable_option_checking in
1679     no) ;;
1680     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1681     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1682   esac
1683 fi
1684 
1685 # Check all directory arguments for consistency.
1686 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1687                 datadir sysconfdir sharedstatedir localstatedir includedir \
1688                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1689                 libdir localedir mandir
1690 do
1691   eval ac_val=\$$ac_var
1692   # Remove trailing slashes.
1693   case $ac_val in
1694     */ )
1695       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1696       eval $ac_var=\$ac_val;;
1697   esac
1698   # Be sure to have absolute directory names.
1699   case $ac_val in
1700     [\\/$]* | ?:[\\/]* )  continue;;
1701     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1702   esac
1703   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1704 done
1705 
1706 # There might be people who depend on the old broken behavior: `$host'
1707 # used to hold the argument of --host etc.
1708 # FIXME: To remove some day.
1709 build=$build_alias
1710 host=$host_alias
1711 target=$target_alias
1712 
1713 # FIXME: To remove some day.
1714 if test "x$host_alias" != x; then
1715   if test "x$build_alias" = x; then
1716     cross_compiling=maybe
1717   elif test "x$build_alias" != "x$host_alias"; then
1718     cross_compiling=yes
1719   fi
1720 fi
1721 
1722 ac_tool_prefix=
1723 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1724 
1725 test "$silent" = yes && exec 6>/dev/null
1726 
1727 
1728 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1729 ac_ls_di=`ls -di .` &&
1730 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1731   as_fn_error $? "working directory cannot be determined"
1732 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1733   as_fn_error $? "pwd does not report name of working directory"
1734 
1735 
1736 # Find the source files, if location was not specified.
1737 if test -z "$srcdir"; then
1738   ac_srcdir_defaulted=yes
1739   # Try the directory containing this script, then the parent directory.
1740   ac_confdir=`$as_dirname -- "$as_myself" ||
1741 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1742          X"$as_myself" : 'X\(//\)[^/]' \| \
1743          X"$as_myself" : 'X\(//\)$' \| \
1744          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1745 $as_echo X"$as_myself" |
1746     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1747             s//\1/
1748             q
1749           }
1750           /^X\(\/\/\)[^/].*/{
1751             s//\1/
1752             q
1753           }
1754           /^X\(\/\/\)$/{
1755             s//\1/
1756             q
1757           }
1758           /^X\(\/\).*/{
1759             s//\1/
1760             q
1761           }
1762           s/.*/./; q'`
1763   srcdir=$ac_confdir
1764   if test ! -r "$srcdir/$ac_unique_file"; then
1765     srcdir=..
1766   fi
1767 else
1768   ac_srcdir_defaulted=no
1769 fi
1770 if test ! -r "$srcdir/$ac_unique_file"; then
1771   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1772   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1773 fi
1774 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1775 ac_abs_confdir=`(
1776         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1777         pwd)`
1778 # When building in place, set srcdir=.
1779 if test "$ac_abs_confdir" = "$ac_pwd"; then
1780   srcdir=.
1781 fi
1782 # Remove unnecessary trailing slashes from srcdir.
1783 # Double slashes in file names in object file debugging info
1784 # mess up M-x gdb in Emacs.
1785 case $srcdir in
1786 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1787 esac
1788 for ac_var in $ac_precious_vars; do
1789   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1790   eval ac_env_${ac_var}_value=\$${ac_var}
1791   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1792   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1793 done
1794 
1795 #
1796 # Report the --help message.
1797 #
1798 if test "$ac_init_help" = "long"; then
1799   # Omit some internal or obsolete options to make the list less imposing.
1800   # This message is too long to be a string in the A/UX 3.1 sh.
1801   cat <<_ACEOF
1802 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1803 
1804 Usage: $0 [OPTION]... [VAR=VALUE]...
1805 
1806 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1807 VAR=VALUE.  See below for descriptions of some of the useful variables.
1808 
1809 Defaults for the options are specified in brackets.
1810 
1811 Configuration:
1812   -h, --help              display this help and exit
1813       --help=short        display options specific to this package
1814       --help=recursive    display the short help of all the included packages
1815   -V, --version           display version information and exit
1816   -q, --quiet, --silent   do not print \`checking ...' messages
1817       --cache-file=FILE   cache test results in FILE [disabled]
1818   -C, --config-cache      alias for \`--cache-file=config.cache'
1819   -n, --no-create         do not create output files
1820       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1821 
1822 Installation directories:
1823   --prefix=PREFIX         install architecture-independent files in PREFIX
1824                           [$ac_default_prefix]
1825   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1826                           [PREFIX]
1827 
1828 By default, \`make install' will install all the files in
1829 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1830 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1831 for instance \`--prefix=\$HOME'.
1832 
1833 For better control, use the options below.
1834 
1835 Fine tuning of the installation directories:
1836   --bindir=DIR            user executables [EPREFIX/bin]
1837   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1838   --libexecdir=DIR        program executables [EPREFIX/libexec]
1839   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1840   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1841   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1842   --libdir=DIR            object code libraries [EPREFIX/lib]
1843   --includedir=DIR        C header files [PREFIX/include]
1844   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1845   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1846   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1847   --infodir=DIR           info documentation [DATAROOTDIR/info]
1848   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1849   --mandir=DIR            man documentation [DATAROOTDIR/man]
1850   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1851   --htmldir=DIR           html documentation [DOCDIR]
1852   --dvidir=DIR            dvi documentation [DOCDIR]
1853   --pdfdir=DIR            pdf documentation [DOCDIR]
1854   --psdir=DIR             ps documentation [DOCDIR]
1855 _ACEOF
1856 
1857   cat <<\_ACEOF
1858 
1859 X features:
1860   --x-includes=DIR    X include files are in DIR
1861   --x-libraries=DIR   X library files are in DIR
1862 
1863 System types:
1864   --build=BUILD     configure for building on BUILD [guessed]
1865   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1866   --target=TARGET   configure for building compilers for TARGET [HOST]
1867 _ACEOF
1868 fi
1869 
1870 if test -n "$ac_init_help"; then
1871   case $ac_init_help in
1872      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1873    esac
1874   cat <<\_ACEOF
1875 
1876 Optional Features:
1877   --disable-option-checking  ignore unrecognized --enable/--with options
1878   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1879   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1880   --enable-openjdk-only   suppress building custom source even if present
1881                           [disabled]
1882   --enable-debug          set the debug level to fastdebug (shorthand for
1883                           --with-debug-level=fastdebug) [disabled]
1884   --disable-headful       disable building headful support (graphical UI
1885                           support) [enabled]
1886   --enable-hotspot-test-in-build
1887                           run the Queens test after Hotspot build [disabled]
1888   --enable-unlimited-crypto
1889                           Enable unlimited crypto policy [disabled]
1890   --enable-static-build   enable static library build [disabled]
1891   --disable-warnings-as-errors
1892                           do not consider native warnings to be an error
1893                           [enabled]
1894   --enable-debug-symbols  Deprecated. Option is kept for backwards
1895                           compatibility and is ignored
1896   --enable-zip-debug-info Deprecated. Option is kept for backwards
1897                           compatibility and is ignored
1898   --enable-native-coverage
1899                           enable native compilation with code coverage
1900                           data[disabled]
1901   --disable-freetype-bundling
1902                           disable bundling of the freetype library with the
1903                           build result [enabled on Windows or when using
1904                           --with-freetype, disabled otherwise]
1905   --enable-sjavac         use sjavac to do fast incremental compiles
1906                           [disabled]
1907   --disable-javac-server  disable javac server [enabled]
1908   --enable-icecc          enable distribted compilation of native code using
1909                           icecc/icecream [disabled]
1910   --disable-precompiled-headers
1911                           disable using precompiled headers when compiling C++
1912                           [enabled]
1913   --enable-ccache         enable using ccache to speed up recompilations
1914                           [disabled]
1915 
1916 Optional Packages:
1917   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1918   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1919   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1920                           support it), e.g. --with-target-bits=32 [guessed]
1921   --with-custom-make-dir  Deprecated. Option is kept for backwards
1922                           compatibility and is ignored
1923   --with-jdk-variant      JDK variant to build (normal) [normal]
1924   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1925   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1926                           client, minimal1, kernel, zero, zeroshark, core)
1927                           [server]
1928   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1929                           optimized (HotSpot build only)) [release]
1930   --with-devkit           use this devkit for compilers, tools and resources
1931   --with-sys-root         alias for --with-sysroot for backwards compatability
1932   --with-sysroot          use this directory as sysroot
1933   --with-tools-dir        alias for --with-toolchain-path for backwards
1934                           compatibility
1935   --with-toolchain-path   prepend these directories when searching for
1936                           toolchain binaries (compilers etc)
1937   --with-extra-path       prepend these directories to the default path
1938   --with-sdk-name         use the platform SDK of the given name. [macosx]
1939   --with-conf-name        use this as the name of the configuration [generated
1940                           from important configuration options]
1941   --with-output-sync      set make output sync type if supported by make.
1942                           [recurse]
1943   --with-default-make-target
1944                           set the default make target [exploded-image]
1945   --with-cacerts-file     specify alternative cacerts file
1946   --with-copyright-year   Set copyright year value for build [current year]
1947   --with-milestone        Deprecated. Option is kept for backwards
1948                           compatibility and is ignored
1949   --with-update-version   Deprecated. Option is kept for backwards
1950                           compatibility and is ignored
1951   --with-user-release-suffix
1952                           Deprecated. Option is kept for backwards
1953                           compatibility and is ignored
1954   --with-build-number     Deprecated. Option is kept for backwards
1955                           compatibility and is ignored
1956   --with-version-string   Set version string [calculated]
1957   --with-version-pre      Set the base part of the version 'PRE' field
1958                           (pre-release identifier) ['internal']
1959   --with-version-opt      Set version 'OPT' field (build metadata)
1960                           [<timestamp>.<user>.<dirname>]
1961   --with-version-build    Set version 'BUILD' field (build number) [not
1962                           specified]
1963   --with-version-major    Set version 'MAJOR' field (first number) [current
1964                           source value]
1965   --with-version-minor    Set version 'MINOR' field (second number) [current
1966                           source value]
1967   --with-version-security Set version 'SECURITY' field (third number) [current
1968                           source value]
1969   --with-version-patch    Set version 'PATCH' field (fourth number) [not
1970                           specified]
1971   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1972   --with-add-source-root  Deprecated. Option is kept for backwards
1973                           compatibility and is ignored
1974   --with-override-source-root
1975                           Deprecated. Option is kept for backwards
1976                           compatibility and is ignored
1977   --with-adds-and-overrides
1978                           Deprecated. Option is kept for backwards
1979                           compatibility and is ignored
1980   --with-override-langtools
1981                           Deprecated. Option is kept for backwards
1982                           compatibility and is ignored
1983   --with-override-corba   Deprecated. Option is kept for backwards
1984                           compatibility and is ignored
1985   --with-override-jaxp    Deprecated. Option is kept for backwards
1986                           compatibility and is ignored
1987   --with-override-jaxws   Deprecated. Option is kept for backwards
1988                           compatibility and is ignored
1989   --with-override-hotspot Deprecated. Option is kept for backwards
1990                           compatibility and is ignored
1991   --with-override-nashorn Deprecated. Option is kept for backwards
1992                           compatibility and is ignored
1993   --with-override-jdk     Deprecated. Option is kept for backwards
1994                           compatibility and is ignored
1995   --with-import-hotspot   import hotspot binaries from this jdk image or
1996                           hotspot build dist dir instead of building from
1997                           source
1998   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1999                           to show possible values [platform dependent]
2000   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2001   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2002   --with-extra-ldflags    extra flags to be used when linking jdk
2003   --with-toolchain-version
2004                           the version of the toolchain to look for, use
2005                           '--help' to show possible values [platform
2006                           dependent]
2007   --with-build-devkit     Devkit to use for the build platform toolchain
2008   --with-jtreg            Regression Test Harness [probed]
2009   --with-native-debug-symbols
2010                           set the native debug symbol configuration (none,
2011                           internal, external, zipped) [zipped]
2012   --with-stdc++lib=<static>,<dynamic>,<default>
2013                           force linking of the C++ runtime on Linux to either
2014                           static or dynamic, default is static with dynamic as
2015                           fallback
2016   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2017                           (Windows only) [probed]
2018   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2019                           (Windows only) [probed]
2020   --with-x                use the X Window System
2021   --with-cups             specify prefix directory for the cups package
2022                           (expecting the headers under PATH/include)
2023   --with-cups-include     specify directory for the cups include files
2024   --with-freetype         specify prefix directory for the freetype package
2025                           (expecting the libraries under PATH/lib and the
2026                           headers under PATH/include)
2027   --with-freetype-include specify directory for the freetype include files
2028   --with-freetype-lib     specify directory for the freetype library
2029   --with-freetype-src     specify directory with freetype sources to
2030                           automatically build the library (experimental,
2031                           Windows-only)
2032   --with-alsa             specify prefix directory for the alsa package
2033                           (expecting the libraries under PATH/lib and the
2034                           headers under PATH/include)
2035   --with-alsa-include     specify directory for the alsa include files
2036   --with-alsa-lib         specify directory for the alsa library
2037   --with-libffi           specify prefix directory for the libffi package
2038                           (expecting the libraries under PATH/lib and the
2039                           headers under PATH/include)
2040   --with-libffi-include   specify directory for the libffi include files
2041   --with-libffi-lib       specify directory for the libffi library
2042   --with-libjpeg          use libjpeg from build system or OpenJDK source
2043                           (system, bundled) [bundled]
2044   --with-giflib           use giflib from build system or OpenJDK source
2045                           (system, bundled) [bundled]
2046   --with-libpng           use libpng from build system or OpenJDK source
2047                           (system, bundled) [bundled]
2048   --with-zlib             use zlib from build system or OpenJDK source
2049                           (system, bundled) [bundled]
2050   --with-lcms             use lcms2 from build system or OpenJDK source
2051                           (system, bundled) [bundled]
2052   --with-dxsdk            Deprecated. Option is kept for backwards
2053                           compatibility and is ignored
2054   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2055                           compatibility and is ignored
2056   --with-dxsdk-include    Deprecated. Option is kept for backwards
2057                           compatibility and is ignored
2058   --with-num-cores        number of cores in the build system, e.g.
2059                           --with-num-cores=8 [probed]
2060   --with-memory-size      memory (in MB) available in the build system, e.g.
2061                           --with-memory-size=1024 [probed]
2062   --with-jobs             number of parallel jobs to let make run [calculated
2063                           based on cores and memory]
2064   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2065                           invocations of boot JDK, overriding the default
2066                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2067                           -enableassertions"
2068   --with-sjavac-server-java
2069                           use this java binary for running the sjavac
2070                           background server [Boot JDK java]
2071   --with-ccache-dir       where to store ccache files [~/.ccache]
2072 
2073 Some influential environment variables:
2074   BASENAME    Override default value for BASENAME
2075   BASH        Override default value for BASH
2076   CAT         Override default value for CAT
2077   CHMOD       Override default value for CHMOD
2078   CMP         Override default value for CMP
2079   COMM        Override default value for COMM
2080   CP          Override default value for CP
2081   CUT         Override default value for CUT
2082   DATE        Override default value for DATE
2083   DIFF        Override default value for DIFF
2084   DIRNAME     Override default value for DIRNAME
2085   ECHO        Override default value for ECHO
2086   EXPR        Override default value for EXPR
2087   FILE        Override default value for FILE
2088   FIND        Override default value for FIND
2089   HEAD        Override default value for HEAD
2090   LN          Override default value for LN
2091   LS          Override default value for LS
2092   MKDIR       Override default value for MKDIR
2093   MKTEMP      Override default value for MKTEMP
2094   MV          Override default value for MV
2095   NAWK        Override default value for NAWK
2096   PRINTF      Override default value for PRINTF
2097   RM          Override default value for RM
2098   RMDIR       Override default value for RMDIR
2099   SH          Override default value for SH
2100   SORT        Override default value for SORT
2101   TAIL        Override default value for TAIL
2102   TAR         Override default value for TAR
2103   TEE         Override default value for TEE
2104   TOUCH       Override default value for TOUCH
2105   TR          Override default value for TR
2106   UNAME       Override default value for UNAME
2107   UNIQ        Override default value for UNIQ
2108   WC          Override default value for WC
2109   WHICH       Override default value for WHICH
2110   XARGS       Override default value for XARGS
2111   AWK         Override default value for AWK
2112   GREP        Override default value for GREP
2113   EGREP       Override default value for EGREP
2114   FGREP       Override default value for FGREP
2115   SED         Override default value for SED
2116   CYGPATH     Override default value for CYGPATH
2117   READLINK    Override default value for READLINK
2118   DF          Override default value for DF
2119   CPIO        Override default value for CPIO
2120   NICE        Override default value for NICE
2121   MAKE        Override default value for MAKE
2122   UNZIP       Override default value for UNZIP
2123   ZIP         Override default value for ZIP
2124   LDD         Override default value for LDD
2125   OTOOL       Override default value for OTOOL
2126   READELF     Override default value for READELF
2127   HG          Override default value for HG
2128   STAT        Override default value for STAT
2129   TIME        Override default value for TIME
2130   PATCH       Override default value for PATCH
2131   DSYMUTIL    Override default value for DSYMUTIL
2132   XATTR       Override default value for XATTR
2133   CODESIGN    Override default value for CODESIGN
2134   SETFILE     Override default value for SETFILE
2135   PKG_CONFIG  path to pkg-config utility
2136   JAVA        Override default value for JAVA
2137   JAVAC       Override default value for JAVAC
2138   JAVAH       Override default value for JAVAH
2139   JAR         Override default value for JAR
2140   JARSIGNER   Override default value for JARSIGNER
2141   CC          C compiler command
2142   CFLAGS      C compiler flags
2143   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2144               nonstandard directory <lib dir>
2145   LIBS        libraries to pass to the linker, e.g. -l<library>
2146   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2147               you have headers in a nonstandard directory <include dir>
2148   CXX         C++ compiler command
2149   CXXFLAGS    C++ compiler flags
2150   CPP         C preprocessor
2151   CXXCPP      C++ preprocessor
2152   AS          Override default value for AS
2153   AR          Override default value for AR
2154   LIPO        Override default value for LIPO
2155   STRIP       Override default value for STRIP
2156   NM          Override default value for NM
2157   GNM         Override default value for GNM
2158   OBJCOPY     Override default value for OBJCOPY
2159   OBJDUMP     Override default value for OBJDUMP
2160   BUILD_CC    Override default value for BUILD_CC
2161   BUILD_CXX   Override default value for BUILD_CXX
2162   BUILD_NM    Override default value for BUILD_NM
2163   BUILD_AR    Override default value for BUILD_AR
2164   JTREGEXE    Override default value for JTREGEXE
2165   XMKMF       Path to xmkmf, Makefile generator for X Window System
2166   FREETYPE_CFLAGS
2167               C compiler flags for FREETYPE, overriding pkg-config
2168   FREETYPE_LIBS
2169               linker flags for FREETYPE, overriding pkg-config
2170   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2171   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2172   LIBFFI_CFLAGS
2173               C compiler flags for LIBFFI, overriding pkg-config
2174   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2175   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2176   PNG_LIBS    linker flags for PNG, overriding pkg-config
2177   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2178   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2179   ICECC_CMD   Override default value for ICECC_CMD
2180   ICECC_CREATE_ENV
2181               Override default value for ICECC_CREATE_ENV
2182   ICECC_WRAPPER
2183               Override default value for ICECC_WRAPPER
2184   CCACHE      Override default value for CCACHE
2185 
2186 Use these variables to override the choices made by `configure' or to help
2187 it to find libraries and programs with nonstandard names/locations.
2188 
2189 Report bugs to <build-dev@openjdk.java.net>.
2190 OpenJDK home page: <http://openjdk.java.net>.
2191 _ACEOF
2192 ac_status=$?
2193 fi
2194 
2195 if test "$ac_init_help" = "recursive"; then
2196   # If there are subdirs, report their specific --help.
2197   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2198     test -d "$ac_dir" ||
2199       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2200       continue
2201     ac_builddir=.
2202 
2203 case "$ac_dir" in
2204 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2205 *)
2206   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2207   # A ".." for each directory in $ac_dir_suffix.
2208   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2209   case $ac_top_builddir_sub in
2210   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2211   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2212   esac ;;
2213 esac
2214 ac_abs_top_builddir=$ac_pwd
2215 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2216 # for backward compatibility:
2217 ac_top_builddir=$ac_top_build_prefix
2218 
2219 case $srcdir in
2220   .)  # We are building in place.
2221     ac_srcdir=.
2222     ac_top_srcdir=$ac_top_builddir_sub
2223     ac_abs_top_srcdir=$ac_pwd ;;
2224   [\\/]* | ?:[\\/]* )  # Absolute name.
2225     ac_srcdir=$srcdir$ac_dir_suffix;
2226     ac_top_srcdir=$srcdir
2227     ac_abs_top_srcdir=$srcdir ;;
2228   *) # Relative name.
2229     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2230     ac_top_srcdir=$ac_top_build_prefix$srcdir
2231     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2232 esac
2233 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2234 
2235     cd "$ac_dir" || { ac_status=$?; continue; }
2236     # Check for guested configure.
2237     if test -f "$ac_srcdir/configure.gnu"; then
2238       echo &&
2239       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2240     elif test -f "$ac_srcdir/configure"; then
2241       echo &&
2242       $SHELL "$ac_srcdir/configure" --help=recursive
2243     else
2244       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2245     fi || ac_status=$?
2246     cd "$ac_pwd" || { ac_status=$?; break; }
2247   done
2248 fi
2249 
2250 test -n "$ac_init_help" && exit $ac_status
2251 if $ac_init_version; then
2252   cat <<\_ACEOF
2253 OpenJDK configure jdk9
2254 generated by GNU Autoconf 2.69
2255 
2256 Copyright (C) 2012 Free Software Foundation, Inc.
2257 This configure script is free software; the Free Software Foundation
2258 gives unlimited permission to copy, distribute and modify it.
2259 _ACEOF
2260   exit
2261 fi
2262 
2263 ## ------------------------ ##
2264 ## Autoconf initialization. ##
2265 ## ------------------------ ##
2266 
2267 # ac_fn_c_try_compile LINENO
2268 # --------------------------
2269 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2270 ac_fn_c_try_compile ()
2271 {
2272   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273   rm -f conftest.$ac_objext
2274   if { { ac_try="$ac_compile"
2275 case "(($ac_try" in
2276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277   *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 $as_echo "$ac_try_echo"; } >&5
2281   (eval "$ac_compile") 2>conftest.err
2282   ac_status=$?
2283   if test -s conftest.err; then
2284     grep -v '^ *+' conftest.err >conftest.er1
2285     cat conftest.er1 >&5
2286     mv -f conftest.er1 conftest.err
2287   fi
2288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2289   test $ac_status = 0; } && {
2290          test -z "$ac_c_werror_flag" ||
2291          test ! -s conftest.err
2292        } && test -s conftest.$ac_objext; then :
2293   ac_retval=0
2294 else
2295   $as_echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297 
2298         ac_retval=1
2299 fi
2300   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301   as_fn_set_status $ac_retval
2302 
2303 } # ac_fn_c_try_compile
2304 
2305 # ac_fn_cxx_try_compile LINENO
2306 # ----------------------------
2307 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2308 ac_fn_cxx_try_compile ()
2309 {
2310   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311   rm -f conftest.$ac_objext
2312   if { { ac_try="$ac_compile"
2313 case "(($ac_try" in
2314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315   *) ac_try_echo=$ac_try;;
2316 esac
2317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2318 $as_echo "$ac_try_echo"; } >&5
2319   (eval "$ac_compile") 2>conftest.err
2320   ac_status=$?
2321   if test -s conftest.err; then
2322     grep -v '^ *+' conftest.err >conftest.er1
2323     cat conftest.er1 >&5
2324     mv -f conftest.er1 conftest.err
2325   fi
2326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2327   test $ac_status = 0; } && {
2328          test -z "$ac_cxx_werror_flag" ||
2329          test ! -s conftest.err
2330        } && test -s conftest.$ac_objext; then :
2331   ac_retval=0
2332 else
2333   $as_echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2335 
2336         ac_retval=1
2337 fi
2338   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2339   as_fn_set_status $ac_retval
2340 
2341 } # ac_fn_cxx_try_compile
2342 
2343 # ac_fn_c_try_cpp LINENO
2344 # ----------------------
2345 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2346 ac_fn_c_try_cpp ()
2347 {
2348   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349   if { { ac_try="$ac_cpp conftest.$ac_ext"
2350 case "(($ac_try" in
2351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352   *) ac_try_echo=$ac_try;;
2353 esac
2354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2355 $as_echo "$ac_try_echo"; } >&5
2356   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2357   ac_status=$?
2358   if test -s conftest.err; then
2359     grep -v '^ *+' conftest.err >conftest.er1
2360     cat conftest.er1 >&5
2361     mv -f conftest.er1 conftest.err
2362   fi
2363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2364   test $ac_status = 0; } > conftest.i && {
2365          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2366          test ! -s conftest.err
2367        }; then :
2368   ac_retval=0
2369 else
2370   $as_echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2372 
2373     ac_retval=1
2374 fi
2375   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2376   as_fn_set_status $ac_retval
2377 
2378 } # ac_fn_c_try_cpp
2379 
2380 # ac_fn_cxx_try_cpp LINENO
2381 # ------------------------
2382 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2383 ac_fn_cxx_try_cpp ()
2384 {
2385   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386   if { { ac_try="$ac_cpp conftest.$ac_ext"
2387 case "(($ac_try" in
2388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389   *) ac_try_echo=$ac_try;;
2390 esac
2391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2392 $as_echo "$ac_try_echo"; } >&5
2393   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2394   ac_status=$?
2395   if test -s conftest.err; then
2396     grep -v '^ *+' conftest.err >conftest.er1
2397     cat conftest.er1 >&5
2398     mv -f conftest.er1 conftest.err
2399   fi
2400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2401   test $ac_status = 0; } > conftest.i && {
2402          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2403          test ! -s conftest.err
2404        }; then :
2405   ac_retval=0
2406 else
2407   $as_echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409 
2410     ac_retval=1
2411 fi
2412   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413   as_fn_set_status $ac_retval
2414 
2415 } # ac_fn_cxx_try_cpp
2416 
2417 # ac_fn_c_try_link LINENO
2418 # -----------------------
2419 # Try to link conftest.$ac_ext, and return whether this succeeded.
2420 ac_fn_c_try_link ()
2421 {
2422   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423   rm -f conftest.$ac_objext conftest$ac_exeext
2424   if { { ac_try="$ac_link"
2425 case "(($ac_try" in
2426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427   *) ac_try_echo=$ac_try;;
2428 esac
2429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2430 $as_echo "$ac_try_echo"; } >&5
2431   (eval "$ac_link") 2>conftest.err
2432   ac_status=$?
2433   if test -s conftest.err; then
2434     grep -v '^ *+' conftest.err >conftest.er1
2435     cat conftest.er1 >&5
2436     mv -f conftest.er1 conftest.err
2437   fi
2438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2439   test $ac_status = 0; } && {
2440          test -z "$ac_c_werror_flag" ||
2441          test ! -s conftest.err
2442        } && test -s conftest$ac_exeext && {
2443          test "$cross_compiling" = yes ||
2444          test -x conftest$ac_exeext
2445        }; then :
2446   ac_retval=0
2447 else
2448   $as_echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2450 
2451         ac_retval=1
2452 fi
2453   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2454   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2455   # interfere with the next link command; also delete a directory that is
2456   # left behind by Apple's compiler.  We do this before executing the actions.
2457   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2458   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459   as_fn_set_status $ac_retval
2460 
2461 } # ac_fn_c_try_link
2462 
2463 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2464 # ---------------------------------------------------------
2465 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2466 # the include files in INCLUDES and setting the cache variable VAR
2467 # accordingly.
2468 ac_fn_cxx_check_header_mongrel ()
2469 {
2470   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471   if eval \${$3+:} false; then :
2472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2473 $as_echo_n "checking for $2... " >&6; }
2474 if eval \${$3+:} false; then :
2475   $as_echo_n "(cached) " >&6
2476 fi
2477 eval ac_res=\$$3
2478                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479 $as_echo "$ac_res" >&6; }
2480 else
2481   # Is the header compilable?
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2483 $as_echo_n "checking $2 usability... " >&6; }
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h.  */
2486 $4
2487 #include <$2>
2488 _ACEOF
2489 if ac_fn_cxx_try_compile "$LINENO"; then :
2490   ac_header_compiler=yes
2491 else
2492   ac_header_compiler=no
2493 fi
2494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2496 $as_echo "$ac_header_compiler" >&6; }
2497 
2498 # Is the header present?
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2500 $as_echo_n "checking $2 presence... " >&6; }
2501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502 /* end confdefs.h.  */
2503 #include <$2>
2504 _ACEOF
2505 if ac_fn_cxx_try_cpp "$LINENO"; then :
2506   ac_header_preproc=yes
2507 else
2508   ac_header_preproc=no
2509 fi
2510 rm -f conftest.err conftest.i conftest.$ac_ext
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2512 $as_echo "$ac_header_preproc" >&6; }
2513 
2514 # So?  What about this header?
2515 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2516   yes:no: )
2517     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2518 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2519     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2520 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2521     ;;
2522   no:yes:* )
2523     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2524 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2525     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2526 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2527     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2528 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2529     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2530 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2531     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2532 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2533 ( $as_echo "## ----------------------------------------- ##
2534 ## Report this to build-dev@openjdk.java.net ##
2535 ## ----------------------------------------- ##"
2536      ) | sed "s/^/$as_me: WARNING:     /" >&2
2537     ;;
2538 esac
2539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2540 $as_echo_n "checking for $2... " >&6; }
2541 if eval \${$3+:} false; then :
2542   $as_echo_n "(cached) " >&6
2543 else
2544   eval "$3=\$ac_header_compiler"
2545 fi
2546 eval ac_res=\$$3
2547                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2548 $as_echo "$ac_res" >&6; }
2549 fi
2550   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551 
2552 } # ac_fn_cxx_check_header_mongrel
2553 
2554 # ac_fn_cxx_try_run LINENO
2555 # ------------------------
2556 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2557 # that executables *can* be run.
2558 ac_fn_cxx_try_run ()
2559 {
2560   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561   if { { ac_try="$ac_link"
2562 case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2567 $as_echo "$ac_try_echo"; } >&5
2568   (eval "$ac_link") 2>&5
2569   ac_status=$?
2570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2571   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2572   { { case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2577 $as_echo "$ac_try_echo"; } >&5
2578   (eval "$ac_try") 2>&5
2579   ac_status=$?
2580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581   test $ac_status = 0; }; }; then :
2582   ac_retval=0
2583 else
2584   $as_echo "$as_me: program exited with status $ac_status" >&5
2585        $as_echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587 
2588        ac_retval=$ac_status
2589 fi
2590   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2591   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2592   as_fn_set_status $ac_retval
2593 
2594 } # ac_fn_cxx_try_run
2595 
2596 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2597 # ---------------------------------------------------------
2598 # Tests whether HEADER exists and can be compiled using the include files in
2599 # INCLUDES, setting the cache variable VAR accordingly.
2600 ac_fn_cxx_check_header_compile ()
2601 {
2602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2604 $as_echo_n "checking for $2... " >&6; }
2605 if eval \${$3+:} false; then :
2606   $as_echo_n "(cached) " >&6
2607 else
2608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h.  */
2610 $4
2611 #include <$2>
2612 _ACEOF
2613 if ac_fn_cxx_try_compile "$LINENO"; then :
2614   eval "$3=yes"
2615 else
2616   eval "$3=no"
2617 fi
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 fi
2620 eval ac_res=\$$3
2621                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2622 $as_echo "$ac_res" >&6; }
2623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2624 
2625 } # ac_fn_cxx_check_header_compile
2626 
2627 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2628 # ----------------------------------------------
2629 # Tries to find the compile-time value of EXPR in a program that includes
2630 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2631 # computed
2632 ac_fn_cxx_compute_int ()
2633 {
2634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2635   if test "$cross_compiling" = yes; then
2636     # Depending upon the size, compute the lo and hi bounds.
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h.  */
2639 $4
2640 int
2641 main ()
2642 {
2643 static int test_array [1 - 2 * !(($2) >= 0)];
2644 test_array [0] = 0;
2645 return test_array [0];
2646 
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 if ac_fn_cxx_try_compile "$LINENO"; then :
2652   ac_lo=0 ac_mid=0
2653   while :; do
2654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655 /* end confdefs.h.  */
2656 $4
2657 int
2658 main ()
2659 {
2660 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2661 test_array [0] = 0;
2662 return test_array [0];
2663 
2664   ;
2665   return 0;
2666 }
2667 _ACEOF
2668 if ac_fn_cxx_try_compile "$LINENO"; then :
2669   ac_hi=$ac_mid; break
2670 else
2671   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2672                         if test $ac_lo -le $ac_mid; then
2673                           ac_lo= ac_hi=
2674                           break
2675                         fi
2676                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2677 fi
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679   done
2680 else
2681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h.  */
2683 $4
2684 int
2685 main ()
2686 {
2687 static int test_array [1 - 2 * !(($2) < 0)];
2688 test_array [0] = 0;
2689 return test_array [0];
2690 
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 if ac_fn_cxx_try_compile "$LINENO"; then :
2696   ac_hi=-1 ac_mid=-1
2697   while :; do
2698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h.  */
2700 $4
2701 int
2702 main ()
2703 {
2704 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2705 test_array [0] = 0;
2706 return test_array [0];
2707 
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 if ac_fn_cxx_try_compile "$LINENO"; then :
2713   ac_lo=$ac_mid; break
2714 else
2715   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2716                         if test $ac_mid -le $ac_hi; then
2717                           ac_lo= ac_hi=
2718                           break
2719                         fi
2720                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2721 fi
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723   done
2724 else
2725   ac_lo= ac_hi=
2726 fi
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 fi
2729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 # Binary search between lo and hi bounds.
2731 while test "x$ac_lo" != "x$ac_hi"; do
2732   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h.  */
2735 $4
2736 int
2737 main ()
2738 {
2739 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2740 test_array [0] = 0;
2741 return test_array [0];
2742 
2743   ;
2744   return 0;
2745 }
2746 _ACEOF
2747 if ac_fn_cxx_try_compile "$LINENO"; then :
2748   ac_hi=$ac_mid
2749 else
2750   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2751 fi
2752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2753 done
2754 case $ac_lo in #((
2755 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2756 '') ac_retval=1 ;;
2757 esac
2758   else
2759     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h.  */
2761 $4
2762 static long int longval () { return $2; }
2763 static unsigned long int ulongval () { return $2; }
2764 #include <stdio.h>
2765 #include <stdlib.h>
2766 int
2767 main ()
2768 {
2769 
2770   FILE *f = fopen ("conftest.val", "w");
2771   if (! f)
2772     return 1;
2773   if (($2) < 0)
2774     {
2775       long int i = longval ();
2776       if (i != ($2))
2777         return 1;
2778       fprintf (f, "%ld", i);
2779     }
2780   else
2781     {
2782       unsigned long int i = ulongval ();
2783       if (i != ($2))
2784         return 1;
2785       fprintf (f, "%lu", i);
2786     }
2787   /* Do not output a trailing newline, as this causes \r\n confusion
2788      on some platforms.  */
2789   return ferror (f) || fclose (f) != 0;
2790 
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 if ac_fn_cxx_try_run "$LINENO"; then :
2796   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2797 else
2798   ac_retval=1
2799 fi
2800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2801   conftest.$ac_objext conftest.beam conftest.$ac_ext
2802 rm -f conftest.val
2803 
2804   fi
2805   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2806   as_fn_set_status $ac_retval
2807 
2808 } # ac_fn_cxx_compute_int
2809 
2810 # ac_fn_cxx_try_link LINENO
2811 # -------------------------
2812 # Try to link conftest.$ac_ext, and return whether this succeeded.
2813 ac_fn_cxx_try_link ()
2814 {
2815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2816   rm -f conftest.$ac_objext conftest$ac_exeext
2817   if { { ac_try="$ac_link"
2818 case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2823 $as_echo "$ac_try_echo"; } >&5
2824   (eval "$ac_link") 2>conftest.err
2825   ac_status=$?
2826   if test -s conftest.err; then
2827     grep -v '^ *+' conftest.err >conftest.er1
2828     cat conftest.er1 >&5
2829     mv -f conftest.er1 conftest.err
2830   fi
2831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2832   test $ac_status = 0; } && {
2833          test -z "$ac_cxx_werror_flag" ||
2834          test ! -s conftest.err
2835        } && test -s conftest$ac_exeext && {
2836          test "$cross_compiling" = yes ||
2837          test -x conftest$ac_exeext
2838        }; then :
2839   ac_retval=0
2840 else
2841   $as_echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843 
2844         ac_retval=1
2845 fi
2846   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2847   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2848   # interfere with the next link command; also delete a directory that is
2849   # left behind by Apple's compiler.  We do this before executing the actions.
2850   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2851   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2852   as_fn_set_status $ac_retval
2853 
2854 } # ac_fn_cxx_try_link
2855 
2856 # ac_fn_cxx_check_func LINENO FUNC VAR
2857 # ------------------------------------
2858 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2859 ac_fn_cxx_check_func ()
2860 {
2861   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2863 $as_echo_n "checking for $2... " >&6; }
2864 if eval \${$3+:} false; then :
2865   $as_echo_n "(cached) " >&6
2866 else
2867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h.  */
2869 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2871 #define $2 innocuous_$2
2872 
2873 /* System header to define __stub macros and hopefully few prototypes,
2874     which can conflict with char $2 (); below.
2875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2876     <limits.h> exists even on freestanding compilers.  */
2877 
2878 #ifdef __STDC__
2879 # include <limits.h>
2880 #else
2881 # include <assert.h>
2882 #endif
2883 
2884 #undef $2
2885 
2886 /* Override any GCC internal prototype to avoid an error.
2887    Use char because int might match the return type of a GCC
2888    builtin and then its argument prototype would still apply.  */
2889 #ifdef __cplusplus
2890 extern "C"
2891 #endif
2892 char $2 ();
2893 /* The GNU C library defines this for functions which it implements
2894     to always fail with ENOSYS.  Some functions are actually named
2895     something starting with __ and the normal name is an alias.  */
2896 #if defined __stub_$2 || defined __stub___$2
2897 choke me
2898 #endif
2899 
2900 int
2901 main ()
2902 {
2903 return $2 ();
2904   ;
2905   return 0;
2906 }
2907 _ACEOF
2908 if ac_fn_cxx_try_link "$LINENO"; then :
2909   eval "$3=yes"
2910 else
2911   eval "$3=no"
2912 fi
2913 rm -f core conftest.err conftest.$ac_objext \
2914     conftest$ac_exeext conftest.$ac_ext
2915 fi
2916 eval ac_res=\$$3
2917                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2918 $as_echo "$ac_res" >&6; }
2919   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2920 
2921 } # ac_fn_cxx_check_func
2922 
2923 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2924 # -------------------------------------------------------
2925 # Tests whether HEADER exists and can be compiled using the include files in
2926 # INCLUDES, setting the cache variable VAR accordingly.
2927 ac_fn_c_check_header_compile ()
2928 {
2929   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2931 $as_echo_n "checking for $2... " >&6; }
2932 if eval \${$3+:} false; then :
2933   $as_echo_n "(cached) " >&6
2934 else
2935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h.  */
2937 $4
2938 #include <$2>
2939 _ACEOF
2940 if ac_fn_c_try_compile "$LINENO"; then :
2941   eval "$3=yes"
2942 else
2943   eval "$3=no"
2944 fi
2945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946 fi
2947 eval ac_res=\$$3
2948                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2949 $as_echo "$ac_res" >&6; }
2950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2951 
2952 } # ac_fn_c_check_header_compile
2953 cat >config.log <<_ACEOF
2954 This file contains any messages produced by compilers while
2955 running configure, to aid debugging if configure makes a mistake.
2956 
2957 It was created by OpenJDK $as_me jdk9, which was
2958 generated by GNU Autoconf 2.69.  Invocation command line was
2959 
2960   $ $0 $@
2961 
2962 _ACEOF
2963 exec 5>>config.log
2964 {
2965 cat <<_ASUNAME
2966 ## --------- ##
2967 ## Platform. ##
2968 ## --------- ##
2969 
2970 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2971 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2972 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2973 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2974 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2975 
2976 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2977 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2978 
2979 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2980 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2981 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2982 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2983 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2984 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2985 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2986 
2987 _ASUNAME
2988 
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992   IFS=$as_save_IFS
2993   test -z "$as_dir" && as_dir=.
2994     $as_echo "PATH: $as_dir"
2995   done
2996 IFS=$as_save_IFS
2997 
2998 } >&5
2999 
3000 cat >&5 <<_ACEOF
3001 
3002 
3003 ## ----------- ##
3004 ## Core tests. ##
3005 ## ----------- ##
3006 
3007 _ACEOF
3008 
3009 
3010 # Keep a trace of the command line.
3011 # Strip out --no-create and --no-recursion so they do not pile up.
3012 # Strip out --silent because we don't want to record it for future runs.
3013 # Also quote any args containing shell meta-characters.
3014 # Make two passes to allow for proper duplicate-argument suppression.
3015 ac_configure_args=
3016 ac_configure_args0=
3017 ac_configure_args1=
3018 ac_must_keep_next=false
3019 for ac_pass in 1 2
3020 do
3021   for ac_arg
3022   do
3023     case $ac_arg in
3024     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3025     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3026     | -silent | --silent | --silen | --sile | --sil)
3027       continue ;;
3028     *\'*)
3029       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3030     esac
3031     case $ac_pass in
3032     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3033     2)
3034       as_fn_append ac_configure_args1 " '$ac_arg'"
3035       if test $ac_must_keep_next = true; then
3036         ac_must_keep_next=false # Got value, back to normal.
3037       else
3038         case $ac_arg in
3039           *=* | --config-cache | -C | -disable-* | --disable-* \
3040           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3041           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3042           | -with-* | --with-* | -without-* | --without-* | --x)
3043             case "$ac_configure_args0 " in
3044               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3045             esac
3046             ;;
3047           -* ) ac_must_keep_next=true ;;
3048         esac
3049       fi
3050       as_fn_append ac_configure_args " '$ac_arg'"
3051       ;;
3052     esac
3053   done
3054 done
3055 { ac_configure_args0=; unset ac_configure_args0;}
3056 { ac_configure_args1=; unset ac_configure_args1;}
3057 
3058 # When interrupted or exit'd, cleanup temporary files, and complete
3059 # config.log.  We remove comments because anyway the quotes in there
3060 # would cause problems or look ugly.
3061 # WARNING: Use '\'' to represent an apostrophe within the trap.
3062 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3063 trap 'exit_status=$?
3064   # Save into config.log some information that might help in debugging.
3065   {
3066     echo
3067 
3068     $as_echo "## ---------------- ##
3069 ## Cache variables. ##
3070 ## ---------------- ##"
3071     echo
3072     # The following way of writing the cache mishandles newlines in values,
3073 (
3074   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3075     eval ac_val=\$$ac_var
3076     case $ac_val in #(
3077     *${as_nl}*)
3078       case $ac_var in #(
3079       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3081       esac
3082       case $ac_var in #(
3083       _ | IFS | as_nl) ;; #(
3084       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3085       *) { eval $ac_var=; unset $ac_var;} ;;
3086       esac ;;
3087     esac
3088   done
3089   (set) 2>&1 |
3090     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3091     *${as_nl}ac_space=\ *)
3092       sed -n \
3093         "s/'\''/'\''\\\\'\'''\''/g;
3094           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3095       ;; #(
3096     *)
3097       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3098       ;;
3099     esac |
3100     sort
3101 )
3102     echo
3103 
3104     $as_echo "## ----------------- ##
3105 ## Output variables. ##
3106 ## ----------------- ##"
3107     echo
3108     for ac_var in $ac_subst_vars
3109     do
3110       eval ac_val=\$$ac_var
3111       case $ac_val in
3112       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3113       esac
3114       $as_echo "$ac_var='\''$ac_val'\''"
3115     done | sort
3116     echo
3117 
3118     if test -n "$ac_subst_files"; then
3119       $as_echo "## ------------------- ##
3120 ## File substitutions. ##
3121 ## ------------------- ##"
3122       echo
3123       for ac_var in $ac_subst_files
3124       do
3125         eval ac_val=\$$ac_var
3126         case $ac_val in
3127         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3128         esac
3129         $as_echo "$ac_var='\''$ac_val'\''"
3130       done | sort
3131       echo
3132     fi
3133 
3134     if test -s confdefs.h; then
3135       $as_echo "## ----------- ##
3136 ## confdefs.h. ##
3137 ## ----------- ##"
3138       echo
3139       cat confdefs.h
3140       echo
3141     fi
3142     test "$ac_signal" != 0 &&
3143       $as_echo "$as_me: caught signal $ac_signal"
3144     $as_echo "$as_me: exit $exit_status"
3145   } >&5
3146   rm -f core *.core core.conftest.* &&
3147     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3148     exit $exit_status
3149 ' 0
3150 for ac_signal in 1 2 13 15; do
3151   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3152 done
3153 ac_signal=0
3154 
3155 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3156 rm -f -r conftest* confdefs.h
3157 
3158 $as_echo "/* confdefs.h */" > confdefs.h
3159 
3160 # Predefined preprocessor variables.
3161 
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE_NAME "$PACKAGE_NAME"
3164 _ACEOF
3165 
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3168 _ACEOF
3169 
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3172 _ACEOF
3173 
3174 cat >>confdefs.h <<_ACEOF
3175 #define PACKAGE_STRING "$PACKAGE_STRING"
3176 _ACEOF
3177 
3178 cat >>confdefs.h <<_ACEOF
3179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3180 _ACEOF
3181 
3182 cat >>confdefs.h <<_ACEOF
3183 #define PACKAGE_URL "$PACKAGE_URL"
3184 _ACEOF
3185 
3186 
3187 # Let the site file select an alternate cache file if it wants to.
3188 # Prefer an explicitly selected file to automatically selected ones.
3189 ac_site_file1=NONE
3190 ac_site_file2=NONE
3191 if test -n "$CONFIG_SITE"; then
3192   # We do not want a PATH search for config.site.
3193   case $CONFIG_SITE in #((
3194     -*)  ac_site_file1=./$CONFIG_SITE;;
3195     */*) ac_site_file1=$CONFIG_SITE;;
3196     *)   ac_site_file1=./$CONFIG_SITE;;
3197   esac
3198 elif test "x$prefix" != xNONE; then
3199   ac_site_file1=$prefix/share/config.site
3200   ac_site_file2=$prefix/etc/config.site
3201 else
3202   ac_site_file1=$ac_default_prefix/share/config.site
3203   ac_site_file2=$ac_default_prefix/etc/config.site
3204 fi
3205 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3206 do
3207   test "x$ac_site_file" = xNONE && continue
3208   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3209     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3210 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3211     sed 's/^/| /' "$ac_site_file" >&5
3212     . "$ac_site_file" \
3213       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error $? "failed to load site script $ac_site_file
3216 See \`config.log' for more details" "$LINENO" 5; }
3217   fi
3218 done
3219 
3220 if test -r "$cache_file"; then
3221   # Some versions of bash will fail to source /dev/null (special files
3222   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3223   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3224     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3225 $as_echo "$as_me: loading cache $cache_file" >&6;}
3226     case $cache_file in
3227       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3228       *)                      . "./$cache_file";;
3229     esac
3230   fi
3231 else
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3233 $as_echo "$as_me: creating cache $cache_file" >&6;}
3234   >$cache_file
3235 fi
3236 
3237 # Check that the precious variables saved in the cache have kept the same
3238 # value.
3239 ac_cache_corrupted=false
3240 for ac_var in $ac_precious_vars; do
3241   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3242   eval ac_new_set=\$ac_env_${ac_var}_set
3243   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3244   eval ac_new_val=\$ac_env_${ac_var}_value
3245   case $ac_old_set,$ac_new_set in
3246     set,)
3247       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3248 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3249       ac_cache_corrupted=: ;;
3250     ,set)
3251       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3252 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3253       ac_cache_corrupted=: ;;
3254     ,);;
3255     *)
3256       if test "x$ac_old_val" != "x$ac_new_val"; then
3257         # differences in whitespace do not lead to failure.
3258         ac_old_val_w=`echo x $ac_old_val`
3259         ac_new_val_w=`echo x $ac_new_val`
3260         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3261           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3262 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3263           ac_cache_corrupted=:
3264         else
3265           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3266 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3267           eval $ac_var=\$ac_old_val
3268         fi
3269         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3270 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3271         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3272 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3273       fi;;
3274   esac
3275   # Pass precious variables to config.status.
3276   if test "$ac_new_set" = set; then
3277     case $ac_new_val in
3278     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3279     *) ac_arg=$ac_var=$ac_new_val ;;
3280     esac
3281     case " $ac_configure_args " in
3282       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3283       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3284     esac
3285   fi
3286 done
3287 if $ac_cache_corrupted; then
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3291 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3292   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3293 fi
3294 ## -------------------- ##
3295 ## Main body of script. ##
3296 ## -------------------- ##
3297 
3298 ac_ext=c
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 
3304 
3305 
3306 ac_aux_dir=
3307 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3308   if test -f "$ac_dir/install-sh"; then
3309     ac_aux_dir=$ac_dir
3310     ac_install_sh="$ac_aux_dir/install-sh -c"
3311     break
3312   elif test -f "$ac_dir/install.sh"; then
3313     ac_aux_dir=$ac_dir
3314     ac_install_sh="$ac_aux_dir/install.sh -c"
3315     break
3316   elif test -f "$ac_dir/shtool"; then
3317     ac_aux_dir=$ac_dir
3318     ac_install_sh="$ac_aux_dir/shtool install -c"
3319     break
3320   fi
3321 done
3322 if test -z "$ac_aux_dir"; then
3323   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
3324 fi
3325 
3326 # These three variables are undocumented and unsupported,
3327 # and are intended to be withdrawn in a future Autoconf release.
3328 # They can cause serious problems if a builder's source tree is in a directory
3329 # whose full name contains unusual characters.
3330 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3331 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3332 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3333 
3334 
3335 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3336 
3337 #
3338 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3339 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3340 #
3341 # This code is free software; you can redistribute it and/or modify it
3342 # under the terms of the GNU General Public License version 2 only, as
3343 # published by the Free Software Foundation.  Oracle designates this
3344 # particular file as subject to the "Classpath" exception as provided
3345 # by Oracle in the LICENSE file that accompanied this code.
3346 #
3347 # This code is distributed in the hope that it will be useful, but WITHOUT
3348 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3349 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3350 # version 2 for more details (a copy is included in the LICENSE file that
3351 # accompanied this code).
3352 #
3353 # You should have received a copy of the GNU General Public License version
3354 # 2 along with this work; if not, write to the Free Software Foundation,
3355 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3356 #
3357 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3358 # or visit www.oracle.com if you need additional information or have any
3359 # questions.
3360 #
3361 
3362 #
3363 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3364 #
3365 # This program is free software; you can redistribute it and/or modify
3366 # it under the terms of the GNU General Public License as published by
3367 # the Free Software Foundation; either version 2 of the License, or
3368 # (at your option) any later version.
3369 #
3370 # This program is distributed in the hope that it will be useful, but
3371 # WITHOUT ANY WARRANTY; without even the implied warranty of
3372 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3373 # General Public License for more details.
3374 #
3375 # You should have received a copy of the GNU General Public License
3376 # along with this program; if not, write to the Free Software
3377 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3378 #
3379 # As a special exception to the GNU General Public License, if you
3380 # distribute this file as part of a program that contains a
3381 # configuration script generated by Autoconf, you may include it under
3382 # the same distribution terms that you use for the rest of that program.
3383 
3384 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3385 # ----------------------------------
3386 # PKG_PROG_PKG_CONFIG
3387 
3388 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3389 #
3390 # Check to see whether a particular set of modules exists.  Similar
3391 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3392 #
3393 #
3394 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3395 # this or PKG_CHECK_MODULES is called, or make sure to call
3396 # PKG_CHECK_EXISTS manually
3397 # --------------------------------------------------------------
3398 
3399 
3400 
3401 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3402 # ---------------------------------------------
3403 # _PKG_CONFIG
3404 
3405 # _PKG_SHORT_ERRORS_SUPPORTED
3406 # -----------------------------
3407 # _PKG_SHORT_ERRORS_SUPPORTED
3408 
3409 
3410 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3411 # [ACTION-IF-NOT-FOUND])
3412 #
3413 #
3414 # Note that if there is a possibility the first call to
3415 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3416 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3417 #
3418 #
3419 # --------------------------------------------------------------
3420 # PKG_CHECK_MODULES
3421 
3422 
3423 # Include these first...
3424 #
3425 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3426 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3427 #
3428 # This code is free software; you can redistribute it and/or modify it
3429 # under the terms of the GNU General Public License version 2 only, as
3430 # published by the Free Software Foundation.  Oracle designates this
3431 # particular file as subject to the "Classpath" exception as provided
3432 # by Oracle in the LICENSE file that accompanied this code.
3433 #
3434 # This code is distributed in the hope that it will be useful, but WITHOUT
3435 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3436 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3437 # version 2 for more details (a copy is included in the LICENSE file that
3438 # accompanied this code).
3439 #
3440 # You should have received a copy of the GNU General Public License version
3441 # 2 along with this work; if not, write to the Free Software Foundation,
3442 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3443 #
3444 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3445 # or visit www.oracle.com if you need additional information or have any
3446 # questions.
3447 #
3448 
3449 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3450 # If so, then append $1 to $2 \
3451 # Also set JVM_ARG_OK to true/false depending on outcome.
3452 
3453 
3454 # Appends a string to a path variable, only adding the : when needed.
3455 
3456 
3457 # Prepends a string to a path variable, only adding the : when needed.
3458 
3459 
3460 # This will make sure the given variable points to a full and proper
3461 # path. This means:
3462 # 1) There will be no spaces in the path. On unix platforms,
3463 #    spaces in the path will result in an error. On Windows,
3464 #    the path will be rewritten using short-style to be space-free.
3465 # 2) The path will be absolute, and it will be in unix-style (on
3466 #     cygwin).
3467 # $1: The name of the variable to fix
3468 
3469 
3470 # This will make sure the given variable points to a executable
3471 # with a full and proper path. This means:
3472 # 1) There will be no spaces in the path. On unix platforms,
3473 #    spaces in the path will result in an error. On Windows,
3474 #    the path will be rewritten using short-style to be space-free.
3475 # 2) The path will be absolute, and it will be in unix-style (on
3476 #     cygwin).
3477 # Any arguments given to the executable is preserved.
3478 # If the input variable does not have a directory specification, then
3479 # it need to be in the PATH.
3480 # $1: The name of the variable to fix
3481 
3482 
3483 
3484 
3485 # Register a --with argument but mark it as deprecated
3486 # $1: The name of the with argument to deprecate, not including --with-
3487 
3488 
3489 # Register a --enable argument but mark it as deprecated
3490 # $1: The name of the with argument to deprecate, not including --enable-
3491 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3492 # $3: Messages to user.
3493 
3494 
3495 
3496 
3497 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3498 # $1: variable to check
3499 
3500 
3501 # Check that there are no unprocessed overridden variables left.
3502 # If so, they are an incorrect argument and we will exit with an error.
3503 
3504 
3505 # Setup a tool for the given variable. If correctly specified by the user,
3506 # use that value, otherwise search for the tool using the supplied code snippet.
3507 # $1: variable to set
3508 # $2: code snippet to call to look for the tool
3509 # $3: code snippet to call if variable was used to find tool
3510 
3511 
3512 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3513 # $1: variable to set
3514 # $2: executable name (or list of names) to look for
3515 
3516 
3517 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3518 # $1: variable to set
3519 # $2: executable name (or list of names) to look for
3520 
3521 
3522 # Like BASIC_PATH_PROGS but fails if no tool was found.
3523 # $1: variable to set
3524 # $2: executable name (or list of names) to look for
3525 
3526 
3527 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3528 # $1: variable to set
3529 # $2: autoconf macro to call to look for the special tool
3530 
3531 
3532 # Setup the most fundamental tools that relies on not much else to set up,
3533 # but is used by much of the early bootstrap code.
3534 
3535 
3536 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3537 
3538 
3539 # Evaluates platform specific overrides for devkit variables.
3540 # $1: Name of variable
3541 
3542 
3543 
3544 
3545 
3546 
3547 #%%% Simple tools %%%
3548 
3549 # Check if we have found a usable version of make
3550 # $1: the path to a potential make binary (or empty)
3551 # $2: the description on how we found this
3552 
3553 
3554 
3555 
3556 # Goes looking for a usable version of GNU make.
3557 
3558 
3559 
3560 
3561 
3562 
3563 # Check if build directory is on local disk. If not possible to determine,
3564 # we prefer to claim it's local.
3565 # Argument 1: directory to test
3566 # Argument 2: what to do if it is on local disk
3567 # Argument 3: what to do otherwise (remote disk or failure)
3568 
3569 
3570 # Check that source files have basic read permissions set. This might
3571 # not be the case in cygwin in certain conditions.
3572 
3573 
3574 
3575 
3576 # Check for support for specific options in bash
3577 
3578 
3579 ################################################################################
3580 #
3581 # Default make target
3582 #
3583 
3584 
3585 # Code to run after AC_OUTPUT
3586 
3587 
3588 #
3589 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3590 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3591 #
3592 # This code is free software; you can redistribute it and/or modify it
3593 # under the terms of the GNU General Public License version 2 only, as
3594 # published by the Free Software Foundation.  Oracle designates this
3595 # particular file as subject to the "Classpath" exception as provided
3596 # by Oracle in the LICENSE file that accompanied this code.
3597 #
3598 # This code is distributed in the hope that it will be useful, but WITHOUT
3599 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3600 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3601 # version 2 for more details (a copy is included in the LICENSE file that
3602 # accompanied this code).
3603 #
3604 # You should have received a copy of the GNU General Public License version
3605 # 2 along with this work; if not, write to the Free Software Foundation,
3606 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3607 #
3608 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3609 # or visit www.oracle.com if you need additional information or have any
3610 # questions.
3611 #
3612 
3613 
3614 
3615 
3616 
3617 # Helper function which possibly converts a path using DOS-style short mode.
3618 # If so, the updated path is stored in $new_path.
3619 # $1: The path to check
3620 
3621 
3622 # Helper function which possibly converts a path using DOS-style short mode.
3623 # If so, the updated path is stored in $new_path.
3624 # $1: The path to check
3625 
3626 
3627 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3628 # and could probably be heavily simplified. However, all changes in this
3629 # area tend to need lot of testing in different scenarios, and in lack of
3630 # proper unit testing, cleaning this up has not been deemed worth the effort
3631 # at the moment.
3632 
3633 
3634 
3635 
3636 
3637 
3638 
3639 
3640 
3641 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3642 
3643 
3644 
3645 
3646 # ... then the rest
3647 #
3648 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3649 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3650 #
3651 # This code is free software; you can redistribute it and/or modify it
3652 # under the terms of the GNU General Public License version 2 only, as
3653 # published by the Free Software Foundation.  Oracle designates this
3654 # particular file as subject to the "Classpath" exception as provided
3655 # by Oracle in the LICENSE file that accompanied this code.
3656 #
3657 # This code is distributed in the hope that it will be useful, but WITHOUT
3658 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3659 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3660 # version 2 for more details (a copy is included in the LICENSE file that
3661 # accompanied this code).
3662 #
3663 # You should have received a copy of the GNU General Public License version
3664 # 2 along with this work; if not, write to the Free Software Foundation,
3665 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3666 #
3667 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3668 # or visit www.oracle.com if you need additional information or have any
3669 # questions.
3670 #
3671 
3672 ########################################################################
3673 # This file handles detection of the Boot JDK. The Boot JDK detection
3674 # process has been developed as a response to solve a complex real-world
3675 # problem. Initially, it was simple, but it has grown as platform after
3676 # platform, idiosyncracy after idiosyncracy has been supported.
3677 #
3678 # The basic idea is this:
3679 # 1) You need an acceptable *) JDK to use as a Boot JDK
3680 # 2) There are several ways to locate a JDK, that are mostly platform
3681 #    dependent **)
3682 # 3) You can have multiple JDKs installed
3683 # 4) If possible, configure should try to dig out an acceptable JDK
3684 #    automatically, without having to resort to command-line options
3685 #
3686 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3687 #     javac) and not a JRE, etc.
3688 #
3689 # **) On Windows we typically use a well-known path.
3690 #     On MacOSX we typically use the tool java_home.
3691 #     On Linux we typically find javac in the $PATH, and then follow a
3692 #     chain of symlinks that often ends up in a real JDK.
3693 #
3694 # This leads to the code where we check in different ways to locate a
3695 # JDK, and if one is found, check if it is acceptable. If not, we print
3696 # our reasons for rejecting it (useful when debugging non-working
3697 # configure situations) and continue checking the next one.
3698 ########################################################################
3699 
3700 # Execute the check given as argument, and verify the result
3701 # If the Boot JDK was previously found, do nothing
3702 # $1 A command line (typically autoconf macro) to execute
3703 
3704 
3705 # Test: Is bootjdk explicitely set by command line arguments?
3706 
3707 
3708 # Test: Is $JAVA_HOME set?
3709 
3710 
3711 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3712 
3713 
3714 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3715 # $1: Argument to the java_home binary (optional)
3716 
3717 
3718 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3719 
3720 
3721 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3722 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3723 # $1 = Path to directory containing jdk installations.
3724 # $2 = String to append to the found JDK directory to get the proper JDK home
3725 
3726 
3727 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3728 # environmental variable as base for where to look.
3729 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3730 
3731 
3732 # Test: Is there a JDK installed in default, well-known locations?
3733 
3734 
3735 # Check that a command-line tool in the Boot JDK is correct
3736 # $1 = name of variable to assign
3737 # $2 = name of binary
3738 
3739 
3740 ###############################################################################
3741 #
3742 # We need a Boot JDK to bootstrap the build.
3743 #
3744 
3745 
3746 
3747 
3748 
3749 #
3750 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3751 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3752 #
3753 # This code is free software; you can redistribute it and/or modify it
3754 # under the terms of the GNU General Public License version 2 only, as
3755 # published by the Free Software Foundation.  Oracle designates this
3756 # particular file as subject to the "Classpath" exception as provided
3757 # by Oracle in the LICENSE file that accompanied this code.
3758 #
3759 # This code is distributed in the hope that it will be useful, but WITHOUT
3760 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3761 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3762 # version 2 for more details (a copy is included in the LICENSE file that
3763 # accompanied this code).
3764 #
3765 # You should have received a copy of the GNU General Public License version
3766 # 2 along with this work; if not, write to the Free Software Foundation,
3767 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3768 #
3769 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3770 # or visit www.oracle.com if you need additional information or have any
3771 # questions.
3772 #
3773 
3774 
3775 
3776 
3777 
3778 
3779 
3780 
3781 
3782 
3783 
3784 
3785 
3786 
3787 
3788 ################################################################################
3789 #
3790 # Optionally enable distributed compilation of native code using icecc/icecream
3791 #
3792 
3793 
3794 
3795 
3796 
3797 
3798 
3799 #
3800 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3801 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3802 #
3803 # This code is free software; you can redistribute it and/or modify it
3804 # under the terms of the GNU General Public License version 2 only, as
3805 # published by the Free Software Foundation.  Oracle designates this
3806 # particular file as subject to the "Classpath" exception as provided
3807 # by Oracle in the LICENSE file that accompanied this code.
3808 #
3809 # This code is distributed in the hope that it will be useful, but WITHOUT
3810 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3811 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3812 # version 2 for more details (a copy is included in the LICENSE file that
3813 # accompanied this code).
3814 #
3815 # You should have received a copy of the GNU General Public License version
3816 # 2 along with this work; if not, write to the Free Software Foundation,
3817 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3818 #
3819 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3820 # or visit www.oracle.com if you need additional information or have any
3821 # questions.
3822 #
3823 
3824 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
3825 # corresponding configure arguments instead
3826 
3827 
3828 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
3829 # that configure can use them while detecting compilers.
3830 # TOOLCHAIN_TYPE is available here.
3831 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
3832 
3833 
3834 
3835 
3836 
3837 
3838 # Documentation on common flags used for solstudio in HIGHEST.
3839 #
3840 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3841 #          done with care, there are some assumptions below that need to
3842 #          be understood about the use of pointers, and IEEE behavior.
3843 #
3844 # -fns: Use non-standard floating point mode (not IEEE 754)
3845 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3846 # -fsingle: Use single precision floating point with 'float'
3847 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3848 #   (Source with excessing pointer casting and data access with mixed
3849 #    pointer types are not recommended)
3850 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3851 #   (If you expect perfect errno behavior, do not use this)
3852 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3853 # -xrestrict: Pointer parameters to functions do not overlap
3854 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3855 #    If you pass in multiple pointers to the same data, do not use this)
3856 # -xlibmil: Inline some library routines
3857 #   (If you expect perfect errno behavior, do not use this)
3858 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3859 #   (If you expect perfect errno behavior, do not use this)
3860 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3861 
3862     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3863     # Bug?
3864     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3865     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3866     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3867     #fi
3868 
3869 
3870 
3871 
3872 
3873 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3874 #                                   [RUN-IF-FALSE])
3875 # ------------------------------------------------------------
3876 # Check that the c and c++ compilers support an argument
3877 
3878 
3879 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3880 #                                    [RUN-IF-FALSE])
3881 # ------------------------------------------------------------
3882 # Check that the linker support an argument
3883 
3884 
3885 
3886 
3887 #
3888 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3889 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3890 #
3891 # This code is free software; you can redistribute it and/or modify it
3892 # under the terms of the GNU General Public License version 2 only, as
3893 # published by the Free Software Foundation.  Oracle designates this
3894 # particular file as subject to the "Classpath" exception as provided
3895 # by Oracle in the LICENSE file that accompanied this code.
3896 #
3897 # This code is distributed in the hope that it will be useful, but WITHOUT
3898 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3899 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3900 # version 2 for more details (a copy is included in the LICENSE file that
3901 # accompanied this code).
3902 #
3903 # You should have received a copy of the GNU General Public License version
3904 # 2 along with this work; if not, write to the Free Software Foundation,
3905 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3906 #
3907 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3908 # or visit www.oracle.com if you need additional information or have any
3909 # questions.
3910 #
3911 
3912 
3913 
3914 
3915 
3916 cygwin_help() {
3917   case $1 in
3918     unzip)
3919       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3920       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3921       ;;
3922     zip)
3923       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3924       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3925       ;;
3926     make)
3927       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3928       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3929       ;;
3930     freetype)
3931       HELP_MSG="
3932 The freetype library can now be build during the configure process.
3933 Download the freetype sources and unpack them into an arbitrary directory:
3934 
3935 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3936 tar -xzf freetype-2.5.3.tar.gz
3937 
3938 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3939 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3940 builds or into '<freetype_src>/lib32' for 32-bit builds.
3941 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3942 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3943       ;;
3944   esac
3945 }
3946 
3947 msys_help() {
3948   PKGHANDLER_COMMAND=""
3949 }
3950 
3951 apt_help() {
3952   case $1 in
3953     reduced)
3954       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
3955     devkit)
3956       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3957     openjdk)
3958       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3959     alsa)
3960       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3961     cups)
3962       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3963     freetype)
3964       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3965     ffi)
3966       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
3967     x11)
3968       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3969     ccache)
3970       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3971   esac
3972 }
3973 
3974 yum_help() {
3975   case $1 in
3976     devkit)
3977       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3978     openjdk)
3979       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3980     alsa)
3981       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3982     cups)
3983       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3984     freetype)
3985       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3986     x11)
3987       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
3988     ccache)
3989       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3990   esac
3991 }
3992 
3993 port_help() {
3994   PKGHANDLER_COMMAND=""
3995 }
3996 
3997 pkgutil_help() {
3998   PKGHANDLER_COMMAND=""
3999 }
4000 
4001 pkgadd_help() {
4002   PKGHANDLER_COMMAND=""
4003 }
4004 
4005 # This function will check if we're called from the "configure" wrapper while
4006 # printing --help. If so, we will print out additional information that can
4007 # only be extracted within the autoconf script, and then exit. This must be
4008 # called at the very beginning in configure.ac.
4009 
4010 
4011 
4012 
4013 
4014 
4015 #
4016 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4017 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4018 #
4019 # This code is free software; you can redistribute it and/or modify it
4020 # under the terms of the GNU General Public License version 2 only, as
4021 # published by the Free Software Foundation.  Oracle designates this
4022 # particular file as subject to the "Classpath" exception as provided
4023 # by Oracle in the LICENSE file that accompanied this code.
4024 #
4025 # This code is distributed in the hope that it will be useful, but WITHOUT
4026 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4027 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4028 # version 2 for more details (a copy is included in the LICENSE file that
4029 # accompanied this code).
4030 #
4031 # You should have received a copy of the GNU General Public License version
4032 # 2 along with this work; if not, write to the Free Software Foundation,
4033 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4034 #
4035 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4036 # or visit www.oracle.com if you need additional information or have any
4037 # questions.
4038 #
4039 
4040 
4041 
4042 
4043 
4044 
4045 
4046 
4047 
4048 
4049 ###############################################################################
4050 #
4051 # Should we build only OpenJDK even if closed sources are present?
4052 #
4053 
4054 
4055 
4056 
4057 
4058 
4059 ###############################################################################
4060 #
4061 # Enable or disable the elliptic curve crypto implementation
4062 #
4063 
4064 
4065 
4066 
4067 
4068 ################################################################################
4069 #
4070 # Gcov coverage data for hotspot
4071 #
4072 
4073 
4074 ################################################################################
4075 #
4076 # Static build support.  When enabled will generate static
4077 # libraries instead of shared libraries for all JDK libs.
4078 #
4079 
4080 
4081 
4082 
4083 #
4084 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4085 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4086 #
4087 # This code is free software; you can redistribute it and/or modify it
4088 # under the terms of the GNU General Public License version 2 only, as
4089 # published by the Free Software Foundation.  Oracle designates this
4090 # particular file as subject to the "Classpath" exception as provided
4091 # by Oracle in the LICENSE file that accompanied this code.
4092 #
4093 # This code is distributed in the hope that it will be useful, but WITHOUT
4094 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4095 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4096 # version 2 for more details (a copy is included in the LICENSE file that
4097 # accompanied this code).
4098 #
4099 # You should have received a copy of the GNU General Public License version
4100 # 2 along with this work; if not, write to the Free Software Foundation,
4101 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4102 #
4103 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4104 # or visit www.oracle.com if you need additional information or have any
4105 # questions.
4106 #
4107 
4108 ###############################################################################
4109 #
4110 # Setup version numbers
4111 #
4112 
4113 # Verify that a given string represents a valid version number, and assign it
4114 # to a variable.
4115 
4116 # Argument 1: the variable to assign to
4117 # Argument 2: the value given by the user
4118 
4119 
4120 
4121 
4122 #
4123 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4124 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4125 #
4126 # This code is free software; you can redistribute it and/or modify it
4127 # under the terms of the GNU General Public License version 2 only, as
4128 # published by the Free Software Foundation.  Oracle designates this
4129 # particular file as subject to the "Classpath" exception as provided
4130 # by Oracle in the LICENSE file that accompanied this code.
4131 #
4132 # This code is distributed in the hope that it will be useful, but WITHOUT
4133 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4134 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4135 # version 2 for more details (a copy is included in the LICENSE file that
4136 # accompanied this code).
4137 #
4138 # You should have received a copy of the GNU General Public License version
4139 # 2 along with this work; if not, write to the Free Software Foundation,
4140 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4141 #
4142 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4143 # or visit www.oracle.com if you need additional information or have any
4144 # questions.
4145 #
4146 
4147 # Major library component reside in separate files.
4148 #
4149 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4150 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4151 #
4152 # This code is free software; you can redistribute it and/or modify it
4153 # under the terms of the GNU General Public License version 2 only, as
4154 # published by the Free Software Foundation.  Oracle designates this
4155 # particular file as subject to the "Classpath" exception as provided
4156 # by Oracle in the LICENSE file that accompanied this code.
4157 #
4158 # This code is distributed in the hope that it will be useful, but WITHOUT
4159 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4160 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4161 # version 2 for more details (a copy is included in the LICENSE file that
4162 # accompanied this code).
4163 #
4164 # You should have received a copy of the GNU General Public License version
4165 # 2 along with this work; if not, write to the Free Software Foundation,
4166 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4167 #
4168 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4169 # or visit www.oracle.com if you need additional information or have any
4170 # questions.
4171 #
4172 
4173 ################################################################################
4174 # Setup alsa (Advanced Linux Sound Architecture)
4175 ################################################################################
4176 
4177 
4178 #
4179 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4180 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4181 #
4182 # This code is free software; you can redistribute it and/or modify it
4183 # under the terms of the GNU General Public License version 2 only, as
4184 # published by the Free Software Foundation.  Oracle designates this
4185 # particular file as subject to the "Classpath" exception as provided
4186 # by Oracle in the LICENSE file that accompanied this code.
4187 #
4188 # This code is distributed in the hope that it will be useful, but WITHOUT
4189 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4190 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4191 # version 2 for more details (a copy is included in the LICENSE file that
4192 # accompanied this code).
4193 #
4194 # You should have received a copy of the GNU General Public License version
4195 # 2 along with this work; if not, write to the Free Software Foundation,
4196 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4197 #
4198 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4199 # or visit www.oracle.com if you need additional information or have any
4200 # questions.
4201 #
4202 
4203 ################################################################################
4204 # Setup bundled libraries.
4205 #
4206 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4207 # OpenJDK repository. Default is to use these libraries as bundled, but they
4208 # might be replaced by en external version by the user.
4209 ################################################################################
4210 
4211 
4212 ################################################################################
4213 # Setup libjpeg
4214 ################################################################################
4215 
4216 
4217 ################################################################################
4218 # Setup giflib
4219 ################################################################################
4220 
4221 
4222 ################################################################################
4223 # Setup libpng
4224 ################################################################################
4225 
4226 
4227 ################################################################################
4228 # Setup zlib
4229 ################################################################################
4230 
4231 
4232 ################################################################################
4233 # Setup lcms (Little CMS)
4234 ################################################################################
4235 
4236 
4237 #
4238 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4239 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4240 #
4241 # This code is free software; you can redistribute it and/or modify it
4242 # under the terms of the GNU General Public License version 2 only, as
4243 # published by the Free Software Foundation.  Oracle designates this
4244 # particular file as subject to the "Classpath" exception as provided
4245 # by Oracle in the LICENSE file that accompanied this code.
4246 #
4247 # This code is distributed in the hope that it will be useful, but WITHOUT
4248 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4249 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4250 # version 2 for more details (a copy is included in the LICENSE file that
4251 # accompanied this code).
4252 #
4253 # You should have received a copy of the GNU General Public License version
4254 # 2 along with this work; if not, write to the Free Software Foundation,
4255 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4256 #
4257 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4258 # or visit www.oracle.com if you need additional information or have any
4259 # questions.
4260 #
4261 
4262 ################################################################################
4263 # Setup cups (Common Unix Printing System)
4264 ################################################################################
4265 
4266 
4267 #
4268 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4269 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4270 #
4271 # This code is free software; you can redistribute it and/or modify it
4272 # under the terms of the GNU General Public License version 2 only, as
4273 # published by the Free Software Foundation.  Oracle designates this
4274 # particular file as subject to the "Classpath" exception as provided
4275 # by Oracle in the LICENSE file that accompanied this code.
4276 #
4277 # This code is distributed in the hope that it will be useful, but WITHOUT
4278 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4279 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4280 # version 2 for more details (a copy is included in the LICENSE file that
4281 # accompanied this code).
4282 #
4283 # You should have received a copy of the GNU General Public License version
4284 # 2 along with this work; if not, write to the Free Software Foundation,
4285 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4286 #
4287 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4288 # or visit www.oracle.com if you need additional information or have any
4289 # questions.
4290 #
4291 
4292 ################################################################################
4293 # Setup libffi (Foreign Function Interface)
4294 ################################################################################
4295 
4296 
4297 #
4298 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4299 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4300 #
4301 # This code is free software; you can redistribute it and/or modify it
4302 # under the terms of the GNU General Public License version 2 only, as
4303 # published by the Free Software Foundation.  Oracle designates this
4304 # particular file as subject to the "Classpath" exception as provided
4305 # by Oracle in the LICENSE file that accompanied this code.
4306 #
4307 # This code is distributed in the hope that it will be useful, but WITHOUT
4308 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4309 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4310 # version 2 for more details (a copy is included in the LICENSE file that
4311 # accompanied this code).
4312 #
4313 # You should have received a copy of the GNU General Public License version
4314 # 2 along with this work; if not, write to the Free Software Foundation,
4315 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4316 #
4317 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4318 # or visit www.oracle.com if you need additional information or have any
4319 # questions.
4320 #
4321 
4322 ################################################################################
4323 # Build the freetype lib from source
4324 ################################################################################
4325 
4326 
4327 ################################################################################
4328 # Check if a potential freeype library match is correct and usable
4329 ################################################################################
4330 
4331 
4332 ################################################################################
4333 # Setup freetype (The FreeType2 font rendering library)
4334 ################################################################################
4335 
4336 
4337 #
4338 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4339 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4340 #
4341 # This code is free software; you can redistribute it and/or modify it
4342 # under the terms of the GNU General Public License version 2 only, as
4343 # published by the Free Software Foundation.  Oracle designates this
4344 # particular file as subject to the "Classpath" exception as provided
4345 # by Oracle in the LICENSE file that accompanied this code.
4346 #
4347 # This code is distributed in the hope that it will be useful, but WITHOUT
4348 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4349 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4350 # version 2 for more details (a copy is included in the LICENSE file that
4351 # accompanied this code).
4352 #
4353 # You should have received a copy of the GNU General Public License version
4354 # 2 along with this work; if not, write to the Free Software Foundation,
4355 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4356 #
4357 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4358 # or visit www.oracle.com if you need additional information or have any
4359 # questions.
4360 #
4361 
4362 ################################################################################
4363 # Setup the standard C/C++ runtime libraries.
4364 #
4365 # Most importantly, determine if stdc++ should be linked statically or
4366 # dynamically.
4367 ################################################################################
4368 
4369 
4370 #
4371 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4372 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4373 #
4374 # This code is free software; you can redistribute it and/or modify it
4375 # under the terms of the GNU General Public License version 2 only, as
4376 # published by the Free Software Foundation.  Oracle designates this
4377 # particular file as subject to the "Classpath" exception as provided
4378 # by Oracle in the LICENSE file that accompanied this code.
4379 #
4380 # This code is distributed in the hope that it will be useful, but WITHOUT
4381 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4382 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4383 # version 2 for more details (a copy is included in the LICENSE file that
4384 # accompanied this code).
4385 #
4386 # You should have received a copy of the GNU General Public License version
4387 # 2 along with this work; if not, write to the Free Software Foundation,
4388 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4389 #
4390 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4391 # or visit www.oracle.com if you need additional information or have any
4392 # questions.
4393 #
4394 
4395 ################################################################################
4396 # Setup X11 Windows system
4397 ################################################################################
4398 
4399 
4400 
4401 ################################################################################
4402 # Determine which libraries are needed for this configuration
4403 ################################################################################
4404 
4405 
4406 ################################################################################
4407 # Parse library options, and setup needed libraries
4408 ################################################################################
4409 
4410 
4411 ################################################################################
4412 # Setup llvm (Low-Level VM)
4413 ################################################################################
4414 
4415 
4416 ################################################################################
4417 # Setup various libraries, typically small system libraries
4418 ################################################################################
4419 
4420 
4421 #
4422 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4423 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4424 #
4425 # This code is free software; you can redistribute it and/or modify it
4426 # under the terms of the GNU General Public License version 2 only, as
4427 # published by the Free Software Foundation.  Oracle designates this
4428 # particular file as subject to the "Classpath" exception as provided
4429 # by Oracle in the LICENSE file that accompanied this code.
4430 #
4431 # This code is distributed in the hope that it will be useful, but WITHOUT
4432 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4433 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4434 # version 2 for more details (a copy is included in the LICENSE file that
4435 # accompanied this code).
4436 #
4437 # You should have received a copy of the GNU General Public License version
4438 # 2 along with this work; if not, write to the Free Software Foundation,
4439 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4440 #
4441 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4442 # or visit www.oracle.com if you need additional information or have any
4443 # questions.
4444 #
4445 
4446 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4447 # Converts autoconf style CPU name to OpenJDK style, into
4448 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4449 
4450 
4451 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4452 # Converts autoconf style OS name to OpenJDK style, into
4453 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4454 
4455 
4456 # Expects $host_os $host_cpu $build_os and $build_cpu
4457 # and $with_target_bits to have been setup!
4458 #
4459 # Translate the standard triplet(quadruplet) definition
4460 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4461 # OPENJDK_BUILD_OS, etc.
4462 
4463 
4464 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4465 # accordingly. Must be done after setting up build and target system, but before
4466 # doing anything else with these values.
4467 
4468 
4469 # Setup the legacy variables, for controlling the old makefiles.
4470 #
4471 
4472 
4473 
4474 
4475 #%%% Build and target systems %%%
4476 
4477 
4478 
4479 
4480 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4481 # Add -mX to various FLAGS variables.
4482 
4483 
4484 
4485 
4486 
4487 
4488 #
4489 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4490 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4491 #
4492 # This code is free software; you can redistribute it and/or modify it
4493 # under the terms of the GNU General Public License version 2 only, as
4494 # published by the Free Software Foundation.  Oracle designates this
4495 # particular file as subject to the "Classpath" exception as provided
4496 # by Oracle in the LICENSE file that accompanied this code.
4497 #
4498 # This code is distributed in the hope that it will be useful, but WITHOUT
4499 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4500 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4501 # version 2 for more details (a copy is included in the LICENSE file that
4502 # accompanied this code).
4503 #
4504 # You should have received a copy of the GNU General Public License version
4505 # 2 along with this work; if not, write to the Free Software Foundation,
4506 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4507 #
4508 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4509 # or visit www.oracle.com if you need additional information or have any
4510 # questions.
4511 #
4512 
4513 
4514 
4515 
4516 
4517 
4518 
4519 #
4520 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4521 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4522 #
4523 # This code is free software; you can redistribute it and/or modify it
4524 # under the terms of the GNU General Public License version 2 only, as
4525 # published by the Free Software Foundation.  Oracle designates this
4526 # particular file as subject to the "Classpath" exception as provided
4527 # by Oracle in the LICENSE file that accompanied this code.
4528 #
4529 # This code is distributed in the hope that it will be useful, but WITHOUT
4530 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4531 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4532 # version 2 for more details (a copy is included in the LICENSE file that
4533 # accompanied this code).
4534 #
4535 # You should have received a copy of the GNU General Public License version
4536 # 2 along with this work; if not, write to the Free Software Foundation,
4537 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4538 #
4539 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4540 # or visit www.oracle.com if you need additional information or have any
4541 # questions.
4542 #
4543 
4544 ########################################################################
4545 # This file is responsible for detecting, verifying and setting up the
4546 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4547 # proper paths to the binaries, but it will not setup any flags.
4548 #
4549 # The binaries used is determined by the toolchain type, which is the family of
4550 # compilers and related tools that are used.
4551 ########################################################################
4552 
4553 
4554 # All valid toolchains, regardless of platform (used by help.m4)
4555 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4556 
4557 # These toolchains are valid on different platforms
4558 VALID_TOOLCHAINS_linux="gcc clang"
4559 VALID_TOOLCHAINS_solaris="solstudio"
4560 VALID_TOOLCHAINS_macosx="gcc clang"
4561 VALID_TOOLCHAINS_aix="xlc"
4562 VALID_TOOLCHAINS_windows="microsoft"
4563 
4564 # Toolchain descriptions
4565 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4566 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4567 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4568 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4569 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4570 
4571 # Setup a number of variables describing how native output files are
4572 # named on this platform/toolchain.
4573 
4574 
4575 # Determine which toolchain type to use, and make sure it is valid for this
4576 # platform. Setup various information about the selected toolchain.
4577 
4578 
4579 # Before we start detecting the toolchain executables, we might need some
4580 # special setup, e.g. additional paths etc.
4581 
4582 
4583 # Restore path, etc
4584 
4585 
4586 # Check if a compiler is of the toolchain type we expect, and save the version
4587 # information from it. If the compiler does not match the expected type,
4588 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4589 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4590 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4591 #
4592 # $1 = compiler to test (CC or CXX)
4593 # $2 = human readable name of compiler (C or C++)
4594 
4595 
4596 # Try to locate the given C or C++ compiler in the path, or otherwise.
4597 #
4598 # $1 = compiler to test (CC or CXX)
4599 # $2 = human readable name of compiler (C or C++)
4600 # $3 = list of compiler names to search for
4601 
4602 
4603 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4604 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4605 # archiver (AR). Verify that the compilers are correct according to the
4606 # toolchain type.
4607 
4608 
4609 # Setup additional tools that is considered a part of the toolchain, but not the
4610 # core part. Many of these are highly platform-specific and do not exist,
4611 # and/or are not needed on all platforms.
4612 
4613 
4614 # Setup the build tools (i.e, the compiler and linker used to build programs
4615 # that should be run on the build platform, not the target platform, as a build
4616 # helper). Since the non-cross-compile case uses the normal, target compilers
4617 # for this, we can only do this after these have been setup.
4618 
4619 
4620 # Setup legacy variables that are still needed as alternative ways to refer to
4621 # parts of the toolchain.
4622 
4623 
4624 # Do some additional checks on the detected tools.
4625 
4626 
4627 # Setup the JTReg Regression Test Harness.
4628 
4629 
4630 #
4631 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4632 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4633 #
4634 # This code is free software; you can redistribute it and/or modify it
4635 # under the terms of the GNU General Public License version 2 only, as
4636 # published by the Free Software Foundation.  Oracle designates this
4637 # particular file as subject to the "Classpath" exception as provided
4638 # by Oracle in the LICENSE file that accompanied this code.
4639 #
4640 # This code is distributed in the hope that it will be useful, but WITHOUT
4641 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4642 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4643 # version 2 for more details (a copy is included in the LICENSE file that
4644 # accompanied this code).
4645 #
4646 # You should have received a copy of the GNU General Public License version
4647 # 2 along with this work; if not, write to the Free Software Foundation,
4648 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4649 #
4650 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4651 # or visit www.oracle.com if you need additional information or have any
4652 # questions.
4653 #
4654 
4655 ################################################################################
4656 # The order of these defines the priority by which we try to find them.
4657 VALID_VS_VERSIONS="2013 2012 2010"
4658 
4659 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4660 VS_VERSION_INTERNAL_2010=100
4661 VS_MSVCR_2010=msvcr100.dll
4662 # We don't use msvcp on Visual Studio 2010
4663 #VS_MSVCP_2010=msvcp100.dll
4664 VS_ENVVAR_2010="VS100COMNTOOLS"
4665 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4666 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4667 VS_VS_PLATFORM_NAME_2010="v100"
4668 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4669 
4670 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4671 VS_VERSION_INTERNAL_2012=110
4672 VS_MSVCR_2012=msvcr110.dll
4673 VS_MSVCP_2012=msvcp110.dll
4674 VS_ENVVAR_2012="VS110COMNTOOLS"
4675 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4676 VS_SDK_INSTALLDIR_2012=
4677 VS_VS_PLATFORM_NAME_2012="v110"
4678 VS_SDK_PLATFORM_NAME_2012=
4679 
4680 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4681 VS_VERSION_INTERNAL_2013=120
4682 VS_MSVCR_2013=msvcr120.dll
4683 VS_MSVCP_2013=msvcp120.dll
4684 VS_ENVVAR_2013="VS120COMNTOOLS"
4685 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4686 VS_SDK_INSTALLDIR_2013=
4687 VS_VS_PLATFORM_NAME_2013="v120"
4688 VS_SDK_PLATFORM_NAME_2013=
4689 
4690 ################################################################################
4691 
4692 
4693 
4694 ################################################################################
4695 
4696 
4697 
4698 ################################################################################
4699 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4700 # build environment and assigns it to VS_ENV_CMD
4701 
4702 
4703 ################################################################################
4704 
4705 
4706 
4707 ################################################################################
4708 # Check if the VS env variables were setup prior to running configure.
4709 # If not, then find vcvarsall.bat and run it automatically, and integrate
4710 # the set env variables into the spec file.
4711 
4712 
4713 
4714 
4715 
4716 
4717 
4718 
4719 
4720 
4721 
4722 
4723 
4724 
4725 # This line needs to be here, verbatim, after all includes and the dummy hook
4726 # definitions. It is replaced with custom functionality when building
4727 # custom sources.
4728 #CUSTOM_AUTOCONF_INCLUDE
4729 
4730 # Do not change or remove the following line, it is needed for consistency checks:
4731 DATE_WHEN_GENERATED=1450246539
4732 
4733 ###############################################################################
4734 #
4735 # Initialization / Boot-strapping
4736 #
4737 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4738 # thus it jumps back and forth, each time gaining something needed later on.
4739 #
4740 ###############################################################################
4741 
4742 # If we are requested to print additional help, do that and then exit.
4743 # This must be the very first call.
4744 
4745   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4746     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4747     $PRINTF "Which are valid to use depends on the build platform.\n"
4748     for toolchain in $VALID_TOOLCHAINS_all; do
4749       # Use indirect variable referencing
4750       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4751       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4752       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4753     done
4754 
4755     # And now exit directly
4756     exit 0
4757   fi
4758 
4759 
4760 # Basic initialization that must happen first of all in the normal process.
4761 
4762   # Save the original command line. This is passed to us by the wrapper configure script.
4763 
4764   # Save the path variable before it gets changed
4765   ORIGINAL_PATH="$PATH"
4766 
4767   DATE_WHEN_CONFIGURED=`LANG=C date`
4768 
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4770 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4772 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4773 
4774 
4775   # Start with tools that do not need have cross compilation support
4776   # and can be expected to be found in the default PATH. These tools are
4777   # used by configure.
4778 
4779   # First are all the simple required tools.
4780 
4781 
4782 
4783   # Publish this variable in the help.
4784 
4785 
4786   if [ -z "${BASENAME+x}" ]; then
4787     # The variable is not set by user, try to locate tool using the code snippet
4788     for ac_prog in basename
4789 do
4790   # Extract the first word of "$ac_prog", so it can be a program name with args.
4791 set dummy $ac_prog; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if ${ac_cv_path_BASENAME+:} false; then :
4795   $as_echo_n "(cached) " >&6
4796 else
4797   case $BASENAME in
4798   [\\/]* | ?:[\\/]*)
4799   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4800   ;;
4801   *)
4802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4804 do
4805   IFS=$as_save_IFS
4806   test -z "$as_dir" && as_dir=.
4807     for ac_exec_ext in '' $ac_executable_extensions; do
4808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811     break 2
4812   fi
4813 done
4814   done
4815 IFS=$as_save_IFS
4816 
4817   ;;
4818 esac
4819 fi
4820 BASENAME=$ac_cv_path_BASENAME
4821 if test -n "$BASENAME"; then
4822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4823 $as_echo "$BASENAME" >&6; }
4824 else
4825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 $as_echo "no" >&6; }
4827 fi
4828 
4829 
4830   test -n "$BASENAME" && break
4831 done
4832 
4833   else
4834     # The variable is set, but is it from the command line or the environment?
4835 
4836     # Try to remove the string !BASENAME! from our list.
4837     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4838     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4839       # If it failed, the variable was not from the command line. Ignore it,
4840       # but warn the user (except for BASH, which is always set by the calling BASH).
4841       if test "xBASENAME" != xBASH; then
4842         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4843 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4844       fi
4845       # Try to locate tool using the code snippet
4846       for ac_prog in basename
4847 do
4848   # Extract the first word of "$ac_prog", so it can be a program name with args.
4849 set dummy $ac_prog; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if ${ac_cv_path_BASENAME+:} false; then :
4853   $as_echo_n "(cached) " >&6
4854 else
4855   case $BASENAME in
4856   [\\/]* | ?:[\\/]*)
4857   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4858   ;;
4859   *)
4860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863   IFS=$as_save_IFS
4864   test -z "$as_dir" && as_dir=.
4865     for ac_exec_ext in '' $ac_executable_extensions; do
4866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869     break 2
4870   fi
4871 done
4872   done
4873 IFS=$as_save_IFS
4874 
4875   ;;
4876 esac
4877 fi
4878 BASENAME=$ac_cv_path_BASENAME
4879 if test -n "$BASENAME"; then
4880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4881 $as_echo "$BASENAME" >&6; }
4882 else
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886 
4887 
4888   test -n "$BASENAME" && break
4889 done
4890 
4891     else
4892       # If it succeeded, then it was overridden by the user. We will use it
4893       # for the tool.
4894 
4895       # First remove it from the list of overridden variables, so we can test
4896       # for unknown variables in the end.
4897       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4898 
4899       # Check if we try to supply an empty value
4900       if test "x$BASENAME" = x; then
4901         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
4902 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
4903         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4904 $as_echo_n "checking for BASENAME... " >&6; }
4905         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4906 $as_echo "disabled" >&6; }
4907       else
4908         # Check if the provided tool contains a complete path.
4909         tool_specified="$BASENAME"
4910         tool_basename="${tool_specified##*/}"
4911         if test "x$tool_basename" = "x$tool_specified"; then
4912           # A command without a complete path is provided, search $PATH.
4913           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4914 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4915           # Extract the first word of "$tool_basename", so it can be a program name with args.
4916 set dummy $tool_basename; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if ${ac_cv_path_BASENAME+:} false; then :
4920   $as_echo_n "(cached) " >&6
4921 else
4922   case $BASENAME in
4923   [\\/]* | ?:[\\/]*)
4924   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4925   ;;
4926   *)
4927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930   IFS=$as_save_IFS
4931   test -z "$as_dir" && as_dir=.
4932     for ac_exec_ext in '' $ac_executable_extensions; do
4933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936     break 2
4937   fi
4938 done
4939   done
4940 IFS=$as_save_IFS
4941 
4942   ;;
4943 esac
4944 fi
4945 BASENAME=$ac_cv_path_BASENAME
4946 if test -n "$BASENAME"; then
4947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4948 $as_echo "$BASENAME" >&6; }
4949 else
4950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953 
4954 
4955           if test "x$BASENAME" = x; then
4956             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4957           fi
4958         else
4959           # Otherwise we believe it is a complete path. Use it as it is.
4960           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4961 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4962           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4963 $as_echo_n "checking for BASENAME... " >&6; }
4964           if test ! -x "$tool_specified"; then
4965             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4966 $as_echo "not found" >&6; }
4967             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4968           fi
4969           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4970 $as_echo "$tool_specified" >&6; }
4971         fi
4972       fi
4973     fi
4974 
4975   fi
4976 
4977 
4978 
4979   if test "x$BASENAME" = x; then
4980     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4981   fi
4982 
4983 
4984 
4985 
4986 
4987   # Publish this variable in the help.
4988 
4989 
4990   if [ -z "${BASH+x}" ]; then
4991     # The variable is not set by user, try to locate tool using the code snippet
4992     for ac_prog in bash
4993 do
4994   # Extract the first word of "$ac_prog", so it can be a program name with args.
4995 set dummy $ac_prog; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if ${ac_cv_path_BASH+:} false; then :
4999   $as_echo_n "(cached) " >&6
5000 else
5001   case $BASH in
5002   [\\/]* | ?:[\\/]*)
5003   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5004   ;;
5005   *)
5006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011     for ac_exec_ext in '' $ac_executable_extensions; do
5012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015     break 2
5016   fi
5017 done
5018   done
5019 IFS=$as_save_IFS
5020 
5021   ;;
5022 esac
5023 fi
5024 BASH=$ac_cv_path_BASH
5025 if test -n "$BASH"; then
5026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5027 $as_echo "$BASH" >&6; }
5028 else
5029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5031 fi
5032 
5033 
5034   test -n "$BASH" && break
5035 done
5036 
5037   else
5038     # The variable is set, but is it from the command line or the environment?
5039 
5040     # Try to remove the string !BASH! from our list.
5041     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5042     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5043       # If it failed, the variable was not from the command line. Ignore it,
5044       # but warn the user (except for BASH, which is always set by the calling BASH).
5045       if test "xBASH" != xBASH; then
5046         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5047 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5048       fi
5049       # Try to locate tool using the code snippet
5050       for ac_prog in bash
5051 do
5052   # Extract the first word of "$ac_prog", so it can be a program name with args.
5053 set dummy $ac_prog; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_path_BASH+:} false; then :
5057   $as_echo_n "(cached) " >&6
5058 else
5059   case $BASH in
5060   [\\/]* | ?:[\\/]*)
5061   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5062   ;;
5063   *)
5064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067   IFS=$as_save_IFS
5068   test -z "$as_dir" && as_dir=.
5069     for ac_exec_ext in '' $ac_executable_extensions; do
5070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073     break 2
5074   fi
5075 done
5076   done
5077 IFS=$as_save_IFS
5078 
5079   ;;
5080 esac
5081 fi
5082 BASH=$ac_cv_path_BASH
5083 if test -n "$BASH"; then
5084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5085 $as_echo "$BASH" >&6; }
5086 else
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5089 fi
5090 
5091 
5092   test -n "$BASH" && break
5093 done
5094 
5095     else
5096       # If it succeeded, then it was overridden by the user. We will use it
5097       # for the tool.
5098 
5099       # First remove it from the list of overridden variables, so we can test
5100       # for unknown variables in the end.
5101       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5102 
5103       # Check if we try to supply an empty value
5104       if test "x$BASH" = x; then
5105         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5106 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5107         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5108 $as_echo_n "checking for BASH... " >&6; }
5109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5110 $as_echo "disabled" >&6; }
5111       else
5112         # Check if the provided tool contains a complete path.
5113         tool_specified="$BASH"
5114         tool_basename="${tool_specified##*/}"
5115         if test "x$tool_basename" = "x$tool_specified"; then
5116           # A command without a complete path is provided, search $PATH.
5117           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5118 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5119           # Extract the first word of "$tool_basename", so it can be a program name with args.
5120 set dummy $tool_basename; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if ${ac_cv_path_BASH+:} false; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   case $BASH in
5127   [\\/]* | ?:[\\/]*)
5128   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5129   ;;
5130   *)
5131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5133 do
5134   IFS=$as_save_IFS
5135   test -z "$as_dir" && as_dir=.
5136     for ac_exec_ext in '' $ac_executable_extensions; do
5137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5138     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140     break 2
5141   fi
5142 done
5143   done
5144 IFS=$as_save_IFS
5145 
5146   ;;
5147 esac
5148 fi
5149 BASH=$ac_cv_path_BASH
5150 if test -n "$BASH"; then
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5152 $as_echo "$BASH" >&6; }
5153 else
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5156 fi
5157 
5158 
5159           if test "x$BASH" = x; then
5160             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5161           fi
5162         else
5163           # Otherwise we believe it is a complete path. Use it as it is.
5164           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5165 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5166           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5167 $as_echo_n "checking for BASH... " >&6; }
5168           if test ! -x "$tool_specified"; then
5169             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5170 $as_echo "not found" >&6; }
5171             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5172           fi
5173           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5174 $as_echo "$tool_specified" >&6; }
5175         fi
5176       fi
5177     fi
5178 
5179   fi
5180 
5181 
5182 
5183   if test "x$BASH" = x; then
5184     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5185   fi
5186 
5187 
5188 
5189 
5190 
5191   # Publish this variable in the help.
5192 
5193 
5194   if [ -z "${CAT+x}" ]; then
5195     # The variable is not set by user, try to locate tool using the code snippet
5196     for ac_prog in cat
5197 do
5198   # Extract the first word of "$ac_prog", so it can be a program name with args.
5199 set dummy $ac_prog; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_path_CAT+:} false; then :
5203   $as_echo_n "(cached) " >&6
5204 else
5205   case $CAT in
5206   [\\/]* | ?:[\\/]*)
5207   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5208   ;;
5209   *)
5210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213   IFS=$as_save_IFS
5214   test -z "$as_dir" && as_dir=.
5215     for ac_exec_ext in '' $ac_executable_extensions; do
5216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222   done
5223 IFS=$as_save_IFS
5224 
5225   ;;
5226 esac
5227 fi
5228 CAT=$ac_cv_path_CAT
5229 if test -n "$CAT"; then
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5231 $as_echo "$CAT" >&6; }
5232 else
5233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5235 fi
5236 
5237 
5238   test -n "$CAT" && break
5239 done
5240 
5241   else
5242     # The variable is set, but is it from the command line or the environment?
5243 
5244     # Try to remove the string !CAT! from our list.
5245     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5246     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5247       # If it failed, the variable was not from the command line. Ignore it,
5248       # but warn the user (except for BASH, which is always set by the calling BASH).
5249       if test "xCAT" != xBASH; then
5250         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5251 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5252       fi
5253       # Try to locate tool using the code snippet
5254       for ac_prog in cat
5255 do
5256   # Extract the first word of "$ac_prog", so it can be a program name with args.
5257 set dummy $ac_prog; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_path_CAT+:} false; then :
5261   $as_echo_n "(cached) " >&6
5262 else
5263   case $CAT in
5264   [\\/]* | ?:[\\/]*)
5265   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5266   ;;
5267   *)
5268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271   IFS=$as_save_IFS
5272   test -z "$as_dir" && as_dir=.
5273     for ac_exec_ext in '' $ac_executable_extensions; do
5274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280   done
5281 IFS=$as_save_IFS
5282 
5283   ;;
5284 esac
5285 fi
5286 CAT=$ac_cv_path_CAT
5287 if test -n "$CAT"; then
5288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5289 $as_echo "$CAT" >&6; }
5290 else
5291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5293 fi
5294 
5295 
5296   test -n "$CAT" && break
5297 done
5298 
5299     else
5300       # If it succeeded, then it was overridden by the user. We will use it
5301       # for the tool.
5302 
5303       # First remove it from the list of overridden variables, so we can test
5304       # for unknown variables in the end.
5305       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5306 
5307       # Check if we try to supply an empty value
5308       if test "x$CAT" = x; then
5309         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5310 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5311         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5312 $as_echo_n "checking for CAT... " >&6; }
5313         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5314 $as_echo "disabled" >&6; }
5315       else
5316         # Check if the provided tool contains a complete path.
5317         tool_specified="$CAT"
5318         tool_basename="${tool_specified##*/}"
5319         if test "x$tool_basename" = "x$tool_specified"; then
5320           # A command without a complete path is provided, search $PATH.
5321           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5322 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5323           # Extract the first word of "$tool_basename", so it can be a program name with args.
5324 set dummy $tool_basename; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_path_CAT+:} false; then :
5328   $as_echo_n "(cached) " >&6
5329 else
5330   case $CAT in
5331   [\\/]* | ?:[\\/]*)
5332   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5333   ;;
5334   *)
5335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5337 do
5338   IFS=$as_save_IFS
5339   test -z "$as_dir" && as_dir=.
5340     for ac_exec_ext in '' $ac_executable_extensions; do
5341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344     break 2
5345   fi
5346 done
5347   done
5348 IFS=$as_save_IFS
5349 
5350   ;;
5351 esac
5352 fi
5353 CAT=$ac_cv_path_CAT
5354 if test -n "$CAT"; then
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5356 $as_echo "$CAT" >&6; }
5357 else
5358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5360 fi
5361 
5362 
5363           if test "x$CAT" = x; then
5364             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5365           fi
5366         else
5367           # Otherwise we believe it is a complete path. Use it as it is.
5368           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5369 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5370           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5371 $as_echo_n "checking for CAT... " >&6; }
5372           if test ! -x "$tool_specified"; then
5373             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5374 $as_echo "not found" >&6; }
5375             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5376           fi
5377           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5378 $as_echo "$tool_specified" >&6; }
5379         fi
5380       fi
5381     fi
5382 
5383   fi
5384 
5385 
5386 
5387   if test "x$CAT" = x; then
5388     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5389   fi
5390 
5391 
5392 
5393 
5394 
5395   # Publish this variable in the help.
5396 
5397 
5398   if [ -z "${CHMOD+x}" ]; then
5399     # The variable is not set by user, try to locate tool using the code snippet
5400     for ac_prog in chmod
5401 do
5402   # Extract the first word of "$ac_prog", so it can be a program name with args.
5403 set dummy $ac_prog; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_path_CHMOD+:} false; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   case $CHMOD in
5410   [\\/]* | ?:[\\/]*)
5411   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5412   ;;
5413   *)
5414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417   IFS=$as_save_IFS
5418   test -z "$as_dir" && as_dir=.
5419     for ac_exec_ext in '' $ac_executable_extensions; do
5420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423     break 2
5424   fi
5425 done
5426   done
5427 IFS=$as_save_IFS
5428 
5429   ;;
5430 esac
5431 fi
5432 CHMOD=$ac_cv_path_CHMOD
5433 if test -n "$CHMOD"; then
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5435 $as_echo "$CHMOD" >&6; }
5436 else
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440 
5441 
5442   test -n "$CHMOD" && break
5443 done
5444 
5445   else
5446     # The variable is set, but is it from the command line or the environment?
5447 
5448     # Try to remove the string !CHMOD! from our list.
5449     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5450     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5451       # If it failed, the variable was not from the command line. Ignore it,
5452       # but warn the user (except for BASH, which is always set by the calling BASH).
5453       if test "xCHMOD" != xBASH; then
5454         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5455 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5456       fi
5457       # Try to locate tool using the code snippet
5458       for ac_prog in chmod
5459 do
5460   # Extract the first word of "$ac_prog", so it can be a program name with args.
5461 set dummy $ac_prog; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_path_CHMOD+:} false; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   case $CHMOD in
5468   [\\/]* | ?:[\\/]*)
5469   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5470   ;;
5471   *)
5472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475   IFS=$as_save_IFS
5476   test -z "$as_dir" && as_dir=.
5477     for ac_exec_ext in '' $ac_executable_extensions; do
5478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481     break 2
5482   fi
5483 done
5484   done
5485 IFS=$as_save_IFS
5486 
5487   ;;
5488 esac
5489 fi
5490 CHMOD=$ac_cv_path_CHMOD
5491 if test -n "$CHMOD"; then
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5493 $as_echo "$CHMOD" >&6; }
5494 else
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5497 fi
5498 
5499 
5500   test -n "$CHMOD" && break
5501 done
5502 
5503     else
5504       # If it succeeded, then it was overridden by the user. We will use it
5505       # for the tool.
5506 
5507       # First remove it from the list of overridden variables, so we can test
5508       # for unknown variables in the end.
5509       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5510 
5511       # Check if we try to supply an empty value
5512       if test "x$CHMOD" = x; then
5513         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5514 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5515         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5516 $as_echo_n "checking for CHMOD... " >&6; }
5517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5518 $as_echo "disabled" >&6; }
5519       else
5520         # Check if the provided tool contains a complete path.
5521         tool_specified="$CHMOD"
5522         tool_basename="${tool_specified##*/}"
5523         if test "x$tool_basename" = "x$tool_specified"; then
5524           # A command without a complete path is provided, search $PATH.
5525           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5526 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5527           # Extract the first word of "$tool_basename", so it can be a program name with args.
5528 set dummy $tool_basename; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_path_CHMOD+:} false; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   case $CHMOD in
5535   [\\/]* | ?:[\\/]*)
5536   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5537   ;;
5538   *)
5539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5541 do
5542   IFS=$as_save_IFS
5543   test -z "$as_dir" && as_dir=.
5544     for ac_exec_ext in '' $ac_executable_extensions; do
5545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548     break 2
5549   fi
5550 done
5551   done
5552 IFS=$as_save_IFS
5553 
5554   ;;
5555 esac
5556 fi
5557 CHMOD=$ac_cv_path_CHMOD
5558 if test -n "$CHMOD"; then
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5560 $as_echo "$CHMOD" >&6; }
5561 else
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565 
5566 
5567           if test "x$CHMOD" = x; then
5568             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5569           fi
5570         else
5571           # Otherwise we believe it is a complete path. Use it as it is.
5572           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5573 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5574           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5575 $as_echo_n "checking for CHMOD... " >&6; }
5576           if test ! -x "$tool_specified"; then
5577             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5578 $as_echo "not found" >&6; }
5579             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5580           fi
5581           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5582 $as_echo "$tool_specified" >&6; }
5583         fi
5584       fi
5585     fi
5586 
5587   fi
5588 
5589 
5590 
5591   if test "x$CHMOD" = x; then
5592     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5593   fi
5594 
5595 
5596 
5597 
5598 
5599   # Publish this variable in the help.
5600 
5601 
5602   if [ -z "${CMP+x}" ]; then
5603     # The variable is not set by user, try to locate tool using the code snippet
5604     for ac_prog in cmp
5605 do
5606   # Extract the first word of "$ac_prog", so it can be a program name with args.
5607 set dummy $ac_prog; ac_word=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 $as_echo_n "checking for $ac_word... " >&6; }
5610 if ${ac_cv_path_CMP+:} false; then :
5611   $as_echo_n "(cached) " >&6
5612 else
5613   case $CMP in
5614   [\\/]* | ?:[\\/]*)
5615   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5616   ;;
5617   *)
5618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5620 do
5621   IFS=$as_save_IFS
5622   test -z "$as_dir" && as_dir=.
5623     for ac_exec_ext in '' $ac_executable_extensions; do
5624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627     break 2
5628   fi
5629 done
5630   done
5631 IFS=$as_save_IFS
5632 
5633   ;;
5634 esac
5635 fi
5636 CMP=$ac_cv_path_CMP
5637 if test -n "$CMP"; then
5638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5639 $as_echo "$CMP" >&6; }
5640 else
5641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5643 fi
5644 
5645 
5646   test -n "$CMP" && break
5647 done
5648 
5649   else
5650     # The variable is set, but is it from the command line or the environment?
5651 
5652     # Try to remove the string !CMP! from our list.
5653     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5654     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5655       # If it failed, the variable was not from the command line. Ignore it,
5656       # but warn the user (except for BASH, which is always set by the calling BASH).
5657       if test "xCMP" != xBASH; then
5658         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5659 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5660       fi
5661       # Try to locate tool using the code snippet
5662       for ac_prog in cmp
5663 do
5664   # Extract the first word of "$ac_prog", so it can be a program name with args.
5665 set dummy $ac_prog; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if ${ac_cv_path_CMP+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   case $CMP in
5672   [\\/]* | ?:[\\/]*)
5673   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5674   ;;
5675   *)
5676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681     for ac_exec_ext in '' $ac_executable_extensions; do
5682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685     break 2
5686   fi
5687 done
5688   done
5689 IFS=$as_save_IFS
5690 
5691   ;;
5692 esac
5693 fi
5694 CMP=$ac_cv_path_CMP
5695 if test -n "$CMP"; then
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5697 $as_echo "$CMP" >&6; }
5698 else
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 fi
5702 
5703 
5704   test -n "$CMP" && break
5705 done
5706 
5707     else
5708       # If it succeeded, then it was overridden by the user. We will use it
5709       # for the tool.
5710 
5711       # First remove it from the list of overridden variables, so we can test
5712       # for unknown variables in the end.
5713       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5714 
5715       # Check if we try to supply an empty value
5716       if test "x$CMP" = x; then
5717         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
5718 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
5719         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5720 $as_echo_n "checking for CMP... " >&6; }
5721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5722 $as_echo "disabled" >&6; }
5723       else
5724         # Check if the provided tool contains a complete path.
5725         tool_specified="$CMP"
5726         tool_basename="${tool_specified##*/}"
5727         if test "x$tool_basename" = "x$tool_specified"; then
5728           # A command without a complete path is provided, search $PATH.
5729           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5730 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5731           # Extract the first word of "$tool_basename", so it can be a program name with args.
5732 set dummy $tool_basename; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_path_CMP+:} false; then :
5736   $as_echo_n "(cached) " >&6
5737 else
5738   case $CMP in
5739   [\\/]* | ?:[\\/]*)
5740   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5741   ;;
5742   *)
5743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746   IFS=$as_save_IFS
5747   test -z "$as_dir" && as_dir=.
5748     for ac_exec_ext in '' $ac_executable_extensions; do
5749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752     break 2
5753   fi
5754 done
5755   done
5756 IFS=$as_save_IFS
5757 
5758   ;;
5759 esac
5760 fi
5761 CMP=$ac_cv_path_CMP
5762 if test -n "$CMP"; then
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5764 $as_echo "$CMP" >&6; }
5765 else
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 fi
5769 
5770 
5771           if test "x$CMP" = x; then
5772             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5773           fi
5774         else
5775           # Otherwise we believe it is a complete path. Use it as it is.
5776           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5777 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5778           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5779 $as_echo_n "checking for CMP... " >&6; }
5780           if test ! -x "$tool_specified"; then
5781             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5782 $as_echo "not found" >&6; }
5783             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5784           fi
5785           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5786 $as_echo "$tool_specified" >&6; }
5787         fi
5788       fi
5789     fi
5790 
5791   fi
5792 
5793 
5794 
5795   if test "x$CMP" = x; then
5796     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5797   fi
5798 
5799 
5800 
5801 
5802 
5803   # Publish this variable in the help.
5804 
5805 
5806   if [ -z "${COMM+x}" ]; then
5807     # The variable is not set by user, try to locate tool using the code snippet
5808     for ac_prog in comm
5809 do
5810   # Extract the first word of "$ac_prog", so it can be a program name with args.
5811 set dummy $ac_prog; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if ${ac_cv_path_COMM+:} false; then :
5815   $as_echo_n "(cached) " >&6
5816 else
5817   case $COMM in
5818   [\\/]* | ?:[\\/]*)
5819   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5820   ;;
5821   *)
5822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825   IFS=$as_save_IFS
5826   test -z "$as_dir" && as_dir=.
5827     for ac_exec_ext in '' $ac_executable_extensions; do
5828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831     break 2
5832   fi
5833 done
5834   done
5835 IFS=$as_save_IFS
5836 
5837   ;;
5838 esac
5839 fi
5840 COMM=$ac_cv_path_COMM
5841 if test -n "$COMM"; then
5842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5843 $as_echo "$COMM" >&6; }
5844 else
5845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5847 fi
5848 
5849 
5850   test -n "$COMM" && break
5851 done
5852 
5853   else
5854     # The variable is set, but is it from the command line or the environment?
5855 
5856     # Try to remove the string !COMM! from our list.
5857     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5858     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5859       # If it failed, the variable was not from the command line. Ignore it,
5860       # but warn the user (except for BASH, which is always set by the calling BASH).
5861       if test "xCOMM" != xBASH; then
5862         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5863 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5864       fi
5865       # Try to locate tool using the code snippet
5866       for ac_prog in comm
5867 do
5868   # Extract the first word of "$ac_prog", so it can be a program name with args.
5869 set dummy $ac_prog; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_path_COMM+:} false; then :
5873   $as_echo_n "(cached) " >&6
5874 else
5875   case $COMM in
5876   [\\/]* | ?:[\\/]*)
5877   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5878   ;;
5879   *)
5880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885     for ac_exec_ext in '' $ac_executable_extensions; do
5886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889     break 2
5890   fi
5891 done
5892   done
5893 IFS=$as_save_IFS
5894 
5895   ;;
5896 esac
5897 fi
5898 COMM=$ac_cv_path_COMM
5899 if test -n "$COMM"; then
5900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5901 $as_echo "$COMM" >&6; }
5902 else
5903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5905 fi
5906 
5907 
5908   test -n "$COMM" && break
5909 done
5910 
5911     else
5912       # If it succeeded, then it was overridden by the user. We will use it
5913       # for the tool.
5914 
5915       # First remove it from the list of overridden variables, so we can test
5916       # for unknown variables in the end.
5917       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5918 
5919       # Check if we try to supply an empty value
5920       if test "x$COMM" = x; then
5921         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
5922 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
5923         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5924 $as_echo_n "checking for COMM... " >&6; }
5925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5926 $as_echo "disabled" >&6; }
5927       else
5928         # Check if the provided tool contains a complete path.
5929         tool_specified="$COMM"
5930         tool_basename="${tool_specified##*/}"
5931         if test "x$tool_basename" = "x$tool_specified"; then
5932           # A command without a complete path is provided, search $PATH.
5933           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5934 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5935           # Extract the first word of "$tool_basename", so it can be a program name with args.
5936 set dummy $tool_basename; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if ${ac_cv_path_COMM+:} false; then :
5940   $as_echo_n "(cached) " >&6
5941 else
5942   case $COMM in
5943   [\\/]* | ?:[\\/]*)
5944   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5945   ;;
5946   *)
5947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950   IFS=$as_save_IFS
5951   test -z "$as_dir" && as_dir=.
5952     for ac_exec_ext in '' $ac_executable_extensions; do
5953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956     break 2
5957   fi
5958 done
5959   done
5960 IFS=$as_save_IFS
5961 
5962   ;;
5963 esac
5964 fi
5965 COMM=$ac_cv_path_COMM
5966 if test -n "$COMM"; then
5967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5968 $as_echo "$COMM" >&6; }
5969 else
5970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5972 fi
5973 
5974 
5975           if test "x$COMM" = x; then
5976             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5977           fi
5978         else
5979           # Otherwise we believe it is a complete path. Use it as it is.
5980           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5981 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5982           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5983 $as_echo_n "checking for COMM... " >&6; }
5984           if test ! -x "$tool_specified"; then
5985             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5986 $as_echo "not found" >&6; }
5987             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5988           fi
5989           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5990 $as_echo "$tool_specified" >&6; }
5991         fi
5992       fi
5993     fi
5994 
5995   fi
5996 
5997 
5998 
5999   if test "x$COMM" = x; then
6000     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6001   fi
6002 
6003 
6004 
6005 
6006 
6007   # Publish this variable in the help.
6008 
6009 
6010   if [ -z "${CP+x}" ]; then
6011     # The variable is not set by user, try to locate tool using the code snippet
6012     for ac_prog in cp
6013 do
6014   # Extract the first word of "$ac_prog", so it can be a program name with args.
6015 set dummy $ac_prog; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_path_CP+:} false; then :
6019   $as_echo_n "(cached) " >&6
6020 else
6021   case $CP in
6022   [\\/]* | ?:[\\/]*)
6023   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6024   ;;
6025   *)
6026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029   IFS=$as_save_IFS
6030   test -z "$as_dir" && as_dir=.
6031     for ac_exec_ext in '' $ac_executable_extensions; do
6032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035     break 2
6036   fi
6037 done
6038   done
6039 IFS=$as_save_IFS
6040 
6041   ;;
6042 esac
6043 fi
6044 CP=$ac_cv_path_CP
6045 if test -n "$CP"; then
6046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6047 $as_echo "$CP" >&6; }
6048 else
6049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 $as_echo "no" >&6; }
6051 fi
6052 
6053 
6054   test -n "$CP" && break
6055 done
6056 
6057   else
6058     # The variable is set, but is it from the command line or the environment?
6059 
6060     # Try to remove the string !CP! from our list.
6061     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6062     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6063       # If it failed, the variable was not from the command line. Ignore it,
6064       # but warn the user (except for BASH, which is always set by the calling BASH).
6065       if test "xCP" != xBASH; then
6066         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6067 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6068       fi
6069       # Try to locate tool using the code snippet
6070       for ac_prog in cp
6071 do
6072   # Extract the first word of "$ac_prog", so it can be a program name with args.
6073 set dummy $ac_prog; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if ${ac_cv_path_CP+:} false; then :
6077   $as_echo_n "(cached) " >&6
6078 else
6079   case $CP in
6080   [\\/]* | ?:[\\/]*)
6081   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6082   ;;
6083   *)
6084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087   IFS=$as_save_IFS
6088   test -z "$as_dir" && as_dir=.
6089     for ac_exec_ext in '' $ac_executable_extensions; do
6090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093     break 2
6094   fi
6095 done
6096   done
6097 IFS=$as_save_IFS
6098 
6099   ;;
6100 esac
6101 fi
6102 CP=$ac_cv_path_CP
6103 if test -n "$CP"; then
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6105 $as_echo "$CP" >&6; }
6106 else
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6109 fi
6110 
6111 
6112   test -n "$CP" && break
6113 done
6114 
6115     else
6116       # If it succeeded, then it was overridden by the user. We will use it
6117       # for the tool.
6118 
6119       # First remove it from the list of overridden variables, so we can test
6120       # for unknown variables in the end.
6121       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6122 
6123       # Check if we try to supply an empty value
6124       if test "x$CP" = x; then
6125         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6126 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6128 $as_echo_n "checking for CP... " >&6; }
6129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6130 $as_echo "disabled" >&6; }
6131       else
6132         # Check if the provided tool contains a complete path.
6133         tool_specified="$CP"
6134         tool_basename="${tool_specified##*/}"
6135         if test "x$tool_basename" = "x$tool_specified"; then
6136           # A command without a complete path is provided, search $PATH.
6137           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6138 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6139           # Extract the first word of "$tool_basename", so it can be a program name with args.
6140 set dummy $tool_basename; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if ${ac_cv_path_CP+:} false; then :
6144   $as_echo_n "(cached) " >&6
6145 else
6146   case $CP in
6147   [\\/]* | ?:[\\/]*)
6148   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6149   ;;
6150   *)
6151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156     for ac_exec_ext in '' $ac_executable_extensions; do
6157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6158     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163   done
6164 IFS=$as_save_IFS
6165 
6166   ;;
6167 esac
6168 fi
6169 CP=$ac_cv_path_CP
6170 if test -n "$CP"; then
6171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6172 $as_echo "$CP" >&6; }
6173 else
6174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177 
6178 
6179           if test "x$CP" = x; then
6180             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6181           fi
6182         else
6183           # Otherwise we believe it is a complete path. Use it as it is.
6184           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6185 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6186           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6187 $as_echo_n "checking for CP... " >&6; }
6188           if test ! -x "$tool_specified"; then
6189             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6190 $as_echo "not found" >&6; }
6191             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6192           fi
6193           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6194 $as_echo "$tool_specified" >&6; }
6195         fi
6196       fi
6197     fi
6198 
6199   fi
6200 
6201 
6202 
6203   if test "x$CP" = x; then
6204     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6205   fi
6206 
6207 
6208 
6209 
6210 
6211   # Publish this variable in the help.
6212 
6213 
6214   if [ -z "${CUT+x}" ]; then
6215     # The variable is not set by user, try to locate tool using the code snippet
6216     for ac_prog in cut
6217 do
6218   # Extract the first word of "$ac_prog", so it can be a program name with args.
6219 set dummy $ac_prog; ac_word=$2
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221 $as_echo_n "checking for $ac_word... " >&6; }
6222 if ${ac_cv_path_CUT+:} false; then :
6223   $as_echo_n "(cached) " >&6
6224 else
6225   case $CUT in
6226   [\\/]* | ?:[\\/]*)
6227   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6228   ;;
6229   *)
6230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233   IFS=$as_save_IFS
6234   test -z "$as_dir" && as_dir=.
6235     for ac_exec_ext in '' $ac_executable_extensions; do
6236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6237     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239     break 2
6240   fi
6241 done
6242   done
6243 IFS=$as_save_IFS
6244 
6245   ;;
6246 esac
6247 fi
6248 CUT=$ac_cv_path_CUT
6249 if test -n "$CUT"; then
6250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6251 $as_echo "$CUT" >&6; }
6252 else
6253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256 
6257 
6258   test -n "$CUT" && break
6259 done
6260 
6261   else
6262     # The variable is set, but is it from the command line or the environment?
6263 
6264     # Try to remove the string !CUT! from our list.
6265     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6266     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6267       # If it failed, the variable was not from the command line. Ignore it,
6268       # but warn the user (except for BASH, which is always set by the calling BASH).
6269       if test "xCUT" != xBASH; then
6270         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6271 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6272       fi
6273       # Try to locate tool using the code snippet
6274       for ac_prog in cut
6275 do
6276   # Extract the first word of "$ac_prog", so it can be a program name with args.
6277 set dummy $ac_prog; ac_word=$2
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if ${ac_cv_path_CUT+:} false; then :
6281   $as_echo_n "(cached) " >&6
6282 else
6283   case $CUT in
6284   [\\/]* | ?:[\\/]*)
6285   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6286   ;;
6287   *)
6288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291   IFS=$as_save_IFS
6292   test -z "$as_dir" && as_dir=.
6293     for ac_exec_ext in '' $ac_executable_extensions; do
6294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297     break 2
6298   fi
6299 done
6300   done
6301 IFS=$as_save_IFS
6302 
6303   ;;
6304 esac
6305 fi
6306 CUT=$ac_cv_path_CUT
6307 if test -n "$CUT"; then
6308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6309 $as_echo "$CUT" >&6; }
6310 else
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6313 fi
6314 
6315 
6316   test -n "$CUT" && break
6317 done
6318 
6319     else
6320       # If it succeeded, then it was overridden by the user. We will use it
6321       # for the tool.
6322 
6323       # First remove it from the list of overridden variables, so we can test
6324       # for unknown variables in the end.
6325       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6326 
6327       # Check if we try to supply an empty value
6328       if test "x$CUT" = x; then
6329         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6330 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6331         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6332 $as_echo_n "checking for CUT... " >&6; }
6333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6334 $as_echo "disabled" >&6; }
6335       else
6336         # Check if the provided tool contains a complete path.
6337         tool_specified="$CUT"
6338         tool_basename="${tool_specified##*/}"
6339         if test "x$tool_basename" = "x$tool_specified"; then
6340           # A command without a complete path is provided, search $PATH.
6341           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6342 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6343           # Extract the first word of "$tool_basename", so it can be a program name with args.
6344 set dummy $tool_basename; ac_word=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if ${ac_cv_path_CUT+:} false; then :
6348   $as_echo_n "(cached) " >&6
6349 else
6350   case $CUT in
6351   [\\/]* | ?:[\\/]*)
6352   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6353   ;;
6354   *)
6355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358   IFS=$as_save_IFS
6359   test -z "$as_dir" && as_dir=.
6360     for ac_exec_ext in '' $ac_executable_extensions; do
6361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364     break 2
6365   fi
6366 done
6367   done
6368 IFS=$as_save_IFS
6369 
6370   ;;
6371 esac
6372 fi
6373 CUT=$ac_cv_path_CUT
6374 if test -n "$CUT"; then
6375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6376 $as_echo "$CUT" >&6; }
6377 else
6378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381 
6382 
6383           if test "x$CUT" = x; then
6384             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6385           fi
6386         else
6387           # Otherwise we believe it is a complete path. Use it as it is.
6388           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6389 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6390           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6391 $as_echo_n "checking for CUT... " >&6; }
6392           if test ! -x "$tool_specified"; then
6393             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6394 $as_echo "not found" >&6; }
6395             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6396           fi
6397           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6398 $as_echo "$tool_specified" >&6; }
6399         fi
6400       fi
6401     fi
6402 
6403   fi
6404 
6405 
6406 
6407   if test "x$CUT" = x; then
6408     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6409   fi
6410 
6411 
6412 
6413 
6414 
6415   # Publish this variable in the help.
6416 
6417 
6418   if [ -z "${DATE+x}" ]; then
6419     # The variable is not set by user, try to locate tool using the code snippet
6420     for ac_prog in date
6421 do
6422   # Extract the first word of "$ac_prog", so it can be a program name with args.
6423 set dummy $ac_prog; ac_word=$2
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425 $as_echo_n "checking for $ac_word... " >&6; }
6426 if ${ac_cv_path_DATE+:} false; then :
6427   $as_echo_n "(cached) " >&6
6428 else
6429   case $DATE in
6430   [\\/]* | ?:[\\/]*)
6431   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6432   ;;
6433   *)
6434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437   IFS=$as_save_IFS
6438   test -z "$as_dir" && as_dir=.
6439     for ac_exec_ext in '' $ac_executable_extensions; do
6440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443     break 2
6444   fi
6445 done
6446   done
6447 IFS=$as_save_IFS
6448 
6449   ;;
6450 esac
6451 fi
6452 DATE=$ac_cv_path_DATE
6453 if test -n "$DATE"; then
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6455 $as_echo "$DATE" >&6; }
6456 else
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6459 fi
6460 
6461 
6462   test -n "$DATE" && break
6463 done
6464 
6465   else
6466     # The variable is set, but is it from the command line or the environment?
6467 
6468     # Try to remove the string !DATE! from our list.
6469     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6470     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6471       # If it failed, the variable was not from the command line. Ignore it,
6472       # but warn the user (except for BASH, which is always set by the calling BASH).
6473       if test "xDATE" != xBASH; then
6474         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6475 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6476       fi
6477       # Try to locate tool using the code snippet
6478       for ac_prog in date
6479 do
6480   # Extract the first word of "$ac_prog", so it can be a program name with args.
6481 set dummy $ac_prog; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_path_DATE+:} false; then :
6485   $as_echo_n "(cached) " >&6
6486 else
6487   case $DATE in
6488   [\\/]* | ?:[\\/]*)
6489   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6490   ;;
6491   *)
6492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495   IFS=$as_save_IFS
6496   test -z "$as_dir" && as_dir=.
6497     for ac_exec_ext in '' $ac_executable_extensions; do
6498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501     break 2
6502   fi
6503 done
6504   done
6505 IFS=$as_save_IFS
6506 
6507   ;;
6508 esac
6509 fi
6510 DATE=$ac_cv_path_DATE
6511 if test -n "$DATE"; then
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6513 $as_echo "$DATE" >&6; }
6514 else
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518 
6519 
6520   test -n "$DATE" && break
6521 done
6522 
6523     else
6524       # If it succeeded, then it was overridden by the user. We will use it
6525       # for the tool.
6526 
6527       # First remove it from the list of overridden variables, so we can test
6528       # for unknown variables in the end.
6529       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6530 
6531       # Check if we try to supply an empty value
6532       if test "x$DATE" = x; then
6533         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6534 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6535         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6536 $as_echo_n "checking for DATE... " >&6; }
6537         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6538 $as_echo "disabled" >&6; }
6539       else
6540         # Check if the provided tool contains a complete path.
6541         tool_specified="$DATE"
6542         tool_basename="${tool_specified##*/}"
6543         if test "x$tool_basename" = "x$tool_specified"; then
6544           # A command without a complete path is provided, search $PATH.
6545           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6546 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6547           # Extract the first word of "$tool_basename", so it can be a program name with args.
6548 set dummy $tool_basename; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if ${ac_cv_path_DATE+:} false; then :
6552   $as_echo_n "(cached) " >&6
6553 else
6554   case $DATE in
6555   [\\/]* | ?:[\\/]*)
6556   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6557   ;;
6558   *)
6559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562   IFS=$as_save_IFS
6563   test -z "$as_dir" && as_dir=.
6564     for ac_exec_ext in '' $ac_executable_extensions; do
6565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568     break 2
6569   fi
6570 done
6571   done
6572 IFS=$as_save_IFS
6573 
6574   ;;
6575 esac
6576 fi
6577 DATE=$ac_cv_path_DATE
6578 if test -n "$DATE"; then
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6580 $as_echo "$DATE" >&6; }
6581 else
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585 
6586 
6587           if test "x$DATE" = x; then
6588             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6589           fi
6590         else
6591           # Otherwise we believe it is a complete path. Use it as it is.
6592           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6593 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6594           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6595 $as_echo_n "checking for DATE... " >&6; }
6596           if test ! -x "$tool_specified"; then
6597             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6598 $as_echo "not found" >&6; }
6599             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6600           fi
6601           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6602 $as_echo "$tool_specified" >&6; }
6603         fi
6604       fi
6605     fi
6606 
6607   fi
6608 
6609 
6610 
6611   if test "x$DATE" = x; then
6612     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6613   fi
6614 
6615 
6616 
6617 
6618 
6619   # Publish this variable in the help.
6620 
6621 
6622   if [ -z "${DIFF+x}" ]; then
6623     # The variable is not set by user, try to locate tool using the code snippet
6624     for ac_prog in gdiff diff
6625 do
6626   # Extract the first word of "$ac_prog", so it can be a program name with args.
6627 set dummy $ac_prog; ac_word=$2
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if ${ac_cv_path_DIFF+:} false; then :
6631   $as_echo_n "(cached) " >&6
6632 else
6633   case $DIFF in
6634   [\\/]* | ?:[\\/]*)
6635   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6636   ;;
6637   *)
6638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641   IFS=$as_save_IFS
6642   test -z "$as_dir" && as_dir=.
6643     for ac_exec_ext in '' $ac_executable_extensions; do
6644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6645     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647     break 2
6648   fi
6649 done
6650   done
6651 IFS=$as_save_IFS
6652 
6653   ;;
6654 esac
6655 fi
6656 DIFF=$ac_cv_path_DIFF
6657 if test -n "$DIFF"; then
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6659 $as_echo "$DIFF" >&6; }
6660 else
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6663 fi
6664 
6665 
6666   test -n "$DIFF" && break
6667 done
6668 
6669   else
6670     # The variable is set, but is it from the command line or the environment?
6671 
6672     # Try to remove the string !DIFF! from our list.
6673     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6674     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6675       # If it failed, the variable was not from the command line. Ignore it,
6676       # but warn the user (except for BASH, which is always set by the calling BASH).
6677       if test "xDIFF" != xBASH; then
6678         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6679 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6680       fi
6681       # Try to locate tool using the code snippet
6682       for ac_prog in gdiff diff
6683 do
6684   # Extract the first word of "$ac_prog", so it can be a program name with args.
6685 set dummy $ac_prog; ac_word=$2
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687 $as_echo_n "checking for $ac_word... " >&6; }
6688 if ${ac_cv_path_DIFF+:} false; then :
6689   $as_echo_n "(cached) " >&6
6690 else
6691   case $DIFF in
6692   [\\/]* | ?:[\\/]*)
6693   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6694   ;;
6695   *)
6696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699   IFS=$as_save_IFS
6700   test -z "$as_dir" && as_dir=.
6701     for ac_exec_ext in '' $ac_executable_extensions; do
6702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705     break 2
6706   fi
6707 done
6708   done
6709 IFS=$as_save_IFS
6710 
6711   ;;
6712 esac
6713 fi
6714 DIFF=$ac_cv_path_DIFF
6715 if test -n "$DIFF"; then
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6717 $as_echo "$DIFF" >&6; }
6718 else
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6721 fi
6722 
6723 
6724   test -n "$DIFF" && break
6725 done
6726 
6727     else
6728       # If it succeeded, then it was overridden by the user. We will use it
6729       # for the tool.
6730 
6731       # First remove it from the list of overridden variables, so we can test
6732       # for unknown variables in the end.
6733       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6734 
6735       # Check if we try to supply an empty value
6736       if test "x$DIFF" = x; then
6737         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
6738 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
6739         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6740 $as_echo_n "checking for DIFF... " >&6; }
6741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6742 $as_echo "disabled" >&6; }
6743       else
6744         # Check if the provided tool contains a complete path.
6745         tool_specified="$DIFF"
6746         tool_basename="${tool_specified##*/}"
6747         if test "x$tool_basename" = "x$tool_specified"; then
6748           # A command without a complete path is provided, search $PATH.
6749           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6750 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6751           # Extract the first word of "$tool_basename", so it can be a program name with args.
6752 set dummy $tool_basename; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_path_DIFF+:} false; then :
6756   $as_echo_n "(cached) " >&6
6757 else
6758   case $DIFF in
6759   [\\/]* | ?:[\\/]*)
6760   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6761   ;;
6762   *)
6763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766   IFS=$as_save_IFS
6767   test -z "$as_dir" && as_dir=.
6768     for ac_exec_ext in '' $ac_executable_extensions; do
6769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6770     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772     break 2
6773   fi
6774 done
6775   done
6776 IFS=$as_save_IFS
6777 
6778   ;;
6779 esac
6780 fi
6781 DIFF=$ac_cv_path_DIFF
6782 if test -n "$DIFF"; then
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6784 $as_echo "$DIFF" >&6; }
6785 else
6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789 
6790 
6791           if test "x$DIFF" = x; then
6792             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6793           fi
6794         else
6795           # Otherwise we believe it is a complete path. Use it as it is.
6796           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6797 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6798           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6799 $as_echo_n "checking for DIFF... " >&6; }
6800           if test ! -x "$tool_specified"; then
6801             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6802 $as_echo "not found" >&6; }
6803             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6804           fi
6805           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6806 $as_echo "$tool_specified" >&6; }
6807         fi
6808       fi
6809     fi
6810 
6811   fi
6812 
6813 
6814 
6815   if test "x$DIFF" = x; then
6816     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6817   fi
6818 
6819 
6820 
6821 
6822 
6823   # Publish this variable in the help.
6824 
6825 
6826   if [ -z "${DIRNAME+x}" ]; then
6827     # The variable is not set by user, try to locate tool using the code snippet
6828     for ac_prog in dirname
6829 do
6830   # Extract the first word of "$ac_prog", so it can be a program name with args.
6831 set dummy $ac_prog; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if ${ac_cv_path_DIRNAME+:} false; then :
6835   $as_echo_n "(cached) " >&6
6836 else
6837   case $DIRNAME in
6838   [\\/]* | ?:[\\/]*)
6839   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6840   ;;
6841   *)
6842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845   IFS=$as_save_IFS
6846   test -z "$as_dir" && as_dir=.
6847     for ac_exec_ext in '' $ac_executable_extensions; do
6848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851     break 2
6852   fi
6853 done
6854   done
6855 IFS=$as_save_IFS
6856 
6857   ;;
6858 esac
6859 fi
6860 DIRNAME=$ac_cv_path_DIRNAME
6861 if test -n "$DIRNAME"; then
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6863 $as_echo "$DIRNAME" >&6; }
6864 else
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868 
6869 
6870   test -n "$DIRNAME" && break
6871 done
6872 
6873   else
6874     # The variable is set, but is it from the command line or the environment?
6875 
6876     # Try to remove the string !DIRNAME! from our list.
6877     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6878     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6879       # If it failed, the variable was not from the command line. Ignore it,
6880       # but warn the user (except for BASH, which is always set by the calling BASH).
6881       if test "xDIRNAME" != xBASH; then
6882         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6883 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6884       fi
6885       # Try to locate tool using the code snippet
6886       for ac_prog in dirname
6887 do
6888   # Extract the first word of "$ac_prog", so it can be a program name with args.
6889 set dummy $ac_prog; ac_word=$2
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891 $as_echo_n "checking for $ac_word... " >&6; }
6892 if ${ac_cv_path_DIRNAME+:} false; then :
6893   $as_echo_n "(cached) " >&6
6894 else
6895   case $DIRNAME in
6896   [\\/]* | ?:[\\/]*)
6897   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6898   ;;
6899   *)
6900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903   IFS=$as_save_IFS
6904   test -z "$as_dir" && as_dir=.
6905     for ac_exec_ext in '' $ac_executable_extensions; do
6906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909     break 2
6910   fi
6911 done
6912   done
6913 IFS=$as_save_IFS
6914 
6915   ;;
6916 esac
6917 fi
6918 DIRNAME=$ac_cv_path_DIRNAME
6919 if test -n "$DIRNAME"; then
6920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6921 $as_echo "$DIRNAME" >&6; }
6922 else
6923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926 
6927 
6928   test -n "$DIRNAME" && break
6929 done
6930 
6931     else
6932       # If it succeeded, then it was overridden by the user. We will use it
6933       # for the tool.
6934 
6935       # First remove it from the list of overridden variables, so we can test
6936       # for unknown variables in the end.
6937       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6938 
6939       # Check if we try to supply an empty value
6940       if test "x$DIRNAME" = x; then
6941         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
6942 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
6943         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6944 $as_echo_n "checking for DIRNAME... " >&6; }
6945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6946 $as_echo "disabled" >&6; }
6947       else
6948         # Check if the provided tool contains a complete path.
6949         tool_specified="$DIRNAME"
6950         tool_basename="${tool_specified##*/}"
6951         if test "x$tool_basename" = "x$tool_specified"; then
6952           # A command without a complete path is provided, search $PATH.
6953           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6954 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6955           # Extract the first word of "$tool_basename", so it can be a program name with args.
6956 set dummy $tool_basename; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_path_DIRNAME+:} false; then :
6960   $as_echo_n "(cached) " >&6
6961 else
6962   case $DIRNAME in
6963   [\\/]* | ?:[\\/]*)
6964   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6965   ;;
6966   *)
6967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6969 do
6970   IFS=$as_save_IFS
6971   test -z "$as_dir" && as_dir=.
6972     for ac_exec_ext in '' $ac_executable_extensions; do
6973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6974     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976     break 2
6977   fi
6978 done
6979   done
6980 IFS=$as_save_IFS
6981 
6982   ;;
6983 esac
6984 fi
6985 DIRNAME=$ac_cv_path_DIRNAME
6986 if test -n "$DIRNAME"; then
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6988 $as_echo "$DIRNAME" >&6; }
6989 else
6990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6992 fi
6993 
6994 
6995           if test "x$DIRNAME" = x; then
6996             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6997           fi
6998         else
6999           # Otherwise we believe it is a complete path. Use it as it is.
7000           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7001 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7002           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7003 $as_echo_n "checking for DIRNAME... " >&6; }
7004           if test ! -x "$tool_specified"; then
7005             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7006 $as_echo "not found" >&6; }
7007             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7008           fi
7009           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7010 $as_echo "$tool_specified" >&6; }
7011         fi
7012       fi
7013     fi
7014 
7015   fi
7016 
7017 
7018 
7019   if test "x$DIRNAME" = x; then
7020     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7021   fi
7022 
7023 
7024 
7025 
7026 
7027   # Publish this variable in the help.
7028 
7029 
7030   if [ -z "${ECHO+x}" ]; then
7031     # The variable is not set by user, try to locate tool using the code snippet
7032     for ac_prog in echo
7033 do
7034   # Extract the first word of "$ac_prog", so it can be a program name with args.
7035 set dummy $ac_prog; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if ${ac_cv_path_ECHO+:} false; then :
7039   $as_echo_n "(cached) " >&6
7040 else
7041   case $ECHO in
7042   [\\/]* | ?:[\\/]*)
7043   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7044   ;;
7045   *)
7046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051     for ac_exec_ext in '' $ac_executable_extensions; do
7052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058   done
7059 IFS=$as_save_IFS
7060 
7061   ;;
7062 esac
7063 fi
7064 ECHO=$ac_cv_path_ECHO
7065 if test -n "$ECHO"; then
7066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7067 $as_echo "$ECHO" >&6; }
7068 else
7069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7071 fi
7072 
7073 
7074   test -n "$ECHO" && break
7075 done
7076 
7077   else
7078     # The variable is set, but is it from the command line or the environment?
7079 
7080     # Try to remove the string !ECHO! from our list.
7081     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7082     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7083       # If it failed, the variable was not from the command line. Ignore it,
7084       # but warn the user (except for BASH, which is always set by the calling BASH).
7085       if test "xECHO" != xBASH; then
7086         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7087 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7088       fi
7089       # Try to locate tool using the code snippet
7090       for ac_prog in echo
7091 do
7092   # Extract the first word of "$ac_prog", so it can be a program name with args.
7093 set dummy $ac_prog; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if ${ac_cv_path_ECHO+:} false; then :
7097   $as_echo_n "(cached) " >&6
7098 else
7099   case $ECHO in
7100   [\\/]* | ?:[\\/]*)
7101   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7102   ;;
7103   *)
7104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109     for ac_exec_ext in '' $ac_executable_extensions; do
7110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7111     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116   done
7117 IFS=$as_save_IFS
7118 
7119   ;;
7120 esac
7121 fi
7122 ECHO=$ac_cv_path_ECHO
7123 if test -n "$ECHO"; then
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7125 $as_echo "$ECHO" >&6; }
7126 else
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130 
7131 
7132   test -n "$ECHO" && break
7133 done
7134 
7135     else
7136       # If it succeeded, then it was overridden by the user. We will use it
7137       # for the tool.
7138 
7139       # First remove it from the list of overridden variables, so we can test
7140       # for unknown variables in the end.
7141       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7142 
7143       # Check if we try to supply an empty value
7144       if test "x$ECHO" = x; then
7145         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7146 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7147         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7148 $as_echo_n "checking for ECHO... " >&6; }
7149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7150 $as_echo "disabled" >&6; }
7151       else
7152         # Check if the provided tool contains a complete path.
7153         tool_specified="$ECHO"
7154         tool_basename="${tool_specified##*/}"
7155         if test "x$tool_basename" = "x$tool_specified"; then
7156           # A command without a complete path is provided, search $PATH.
7157           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7158 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7159           # Extract the first word of "$tool_basename", so it can be a program name with args.
7160 set dummy $tool_basename; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if ${ac_cv_path_ECHO+:} false; then :
7164   $as_echo_n "(cached) " >&6
7165 else
7166   case $ECHO in
7167   [\\/]* | ?:[\\/]*)
7168   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7169   ;;
7170   *)
7171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174   IFS=$as_save_IFS
7175   test -z "$as_dir" && as_dir=.
7176     for ac_exec_ext in '' $ac_executable_extensions; do
7177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180     break 2
7181   fi
7182 done
7183   done
7184 IFS=$as_save_IFS
7185 
7186   ;;
7187 esac
7188 fi
7189 ECHO=$ac_cv_path_ECHO
7190 if test -n "$ECHO"; then
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7192 $as_echo "$ECHO" >&6; }
7193 else
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197 
7198 
7199           if test "x$ECHO" = x; then
7200             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7201           fi
7202         else
7203           # Otherwise we believe it is a complete path. Use it as it is.
7204           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7205 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7206           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7207 $as_echo_n "checking for ECHO... " >&6; }
7208           if test ! -x "$tool_specified"; then
7209             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7210 $as_echo "not found" >&6; }
7211             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7212           fi
7213           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7214 $as_echo "$tool_specified" >&6; }
7215         fi
7216       fi
7217     fi
7218 
7219   fi
7220 
7221 
7222 
7223   if test "x$ECHO" = x; then
7224     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7225   fi
7226 
7227 
7228 
7229 
7230 
7231   # Publish this variable in the help.
7232 
7233 
7234   if [ -z "${EXPR+x}" ]; then
7235     # The variable is not set by user, try to locate tool using the code snippet
7236     for ac_prog in expr
7237 do
7238   # Extract the first word of "$ac_prog", so it can be a program name with args.
7239 set dummy $ac_prog; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if ${ac_cv_path_EXPR+:} false; then :
7243   $as_echo_n "(cached) " >&6
7244 else
7245   case $EXPR in
7246   [\\/]* | ?:[\\/]*)
7247   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7248   ;;
7249   *)
7250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255     for ac_exec_ext in '' $ac_executable_extensions; do
7256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7257     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262   done
7263 IFS=$as_save_IFS
7264 
7265   ;;
7266 esac
7267 fi
7268 EXPR=$ac_cv_path_EXPR
7269 if test -n "$EXPR"; then
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7271 $as_echo "$EXPR" >&6; }
7272 else
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7275 fi
7276 
7277 
7278   test -n "$EXPR" && break
7279 done
7280 
7281   else
7282     # The variable is set, but is it from the command line or the environment?
7283 
7284     # Try to remove the string !EXPR! from our list.
7285     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7286     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7287       # If it failed, the variable was not from the command line. Ignore it,
7288       # but warn the user (except for BASH, which is always set by the calling BASH).
7289       if test "xEXPR" != xBASH; then
7290         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7291 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7292       fi
7293       # Try to locate tool using the code snippet
7294       for ac_prog in expr
7295 do
7296   # Extract the first word of "$ac_prog", so it can be a program name with args.
7297 set dummy $ac_prog; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if ${ac_cv_path_EXPR+:} false; then :
7301   $as_echo_n "(cached) " >&6
7302 else
7303   case $EXPR in
7304   [\\/]* | ?:[\\/]*)
7305   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7306   ;;
7307   *)
7308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313     for ac_exec_ext in '' $ac_executable_extensions; do
7314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320   done
7321 IFS=$as_save_IFS
7322 
7323   ;;
7324 esac
7325 fi
7326 EXPR=$ac_cv_path_EXPR
7327 if test -n "$EXPR"; then
7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7329 $as_echo "$EXPR" >&6; }
7330 else
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 fi
7334 
7335 
7336   test -n "$EXPR" && break
7337 done
7338 
7339     else
7340       # If it succeeded, then it was overridden by the user. We will use it
7341       # for the tool.
7342 
7343       # First remove it from the list of overridden variables, so we can test
7344       # for unknown variables in the end.
7345       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7346 
7347       # Check if we try to supply an empty value
7348       if test "x$EXPR" = x; then
7349         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7350 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7351         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7352 $as_echo_n "checking for EXPR... " >&6; }
7353         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7354 $as_echo "disabled" >&6; }
7355       else
7356         # Check if the provided tool contains a complete path.
7357         tool_specified="$EXPR"
7358         tool_basename="${tool_specified##*/}"
7359         if test "x$tool_basename" = "x$tool_specified"; then
7360           # A command without a complete path is provided, search $PATH.
7361           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7362 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7363           # Extract the first word of "$tool_basename", so it can be a program name with args.
7364 set dummy $tool_basename; ac_word=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if ${ac_cv_path_EXPR+:} false; then :
7368   $as_echo_n "(cached) " >&6
7369 else
7370   case $EXPR in
7371   [\\/]* | ?:[\\/]*)
7372   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7373   ;;
7374   *)
7375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378   IFS=$as_save_IFS
7379   test -z "$as_dir" && as_dir=.
7380     for ac_exec_ext in '' $ac_executable_extensions; do
7381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7382     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384     break 2
7385   fi
7386 done
7387   done
7388 IFS=$as_save_IFS
7389 
7390   ;;
7391 esac
7392 fi
7393 EXPR=$ac_cv_path_EXPR
7394 if test -n "$EXPR"; then
7395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7396 $as_echo "$EXPR" >&6; }
7397 else
7398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7400 fi
7401 
7402 
7403           if test "x$EXPR" = x; then
7404             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7405           fi
7406         else
7407           # Otherwise we believe it is a complete path. Use it as it is.
7408           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7409 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7410           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7411 $as_echo_n "checking for EXPR... " >&6; }
7412           if test ! -x "$tool_specified"; then
7413             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7414 $as_echo "not found" >&6; }
7415             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7416           fi
7417           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7418 $as_echo "$tool_specified" >&6; }
7419         fi
7420       fi
7421     fi
7422 
7423   fi
7424 
7425 
7426 
7427   if test "x$EXPR" = x; then
7428     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7429   fi
7430 
7431 
7432 
7433 
7434 
7435   # Publish this variable in the help.
7436 
7437 
7438   if [ -z "${FILE+x}" ]; then
7439     # The variable is not set by user, try to locate tool using the code snippet
7440     for ac_prog in file
7441 do
7442   # Extract the first word of "$ac_prog", so it can be a program name with args.
7443 set dummy $ac_prog; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_path_FILE+:} false; then :
7447   $as_echo_n "(cached) " >&6
7448 else
7449   case $FILE in
7450   [\\/]* | ?:[\\/]*)
7451   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7452   ;;
7453   *)
7454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457   IFS=$as_save_IFS
7458   test -z "$as_dir" && as_dir=.
7459     for ac_exec_ext in '' $ac_executable_extensions; do
7460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463     break 2
7464   fi
7465 done
7466   done
7467 IFS=$as_save_IFS
7468 
7469   ;;
7470 esac
7471 fi
7472 FILE=$ac_cv_path_FILE
7473 if test -n "$FILE"; then
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7475 $as_echo "$FILE" >&6; }
7476 else
7477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7479 fi
7480 
7481 
7482   test -n "$FILE" && break
7483 done
7484 
7485   else
7486     # The variable is set, but is it from the command line or the environment?
7487 
7488     # Try to remove the string !FILE! from our list.
7489     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7490     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7491       # If it failed, the variable was not from the command line. Ignore it,
7492       # but warn the user (except for BASH, which is always set by the calling BASH).
7493       if test "xFILE" != xBASH; then
7494         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7495 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7496       fi
7497       # Try to locate tool using the code snippet
7498       for ac_prog in file
7499 do
7500   # Extract the first word of "$ac_prog", so it can be a program name with args.
7501 set dummy $ac_prog; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_path_FILE+:} false; then :
7505   $as_echo_n "(cached) " >&6
7506 else
7507   case $FILE in
7508   [\\/]* | ?:[\\/]*)
7509   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7510   ;;
7511   *)
7512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7514 do
7515   IFS=$as_save_IFS
7516   test -z "$as_dir" && as_dir=.
7517     for ac_exec_ext in '' $ac_executable_extensions; do
7518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521     break 2
7522   fi
7523 done
7524   done
7525 IFS=$as_save_IFS
7526 
7527   ;;
7528 esac
7529 fi
7530 FILE=$ac_cv_path_FILE
7531 if test -n "$FILE"; then
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7533 $as_echo "$FILE" >&6; }
7534 else
7535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7537 fi
7538 
7539 
7540   test -n "$FILE" && break
7541 done
7542 
7543     else
7544       # If it succeeded, then it was overridden by the user. We will use it
7545       # for the tool.
7546 
7547       # First remove it from the list of overridden variables, so we can test
7548       # for unknown variables in the end.
7549       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7550 
7551       # Check if we try to supply an empty value
7552       if test "x$FILE" = x; then
7553         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7554 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7555         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7556 $as_echo_n "checking for FILE... " >&6; }
7557         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7558 $as_echo "disabled" >&6; }
7559       else
7560         # Check if the provided tool contains a complete path.
7561         tool_specified="$FILE"
7562         tool_basename="${tool_specified##*/}"
7563         if test "x$tool_basename" = "x$tool_specified"; then
7564           # A command without a complete path is provided, search $PATH.
7565           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7566 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7567           # Extract the first word of "$tool_basename", so it can be a program name with args.
7568 set dummy $tool_basename; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_path_FILE+:} false; then :
7572   $as_echo_n "(cached) " >&6
7573 else
7574   case $FILE in
7575   [\\/]* | ?:[\\/]*)
7576   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7577   ;;
7578   *)
7579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582   IFS=$as_save_IFS
7583   test -z "$as_dir" && as_dir=.
7584     for ac_exec_ext in '' $ac_executable_extensions; do
7585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588     break 2
7589   fi
7590 done
7591   done
7592 IFS=$as_save_IFS
7593 
7594   ;;
7595 esac
7596 fi
7597 FILE=$ac_cv_path_FILE
7598 if test -n "$FILE"; then
7599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7600 $as_echo "$FILE" >&6; }
7601 else
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605 
7606 
7607           if test "x$FILE" = x; then
7608             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7609           fi
7610         else
7611           # Otherwise we believe it is a complete path. Use it as it is.
7612           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7613 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7614           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7615 $as_echo_n "checking for FILE... " >&6; }
7616           if test ! -x "$tool_specified"; then
7617             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7618 $as_echo "not found" >&6; }
7619             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7620           fi
7621           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7622 $as_echo "$tool_specified" >&6; }
7623         fi
7624       fi
7625     fi
7626 
7627   fi
7628 
7629 
7630 
7631   if test "x$FILE" = x; then
7632     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7633   fi
7634 
7635 
7636 
7637 
7638 
7639   # Publish this variable in the help.
7640 
7641 
7642   if [ -z "${FIND+x}" ]; then
7643     # The variable is not set by user, try to locate tool using the code snippet
7644     for ac_prog in find
7645 do
7646   # Extract the first word of "$ac_prog", so it can be a program name with args.
7647 set dummy $ac_prog; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if ${ac_cv_path_FIND+:} false; then :
7651   $as_echo_n "(cached) " >&6
7652 else
7653   case $FIND in
7654   [\\/]* | ?:[\\/]*)
7655   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7656   ;;
7657   *)
7658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661   IFS=$as_save_IFS
7662   test -z "$as_dir" && as_dir=.
7663     for ac_exec_ext in '' $ac_executable_extensions; do
7664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7665     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667     break 2
7668   fi
7669 done
7670   done
7671 IFS=$as_save_IFS
7672 
7673   ;;
7674 esac
7675 fi
7676 FIND=$ac_cv_path_FIND
7677 if test -n "$FIND"; then
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7679 $as_echo "$FIND" >&6; }
7680 else
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7683 fi
7684 
7685 
7686   test -n "$FIND" && break
7687 done
7688 
7689   else
7690     # The variable is set, but is it from the command line or the environment?
7691 
7692     # Try to remove the string !FIND! from our list.
7693     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7694     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7695       # If it failed, the variable was not from the command line. Ignore it,
7696       # but warn the user (except for BASH, which is always set by the calling BASH).
7697       if test "xFIND" != xBASH; then
7698         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7699 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7700       fi
7701       # Try to locate tool using the code snippet
7702       for ac_prog in find
7703 do
7704   # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy $ac_prog; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_path_FIND+:} false; then :
7709   $as_echo_n "(cached) " >&6
7710 else
7711   case $FIND in
7712   [\\/]* | ?:[\\/]*)
7713   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7714   ;;
7715   *)
7716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719   IFS=$as_save_IFS
7720   test -z "$as_dir" && as_dir=.
7721     for ac_exec_ext in '' $ac_executable_extensions; do
7722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725     break 2
7726   fi
7727 done
7728   done
7729 IFS=$as_save_IFS
7730 
7731   ;;
7732 esac
7733 fi
7734 FIND=$ac_cv_path_FIND
7735 if test -n "$FIND"; then
7736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7737 $as_echo "$FIND" >&6; }
7738 else
7739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7741 fi
7742 
7743 
7744   test -n "$FIND" && break
7745 done
7746 
7747     else
7748       # If it succeeded, then it was overridden by the user. We will use it
7749       # for the tool.
7750 
7751       # First remove it from the list of overridden variables, so we can test
7752       # for unknown variables in the end.
7753       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7754 
7755       # Check if we try to supply an empty value
7756       if test "x$FIND" = x; then
7757         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
7758 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
7759         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7760 $as_echo_n "checking for FIND... " >&6; }
7761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7762 $as_echo "disabled" >&6; }
7763       else
7764         # Check if the provided tool contains a complete path.
7765         tool_specified="$FIND"
7766         tool_basename="${tool_specified##*/}"
7767         if test "x$tool_basename" = "x$tool_specified"; then
7768           # A command without a complete path is provided, search $PATH.
7769           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7770 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7771           # Extract the first word of "$tool_basename", so it can be a program name with args.
7772 set dummy $tool_basename; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if ${ac_cv_path_FIND+:} false; then :
7776   $as_echo_n "(cached) " >&6
7777 else
7778   case $FIND in
7779   [\\/]* | ?:[\\/]*)
7780   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7781   ;;
7782   *)
7783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $PATH
7785 do
7786   IFS=$as_save_IFS
7787   test -z "$as_dir" && as_dir=.
7788     for ac_exec_ext in '' $ac_executable_extensions; do
7789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792     break 2
7793   fi
7794 done
7795   done
7796 IFS=$as_save_IFS
7797 
7798   ;;
7799 esac
7800 fi
7801 FIND=$ac_cv_path_FIND
7802 if test -n "$FIND"; then
7803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7804 $as_echo "$FIND" >&6; }
7805 else
7806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808 fi
7809 
7810 
7811           if test "x$FIND" = x; then
7812             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7813           fi
7814         else
7815           # Otherwise we believe it is a complete path. Use it as it is.
7816           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7817 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7818           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7819 $as_echo_n "checking for FIND... " >&6; }
7820           if test ! -x "$tool_specified"; then
7821             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7822 $as_echo "not found" >&6; }
7823             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7824           fi
7825           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7826 $as_echo "$tool_specified" >&6; }
7827         fi
7828       fi
7829     fi
7830 
7831   fi
7832 
7833 
7834 
7835   if test "x$FIND" = x; then
7836     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7837   fi
7838 
7839 
7840 
7841 
7842 
7843   # Publish this variable in the help.
7844 
7845 
7846   if [ -z "${HEAD+x}" ]; then
7847     # The variable is not set by user, try to locate tool using the code snippet
7848     for ac_prog in head
7849 do
7850   # Extract the first word of "$ac_prog", so it can be a program name with args.
7851 set dummy $ac_prog; ac_word=$2
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853 $as_echo_n "checking for $ac_word... " >&6; }
7854 if ${ac_cv_path_HEAD+:} false; then :
7855   $as_echo_n "(cached) " >&6
7856 else
7857   case $HEAD in
7858   [\\/]* | ?:[\\/]*)
7859   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7860   ;;
7861   *)
7862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865   IFS=$as_save_IFS
7866   test -z "$as_dir" && as_dir=.
7867     for ac_exec_ext in '' $ac_executable_extensions; do
7868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871     break 2
7872   fi
7873 done
7874   done
7875 IFS=$as_save_IFS
7876 
7877   ;;
7878 esac
7879 fi
7880 HEAD=$ac_cv_path_HEAD
7881 if test -n "$HEAD"; then
7882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7883 $as_echo "$HEAD" >&6; }
7884 else
7885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7887 fi
7888 
7889 
7890   test -n "$HEAD" && break
7891 done
7892 
7893   else
7894     # The variable is set, but is it from the command line or the environment?
7895 
7896     # Try to remove the string !HEAD! from our list.
7897     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7898     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7899       # If it failed, the variable was not from the command line. Ignore it,
7900       # but warn the user (except for BASH, which is always set by the calling BASH).
7901       if test "xHEAD" != xBASH; then
7902         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7903 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7904       fi
7905       # Try to locate tool using the code snippet
7906       for ac_prog in head
7907 do
7908   # Extract the first word of "$ac_prog", so it can be a program name with args.
7909 set dummy $ac_prog; ac_word=$2
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911 $as_echo_n "checking for $ac_word... " >&6; }
7912 if ${ac_cv_path_HEAD+:} false; then :
7913   $as_echo_n "(cached) " >&6
7914 else
7915   case $HEAD in
7916   [\\/]* | ?:[\\/]*)
7917   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7918   ;;
7919   *)
7920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925     for ac_exec_ext in '' $ac_executable_extensions; do
7926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929     break 2
7930   fi
7931 done
7932   done
7933 IFS=$as_save_IFS
7934 
7935   ;;
7936 esac
7937 fi
7938 HEAD=$ac_cv_path_HEAD
7939 if test -n "$HEAD"; then
7940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7941 $as_echo "$HEAD" >&6; }
7942 else
7943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7945 fi
7946 
7947 
7948   test -n "$HEAD" && break
7949 done
7950 
7951     else
7952       # If it succeeded, then it was overridden by the user. We will use it
7953       # for the tool.
7954 
7955       # First remove it from the list of overridden variables, so we can test
7956       # for unknown variables in the end.
7957       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7958 
7959       # Check if we try to supply an empty value
7960       if test "x$HEAD" = x; then
7961         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
7962 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
7963         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7964 $as_echo_n "checking for HEAD... " >&6; }
7965         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7966 $as_echo "disabled" >&6; }
7967       else
7968         # Check if the provided tool contains a complete path.
7969         tool_specified="$HEAD"
7970         tool_basename="${tool_specified##*/}"
7971         if test "x$tool_basename" = "x$tool_specified"; then
7972           # A command without a complete path is provided, search $PATH.
7973           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7974 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7975           # Extract the first word of "$tool_basename", so it can be a program name with args.
7976 set dummy $tool_basename; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if ${ac_cv_path_HEAD+:} false; then :
7980   $as_echo_n "(cached) " >&6
7981 else
7982   case $HEAD in
7983   [\\/]* | ?:[\\/]*)
7984   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7985   ;;
7986   *)
7987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7989 do
7990   IFS=$as_save_IFS
7991   test -z "$as_dir" && as_dir=.
7992     for ac_exec_ext in '' $ac_executable_extensions; do
7993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996     break 2
7997   fi
7998 done
7999   done
8000 IFS=$as_save_IFS
8001 
8002   ;;
8003 esac
8004 fi
8005 HEAD=$ac_cv_path_HEAD
8006 if test -n "$HEAD"; then
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8008 $as_echo "$HEAD" >&6; }
8009 else
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013 
8014 
8015           if test "x$HEAD" = x; then
8016             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8017           fi
8018         else
8019           # Otherwise we believe it is a complete path. Use it as it is.
8020           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8021 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8022           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8023 $as_echo_n "checking for HEAD... " >&6; }
8024           if test ! -x "$tool_specified"; then
8025             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8026 $as_echo "not found" >&6; }
8027             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8028           fi
8029           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8030 $as_echo "$tool_specified" >&6; }
8031         fi
8032       fi
8033     fi
8034 
8035   fi
8036 
8037 
8038 
8039   if test "x$HEAD" = x; then
8040     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8041   fi
8042 
8043 
8044 
8045 
8046 
8047   # Publish this variable in the help.
8048 
8049 
8050   if [ -z "${LN+x}" ]; then
8051     # The variable is not set by user, try to locate tool using the code snippet
8052     for ac_prog in ln
8053 do
8054   # Extract the first word of "$ac_prog", so it can be a program name with args.
8055 set dummy $ac_prog; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if ${ac_cv_path_LN+:} false; then :
8059   $as_echo_n "(cached) " >&6
8060 else
8061   case $LN in
8062   [\\/]* | ?:[\\/]*)
8063   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8064   ;;
8065   *)
8066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069   IFS=$as_save_IFS
8070   test -z "$as_dir" && as_dir=.
8071     for ac_exec_ext in '' $ac_executable_extensions; do
8072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075     break 2
8076   fi
8077 done
8078   done
8079 IFS=$as_save_IFS
8080 
8081   ;;
8082 esac
8083 fi
8084 LN=$ac_cv_path_LN
8085 if test -n "$LN"; then
8086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8087 $as_echo "$LN" >&6; }
8088 else
8089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8091 fi
8092 
8093 
8094   test -n "$LN" && break
8095 done
8096 
8097   else
8098     # The variable is set, but is it from the command line or the environment?
8099 
8100     # Try to remove the string !LN! from our list.
8101     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8102     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8103       # If it failed, the variable was not from the command line. Ignore it,
8104       # but warn the user (except for BASH, which is always set by the calling BASH).
8105       if test "xLN" != xBASH; then
8106         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8107 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8108       fi
8109       # Try to locate tool using the code snippet
8110       for ac_prog in ln
8111 do
8112   # Extract the first word of "$ac_prog", so it can be a program name with args.
8113 set dummy $ac_prog; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if ${ac_cv_path_LN+:} false; then :
8117   $as_echo_n "(cached) " >&6
8118 else
8119   case $LN in
8120   [\\/]* | ?:[\\/]*)
8121   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8122   ;;
8123   *)
8124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 for as_dir in $PATH
8126 do
8127   IFS=$as_save_IFS
8128   test -z "$as_dir" && as_dir=.
8129     for ac_exec_ext in '' $ac_executable_extensions; do
8130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8131     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133     break 2
8134   fi
8135 done
8136   done
8137 IFS=$as_save_IFS
8138 
8139   ;;
8140 esac
8141 fi
8142 LN=$ac_cv_path_LN
8143 if test -n "$LN"; then
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8145 $as_echo "$LN" >&6; }
8146 else
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8149 fi
8150 
8151 
8152   test -n "$LN" && break
8153 done
8154 
8155     else
8156       # If it succeeded, then it was overridden by the user. We will use it
8157       # for the tool.
8158 
8159       # First remove it from the list of overridden variables, so we can test
8160       # for unknown variables in the end.
8161       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8162 
8163       # Check if we try to supply an empty value
8164       if test "x$LN" = x; then
8165         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8166 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8168 $as_echo_n "checking for LN... " >&6; }
8169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8170 $as_echo "disabled" >&6; }
8171       else
8172         # Check if the provided tool contains a complete path.
8173         tool_specified="$LN"
8174         tool_basename="${tool_specified##*/}"
8175         if test "x$tool_basename" = "x$tool_specified"; then
8176           # A command without a complete path is provided, search $PATH.
8177           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8178 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8179           # Extract the first word of "$tool_basename", so it can be a program name with args.
8180 set dummy $tool_basename; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if ${ac_cv_path_LN+:} false; then :
8184   $as_echo_n "(cached) " >&6
8185 else
8186   case $LN in
8187   [\\/]* | ?:[\\/]*)
8188   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8189   ;;
8190   *)
8191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8193 do
8194   IFS=$as_save_IFS
8195   test -z "$as_dir" && as_dir=.
8196     for ac_exec_ext in '' $ac_executable_extensions; do
8197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8198     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8200     break 2
8201   fi
8202 done
8203   done
8204 IFS=$as_save_IFS
8205 
8206   ;;
8207 esac
8208 fi
8209 LN=$ac_cv_path_LN
8210 if test -n "$LN"; then
8211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8212 $as_echo "$LN" >&6; }
8213 else
8214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8216 fi
8217 
8218 
8219           if test "x$LN" = x; then
8220             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8221           fi
8222         else
8223           # Otherwise we believe it is a complete path. Use it as it is.
8224           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8225 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8226           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8227 $as_echo_n "checking for LN... " >&6; }
8228           if test ! -x "$tool_specified"; then
8229             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8230 $as_echo "not found" >&6; }
8231             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8232           fi
8233           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8234 $as_echo "$tool_specified" >&6; }
8235         fi
8236       fi
8237     fi
8238 
8239   fi
8240 
8241 
8242 
8243   if test "x$LN" = x; then
8244     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8245   fi
8246 
8247 
8248 
8249 
8250 
8251   # Publish this variable in the help.
8252 
8253 
8254   if [ -z "${LS+x}" ]; then
8255     # The variable is not set by user, try to locate tool using the code snippet
8256     for ac_prog in ls
8257 do
8258   # Extract the first word of "$ac_prog", so it can be a program name with args.
8259 set dummy $ac_prog; ac_word=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if ${ac_cv_path_LS+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   case $LS in
8266   [\\/]* | ?:[\\/]*)
8267   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8268   ;;
8269   *)
8270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273   IFS=$as_save_IFS
8274   test -z "$as_dir" && as_dir=.
8275     for ac_exec_ext in '' $ac_executable_extensions; do
8276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8277     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279     break 2
8280   fi
8281 done
8282   done
8283 IFS=$as_save_IFS
8284 
8285   ;;
8286 esac
8287 fi
8288 LS=$ac_cv_path_LS
8289 if test -n "$LS"; then
8290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8291 $as_echo "$LS" >&6; }
8292 else
8293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8295 fi
8296 
8297 
8298   test -n "$LS" && break
8299 done
8300 
8301   else
8302     # The variable is set, but is it from the command line or the environment?
8303 
8304     # Try to remove the string !LS! from our list.
8305     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8306     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8307       # If it failed, the variable was not from the command line. Ignore it,
8308       # but warn the user (except for BASH, which is always set by the calling BASH).
8309       if test "xLS" != xBASH; then
8310         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8311 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8312       fi
8313       # Try to locate tool using the code snippet
8314       for ac_prog in ls
8315 do
8316   # Extract the first word of "$ac_prog", so it can be a program name with args.
8317 set dummy $ac_prog; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if ${ac_cv_path_LS+:} false; then :
8321   $as_echo_n "(cached) " >&6
8322 else
8323   case $LS in
8324   [\\/]* | ?:[\\/]*)
8325   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8326   ;;
8327   *)
8328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 for as_dir in $PATH
8330 do
8331   IFS=$as_save_IFS
8332   test -z "$as_dir" && as_dir=.
8333     for ac_exec_ext in '' $ac_executable_extensions; do
8334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8335     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8337     break 2
8338   fi
8339 done
8340   done
8341 IFS=$as_save_IFS
8342 
8343   ;;
8344 esac
8345 fi
8346 LS=$ac_cv_path_LS
8347 if test -n "$LS"; then
8348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8349 $as_echo "$LS" >&6; }
8350 else
8351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8353 fi
8354 
8355 
8356   test -n "$LS" && break
8357 done
8358 
8359     else
8360       # If it succeeded, then it was overridden by the user. We will use it
8361       # for the tool.
8362 
8363       # First remove it from the list of overridden variables, so we can test
8364       # for unknown variables in the end.
8365       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8366 
8367       # Check if we try to supply an empty value
8368       if test "x$LS" = x; then
8369         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
8370 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
8371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8372 $as_echo_n "checking for LS... " >&6; }
8373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8374 $as_echo "disabled" >&6; }
8375       else
8376         # Check if the provided tool contains a complete path.
8377         tool_specified="$LS"
8378         tool_basename="${tool_specified##*/}"
8379         if test "x$tool_basename" = "x$tool_specified"; then
8380           # A command without a complete path is provided, search $PATH.
8381           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8382 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8383           # Extract the first word of "$tool_basename", so it can be a program name with args.
8384 set dummy $tool_basename; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386 $as_echo_n "checking for $ac_word... " >&6; }
8387 if ${ac_cv_path_LS+:} false; then :
8388   $as_echo_n "(cached) " >&6
8389 else
8390   case $LS in
8391   [\\/]* | ?:[\\/]*)
8392   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8393   ;;
8394   *)
8395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8397 do
8398   IFS=$as_save_IFS
8399   test -z "$as_dir" && as_dir=.
8400     for ac_exec_ext in '' $ac_executable_extensions; do
8401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404     break 2
8405   fi
8406 done
8407   done
8408 IFS=$as_save_IFS
8409 
8410   ;;
8411 esac
8412 fi
8413 LS=$ac_cv_path_LS
8414 if test -n "$LS"; then
8415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8416 $as_echo "$LS" >&6; }
8417 else
8418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 fi
8421 
8422 
8423           if test "x$LS" = x; then
8424             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8425           fi
8426         else
8427           # Otherwise we believe it is a complete path. Use it as it is.
8428           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8429 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8430           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8431 $as_echo_n "checking for LS... " >&6; }
8432           if test ! -x "$tool_specified"; then
8433             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8434 $as_echo "not found" >&6; }
8435             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8436           fi
8437           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8438 $as_echo "$tool_specified" >&6; }
8439         fi
8440       fi
8441     fi
8442 
8443   fi
8444 
8445 
8446 
8447   if test "x$LS" = x; then
8448     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8449   fi
8450 
8451 
8452 
8453 
8454 
8455   # Publish this variable in the help.
8456 
8457 
8458   if [ -z "${MKDIR+x}" ]; then
8459     # The variable is not set by user, try to locate tool using the code snippet
8460     for ac_prog in mkdir
8461 do
8462   # Extract the first word of "$ac_prog", so it can be a program name with args.
8463 set dummy $ac_prog; ac_word=$2
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 $as_echo_n "checking for $ac_word... " >&6; }
8466 if ${ac_cv_path_MKDIR+:} false; then :
8467   $as_echo_n "(cached) " >&6
8468 else
8469   case $MKDIR in
8470   [\\/]* | ?:[\\/]*)
8471   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8472   ;;
8473   *)
8474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8476 do
8477   IFS=$as_save_IFS
8478   test -z "$as_dir" && as_dir=.
8479     for ac_exec_ext in '' $ac_executable_extensions; do
8480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483     break 2
8484   fi
8485 done
8486   done
8487 IFS=$as_save_IFS
8488 
8489   ;;
8490 esac
8491 fi
8492 MKDIR=$ac_cv_path_MKDIR
8493 if test -n "$MKDIR"; then
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8495 $as_echo "$MKDIR" >&6; }
8496 else
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8499 fi
8500 
8501 
8502   test -n "$MKDIR" && break
8503 done
8504 
8505   else
8506     # The variable is set, but is it from the command line or the environment?
8507 
8508     # Try to remove the string !MKDIR! from our list.
8509     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8510     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8511       # If it failed, the variable was not from the command line. Ignore it,
8512       # but warn the user (except for BASH, which is always set by the calling BASH).
8513       if test "xMKDIR" != xBASH; then
8514         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8515 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8516       fi
8517       # Try to locate tool using the code snippet
8518       for ac_prog in mkdir
8519 do
8520   # Extract the first word of "$ac_prog", so it can be a program name with args.
8521 set dummy $ac_prog; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if ${ac_cv_path_MKDIR+:} false; then :
8525   $as_echo_n "(cached) " >&6
8526 else
8527   case $MKDIR in
8528   [\\/]* | ?:[\\/]*)
8529   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8530   ;;
8531   *)
8532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8534 do
8535   IFS=$as_save_IFS
8536   test -z "$as_dir" && as_dir=.
8537     for ac_exec_ext in '' $ac_executable_extensions; do
8538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8539     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8541     break 2
8542   fi
8543 done
8544   done
8545 IFS=$as_save_IFS
8546 
8547   ;;
8548 esac
8549 fi
8550 MKDIR=$ac_cv_path_MKDIR
8551 if test -n "$MKDIR"; then
8552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8553 $as_echo "$MKDIR" >&6; }
8554 else
8555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8557 fi
8558 
8559 
8560   test -n "$MKDIR" && break
8561 done
8562 
8563     else
8564       # If it succeeded, then it was overridden by the user. We will use it
8565       # for the tool.
8566 
8567       # First remove it from the list of overridden variables, so we can test
8568       # for unknown variables in the end.
8569       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8570 
8571       # Check if we try to supply an empty value
8572       if test "x$MKDIR" = x; then
8573         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
8574 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
8575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8576 $as_echo_n "checking for MKDIR... " >&6; }
8577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8578 $as_echo "disabled" >&6; }
8579       else
8580         # Check if the provided tool contains a complete path.
8581         tool_specified="$MKDIR"
8582         tool_basename="${tool_specified##*/}"
8583         if test "x$tool_basename" = "x$tool_specified"; then
8584           # A command without a complete path is provided, search $PATH.
8585           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8586 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8587           # Extract the first word of "$tool_basename", so it can be a program name with args.
8588 set dummy $tool_basename; ac_word=$2
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590 $as_echo_n "checking for $ac_word... " >&6; }
8591 if ${ac_cv_path_MKDIR+:} false; then :
8592   $as_echo_n "(cached) " >&6
8593 else
8594   case $MKDIR in
8595   [\\/]* | ?:[\\/]*)
8596   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8597   ;;
8598   *)
8599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600 for as_dir in $PATH
8601 do
8602   IFS=$as_save_IFS
8603   test -z "$as_dir" && as_dir=.
8604     for ac_exec_ext in '' $ac_executable_extensions; do
8605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8606     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608     break 2
8609   fi
8610 done
8611   done
8612 IFS=$as_save_IFS
8613 
8614   ;;
8615 esac
8616 fi
8617 MKDIR=$ac_cv_path_MKDIR
8618 if test -n "$MKDIR"; then
8619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8620 $as_echo "$MKDIR" >&6; }
8621 else
8622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8624 fi
8625 
8626 
8627           if test "x$MKDIR" = x; then
8628             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8629           fi
8630         else
8631           # Otherwise we believe it is a complete path. Use it as it is.
8632           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8633 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8634           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8635 $as_echo_n "checking for MKDIR... " >&6; }
8636           if test ! -x "$tool_specified"; then
8637             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8638 $as_echo "not found" >&6; }
8639             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8640           fi
8641           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8642 $as_echo "$tool_specified" >&6; }
8643         fi
8644       fi
8645     fi
8646 
8647   fi
8648 
8649 
8650 
8651   if test "x$MKDIR" = x; then
8652     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8653   fi
8654 
8655 
8656 
8657 
8658 
8659   # Publish this variable in the help.
8660 
8661 
8662   if [ -z "${MKTEMP+x}" ]; then
8663     # The variable is not set by user, try to locate tool using the code snippet
8664     for ac_prog in mktemp
8665 do
8666   # Extract the first word of "$ac_prog", so it can be a program name with args.
8667 set dummy $ac_prog; ac_word=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if ${ac_cv_path_MKTEMP+:} false; then :
8671   $as_echo_n "(cached) " >&6
8672 else
8673   case $MKTEMP in
8674   [\\/]* | ?:[\\/]*)
8675   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8676   ;;
8677   *)
8678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in $PATH
8680 do
8681   IFS=$as_save_IFS
8682   test -z "$as_dir" && as_dir=.
8683     for ac_exec_ext in '' $ac_executable_extensions; do
8684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8685     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8687     break 2
8688   fi
8689 done
8690   done
8691 IFS=$as_save_IFS
8692 
8693   ;;
8694 esac
8695 fi
8696 MKTEMP=$ac_cv_path_MKTEMP
8697 if test -n "$MKTEMP"; then
8698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8699 $as_echo "$MKTEMP" >&6; }
8700 else
8701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8703 fi
8704 
8705 
8706   test -n "$MKTEMP" && break
8707 done
8708 
8709   else
8710     # The variable is set, but is it from the command line or the environment?
8711 
8712     # Try to remove the string !MKTEMP! from our list.
8713     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8714     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8715       # If it failed, the variable was not from the command line. Ignore it,
8716       # but warn the user (except for BASH, which is always set by the calling BASH).
8717       if test "xMKTEMP" != xBASH; then
8718         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8719 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8720       fi
8721       # Try to locate tool using the code snippet
8722       for ac_prog in mktemp
8723 do
8724   # Extract the first word of "$ac_prog", so it can be a program name with args.
8725 set dummy $ac_prog; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if ${ac_cv_path_MKTEMP+:} false; then :
8729   $as_echo_n "(cached) " >&6
8730 else
8731   case $MKTEMP in
8732   [\\/]* | ?:[\\/]*)
8733   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8734   ;;
8735   *)
8736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8738 do
8739   IFS=$as_save_IFS
8740   test -z "$as_dir" && as_dir=.
8741     for ac_exec_ext in '' $ac_executable_extensions; do
8742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745     break 2
8746   fi
8747 done
8748   done
8749 IFS=$as_save_IFS
8750 
8751   ;;
8752 esac
8753 fi
8754 MKTEMP=$ac_cv_path_MKTEMP
8755 if test -n "$MKTEMP"; then
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8757 $as_echo "$MKTEMP" >&6; }
8758 else
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8761 fi
8762 
8763 
8764   test -n "$MKTEMP" && break
8765 done
8766 
8767     else
8768       # If it succeeded, then it was overridden by the user. We will use it
8769       # for the tool.
8770 
8771       # First remove it from the list of overridden variables, so we can test
8772       # for unknown variables in the end.
8773       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8774 
8775       # Check if we try to supply an empty value
8776       if test "x$MKTEMP" = x; then
8777         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
8778 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
8779         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8780 $as_echo_n "checking for MKTEMP... " >&6; }
8781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8782 $as_echo "disabled" >&6; }
8783       else
8784         # Check if the provided tool contains a complete path.
8785         tool_specified="$MKTEMP"
8786         tool_basename="${tool_specified##*/}"
8787         if test "x$tool_basename" = "x$tool_specified"; then
8788           # A command without a complete path is provided, search $PATH.
8789           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8790 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8791           # Extract the first word of "$tool_basename", so it can be a program name with args.
8792 set dummy $tool_basename; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_path_MKTEMP+:} false; then :
8796   $as_echo_n "(cached) " >&6
8797 else
8798   case $MKTEMP in
8799   [\\/]* | ?:[\\/]*)
8800   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8801   ;;
8802   *)
8803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 for as_dir in $PATH
8805 do
8806   IFS=$as_save_IFS
8807   test -z "$as_dir" && as_dir=.
8808     for ac_exec_ext in '' $ac_executable_extensions; do
8809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8810     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8812     break 2
8813   fi
8814 done
8815   done
8816 IFS=$as_save_IFS
8817 
8818   ;;
8819 esac
8820 fi
8821 MKTEMP=$ac_cv_path_MKTEMP
8822 if test -n "$MKTEMP"; then
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8824 $as_echo "$MKTEMP" >&6; }
8825 else
8826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8828 fi
8829 
8830 
8831           if test "x$MKTEMP" = x; then
8832             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8833           fi
8834         else
8835           # Otherwise we believe it is a complete path. Use it as it is.
8836           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8837 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8838           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8839 $as_echo_n "checking for MKTEMP... " >&6; }
8840           if test ! -x "$tool_specified"; then
8841             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8842 $as_echo "not found" >&6; }
8843             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8844           fi
8845           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8846 $as_echo "$tool_specified" >&6; }
8847         fi
8848       fi
8849     fi
8850 
8851   fi
8852 
8853 
8854 
8855   if test "x$MKTEMP" = x; then
8856     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8857   fi
8858 
8859 
8860 
8861 
8862 
8863   # Publish this variable in the help.
8864 
8865 
8866   if [ -z "${MV+x}" ]; then
8867     # The variable is not set by user, try to locate tool using the code snippet
8868     for ac_prog in mv
8869 do
8870   # Extract the first word of "$ac_prog", so it can be a program name with args.
8871 set dummy $ac_prog; ac_word=$2
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873 $as_echo_n "checking for $ac_word... " >&6; }
8874 if ${ac_cv_path_MV+:} false; then :
8875   $as_echo_n "(cached) " >&6
8876 else
8877   case $MV in
8878   [\\/]* | ?:[\\/]*)
8879   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8880   ;;
8881   *)
8882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8884 do
8885   IFS=$as_save_IFS
8886   test -z "$as_dir" && as_dir=.
8887     for ac_exec_ext in '' $ac_executable_extensions; do
8888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891     break 2
8892   fi
8893 done
8894   done
8895 IFS=$as_save_IFS
8896 
8897   ;;
8898 esac
8899 fi
8900 MV=$ac_cv_path_MV
8901 if test -n "$MV"; then
8902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8903 $as_echo "$MV" >&6; }
8904 else
8905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8907 fi
8908 
8909 
8910   test -n "$MV" && break
8911 done
8912 
8913   else
8914     # The variable is set, but is it from the command line or the environment?
8915 
8916     # Try to remove the string !MV! from our list.
8917     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8918     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8919       # If it failed, the variable was not from the command line. Ignore it,
8920       # but warn the user (except for BASH, which is always set by the calling BASH).
8921       if test "xMV" != xBASH; then
8922         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8923 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8924       fi
8925       # Try to locate tool using the code snippet
8926       for ac_prog in mv
8927 do
8928   # Extract the first word of "$ac_prog", so it can be a program name with args.
8929 set dummy $ac_prog; ac_word=$2
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 $as_echo_n "checking for $ac_word... " >&6; }
8932 if ${ac_cv_path_MV+:} false; then :
8933   $as_echo_n "(cached) " >&6
8934 else
8935   case $MV in
8936   [\\/]* | ?:[\\/]*)
8937   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8938   ;;
8939   *)
8940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941 for as_dir in $PATH
8942 do
8943   IFS=$as_save_IFS
8944   test -z "$as_dir" && as_dir=.
8945     for ac_exec_ext in '' $ac_executable_extensions; do
8946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8947     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949     break 2
8950   fi
8951 done
8952   done
8953 IFS=$as_save_IFS
8954 
8955   ;;
8956 esac
8957 fi
8958 MV=$ac_cv_path_MV
8959 if test -n "$MV"; then
8960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8961 $as_echo "$MV" >&6; }
8962 else
8963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8965 fi
8966 
8967 
8968   test -n "$MV" && break
8969 done
8970 
8971     else
8972       # If it succeeded, then it was overridden by the user. We will use it
8973       # for the tool.
8974 
8975       # First remove it from the list of overridden variables, so we can test
8976       # for unknown variables in the end.
8977       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8978 
8979       # Check if we try to supply an empty value
8980       if test "x$MV" = x; then
8981         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
8982 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
8983         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8984 $as_echo_n "checking for MV... " >&6; }
8985         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8986 $as_echo "disabled" >&6; }
8987       else
8988         # Check if the provided tool contains a complete path.
8989         tool_specified="$MV"
8990         tool_basename="${tool_specified##*/}"
8991         if test "x$tool_basename" = "x$tool_specified"; then
8992           # A command without a complete path is provided, search $PATH.
8993           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8994 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8995           # Extract the first word of "$tool_basename", so it can be a program name with args.
8996 set dummy $tool_basename; ac_word=$2
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998 $as_echo_n "checking for $ac_word... " >&6; }
8999 if ${ac_cv_path_MV+:} false; then :
9000   $as_echo_n "(cached) " >&6
9001 else
9002   case $MV in
9003   [\\/]* | ?:[\\/]*)
9004   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9005   ;;
9006   *)
9007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9009 do
9010   IFS=$as_save_IFS
9011   test -z "$as_dir" && as_dir=.
9012     for ac_exec_ext in '' $ac_executable_extensions; do
9013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9016     break 2
9017   fi
9018 done
9019   done
9020 IFS=$as_save_IFS
9021 
9022   ;;
9023 esac
9024 fi
9025 MV=$ac_cv_path_MV
9026 if test -n "$MV"; then
9027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9028 $as_echo "$MV" >&6; }
9029 else
9030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9032 fi
9033 
9034 
9035           if test "x$MV" = x; then
9036             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9037           fi
9038         else
9039           # Otherwise we believe it is a complete path. Use it as it is.
9040           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9041 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9042           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9043 $as_echo_n "checking for MV... " >&6; }
9044           if test ! -x "$tool_specified"; then
9045             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9046 $as_echo "not found" >&6; }
9047             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9048           fi
9049           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9050 $as_echo "$tool_specified" >&6; }
9051         fi
9052       fi
9053     fi
9054 
9055   fi
9056 
9057 
9058 
9059   if test "x$MV" = x; then
9060     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9061   fi
9062 
9063 
9064 
9065 
9066 
9067   # Publish this variable in the help.
9068 
9069 
9070   if [ -z "${NAWK+x}" ]; then
9071     # The variable is not set by user, try to locate tool using the code snippet
9072     for ac_prog in nawk gawk awk
9073 do
9074   # Extract the first word of "$ac_prog", so it can be a program name with args.
9075 set dummy $ac_prog; ac_word=$2
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9077 $as_echo_n "checking for $ac_word... " >&6; }
9078 if ${ac_cv_path_NAWK+:} false; then :
9079   $as_echo_n "(cached) " >&6
9080 else
9081   case $NAWK in
9082   [\\/]* | ?:[\\/]*)
9083   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9084   ;;
9085   *)
9086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 for as_dir in $PATH
9088 do
9089   IFS=$as_save_IFS
9090   test -z "$as_dir" && as_dir=.
9091     for ac_exec_ext in '' $ac_executable_extensions; do
9092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095     break 2
9096   fi
9097 done
9098   done
9099 IFS=$as_save_IFS
9100 
9101   ;;
9102 esac
9103 fi
9104 NAWK=$ac_cv_path_NAWK
9105 if test -n "$NAWK"; then
9106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9107 $as_echo "$NAWK" >&6; }
9108 else
9109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9110 $as_echo "no" >&6; }
9111 fi
9112 
9113 
9114   test -n "$NAWK" && break
9115 done
9116 
9117   else
9118     # The variable is set, but is it from the command line or the environment?
9119 
9120     # Try to remove the string !NAWK! from our list.
9121     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9122     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9123       # If it failed, the variable was not from the command line. Ignore it,
9124       # but warn the user (except for BASH, which is always set by the calling BASH).
9125       if test "xNAWK" != xBASH; then
9126         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9127 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9128       fi
9129       # Try to locate tool using the code snippet
9130       for ac_prog in nawk gawk awk
9131 do
9132   # Extract the first word of "$ac_prog", so it can be a program name with args.
9133 set dummy $ac_prog; ac_word=$2
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9135 $as_echo_n "checking for $ac_word... " >&6; }
9136 if ${ac_cv_path_NAWK+:} false; then :
9137   $as_echo_n "(cached) " >&6
9138 else
9139   case $NAWK in
9140   [\\/]* | ?:[\\/]*)
9141   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9142   ;;
9143   *)
9144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9146 do
9147   IFS=$as_save_IFS
9148   test -z "$as_dir" && as_dir=.
9149     for ac_exec_ext in '' $ac_executable_extensions; do
9150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153     break 2
9154   fi
9155 done
9156   done
9157 IFS=$as_save_IFS
9158 
9159   ;;
9160 esac
9161 fi
9162 NAWK=$ac_cv_path_NAWK
9163 if test -n "$NAWK"; then
9164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9165 $as_echo "$NAWK" >&6; }
9166 else
9167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9169 fi
9170 
9171 
9172   test -n "$NAWK" && break
9173 done
9174 
9175     else
9176       # If it succeeded, then it was overridden by the user. We will use it
9177       # for the tool.
9178 
9179       # First remove it from the list of overridden variables, so we can test
9180       # for unknown variables in the end.
9181       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9182 
9183       # Check if we try to supply an empty value
9184       if test "x$NAWK" = x; then
9185         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9186 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9187         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9188 $as_echo_n "checking for NAWK... " >&6; }
9189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9190 $as_echo "disabled" >&6; }
9191       else
9192         # Check if the provided tool contains a complete path.
9193         tool_specified="$NAWK"
9194         tool_basename="${tool_specified##*/}"
9195         if test "x$tool_basename" = "x$tool_specified"; then
9196           # A command without a complete path is provided, search $PATH.
9197           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9198 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9199           # Extract the first word of "$tool_basename", so it can be a program name with args.
9200 set dummy $tool_basename; ac_word=$2
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202 $as_echo_n "checking for $ac_word... " >&6; }
9203 if ${ac_cv_path_NAWK+:} false; then :
9204   $as_echo_n "(cached) " >&6
9205 else
9206   case $NAWK in
9207   [\\/]* | ?:[\\/]*)
9208   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9209   ;;
9210   *)
9211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212 for as_dir in $PATH
9213 do
9214   IFS=$as_save_IFS
9215   test -z "$as_dir" && as_dir=.
9216     for ac_exec_ext in '' $ac_executable_extensions; do
9217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9218     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9220     break 2
9221   fi
9222 done
9223   done
9224 IFS=$as_save_IFS
9225 
9226   ;;
9227 esac
9228 fi
9229 NAWK=$ac_cv_path_NAWK
9230 if test -n "$NAWK"; then
9231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9232 $as_echo "$NAWK" >&6; }
9233 else
9234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235 $as_echo "no" >&6; }
9236 fi
9237 
9238 
9239           if test "x$NAWK" = x; then
9240             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9241           fi
9242         else
9243           # Otherwise we believe it is a complete path. Use it as it is.
9244           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
9245 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
9246           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9247 $as_echo_n "checking for NAWK... " >&6; }
9248           if test ! -x "$tool_specified"; then
9249             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9250 $as_echo "not found" >&6; }
9251             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9252           fi
9253           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9254 $as_echo "$tool_specified" >&6; }
9255         fi
9256       fi
9257     fi
9258 
9259   fi
9260 
9261 
9262 
9263   if test "x$NAWK" = x; then
9264     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9265   fi
9266 
9267 
9268 
9269 
9270 
9271   # Publish this variable in the help.
9272 
9273 
9274   if [ -z "${PRINTF+x}" ]; then
9275     # The variable is not set by user, try to locate tool using the code snippet
9276     for ac_prog in printf
9277 do
9278   # Extract the first word of "$ac_prog", so it can be a program name with args.
9279 set dummy $ac_prog; ac_word=$2
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9281 $as_echo_n "checking for $ac_word... " >&6; }
9282 if ${ac_cv_path_PRINTF+:} false; then :
9283   $as_echo_n "(cached) " >&6
9284 else
9285   case $PRINTF in
9286   [\\/]* | ?:[\\/]*)
9287   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9288   ;;
9289   *)
9290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 for as_dir in $PATH
9292 do
9293   IFS=$as_save_IFS
9294   test -z "$as_dir" && as_dir=.
9295     for ac_exec_ext in '' $ac_executable_extensions; do
9296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9297     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9299     break 2
9300   fi
9301 done
9302   done
9303 IFS=$as_save_IFS
9304 
9305   ;;
9306 esac
9307 fi
9308 PRINTF=$ac_cv_path_PRINTF
9309 if test -n "$PRINTF"; then
9310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9311 $as_echo "$PRINTF" >&6; }
9312 else
9313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9314 $as_echo "no" >&6; }
9315 fi
9316 
9317 
9318   test -n "$PRINTF" && break
9319 done
9320 
9321   else
9322     # The variable is set, but is it from the command line or the environment?
9323 
9324     # Try to remove the string !PRINTF! from our list.
9325     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9326     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9327       # If it failed, the variable was not from the command line. Ignore it,
9328       # but warn the user (except for BASH, which is always set by the calling BASH).
9329       if test "xPRINTF" != xBASH; then
9330         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9331 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9332       fi
9333       # Try to locate tool using the code snippet
9334       for ac_prog in printf
9335 do
9336   # Extract the first word of "$ac_prog", so it can be a program name with args.
9337 set dummy $ac_prog; ac_word=$2
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339 $as_echo_n "checking for $ac_word... " >&6; }
9340 if ${ac_cv_path_PRINTF+:} false; then :
9341   $as_echo_n "(cached) " >&6
9342 else
9343   case $PRINTF in
9344   [\\/]* | ?:[\\/]*)
9345   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9346   ;;
9347   *)
9348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349 for as_dir in $PATH
9350 do
9351   IFS=$as_save_IFS
9352   test -z "$as_dir" && as_dir=.
9353     for ac_exec_ext in '' $ac_executable_extensions; do
9354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9355     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9357     break 2
9358   fi
9359 done
9360   done
9361 IFS=$as_save_IFS
9362 
9363   ;;
9364 esac
9365 fi
9366 PRINTF=$ac_cv_path_PRINTF
9367 if test -n "$PRINTF"; then
9368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9369 $as_echo "$PRINTF" >&6; }
9370 else
9371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9372 $as_echo "no" >&6; }
9373 fi
9374 
9375 
9376   test -n "$PRINTF" && break
9377 done
9378 
9379     else
9380       # If it succeeded, then it was overridden by the user. We will use it
9381       # for the tool.
9382 
9383       # First remove it from the list of overridden variables, so we can test
9384       # for unknown variables in the end.
9385       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9386 
9387       # Check if we try to supply an empty value
9388       if test "x$PRINTF" = x; then
9389         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
9390 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
9391         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9392 $as_echo_n "checking for PRINTF... " >&6; }
9393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9394 $as_echo "disabled" >&6; }
9395       else
9396         # Check if the provided tool contains a complete path.
9397         tool_specified="$PRINTF"
9398         tool_basename="${tool_specified##*/}"
9399         if test "x$tool_basename" = "x$tool_specified"; then
9400           # A command without a complete path is provided, search $PATH.
9401           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9402 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9403           # Extract the first word of "$tool_basename", so it can be a program name with args.
9404 set dummy $tool_basename; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if ${ac_cv_path_PRINTF+:} false; then :
9408   $as_echo_n "(cached) " >&6
9409 else
9410   case $PRINTF in
9411   [\\/]* | ?:[\\/]*)
9412   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9413   ;;
9414   *)
9415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 for as_dir in $PATH
9417 do
9418   IFS=$as_save_IFS
9419   test -z "$as_dir" && as_dir=.
9420     for ac_exec_ext in '' $ac_executable_extensions; do
9421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9422     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9424     break 2
9425   fi
9426 done
9427   done
9428 IFS=$as_save_IFS
9429 
9430   ;;
9431 esac
9432 fi
9433 PRINTF=$ac_cv_path_PRINTF
9434 if test -n "$PRINTF"; then
9435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9436 $as_echo "$PRINTF" >&6; }
9437 else
9438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9439 $as_echo "no" >&6; }
9440 fi
9441 
9442 
9443           if test "x$PRINTF" = x; then
9444             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9445           fi
9446         else
9447           # Otherwise we believe it is a complete path. Use it as it is.
9448           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9449 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9450           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9451 $as_echo_n "checking for PRINTF... " >&6; }
9452           if test ! -x "$tool_specified"; then
9453             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9454 $as_echo "not found" >&6; }
9455             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9456           fi
9457           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9458 $as_echo "$tool_specified" >&6; }
9459         fi
9460       fi
9461     fi
9462 
9463   fi
9464 
9465 
9466 
9467   if test "x$PRINTF" = x; then
9468     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9469   fi
9470 
9471 
9472 
9473 
9474 
9475   # Publish this variable in the help.
9476 
9477 
9478   if [ -z "${RM+x}" ]; then
9479     # The variable is not set by user, try to locate tool using the code snippet
9480     for ac_prog in rm
9481 do
9482   # Extract the first word of "$ac_prog", so it can be a program name with args.
9483 set dummy $ac_prog; ac_word=$2
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9485 $as_echo_n "checking for $ac_word... " >&6; }
9486 if ${ac_cv_path_RM+:} false; then :
9487   $as_echo_n "(cached) " >&6
9488 else
9489   case $RM in
9490   [\\/]* | ?:[\\/]*)
9491   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9492   ;;
9493   *)
9494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495 for as_dir in $PATH
9496 do
9497   IFS=$as_save_IFS
9498   test -z "$as_dir" && as_dir=.
9499     for ac_exec_ext in '' $ac_executable_extensions; do
9500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9501     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9503     break 2
9504   fi
9505 done
9506   done
9507 IFS=$as_save_IFS
9508 
9509   ;;
9510 esac
9511 fi
9512 RM=$ac_cv_path_RM
9513 if test -n "$RM"; then
9514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9515 $as_echo "$RM" >&6; }
9516 else
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9519 fi
9520 
9521 
9522   test -n "$RM" && break
9523 done
9524 
9525   else
9526     # The variable is set, but is it from the command line or the environment?
9527 
9528     # Try to remove the string !RM! from our list.
9529     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9530     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9531       # If it failed, the variable was not from the command line. Ignore it,
9532       # but warn the user (except for BASH, which is always set by the calling BASH).
9533       if test "xRM" != xBASH; then
9534         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9535 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9536       fi
9537       # Try to locate tool using the code snippet
9538       for ac_prog in rm
9539 do
9540   # Extract the first word of "$ac_prog", so it can be a program name with args.
9541 set dummy $ac_prog; ac_word=$2
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543 $as_echo_n "checking for $ac_word... " >&6; }
9544 if ${ac_cv_path_RM+:} false; then :
9545   $as_echo_n "(cached) " >&6
9546 else
9547   case $RM in
9548   [\\/]* | ?:[\\/]*)
9549   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9550   ;;
9551   *)
9552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553 for as_dir in $PATH
9554 do
9555   IFS=$as_save_IFS
9556   test -z "$as_dir" && as_dir=.
9557     for ac_exec_ext in '' $ac_executable_extensions; do
9558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9559     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9561     break 2
9562   fi
9563 done
9564   done
9565 IFS=$as_save_IFS
9566 
9567   ;;
9568 esac
9569 fi
9570 RM=$ac_cv_path_RM
9571 if test -n "$RM"; then
9572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9573 $as_echo "$RM" >&6; }
9574 else
9575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9577 fi
9578 
9579 
9580   test -n "$RM" && break
9581 done
9582 
9583     else
9584       # If it succeeded, then it was overridden by the user. We will use it
9585       # for the tool.
9586 
9587       # First remove it from the list of overridden variables, so we can test
9588       # for unknown variables in the end.
9589       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9590 
9591       # Check if we try to supply an empty value
9592       if test "x$RM" = x; then
9593         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
9594 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
9595         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9596 $as_echo_n "checking for RM... " >&6; }
9597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9598 $as_echo "disabled" >&6; }
9599       else
9600         # Check if the provided tool contains a complete path.
9601         tool_specified="$RM"
9602         tool_basename="${tool_specified##*/}"
9603         if test "x$tool_basename" = "x$tool_specified"; then
9604           # A command without a complete path is provided, search $PATH.
9605           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9606 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9607           # Extract the first word of "$tool_basename", so it can be a program name with args.
9608 set dummy $tool_basename; ac_word=$2
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610 $as_echo_n "checking for $ac_word... " >&6; }
9611 if ${ac_cv_path_RM+:} false; then :
9612   $as_echo_n "(cached) " >&6
9613 else
9614   case $RM in
9615   [\\/]* | ?:[\\/]*)
9616   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9617   ;;
9618   *)
9619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620 for as_dir in $PATH
9621 do
9622   IFS=$as_save_IFS
9623   test -z "$as_dir" && as_dir=.
9624     for ac_exec_ext in '' $ac_executable_extensions; do
9625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9626     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9628     break 2
9629   fi
9630 done
9631   done
9632 IFS=$as_save_IFS
9633 
9634   ;;
9635 esac
9636 fi
9637 RM=$ac_cv_path_RM
9638 if test -n "$RM"; then
9639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9640 $as_echo "$RM" >&6; }
9641 else
9642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643 $as_echo "no" >&6; }
9644 fi
9645 
9646 
9647           if test "x$RM" = x; then
9648             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9649           fi
9650         else
9651           # Otherwise we believe it is a complete path. Use it as it is.
9652           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9653 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9654           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9655 $as_echo_n "checking for RM... " >&6; }
9656           if test ! -x "$tool_specified"; then
9657             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9658 $as_echo "not found" >&6; }
9659             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9660           fi
9661           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9662 $as_echo "$tool_specified" >&6; }
9663         fi
9664       fi
9665     fi
9666 
9667   fi
9668 
9669 
9670 
9671   if test "x$RM" = x; then
9672     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9673   fi
9674 
9675 
9676 
9677 
9678 
9679   # Publish this variable in the help.
9680 
9681 
9682   if [ -z "${RMDIR+x}" ]; then
9683     # The variable is not set by user, try to locate tool using the code snippet
9684     for ac_prog in rmdir
9685 do
9686   # Extract the first word of "$ac_prog", so it can be a program name with args.
9687 set dummy $ac_prog; ac_word=$2
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689 $as_echo_n "checking for $ac_word... " >&6; }
9690 if ${ac_cv_path_RMDIR+:} false; then :
9691   $as_echo_n "(cached) " >&6
9692 else
9693   case $RMDIR in
9694   [\\/]* | ?:[\\/]*)
9695   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9696   ;;
9697   *)
9698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699 for as_dir in $PATH
9700 do
9701   IFS=$as_save_IFS
9702   test -z "$as_dir" && as_dir=.
9703     for ac_exec_ext in '' $ac_executable_extensions; do
9704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9705     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9707     break 2
9708   fi
9709 done
9710   done
9711 IFS=$as_save_IFS
9712 
9713   ;;
9714 esac
9715 fi
9716 RMDIR=$ac_cv_path_RMDIR
9717 if test -n "$RMDIR"; then
9718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9719 $as_echo "$RMDIR" >&6; }
9720 else
9721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9723 fi
9724 
9725 
9726   test -n "$RMDIR" && break
9727 done
9728 
9729   else
9730     # The variable is set, but is it from the command line or the environment?
9731 
9732     # Try to remove the string !RMDIR! from our list.
9733     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
9734     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9735       # If it failed, the variable was not from the command line. Ignore it,
9736       # but warn the user (except for BASH, which is always set by the calling BASH).
9737       if test "xRMDIR" != xBASH; then
9738         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
9739 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
9740       fi
9741       # Try to locate tool using the code snippet
9742       for ac_prog in rmdir
9743 do
9744   # Extract the first word of "$ac_prog", so it can be a program name with args.
9745 set dummy $ac_prog; ac_word=$2
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9747 $as_echo_n "checking for $ac_word... " >&6; }
9748 if ${ac_cv_path_RMDIR+:} false; then :
9749   $as_echo_n "(cached) " >&6
9750 else
9751   case $RMDIR in
9752   [\\/]* | ?:[\\/]*)
9753   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9754   ;;
9755   *)
9756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757 for as_dir in $PATH
9758 do
9759   IFS=$as_save_IFS
9760   test -z "$as_dir" && as_dir=.
9761     for ac_exec_ext in '' $ac_executable_extensions; do
9762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9763     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9765     break 2
9766   fi
9767 done
9768   done
9769 IFS=$as_save_IFS
9770 
9771   ;;
9772 esac
9773 fi
9774 RMDIR=$ac_cv_path_RMDIR
9775 if test -n "$RMDIR"; then
9776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9777 $as_echo "$RMDIR" >&6; }
9778 else
9779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780 $as_echo "no" >&6; }
9781 fi
9782 
9783 
9784   test -n "$RMDIR" && break
9785 done
9786 
9787     else
9788       # If it succeeded, then it was overridden by the user. We will use it
9789       # for the tool.
9790 
9791       # First remove it from the list of overridden variables, so we can test
9792       # for unknown variables in the end.
9793       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9794 
9795       # Check if we try to supply an empty value
9796       if test "x$RMDIR" = x; then
9797         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
9798 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
9799         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9800 $as_echo_n "checking for RMDIR... " >&6; }
9801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9802 $as_echo "disabled" >&6; }
9803       else
9804         # Check if the provided tool contains a complete path.
9805         tool_specified="$RMDIR"
9806         tool_basename="${tool_specified##*/}"
9807         if test "x$tool_basename" = "x$tool_specified"; then
9808           # A command without a complete path is provided, search $PATH.
9809           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
9810 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
9811           # Extract the first word of "$tool_basename", so it can be a program name with args.
9812 set dummy $tool_basename; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if ${ac_cv_path_RMDIR+:} false; then :
9816   $as_echo_n "(cached) " >&6
9817 else
9818   case $RMDIR in
9819   [\\/]* | ?:[\\/]*)
9820   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9821   ;;
9822   *)
9823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824 for as_dir in $PATH
9825 do
9826   IFS=$as_save_IFS
9827   test -z "$as_dir" && as_dir=.
9828     for ac_exec_ext in '' $ac_executable_extensions; do
9829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9830     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832     break 2
9833   fi
9834 done
9835   done
9836 IFS=$as_save_IFS
9837 
9838   ;;
9839 esac
9840 fi
9841 RMDIR=$ac_cv_path_RMDIR
9842 if test -n "$RMDIR"; then
9843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9844 $as_echo "$RMDIR" >&6; }
9845 else
9846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 $as_echo "no" >&6; }
9848 fi
9849 
9850 
9851           if test "x$RMDIR" = x; then
9852             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9853           fi
9854         else
9855           # Otherwise we believe it is a complete path. Use it as it is.
9856           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
9857 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
9858           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9859 $as_echo_n "checking for RMDIR... " >&6; }
9860           if test ! -x "$tool_specified"; then
9861             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9862 $as_echo "not found" >&6; }
9863             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9864           fi
9865           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9866 $as_echo "$tool_specified" >&6; }
9867         fi
9868       fi
9869     fi
9870 
9871   fi
9872 
9873 
9874 
9875   if test "x$RMDIR" = x; then
9876     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
9877   fi
9878 
9879 
9880 
9881 
9882 
9883   # Publish this variable in the help.
9884 
9885 
9886   if [ -z "${SH+x}" ]; then
9887     # The variable is not set by user, try to locate tool using the code snippet
9888     for ac_prog in sh
9889 do
9890   # Extract the first word of "$ac_prog", so it can be a program name with args.
9891 set dummy $ac_prog; ac_word=$2
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893 $as_echo_n "checking for $ac_word... " >&6; }
9894 if ${ac_cv_path_SH+:} false; then :
9895   $as_echo_n "(cached) " >&6
9896 else
9897   case $SH in
9898   [\\/]* | ?:[\\/]*)
9899   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9900   ;;
9901   *)
9902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9904 do
9905   IFS=$as_save_IFS
9906   test -z "$as_dir" && as_dir=.
9907     for ac_exec_ext in '' $ac_executable_extensions; do
9908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9909     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9911     break 2
9912   fi
9913 done
9914   done
9915 IFS=$as_save_IFS
9916 
9917   ;;
9918 esac
9919 fi
9920 SH=$ac_cv_path_SH
9921 if test -n "$SH"; then
9922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9923 $as_echo "$SH" >&6; }
9924 else
9925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9927 fi
9928 
9929 
9930   test -n "$SH" && break
9931 done
9932 
9933   else
9934     # The variable is set, but is it from the command line or the environment?
9935 
9936     # Try to remove the string !SH! from our list.
9937     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9938     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9939       # If it failed, the variable was not from the command line. Ignore it,
9940       # but warn the user (except for BASH, which is always set by the calling BASH).
9941       if test "xSH" != xBASH; then
9942         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9943 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9944       fi
9945       # Try to locate tool using the code snippet
9946       for ac_prog in sh
9947 do
9948   # Extract the first word of "$ac_prog", so it can be a program name with args.
9949 set dummy $ac_prog; ac_word=$2
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951 $as_echo_n "checking for $ac_word... " >&6; }
9952 if ${ac_cv_path_SH+:} false; then :
9953   $as_echo_n "(cached) " >&6
9954 else
9955   case $SH in
9956   [\\/]* | ?:[\\/]*)
9957   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9958   ;;
9959   *)
9960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961 for as_dir in $PATH
9962 do
9963   IFS=$as_save_IFS
9964   test -z "$as_dir" && as_dir=.
9965     for ac_exec_ext in '' $ac_executable_extensions; do
9966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9967     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9969     break 2
9970   fi
9971 done
9972   done
9973 IFS=$as_save_IFS
9974 
9975   ;;
9976 esac
9977 fi
9978 SH=$ac_cv_path_SH
9979 if test -n "$SH"; then
9980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9981 $as_echo "$SH" >&6; }
9982 else
9983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984 $as_echo "no" >&6; }
9985 fi
9986 
9987 
9988   test -n "$SH" && break
9989 done
9990 
9991     else
9992       # If it succeeded, then it was overridden by the user. We will use it
9993       # for the tool.
9994 
9995       # First remove it from the list of overridden variables, so we can test
9996       # for unknown variables in the end.
9997       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9998 
9999       # Check if we try to supply an empty value
10000       if test "x$SH" = x; then
10001         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10002 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10004 $as_echo_n "checking for SH... " >&6; }
10005         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10006 $as_echo "disabled" >&6; }
10007       else
10008         # Check if the provided tool contains a complete path.
10009         tool_specified="$SH"
10010         tool_basename="${tool_specified##*/}"
10011         if test "x$tool_basename" = "x$tool_specified"; then
10012           # A command without a complete path is provided, search $PATH.
10013           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10014 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10015           # Extract the first word of "$tool_basename", so it can be a program name with args.
10016 set dummy $tool_basename; ac_word=$2
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if ${ac_cv_path_SH+:} false; then :
10020   $as_echo_n "(cached) " >&6
10021 else
10022   case $SH in
10023   [\\/]* | ?:[\\/]*)
10024   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10025   ;;
10026   *)
10027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10029 do
10030   IFS=$as_save_IFS
10031   test -z "$as_dir" && as_dir=.
10032     for ac_exec_ext in '' $ac_executable_extensions; do
10033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10034     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036     break 2
10037   fi
10038 done
10039   done
10040 IFS=$as_save_IFS
10041 
10042   ;;
10043 esac
10044 fi
10045 SH=$ac_cv_path_SH
10046 if test -n "$SH"; then
10047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10048 $as_echo "$SH" >&6; }
10049 else
10050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10052 fi
10053 
10054 
10055           if test "x$SH" = x; then
10056             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10057           fi
10058         else
10059           # Otherwise we believe it is a complete path. Use it as it is.
10060           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10061 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10062           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10063 $as_echo_n "checking for SH... " >&6; }
10064           if test ! -x "$tool_specified"; then
10065             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10066 $as_echo "not found" >&6; }
10067             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10068           fi
10069           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10070 $as_echo "$tool_specified" >&6; }
10071         fi
10072       fi
10073     fi
10074 
10075   fi
10076 
10077 
10078 
10079   if test "x$SH" = x; then
10080     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10081   fi
10082 
10083 
10084 
10085 
10086 
10087   # Publish this variable in the help.
10088 
10089 
10090   if [ -z "${SORT+x}" ]; then
10091     # The variable is not set by user, try to locate tool using the code snippet
10092     for ac_prog in sort
10093 do
10094   # Extract the first word of "$ac_prog", so it can be a program name with args.
10095 set dummy $ac_prog; ac_word=$2
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 $as_echo_n "checking for $ac_word... " >&6; }
10098 if ${ac_cv_path_SORT+:} false; then :
10099   $as_echo_n "(cached) " >&6
10100 else
10101   case $SORT in
10102   [\\/]* | ?:[\\/]*)
10103   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10104   ;;
10105   *)
10106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 for as_dir in $PATH
10108 do
10109   IFS=$as_save_IFS
10110   test -z "$as_dir" && as_dir=.
10111     for ac_exec_ext in '' $ac_executable_extensions; do
10112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10113     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115     break 2
10116   fi
10117 done
10118   done
10119 IFS=$as_save_IFS
10120 
10121   ;;
10122 esac
10123 fi
10124 SORT=$ac_cv_path_SORT
10125 if test -n "$SORT"; then
10126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10127 $as_echo "$SORT" >&6; }
10128 else
10129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10131 fi
10132 
10133 
10134   test -n "$SORT" && break
10135 done
10136 
10137   else
10138     # The variable is set, but is it from the command line or the environment?
10139 
10140     # Try to remove the string !SORT! from our list.
10141     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10142     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10143       # If it failed, the variable was not from the command line. Ignore it,
10144       # but warn the user (except for BASH, which is always set by the calling BASH).
10145       if test "xSORT" != xBASH; then
10146         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10147 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10148       fi
10149       # Try to locate tool using the code snippet
10150       for ac_prog in sort
10151 do
10152   # Extract the first word of "$ac_prog", so it can be a program name with args.
10153 set dummy $ac_prog; ac_word=$2
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10155 $as_echo_n "checking for $ac_word... " >&6; }
10156 if ${ac_cv_path_SORT+:} false; then :
10157   $as_echo_n "(cached) " >&6
10158 else
10159   case $SORT in
10160   [\\/]* | ?:[\\/]*)
10161   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10162   ;;
10163   *)
10164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10165 for as_dir in $PATH
10166 do
10167   IFS=$as_save_IFS
10168   test -z "$as_dir" && as_dir=.
10169     for ac_exec_ext in '' $ac_executable_extensions; do
10170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10171     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10173     break 2
10174   fi
10175 done
10176   done
10177 IFS=$as_save_IFS
10178 
10179   ;;
10180 esac
10181 fi
10182 SORT=$ac_cv_path_SORT
10183 if test -n "$SORT"; then
10184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10185 $as_echo "$SORT" >&6; }
10186 else
10187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10189 fi
10190 
10191 
10192   test -n "$SORT" && break
10193 done
10194 
10195     else
10196       # If it succeeded, then it was overridden by the user. We will use it
10197       # for the tool.
10198 
10199       # First remove it from the list of overridden variables, so we can test
10200       # for unknown variables in the end.
10201       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10202 
10203       # Check if we try to supply an empty value
10204       if test "x$SORT" = x; then
10205         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10206 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10207         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10208 $as_echo_n "checking for SORT... " >&6; }
10209         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10210 $as_echo "disabled" >&6; }
10211       else
10212         # Check if the provided tool contains a complete path.
10213         tool_specified="$SORT"
10214         tool_basename="${tool_specified##*/}"
10215         if test "x$tool_basename" = "x$tool_specified"; then
10216           # A command without a complete path is provided, search $PATH.
10217           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
10218 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
10219           # Extract the first word of "$tool_basename", so it can be a program name with args.
10220 set dummy $tool_basename; ac_word=$2
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10222 $as_echo_n "checking for $ac_word... " >&6; }
10223 if ${ac_cv_path_SORT+:} false; then :
10224   $as_echo_n "(cached) " >&6
10225 else
10226   case $SORT in
10227   [\\/]* | ?:[\\/]*)
10228   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10229   ;;
10230   *)
10231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232 for as_dir in $PATH
10233 do
10234   IFS=$as_save_IFS
10235   test -z "$as_dir" && as_dir=.
10236     for ac_exec_ext in '' $ac_executable_extensions; do
10237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10238     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10240     break 2
10241   fi
10242 done
10243   done
10244 IFS=$as_save_IFS
10245 
10246   ;;
10247 esac
10248 fi
10249 SORT=$ac_cv_path_SORT
10250 if test -n "$SORT"; then
10251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10252 $as_echo "$SORT" >&6; }
10253 else
10254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255 $as_echo "no" >&6; }
10256 fi
10257 
10258 
10259           if test "x$SORT" = x; then
10260             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10261           fi
10262         else
10263           # Otherwise we believe it is a complete path. Use it as it is.
10264           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
10265 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
10266           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10267 $as_echo_n "checking for SORT... " >&6; }
10268           if test ! -x "$tool_specified"; then
10269             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10270 $as_echo "not found" >&6; }
10271             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
10272           fi
10273           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10274 $as_echo "$tool_specified" >&6; }
10275         fi
10276       fi
10277     fi
10278 
10279   fi
10280 
10281 
10282 
10283   if test "x$SORT" = x; then
10284     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
10285   fi
10286 
10287 
10288 
10289 
10290 
10291   # Publish this variable in the help.
10292 
10293 
10294   if [ -z "${TAIL+x}" ]; then
10295     # The variable is not set by user, try to locate tool using the code snippet
10296     for ac_prog in tail
10297 do
10298   # Extract the first word of "$ac_prog", so it can be a program name with args.
10299 set dummy $ac_prog; ac_word=$2
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301 $as_echo_n "checking for $ac_word... " >&6; }
10302 if ${ac_cv_path_TAIL+:} false; then :
10303   $as_echo_n "(cached) " >&6
10304 else
10305   case $TAIL in
10306   [\\/]* | ?:[\\/]*)
10307   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10308   ;;
10309   *)
10310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311 for as_dir in $PATH
10312 do
10313   IFS=$as_save_IFS
10314   test -z "$as_dir" && as_dir=.
10315     for ac_exec_ext in '' $ac_executable_extensions; do
10316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10317     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10319     break 2
10320   fi
10321 done
10322   done
10323 IFS=$as_save_IFS
10324 
10325   ;;
10326 esac
10327 fi
10328 TAIL=$ac_cv_path_TAIL
10329 if test -n "$TAIL"; then
10330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10331 $as_echo "$TAIL" >&6; }
10332 else
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10335 fi
10336 
10337 
10338   test -n "$TAIL" && break
10339 done
10340 
10341   else
10342     # The variable is set, but is it from the command line or the environment?
10343 
10344     # Try to remove the string !TAIL! from our list.
10345     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
10346     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10347       # If it failed, the variable was not from the command line. Ignore it,
10348       # but warn the user (except for BASH, which is always set by the calling BASH).
10349       if test "xTAIL" != xBASH; then
10350         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
10351 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
10352       fi
10353       # Try to locate tool using the code snippet
10354       for ac_prog in tail
10355 do
10356   # Extract the first word of "$ac_prog", so it can be a program name with args.
10357 set dummy $ac_prog; ac_word=$2
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10359 $as_echo_n "checking for $ac_word... " >&6; }
10360 if ${ac_cv_path_TAIL+:} false; then :
10361   $as_echo_n "(cached) " >&6
10362 else
10363   case $TAIL in
10364   [\\/]* | ?:[\\/]*)
10365   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10366   ;;
10367   *)
10368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369 for as_dir in $PATH
10370 do
10371   IFS=$as_save_IFS
10372   test -z "$as_dir" && as_dir=.
10373     for ac_exec_ext in '' $ac_executable_extensions; do
10374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10375     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377     break 2
10378   fi
10379 done
10380   done
10381 IFS=$as_save_IFS
10382 
10383   ;;
10384 esac
10385 fi
10386 TAIL=$ac_cv_path_TAIL
10387 if test -n "$TAIL"; then
10388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10389 $as_echo "$TAIL" >&6; }
10390 else
10391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10393 fi
10394 
10395 
10396   test -n "$TAIL" && break
10397 done
10398 
10399     else
10400       # If it succeeded, then it was overridden by the user. We will use it
10401       # for the tool.
10402 
10403       # First remove it from the list of overridden variables, so we can test
10404       # for unknown variables in the end.
10405       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10406 
10407       # Check if we try to supply an empty value
10408       if test "x$TAIL" = x; then
10409         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
10410 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
10411         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10412 $as_echo_n "checking for TAIL... " >&6; }
10413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10414 $as_echo "disabled" >&6; }
10415       else
10416         # Check if the provided tool contains a complete path.
10417         tool_specified="$TAIL"
10418         tool_basename="${tool_specified##*/}"
10419         if test "x$tool_basename" = "x$tool_specified"; then
10420           # A command without a complete path is provided, search $PATH.
10421           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
10422 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
10423           # Extract the first word of "$tool_basename", so it can be a program name with args.
10424 set dummy $tool_basename; ac_word=$2
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10426 $as_echo_n "checking for $ac_word... " >&6; }
10427 if ${ac_cv_path_TAIL+:} false; then :
10428   $as_echo_n "(cached) " >&6
10429 else
10430   case $TAIL in
10431   [\\/]* | ?:[\\/]*)
10432   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10433   ;;
10434   *)
10435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436 for as_dir in $PATH
10437 do
10438   IFS=$as_save_IFS
10439   test -z "$as_dir" && as_dir=.
10440     for ac_exec_ext in '' $ac_executable_extensions; do
10441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10442     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444     break 2
10445   fi
10446 done
10447   done
10448 IFS=$as_save_IFS
10449 
10450   ;;
10451 esac
10452 fi
10453 TAIL=$ac_cv_path_TAIL
10454 if test -n "$TAIL"; then
10455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10456 $as_echo "$TAIL" >&6; }
10457 else
10458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10460 fi
10461 
10462 
10463           if test "x$TAIL" = x; then
10464             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10465           fi
10466         else
10467           # Otherwise we believe it is a complete path. Use it as it is.
10468           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
10469 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
10470           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10471 $as_echo_n "checking for TAIL... " >&6; }
10472           if test ! -x "$tool_specified"; then
10473             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10474 $as_echo "not found" >&6; }
10475             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
10476           fi
10477           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10478 $as_echo "$tool_specified" >&6; }
10479         fi
10480       fi
10481     fi
10482 
10483   fi
10484 
10485 
10486 
10487   if test "x$TAIL" = x; then
10488     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
10489   fi
10490 
10491 
10492 
10493 
10494 
10495   # Publish this variable in the help.
10496 
10497 
10498   if [ -z "${TAR+x}" ]; then
10499     # The variable is not set by user, try to locate tool using the code snippet
10500     for ac_prog in tar
10501 do
10502   # Extract the first word of "$ac_prog", so it can be a program name with args.
10503 set dummy $ac_prog; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if ${ac_cv_path_TAR+:} false; then :
10507   $as_echo_n "(cached) " >&6
10508 else
10509   case $TAR in
10510   [\\/]* | ?:[\\/]*)
10511   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10512   ;;
10513   *)
10514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515 for as_dir in $PATH
10516 do
10517   IFS=$as_save_IFS
10518   test -z "$as_dir" && as_dir=.
10519     for ac_exec_ext in '' $ac_executable_extensions; do
10520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10521     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10523     break 2
10524   fi
10525 done
10526   done
10527 IFS=$as_save_IFS
10528 
10529   ;;
10530 esac
10531 fi
10532 TAR=$ac_cv_path_TAR
10533 if test -n "$TAR"; then
10534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10535 $as_echo "$TAR" >&6; }
10536 else
10537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10539 fi
10540 
10541 
10542   test -n "$TAR" && break
10543 done
10544 
10545   else
10546     # The variable is set, but is it from the command line or the environment?
10547 
10548     # Try to remove the string !TAR! from our list.
10549     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10550     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10551       # If it failed, the variable was not from the command line. Ignore it,
10552       # but warn the user (except for BASH, which is always set by the calling BASH).
10553       if test "xTAR" != xBASH; then
10554         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10555 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10556       fi
10557       # Try to locate tool using the code snippet
10558       for ac_prog in tar
10559 do
10560   # Extract the first word of "$ac_prog", so it can be a program name with args.
10561 set dummy $ac_prog; ac_word=$2
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563 $as_echo_n "checking for $ac_word... " >&6; }
10564 if ${ac_cv_path_TAR+:} false; then :
10565   $as_echo_n "(cached) " >&6
10566 else
10567   case $TAR in
10568   [\\/]* | ?:[\\/]*)
10569   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10570   ;;
10571   *)
10572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573 for as_dir in $PATH
10574 do
10575   IFS=$as_save_IFS
10576   test -z "$as_dir" && as_dir=.
10577     for ac_exec_ext in '' $ac_executable_extensions; do
10578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10579     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10581     break 2
10582   fi
10583 done
10584   done
10585 IFS=$as_save_IFS
10586 
10587   ;;
10588 esac
10589 fi
10590 TAR=$ac_cv_path_TAR
10591 if test -n "$TAR"; then
10592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10593 $as_echo "$TAR" >&6; }
10594 else
10595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; }
10597 fi
10598 
10599 
10600   test -n "$TAR" && break
10601 done
10602 
10603     else
10604       # If it succeeded, then it was overridden by the user. We will use it
10605       # for the tool.
10606 
10607       # First remove it from the list of overridden variables, so we can test
10608       # for unknown variables in the end.
10609       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10610 
10611       # Check if we try to supply an empty value
10612       if test "x$TAR" = x; then
10613         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
10614 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
10615         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10616 $as_echo_n "checking for TAR... " >&6; }
10617         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10618 $as_echo "disabled" >&6; }
10619       else
10620         # Check if the provided tool contains a complete path.
10621         tool_specified="$TAR"
10622         tool_basename="${tool_specified##*/}"
10623         if test "x$tool_basename" = "x$tool_specified"; then
10624           # A command without a complete path is provided, search $PATH.
10625           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10626 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10627           # Extract the first word of "$tool_basename", so it can be a program name with args.
10628 set dummy $tool_basename; ac_word=$2
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10630 $as_echo_n "checking for $ac_word... " >&6; }
10631 if ${ac_cv_path_TAR+:} false; then :
10632   $as_echo_n "(cached) " >&6
10633 else
10634   case $TAR in
10635   [\\/]* | ?:[\\/]*)
10636   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10637   ;;
10638   *)
10639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10641 do
10642   IFS=$as_save_IFS
10643   test -z "$as_dir" && as_dir=.
10644     for ac_exec_ext in '' $ac_executable_extensions; do
10645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10646     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10648     break 2
10649   fi
10650 done
10651   done
10652 IFS=$as_save_IFS
10653 
10654   ;;
10655 esac
10656 fi
10657 TAR=$ac_cv_path_TAR
10658 if test -n "$TAR"; then
10659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10660 $as_echo "$TAR" >&6; }
10661 else
10662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663 $as_echo "no" >&6; }
10664 fi
10665 
10666 
10667           if test "x$TAR" = x; then
10668             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10669           fi
10670         else
10671           # Otherwise we believe it is a complete path. Use it as it is.
10672           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
10673 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
10674           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10675 $as_echo_n "checking for TAR... " >&6; }
10676           if test ! -x "$tool_specified"; then
10677             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10678 $as_echo "not found" >&6; }
10679             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
10680           fi
10681           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10682 $as_echo "$tool_specified" >&6; }
10683         fi
10684       fi
10685     fi
10686 
10687   fi
10688 
10689 
10690 
10691   if test "x$TAR" = x; then
10692     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
10693   fi
10694 
10695 
10696 
10697 
10698 
10699   # Publish this variable in the help.
10700 
10701 
10702   if [ -z "${TEE+x}" ]; then
10703     # The variable is not set by user, try to locate tool using the code snippet
10704     for ac_prog in tee
10705 do
10706   # Extract the first word of "$ac_prog", so it can be a program name with args.
10707 set dummy $ac_prog; ac_word=$2
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709 $as_echo_n "checking for $ac_word... " >&6; }
10710 if ${ac_cv_path_TEE+:} false; then :
10711   $as_echo_n "(cached) " >&6
10712 else
10713   case $TEE in
10714   [\\/]* | ?:[\\/]*)
10715   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10716   ;;
10717   *)
10718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719 for as_dir in $PATH
10720 do
10721   IFS=$as_save_IFS
10722   test -z "$as_dir" && as_dir=.
10723     for ac_exec_ext in '' $ac_executable_extensions; do
10724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10725     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10727     break 2
10728   fi
10729 done
10730   done
10731 IFS=$as_save_IFS
10732 
10733   ;;
10734 esac
10735 fi
10736 TEE=$ac_cv_path_TEE
10737 if test -n "$TEE"; then
10738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10739 $as_echo "$TEE" >&6; }
10740 else
10741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10743 fi
10744 
10745 
10746   test -n "$TEE" && break
10747 done
10748 
10749   else
10750     # The variable is set, but is it from the command line or the environment?
10751 
10752     # Try to remove the string !TEE! from our list.
10753     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
10754     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10755       # If it failed, the variable was not from the command line. Ignore it,
10756       # but warn the user (except for BASH, which is always set by the calling BASH).
10757       if test "xTEE" != xBASH; then
10758         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
10759 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
10760       fi
10761       # Try to locate tool using the code snippet
10762       for ac_prog in tee
10763 do
10764   # Extract the first word of "$ac_prog", so it can be a program name with args.
10765 set dummy $ac_prog; ac_word=$2
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10767 $as_echo_n "checking for $ac_word... " >&6; }
10768 if ${ac_cv_path_TEE+:} false; then :
10769   $as_echo_n "(cached) " >&6
10770 else
10771   case $TEE in
10772   [\\/]* | ?:[\\/]*)
10773   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10774   ;;
10775   *)
10776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777 for as_dir in $PATH
10778 do
10779   IFS=$as_save_IFS
10780   test -z "$as_dir" && as_dir=.
10781     for ac_exec_ext in '' $ac_executable_extensions; do
10782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10783     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10785     break 2
10786   fi
10787 done
10788   done
10789 IFS=$as_save_IFS
10790 
10791   ;;
10792 esac
10793 fi
10794 TEE=$ac_cv_path_TEE
10795 if test -n "$TEE"; then
10796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10797 $as_echo "$TEE" >&6; }
10798 else
10799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800 $as_echo "no" >&6; }
10801 fi
10802 
10803 
10804   test -n "$TEE" && break
10805 done
10806 
10807     else
10808       # If it succeeded, then it was overridden by the user. We will use it
10809       # for the tool.
10810 
10811       # First remove it from the list of overridden variables, so we can test
10812       # for unknown variables in the end.
10813       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10814 
10815       # Check if we try to supply an empty value
10816       if test "x$TEE" = x; then
10817         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
10818 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
10819         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10820 $as_echo_n "checking for TEE... " >&6; }
10821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10822 $as_echo "disabled" >&6; }
10823       else
10824         # Check if the provided tool contains a complete path.
10825         tool_specified="$TEE"
10826         tool_basename="${tool_specified##*/}"
10827         if test "x$tool_basename" = "x$tool_specified"; then
10828           # A command without a complete path is provided, search $PATH.
10829           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10830 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10831           # Extract the first word of "$tool_basename", so it can be a program name with args.
10832 set dummy $tool_basename; ac_word=$2
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834 $as_echo_n "checking for $ac_word... " >&6; }
10835 if ${ac_cv_path_TEE+:} false; then :
10836   $as_echo_n "(cached) " >&6
10837 else
10838   case $TEE in
10839   [\\/]* | ?:[\\/]*)
10840   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10841   ;;
10842   *)
10843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10845 do
10846   IFS=$as_save_IFS
10847   test -z "$as_dir" && as_dir=.
10848     for ac_exec_ext in '' $ac_executable_extensions; do
10849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10852     break 2
10853   fi
10854 done
10855   done
10856 IFS=$as_save_IFS
10857 
10858   ;;
10859 esac
10860 fi
10861 TEE=$ac_cv_path_TEE
10862 if test -n "$TEE"; then
10863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10864 $as_echo "$TEE" >&6; }
10865 else
10866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10868 fi
10869 
10870 
10871           if test "x$TEE" = x; then
10872             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10873           fi
10874         else
10875           # Otherwise we believe it is a complete path. Use it as it is.
10876           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10877 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10878           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10879 $as_echo_n "checking for TEE... " >&6; }
10880           if test ! -x "$tool_specified"; then
10881             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10882 $as_echo "not found" >&6; }
10883             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10884           fi
10885           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10886 $as_echo "$tool_specified" >&6; }
10887         fi
10888       fi
10889     fi
10890 
10891   fi
10892 
10893 
10894 
10895   if test "x$TEE" = x; then
10896     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10897   fi
10898 
10899 
10900 
10901 
10902 
10903   # Publish this variable in the help.
10904 
10905 
10906   if [ -z "${TOUCH+x}" ]; then
10907     # The variable is not set by user, try to locate tool using the code snippet
10908     for ac_prog in touch
10909 do
10910   # Extract the first word of "$ac_prog", so it can be a program name with args.
10911 set dummy $ac_prog; ac_word=$2
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10913 $as_echo_n "checking for $ac_word... " >&6; }
10914 if ${ac_cv_path_TOUCH+:} false; then :
10915   $as_echo_n "(cached) " >&6
10916 else
10917   case $TOUCH in
10918   [\\/]* | ?:[\\/]*)
10919   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10920   ;;
10921   *)
10922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
10924 do
10925   IFS=$as_save_IFS
10926   test -z "$as_dir" && as_dir=.
10927     for ac_exec_ext in '' $ac_executable_extensions; do
10928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10929     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931     break 2
10932   fi
10933 done
10934   done
10935 IFS=$as_save_IFS
10936 
10937   ;;
10938 esac
10939 fi
10940 TOUCH=$ac_cv_path_TOUCH
10941 if test -n "$TOUCH"; then
10942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10943 $as_echo "$TOUCH" >&6; }
10944 else
10945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946 $as_echo "no" >&6; }
10947 fi
10948 
10949 
10950   test -n "$TOUCH" && break
10951 done
10952 
10953   else
10954     # The variable is set, but is it from the command line or the environment?
10955 
10956     # Try to remove the string !TOUCH! from our list.
10957     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10958     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10959       # If it failed, the variable was not from the command line. Ignore it,
10960       # but warn the user (except for BASH, which is always set by the calling BASH).
10961       if test "xTOUCH" != xBASH; then
10962         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10963 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10964       fi
10965       # Try to locate tool using the code snippet
10966       for ac_prog in touch
10967 do
10968   # Extract the first word of "$ac_prog", so it can be a program name with args.
10969 set dummy $ac_prog; ac_word=$2
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971 $as_echo_n "checking for $ac_word... " >&6; }
10972 if ${ac_cv_path_TOUCH+:} false; then :
10973   $as_echo_n "(cached) " >&6
10974 else
10975   case $TOUCH in
10976   [\\/]* | ?:[\\/]*)
10977   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10978   ;;
10979   *)
10980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10982 do
10983   IFS=$as_save_IFS
10984   test -z "$as_dir" && as_dir=.
10985     for ac_exec_ext in '' $ac_executable_extensions; do
10986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10987     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989     break 2
10990   fi
10991 done
10992   done
10993 IFS=$as_save_IFS
10994 
10995   ;;
10996 esac
10997 fi
10998 TOUCH=$ac_cv_path_TOUCH
10999 if test -n "$TOUCH"; then
11000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11001 $as_echo "$TOUCH" >&6; }
11002 else
11003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11005 fi
11006 
11007 
11008   test -n "$TOUCH" && break
11009 done
11010 
11011     else
11012       # If it succeeded, then it was overridden by the user. We will use it
11013       # for the tool.
11014 
11015       # First remove it from the list of overridden variables, so we can test
11016       # for unknown variables in the end.
11017       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11018 
11019       # Check if we try to supply an empty value
11020       if test "x$TOUCH" = x; then
11021         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11022 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11024 $as_echo_n "checking for TOUCH... " >&6; }
11025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11026 $as_echo "disabled" >&6; }
11027       else
11028         # Check if the provided tool contains a complete path.
11029         tool_specified="$TOUCH"
11030         tool_basename="${tool_specified##*/}"
11031         if test "x$tool_basename" = "x$tool_specified"; then
11032           # A command without a complete path is provided, search $PATH.
11033           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11034 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11035           # Extract the first word of "$tool_basename", so it can be a program name with args.
11036 set dummy $tool_basename; ac_word=$2
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038 $as_echo_n "checking for $ac_word... " >&6; }
11039 if ${ac_cv_path_TOUCH+:} false; then :
11040   $as_echo_n "(cached) " >&6
11041 else
11042   case $TOUCH in
11043   [\\/]* | ?:[\\/]*)
11044   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11045   ;;
11046   *)
11047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11048 for as_dir in $PATH
11049 do
11050   IFS=$as_save_IFS
11051   test -z "$as_dir" && as_dir=.
11052     for ac_exec_ext in '' $ac_executable_extensions; do
11053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11054     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11056     break 2
11057   fi
11058 done
11059   done
11060 IFS=$as_save_IFS
11061 
11062   ;;
11063 esac
11064 fi
11065 TOUCH=$ac_cv_path_TOUCH
11066 if test -n "$TOUCH"; then
11067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11068 $as_echo "$TOUCH" >&6; }
11069 else
11070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071 $as_echo "no" >&6; }
11072 fi
11073 
11074 
11075           if test "x$TOUCH" = x; then
11076             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11077           fi
11078         else
11079           # Otherwise we believe it is a complete path. Use it as it is.
11080           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11081 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11082           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11083 $as_echo_n "checking for TOUCH... " >&6; }
11084           if test ! -x "$tool_specified"; then
11085             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11086 $as_echo "not found" >&6; }
11087             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11088           fi
11089           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11090 $as_echo "$tool_specified" >&6; }
11091         fi
11092       fi
11093     fi
11094 
11095   fi
11096 
11097 
11098 
11099   if test "x$TOUCH" = x; then
11100     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11101   fi
11102 
11103 
11104 
11105 
11106 
11107   # Publish this variable in the help.
11108 
11109 
11110   if [ -z "${TR+x}" ]; then
11111     # The variable is not set by user, try to locate tool using the code snippet
11112     for ac_prog in tr
11113 do
11114   # Extract the first word of "$ac_prog", so it can be a program name with args.
11115 set dummy $ac_prog; ac_word=$2
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117 $as_echo_n "checking for $ac_word... " >&6; }
11118 if ${ac_cv_path_TR+:} false; then :
11119   $as_echo_n "(cached) " >&6
11120 else
11121   case $TR in
11122   [\\/]* | ?:[\\/]*)
11123   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11124   ;;
11125   *)
11126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127 for as_dir in $PATH
11128 do
11129   IFS=$as_save_IFS
11130   test -z "$as_dir" && as_dir=.
11131     for ac_exec_ext in '' $ac_executable_extensions; do
11132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11133     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11135     break 2
11136   fi
11137 done
11138   done
11139 IFS=$as_save_IFS
11140 
11141   ;;
11142 esac
11143 fi
11144 TR=$ac_cv_path_TR
11145 if test -n "$TR"; then
11146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11147 $as_echo "$TR" >&6; }
11148 else
11149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150 $as_echo "no" >&6; }
11151 fi
11152 
11153 
11154   test -n "$TR" && break
11155 done
11156 
11157   else
11158     # The variable is set, but is it from the command line or the environment?
11159 
11160     # Try to remove the string !TR! from our list.
11161     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11162     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11163       # If it failed, the variable was not from the command line. Ignore it,
11164       # but warn the user (except for BASH, which is always set by the calling BASH).
11165       if test "xTR" != xBASH; then
11166         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11167 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11168       fi
11169       # Try to locate tool using the code snippet
11170       for ac_prog in tr
11171 do
11172   # Extract the first word of "$ac_prog", so it can be a program name with args.
11173 set dummy $ac_prog; ac_word=$2
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175 $as_echo_n "checking for $ac_word... " >&6; }
11176 if ${ac_cv_path_TR+:} false; then :
11177   $as_echo_n "(cached) " >&6
11178 else
11179   case $TR in
11180   [\\/]* | ?:[\\/]*)
11181   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11182   ;;
11183   *)
11184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11186 do
11187   IFS=$as_save_IFS
11188   test -z "$as_dir" && as_dir=.
11189     for ac_exec_ext in '' $ac_executable_extensions; do
11190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11191     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193     break 2
11194   fi
11195 done
11196   done
11197 IFS=$as_save_IFS
11198 
11199   ;;
11200 esac
11201 fi
11202 TR=$ac_cv_path_TR
11203 if test -n "$TR"; then
11204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11205 $as_echo "$TR" >&6; }
11206 else
11207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 $as_echo "no" >&6; }
11209 fi
11210 
11211 
11212   test -n "$TR" && break
11213 done
11214 
11215     else
11216       # If it succeeded, then it was overridden by the user. We will use it
11217       # for the tool.
11218 
11219       # First remove it from the list of overridden variables, so we can test
11220       # for unknown variables in the end.
11221       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11222 
11223       # Check if we try to supply an empty value
11224       if test "x$TR" = x; then
11225         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
11226 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
11227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11228 $as_echo_n "checking for TR... " >&6; }
11229         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11230 $as_echo "disabled" >&6; }
11231       else
11232         # Check if the provided tool contains a complete path.
11233         tool_specified="$TR"
11234         tool_basename="${tool_specified##*/}"
11235         if test "x$tool_basename" = "x$tool_specified"; then
11236           # A command without a complete path is provided, search $PATH.
11237           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
11238 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
11239           # Extract the first word of "$tool_basename", so it can be a program name with args.
11240 set dummy $tool_basename; ac_word=$2
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11242 $as_echo_n "checking for $ac_word... " >&6; }
11243 if ${ac_cv_path_TR+:} false; then :
11244   $as_echo_n "(cached) " >&6
11245 else
11246   case $TR in
11247   [\\/]* | ?:[\\/]*)
11248   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11249   ;;
11250   *)
11251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11253 do
11254   IFS=$as_save_IFS
11255   test -z "$as_dir" && as_dir=.
11256     for ac_exec_ext in '' $ac_executable_extensions; do
11257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11258     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260     break 2
11261   fi
11262 done
11263   done
11264 IFS=$as_save_IFS
11265 
11266   ;;
11267 esac
11268 fi
11269 TR=$ac_cv_path_TR
11270 if test -n "$TR"; then
11271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11272 $as_echo "$TR" >&6; }
11273 else
11274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275 $as_echo "no" >&6; }
11276 fi
11277 
11278 
11279           if test "x$TR" = x; then
11280             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11281           fi
11282         else
11283           # Otherwise we believe it is a complete path. Use it as it is.
11284           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
11285 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
11286           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11287 $as_echo_n "checking for TR... " >&6; }
11288           if test ! -x "$tool_specified"; then
11289             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11290 $as_echo "not found" >&6; }
11291             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
11292           fi
11293           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11294 $as_echo "$tool_specified" >&6; }
11295         fi
11296       fi
11297     fi
11298 
11299   fi
11300 
11301 
11302 
11303   if test "x$TR" = x; then
11304     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
11305   fi
11306 
11307 
11308 
11309 
11310 
11311   # Publish this variable in the help.
11312 
11313 
11314   if [ -z "${UNAME+x}" ]; then
11315     # The variable is not set by user, try to locate tool using the code snippet
11316     for ac_prog in uname
11317 do
11318   # Extract the first word of "$ac_prog", so it can be a program name with args.
11319 set dummy $ac_prog; ac_word=$2
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321 $as_echo_n "checking for $ac_word... " >&6; }
11322 if ${ac_cv_path_UNAME+:} false; then :
11323   $as_echo_n "(cached) " >&6
11324 else
11325   case $UNAME in
11326   [\\/]* | ?:[\\/]*)
11327   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11328   ;;
11329   *)
11330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11332 do
11333   IFS=$as_save_IFS
11334   test -z "$as_dir" && as_dir=.
11335     for ac_exec_ext in '' $ac_executable_extensions; do
11336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11337     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11339     break 2
11340   fi
11341 done
11342   done
11343 IFS=$as_save_IFS
11344 
11345   ;;
11346 esac
11347 fi
11348 UNAME=$ac_cv_path_UNAME
11349 if test -n "$UNAME"; then
11350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11351 $as_echo "$UNAME" >&6; }
11352 else
11353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354 $as_echo "no" >&6; }
11355 fi
11356 
11357 
11358   test -n "$UNAME" && break
11359 done
11360 
11361   else
11362     # The variable is set, but is it from the command line or the environment?
11363 
11364     # Try to remove the string !UNAME! from our list.
11365     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
11366     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11367       # If it failed, the variable was not from the command line. Ignore it,
11368       # but warn the user (except for BASH, which is always set by the calling BASH).
11369       if test "xUNAME" != xBASH; then
11370         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
11371 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
11372       fi
11373       # Try to locate tool using the code snippet
11374       for ac_prog in uname
11375 do
11376   # Extract the first word of "$ac_prog", so it can be a program name with args.
11377 set dummy $ac_prog; ac_word=$2
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379 $as_echo_n "checking for $ac_word... " >&6; }
11380 if ${ac_cv_path_UNAME+:} false; then :
11381   $as_echo_n "(cached) " >&6
11382 else
11383   case $UNAME in
11384   [\\/]* | ?:[\\/]*)
11385   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11386   ;;
11387   *)
11388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in $PATH
11390 do
11391   IFS=$as_save_IFS
11392   test -z "$as_dir" && as_dir=.
11393     for ac_exec_ext in '' $ac_executable_extensions; do
11394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11395     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11397     break 2
11398   fi
11399 done
11400   done
11401 IFS=$as_save_IFS
11402 
11403   ;;
11404 esac
11405 fi
11406 UNAME=$ac_cv_path_UNAME
11407 if test -n "$UNAME"; then
11408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11409 $as_echo "$UNAME" >&6; }
11410 else
11411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11413 fi
11414 
11415 
11416   test -n "$UNAME" && break
11417 done
11418 
11419     else
11420       # If it succeeded, then it was overridden by the user. We will use it
11421       # for the tool.
11422 
11423       # First remove it from the list of overridden variables, so we can test
11424       # for unknown variables in the end.
11425       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11426 
11427       # Check if we try to supply an empty value
11428       if test "x$UNAME" = x; then
11429         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
11430 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
11431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11432 $as_echo_n "checking for UNAME... " >&6; }
11433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11434 $as_echo "disabled" >&6; }
11435       else
11436         # Check if the provided tool contains a complete path.
11437         tool_specified="$UNAME"
11438         tool_basename="${tool_specified##*/}"
11439         if test "x$tool_basename" = "x$tool_specified"; then
11440           # A command without a complete path is provided, search $PATH.
11441           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
11442 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
11443           # Extract the first word of "$tool_basename", so it can be a program name with args.
11444 set dummy $tool_basename; ac_word=$2
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11446 $as_echo_n "checking for $ac_word... " >&6; }
11447 if ${ac_cv_path_UNAME+:} false; then :
11448   $as_echo_n "(cached) " >&6
11449 else
11450   case $UNAME in
11451   [\\/]* | ?:[\\/]*)
11452   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11453   ;;
11454   *)
11455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456 for as_dir in $PATH
11457 do
11458   IFS=$as_save_IFS
11459   test -z "$as_dir" && as_dir=.
11460     for ac_exec_ext in '' $ac_executable_extensions; do
11461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11462     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11464     break 2
11465   fi
11466 done
11467   done
11468 IFS=$as_save_IFS
11469 
11470   ;;
11471 esac
11472 fi
11473 UNAME=$ac_cv_path_UNAME
11474 if test -n "$UNAME"; then
11475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11476 $as_echo "$UNAME" >&6; }
11477 else
11478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11479 $as_echo "no" >&6; }
11480 fi
11481 
11482 
11483           if test "x$UNAME" = x; then
11484             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11485           fi
11486         else
11487           # Otherwise we believe it is a complete path. Use it as it is.
11488           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
11489 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
11490           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11491 $as_echo_n "checking for UNAME... " >&6; }
11492           if test ! -x "$tool_specified"; then
11493             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11494 $as_echo "not found" >&6; }
11495             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
11496           fi
11497           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11498 $as_echo "$tool_specified" >&6; }
11499         fi
11500       fi
11501     fi
11502 
11503   fi
11504 
11505 
11506 
11507   if test "x$UNAME" = x; then
11508     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
11509   fi
11510 
11511 
11512 
11513 
11514 
11515   # Publish this variable in the help.
11516 
11517 
11518   if [ -z "${UNIQ+x}" ]; then
11519     # The variable is not set by user, try to locate tool using the code snippet
11520     for ac_prog in uniq
11521 do
11522   # Extract the first word of "$ac_prog", so it can be a program name with args.
11523 set dummy $ac_prog; ac_word=$2
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11525 $as_echo_n "checking for $ac_word... " >&6; }
11526 if ${ac_cv_path_UNIQ+:} false; then :
11527   $as_echo_n "(cached) " >&6
11528 else
11529   case $UNIQ in
11530   [\\/]* | ?:[\\/]*)
11531   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11532   ;;
11533   *)
11534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535 for as_dir in $PATH
11536 do
11537   IFS=$as_save_IFS
11538   test -z "$as_dir" && as_dir=.
11539     for ac_exec_ext in '' $ac_executable_extensions; do
11540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11541     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11543     break 2
11544   fi
11545 done
11546   done
11547 IFS=$as_save_IFS
11548 
11549   ;;
11550 esac
11551 fi
11552 UNIQ=$ac_cv_path_UNIQ
11553 if test -n "$UNIQ"; then
11554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11555 $as_echo "$UNIQ" >&6; }
11556 else
11557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 $as_echo "no" >&6; }
11559 fi
11560 
11561 
11562   test -n "$UNIQ" && break
11563 done
11564 
11565   else
11566     # The variable is set, but is it from the command line or the environment?
11567 
11568     # Try to remove the string !UNIQ! from our list.
11569     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11570     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11571       # If it failed, the variable was not from the command line. Ignore it,
11572       # but warn the user (except for BASH, which is always set by the calling BASH).
11573       if test "xUNIQ" != xBASH; then
11574         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11575 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11576       fi
11577       # Try to locate tool using the code snippet
11578       for ac_prog in uniq
11579 do
11580   # Extract the first word of "$ac_prog", so it can be a program name with args.
11581 set dummy $ac_prog; ac_word=$2
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583 $as_echo_n "checking for $ac_word... " >&6; }
11584 if ${ac_cv_path_UNIQ+:} false; then :
11585   $as_echo_n "(cached) " >&6
11586 else
11587   case $UNIQ in
11588   [\\/]* | ?:[\\/]*)
11589   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11590   ;;
11591   *)
11592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593 for as_dir in $PATH
11594 do
11595   IFS=$as_save_IFS
11596   test -z "$as_dir" && as_dir=.
11597     for ac_exec_ext in '' $ac_executable_extensions; do
11598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11599     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11601     break 2
11602   fi
11603 done
11604   done
11605 IFS=$as_save_IFS
11606 
11607   ;;
11608 esac
11609 fi
11610 UNIQ=$ac_cv_path_UNIQ
11611 if test -n "$UNIQ"; then
11612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11613 $as_echo "$UNIQ" >&6; }
11614 else
11615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11617 fi
11618 
11619 
11620   test -n "$UNIQ" && break
11621 done
11622 
11623     else
11624       # If it succeeded, then it was overridden by the user. We will use it
11625       # for the tool.
11626 
11627       # First remove it from the list of overridden variables, so we can test
11628       # for unknown variables in the end.
11629       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11630 
11631       # Check if we try to supply an empty value
11632       if test "x$UNIQ" = x; then
11633         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
11634 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
11635         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11636 $as_echo_n "checking for UNIQ... " >&6; }
11637         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11638 $as_echo "disabled" >&6; }
11639       else
11640         # Check if the provided tool contains a complete path.
11641         tool_specified="$UNIQ"
11642         tool_basename="${tool_specified##*/}"
11643         if test "x$tool_basename" = "x$tool_specified"; then
11644           # A command without a complete path is provided, search $PATH.
11645           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
11646 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
11647           # Extract the first word of "$tool_basename", so it can be a program name with args.
11648 set dummy $tool_basename; ac_word=$2
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11650 $as_echo_n "checking for $ac_word... " >&6; }
11651 if ${ac_cv_path_UNIQ+:} false; then :
11652   $as_echo_n "(cached) " >&6
11653 else
11654   case $UNIQ in
11655   [\\/]* | ?:[\\/]*)
11656   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11657   ;;
11658   *)
11659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11661 do
11662   IFS=$as_save_IFS
11663   test -z "$as_dir" && as_dir=.
11664     for ac_exec_ext in '' $ac_executable_extensions; do
11665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668     break 2
11669   fi
11670 done
11671   done
11672 IFS=$as_save_IFS
11673 
11674   ;;
11675 esac
11676 fi
11677 UNIQ=$ac_cv_path_UNIQ
11678 if test -n "$UNIQ"; then
11679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11680 $as_echo "$UNIQ" >&6; }
11681 else
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11684 fi
11685 
11686 
11687           if test "x$UNIQ" = x; then
11688             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11689           fi
11690         else
11691           # Otherwise we believe it is a complete path. Use it as it is.
11692           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
11693 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
11694           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11695 $as_echo_n "checking for UNIQ... " >&6; }
11696           if test ! -x "$tool_specified"; then
11697             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11698 $as_echo "not found" >&6; }
11699             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
11700           fi
11701           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11702 $as_echo "$tool_specified" >&6; }
11703         fi
11704       fi
11705     fi
11706 
11707   fi
11708 
11709 
11710 
11711   if test "x$UNIQ" = x; then
11712     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
11713   fi
11714 
11715 
11716 
11717 
11718 
11719   # Publish this variable in the help.
11720 
11721 
11722   if [ -z "${WC+x}" ]; then
11723     # The variable is not set by user, try to locate tool using the code snippet
11724     for ac_prog in wc
11725 do
11726   # Extract the first word of "$ac_prog", so it can be a program name with args.
11727 set dummy $ac_prog; ac_word=$2
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729 $as_echo_n "checking for $ac_word... " >&6; }
11730 if ${ac_cv_path_WC+:} false; then :
11731   $as_echo_n "(cached) " >&6
11732 else
11733   case $WC in
11734   [\\/]* | ?:[\\/]*)
11735   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11736   ;;
11737   *)
11738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739 for as_dir in $PATH
11740 do
11741   IFS=$as_save_IFS
11742   test -z "$as_dir" && as_dir=.
11743     for ac_exec_ext in '' $ac_executable_extensions; do
11744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11745     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747     break 2
11748   fi
11749 done
11750   done
11751 IFS=$as_save_IFS
11752 
11753   ;;
11754 esac
11755 fi
11756 WC=$ac_cv_path_WC
11757 if test -n "$WC"; then
11758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11759 $as_echo "$WC" >&6; }
11760 else
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11763 fi
11764 
11765 
11766   test -n "$WC" && break
11767 done
11768 
11769   else
11770     # The variable is set, but is it from the command line or the environment?
11771 
11772     # Try to remove the string !WC! from our list.
11773     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
11774     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11775       # If it failed, the variable was not from the command line. Ignore it,
11776       # but warn the user (except for BASH, which is always set by the calling BASH).
11777       if test "xWC" != xBASH; then
11778         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
11779 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
11780       fi
11781       # Try to locate tool using the code snippet
11782       for ac_prog in wc
11783 do
11784   # Extract the first word of "$ac_prog", so it can be a program name with args.
11785 set dummy $ac_prog; ac_word=$2
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787 $as_echo_n "checking for $ac_word... " >&6; }
11788 if ${ac_cv_path_WC+:} false; then :
11789   $as_echo_n "(cached) " >&6
11790 else
11791   case $WC in
11792   [\\/]* | ?:[\\/]*)
11793   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11794   ;;
11795   *)
11796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797 for as_dir in $PATH
11798 do
11799   IFS=$as_save_IFS
11800   test -z "$as_dir" && as_dir=.
11801     for ac_exec_ext in '' $ac_executable_extensions; do
11802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805     break 2
11806   fi
11807 done
11808   done
11809 IFS=$as_save_IFS
11810 
11811   ;;
11812 esac
11813 fi
11814 WC=$ac_cv_path_WC
11815 if test -n "$WC"; then
11816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11817 $as_echo "$WC" >&6; }
11818 else
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11821 fi
11822 
11823 
11824   test -n "$WC" && break
11825 done
11826 
11827     else
11828       # If it succeeded, then it was overridden by the user. We will use it
11829       # for the tool.
11830 
11831       # First remove it from the list of overridden variables, so we can test
11832       # for unknown variables in the end.
11833       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11834 
11835       # Check if we try to supply an empty value
11836       if test "x$WC" = x; then
11837         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
11838 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
11839         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11840 $as_echo_n "checking for WC... " >&6; }
11841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11842 $as_echo "disabled" >&6; }
11843       else
11844         # Check if the provided tool contains a complete path.
11845         tool_specified="$WC"
11846         tool_basename="${tool_specified##*/}"
11847         if test "x$tool_basename" = "x$tool_specified"; then
11848           # A command without a complete path is provided, search $PATH.
11849           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
11850 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
11851           # Extract the first word of "$tool_basename", so it can be a program name with args.
11852 set dummy $tool_basename; ac_word=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if ${ac_cv_path_WC+:} false; then :
11856   $as_echo_n "(cached) " >&6
11857 else
11858   case $WC in
11859   [\\/]* | ?:[\\/]*)
11860   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11861   ;;
11862   *)
11863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $PATH
11865 do
11866   IFS=$as_save_IFS
11867   test -z "$as_dir" && as_dir=.
11868     for ac_exec_ext in '' $ac_executable_extensions; do
11869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11870     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872     break 2
11873   fi
11874 done
11875   done
11876 IFS=$as_save_IFS
11877 
11878   ;;
11879 esac
11880 fi
11881 WC=$ac_cv_path_WC
11882 if test -n "$WC"; then
11883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11884 $as_echo "$WC" >&6; }
11885 else
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888 fi
11889 
11890 
11891           if test "x$WC" = x; then
11892             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11893           fi
11894         else
11895           # Otherwise we believe it is a complete path. Use it as it is.
11896           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11897 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11898           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11899 $as_echo_n "checking for WC... " >&6; }
11900           if test ! -x "$tool_specified"; then
11901             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11902 $as_echo "not found" >&6; }
11903             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11904           fi
11905           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11906 $as_echo "$tool_specified" >&6; }
11907         fi
11908       fi
11909     fi
11910 
11911   fi
11912 
11913 
11914 
11915   if test "x$WC" = x; then
11916     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11917   fi
11918 
11919 
11920 
11921 
11922 
11923   # Publish this variable in the help.
11924 
11925 
11926   if [ -z "${WHICH+x}" ]; then
11927     # The variable is not set by user, try to locate tool using the code snippet
11928     for ac_prog in which
11929 do
11930   # Extract the first word of "$ac_prog", so it can be a program name with args.
11931 set dummy $ac_prog; ac_word=$2
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11933 $as_echo_n "checking for $ac_word... " >&6; }
11934 if ${ac_cv_path_WHICH+:} false; then :
11935   $as_echo_n "(cached) " >&6
11936 else
11937   case $WHICH in
11938   [\\/]* | ?:[\\/]*)
11939   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11940   ;;
11941   *)
11942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11943 for as_dir in $PATH
11944 do
11945   IFS=$as_save_IFS
11946   test -z "$as_dir" && as_dir=.
11947     for ac_exec_ext in '' $ac_executable_extensions; do
11948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11949     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11951     break 2
11952   fi
11953 done
11954   done
11955 IFS=$as_save_IFS
11956 
11957   ;;
11958 esac
11959 fi
11960 WHICH=$ac_cv_path_WHICH
11961 if test -n "$WHICH"; then
11962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11963 $as_echo "$WHICH" >&6; }
11964 else
11965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11966 $as_echo "no" >&6; }
11967 fi
11968 
11969 
11970   test -n "$WHICH" && break
11971 done
11972 
11973   else
11974     # The variable is set, but is it from the command line or the environment?
11975 
11976     # Try to remove the string !WHICH! from our list.
11977     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11978     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11979       # If it failed, the variable was not from the command line. Ignore it,
11980       # but warn the user (except for BASH, which is always set by the calling BASH).
11981       if test "xWHICH" != xBASH; then
11982         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11983 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11984       fi
11985       # Try to locate tool using the code snippet
11986       for ac_prog in which
11987 do
11988   # Extract the first word of "$ac_prog", so it can be a program name with args.
11989 set dummy $ac_prog; ac_word=$2
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991 $as_echo_n "checking for $ac_word... " >&6; }
11992 if ${ac_cv_path_WHICH+:} false; then :
11993   $as_echo_n "(cached) " >&6
11994 else
11995   case $WHICH in
11996   [\\/]* | ?:[\\/]*)
11997   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11998   ;;
11999   *)
12000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001 for as_dir in $PATH
12002 do
12003   IFS=$as_save_IFS
12004   test -z "$as_dir" && as_dir=.
12005     for ac_exec_ext in '' $ac_executable_extensions; do
12006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12007     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12009     break 2
12010   fi
12011 done
12012   done
12013 IFS=$as_save_IFS
12014 
12015   ;;
12016 esac
12017 fi
12018 WHICH=$ac_cv_path_WHICH
12019 if test -n "$WHICH"; then
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12021 $as_echo "$WHICH" >&6; }
12022 else
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12025 fi
12026 
12027 
12028   test -n "$WHICH" && break
12029 done
12030 
12031     else
12032       # If it succeeded, then it was overridden by the user. We will use it
12033       # for the tool.
12034 
12035       # First remove it from the list of overridden variables, so we can test
12036       # for unknown variables in the end.
12037       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12038 
12039       # Check if we try to supply an empty value
12040       if test "x$WHICH" = x; then
12041         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12042 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12044 $as_echo_n "checking for WHICH... " >&6; }
12045         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12046 $as_echo "disabled" >&6; }
12047       else
12048         # Check if the provided tool contains a complete path.
12049         tool_specified="$WHICH"
12050         tool_basename="${tool_specified##*/}"
12051         if test "x$tool_basename" = "x$tool_specified"; then
12052           # A command without a complete path is provided, search $PATH.
12053           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12054 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12055           # Extract the first word of "$tool_basename", so it can be a program name with args.
12056 set dummy $tool_basename; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058 $as_echo_n "checking for $ac_word... " >&6; }
12059 if ${ac_cv_path_WHICH+:} false; then :
12060   $as_echo_n "(cached) " >&6
12061 else
12062   case $WHICH in
12063   [\\/]* | ?:[\\/]*)
12064   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12065   ;;
12066   *)
12067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12069 do
12070   IFS=$as_save_IFS
12071   test -z "$as_dir" && as_dir=.
12072     for ac_exec_ext in '' $ac_executable_extensions; do
12073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12076     break 2
12077   fi
12078 done
12079   done
12080 IFS=$as_save_IFS
12081 
12082   ;;
12083 esac
12084 fi
12085 WHICH=$ac_cv_path_WHICH
12086 if test -n "$WHICH"; then
12087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12088 $as_echo "$WHICH" >&6; }
12089 else
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12092 fi
12093 
12094 
12095           if test "x$WHICH" = x; then
12096             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12097           fi
12098         else
12099           # Otherwise we believe it is a complete path. Use it as it is.
12100           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12101 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12102           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12103 $as_echo_n "checking for WHICH... " >&6; }
12104           if test ! -x "$tool_specified"; then
12105             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12106 $as_echo "not found" >&6; }
12107             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12108           fi
12109           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12110 $as_echo "$tool_specified" >&6; }
12111         fi
12112       fi
12113     fi
12114 
12115   fi
12116 
12117 
12118 
12119   if test "x$WHICH" = x; then
12120     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12121   fi
12122 
12123 
12124 
12125 
12126 
12127   # Publish this variable in the help.
12128 
12129 
12130   if [ -z "${XARGS+x}" ]; then
12131     # The variable is not set by user, try to locate tool using the code snippet
12132     for ac_prog in xargs
12133 do
12134   # Extract the first word of "$ac_prog", so it can be a program name with args.
12135 set dummy $ac_prog; ac_word=$2
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137 $as_echo_n "checking for $ac_word... " >&6; }
12138 if ${ac_cv_path_XARGS+:} false; then :
12139   $as_echo_n "(cached) " >&6
12140 else
12141   case $XARGS in
12142   [\\/]* | ?:[\\/]*)
12143   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12144   ;;
12145   *)
12146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147 for as_dir in $PATH
12148 do
12149   IFS=$as_save_IFS
12150   test -z "$as_dir" && as_dir=.
12151     for ac_exec_ext in '' $ac_executable_extensions; do
12152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12153     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12155     break 2
12156   fi
12157 done
12158   done
12159 IFS=$as_save_IFS
12160 
12161   ;;
12162 esac
12163 fi
12164 XARGS=$ac_cv_path_XARGS
12165 if test -n "$XARGS"; then
12166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12167 $as_echo "$XARGS" >&6; }
12168 else
12169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12171 fi
12172 
12173 
12174   test -n "$XARGS" && break
12175 done
12176 
12177   else
12178     # The variable is set, but is it from the command line or the environment?
12179 
12180     # Try to remove the string !XARGS! from our list.
12181     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12182     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12183       # If it failed, the variable was not from the command line. Ignore it,
12184       # but warn the user (except for BASH, which is always set by the calling BASH).
12185       if test "xXARGS" != xBASH; then
12186         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12187 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12188       fi
12189       # Try to locate tool using the code snippet
12190       for ac_prog in xargs
12191 do
12192   # Extract the first word of "$ac_prog", so it can be a program name with args.
12193 set dummy $ac_prog; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if ${ac_cv_path_XARGS+:} false; then :
12197   $as_echo_n "(cached) " >&6
12198 else
12199   case $XARGS in
12200   [\\/]* | ?:[\\/]*)
12201   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12202   ;;
12203   *)
12204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12206 do
12207   IFS=$as_save_IFS
12208   test -z "$as_dir" && as_dir=.
12209     for ac_exec_ext in '' $ac_executable_extensions; do
12210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213     break 2
12214   fi
12215 done
12216   done
12217 IFS=$as_save_IFS
12218 
12219   ;;
12220 esac
12221 fi
12222 XARGS=$ac_cv_path_XARGS
12223 if test -n "$XARGS"; then
12224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12225 $as_echo "$XARGS" >&6; }
12226 else
12227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12229 fi
12230 
12231 
12232   test -n "$XARGS" && break
12233 done
12234 
12235     else
12236       # If it succeeded, then it was overridden by the user. We will use it
12237       # for the tool.
12238 
12239       # First remove it from the list of overridden variables, so we can test
12240       # for unknown variables in the end.
12241       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12242 
12243       # Check if we try to supply an empty value
12244       if test "x$XARGS" = x; then
12245         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
12246 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
12247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12248 $as_echo_n "checking for XARGS... " >&6; }
12249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12250 $as_echo "disabled" >&6; }
12251       else
12252         # Check if the provided tool contains a complete path.
12253         tool_specified="$XARGS"
12254         tool_basename="${tool_specified##*/}"
12255         if test "x$tool_basename" = "x$tool_specified"; then
12256           # A command without a complete path is provided, search $PATH.
12257           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
12258 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
12259           # Extract the first word of "$tool_basename", so it can be a program name with args.
12260 set dummy $tool_basename; ac_word=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262 $as_echo_n "checking for $ac_word... " >&6; }
12263 if ${ac_cv_path_XARGS+:} false; then :
12264   $as_echo_n "(cached) " >&6
12265 else
12266   case $XARGS in
12267   [\\/]* | ?:[\\/]*)
12268   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12269   ;;
12270   *)
12271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $PATH
12273 do
12274   IFS=$as_save_IFS
12275   test -z "$as_dir" && as_dir=.
12276     for ac_exec_ext in '' $ac_executable_extensions; do
12277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12278     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12280     break 2
12281   fi
12282 done
12283   done
12284 IFS=$as_save_IFS
12285 
12286   ;;
12287 esac
12288 fi
12289 XARGS=$ac_cv_path_XARGS
12290 if test -n "$XARGS"; then
12291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12292 $as_echo "$XARGS" >&6; }
12293 else
12294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296 fi
12297 
12298 
12299           if test "x$XARGS" = x; then
12300             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12301           fi
12302         else
12303           # Otherwise we believe it is a complete path. Use it as it is.
12304           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
12305 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
12306           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12307 $as_echo_n "checking for XARGS... " >&6; }
12308           if test ! -x "$tool_specified"; then
12309             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12310 $as_echo "not found" >&6; }
12311             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
12312           fi
12313           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12314 $as_echo "$tool_specified" >&6; }
12315         fi
12316       fi
12317     fi
12318 
12319   fi
12320 
12321 
12322 
12323   if test "x$XARGS" = x; then
12324     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
12325   fi
12326 
12327 
12328 
12329   # Then required tools that require some special treatment.
12330 
12331 
12332   # Publish this variable in the help.
12333 
12334 
12335   if [ -z "${AWK+x}" ]; then
12336     # The variable is not set by user, try to locate tool using the code snippet
12337     for ac_prog in gawk mawk nawk awk
12338 do
12339   # Extract the first word of "$ac_prog", so it can be a program name with args.
12340 set dummy $ac_prog; ac_word=$2
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12342 $as_echo_n "checking for $ac_word... " >&6; }
12343 if ${ac_cv_prog_AWK+:} false; then :
12344   $as_echo_n "(cached) " >&6
12345 else
12346   if test -n "$AWK"; then
12347   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12348 else
12349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350 for as_dir in $PATH
12351 do
12352   IFS=$as_save_IFS
12353   test -z "$as_dir" && as_dir=.
12354     for ac_exec_ext in '' $ac_executable_extensions; do
12355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12356     ac_cv_prog_AWK="$ac_prog"
12357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358     break 2
12359   fi
12360 done
12361   done
12362 IFS=$as_save_IFS
12363 
12364 fi
12365 fi
12366 AWK=$ac_cv_prog_AWK
12367 if test -n "$AWK"; then
12368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12369 $as_echo "$AWK" >&6; }
12370 else
12371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12373 fi
12374 
12375 
12376   test -n "$AWK" && break
12377 done
12378 
12379   else
12380     # The variable is set, but is it from the command line or the environment?
12381 
12382     # Try to remove the string !AWK! from our list.
12383     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
12384     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12385       # If it failed, the variable was not from the command line. Ignore it,
12386       # but warn the user (except for BASH, which is always set by the calling BASH).
12387       if test "xAWK" != xBASH; then
12388         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
12389 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
12390       fi
12391       # Try to locate tool using the code snippet
12392       for ac_prog in gawk mawk nawk awk
12393 do
12394   # Extract the first word of "$ac_prog", so it can be a program name with args.
12395 set dummy $ac_prog; ac_word=$2
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397 $as_echo_n "checking for $ac_word... " >&6; }
12398 if ${ac_cv_prog_AWK+:} false; then :
12399   $as_echo_n "(cached) " >&6
12400 else
12401   if test -n "$AWK"; then
12402   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12403 else
12404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405 for as_dir in $PATH
12406 do
12407   IFS=$as_save_IFS
12408   test -z "$as_dir" && as_dir=.
12409     for ac_exec_ext in '' $ac_executable_extensions; do
12410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12411     ac_cv_prog_AWK="$ac_prog"
12412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413     break 2
12414   fi
12415 done
12416   done
12417 IFS=$as_save_IFS
12418 
12419 fi
12420 fi
12421 AWK=$ac_cv_prog_AWK
12422 if test -n "$AWK"; then
12423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12424 $as_echo "$AWK" >&6; }
12425 else
12426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 $as_echo "no" >&6; }
12428 fi
12429 
12430 
12431   test -n "$AWK" && break
12432 done
12433 
12434     else
12435       # If it succeeded, then it was overridden by the user. We will use it
12436       # for the tool.
12437 
12438       # First remove it from the list of overridden variables, so we can test
12439       # for unknown variables in the end.
12440       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12441 
12442       # Check if we try to supply an empty value
12443       if test "x$AWK" = x; then
12444         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
12445 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
12446         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12447 $as_echo_n "checking for AWK... " >&6; }
12448         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12449 $as_echo "disabled" >&6; }
12450       else
12451         # Check if the provided tool contains a complete path.
12452         tool_specified="$AWK"
12453         tool_basename="${tool_specified##*/}"
12454         if test "x$tool_basename" = "x$tool_specified"; then
12455           # A command without a complete path is provided, search $PATH.
12456           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
12457 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
12458           # Extract the first word of "$tool_basename", so it can be a program name with args.
12459 set dummy $tool_basename; ac_word=$2
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461 $as_echo_n "checking for $ac_word... " >&6; }
12462 if ${ac_cv_path_AWK+:} false; then :
12463   $as_echo_n "(cached) " >&6
12464 else
12465   case $AWK in
12466   [\\/]* | ?:[\\/]*)
12467   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
12468   ;;
12469   *)
12470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12472 do
12473   IFS=$as_save_IFS
12474   test -z "$as_dir" && as_dir=.
12475     for ac_exec_ext in '' $ac_executable_extensions; do
12476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12477     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12479     break 2
12480   fi
12481 done
12482   done
12483 IFS=$as_save_IFS
12484 
12485   ;;
12486 esac
12487 fi
12488 AWK=$ac_cv_path_AWK
12489 if test -n "$AWK"; then
12490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12491 $as_echo "$AWK" >&6; }
12492 else
12493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12495 fi
12496 
12497 
12498           if test "x$AWK" = x; then
12499             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12500           fi
12501         else
12502           # Otherwise we believe it is a complete path. Use it as it is.
12503           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
12504 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
12505           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12506 $as_echo_n "checking for AWK... " >&6; }
12507           if test ! -x "$tool_specified"; then
12508             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12509 $as_echo "not found" >&6; }
12510             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
12511           fi
12512           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12513 $as_echo "$tool_specified" >&6; }
12514         fi
12515       fi
12516     fi
12517 
12518   fi
12519 
12520 
12521   if test "x$AWK" = x; then
12522     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
12523   fi
12524 
12525 
12526 
12527 
12528   # Publish this variable in the help.
12529 
12530 
12531   if [ -z "${GREP+x}" ]; then
12532     # The variable is not set by user, try to locate tool using the code snippet
12533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12534 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12535 if ${ac_cv_path_GREP+:} false; then :
12536   $as_echo_n "(cached) " >&6
12537 else
12538   if test -z "$GREP"; then
12539   ac_path_GREP_found=false
12540   # Loop through the user's path and test for each of PROGNAME-LIST
12541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12543 do
12544   IFS=$as_save_IFS
12545   test -z "$as_dir" && as_dir=.
12546     for ac_prog in grep ggrep; do
12547     for ac_exec_ext in '' $ac_executable_extensions; do
12548       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12549       as_fn_executable_p "$ac_path_GREP" || continue
12550 # Check for GNU ac_path_GREP and select it if it is found.
12551   # Check for GNU $ac_path_GREP
12552 case `"$ac_path_GREP" --version 2>&1` in
12553 *GNU*)
12554   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12555 *)
12556   ac_count=0
12557   $as_echo_n 0123456789 >"conftest.in"
12558   while :
12559   do
12560     cat "conftest.in" "conftest.in" >"conftest.tmp"
12561     mv "conftest.tmp" "conftest.in"
12562     cp "conftest.in" "conftest.nl"
12563     $as_echo 'GREP' >> "conftest.nl"
12564     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12565     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12566     as_fn_arith $ac_count + 1 && ac_count=$as_val
12567     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12568       # Best one so far, save it but keep looking for a better one
12569       ac_cv_path_GREP="$ac_path_GREP"
12570       ac_path_GREP_max=$ac_count
12571     fi
12572     # 10*(2^10) chars as input seems more than enough
12573     test $ac_count -gt 10 && break
12574   done
12575   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12576 esac
12577 
12578       $ac_path_GREP_found && break 3
12579     done
12580   done
12581   done
12582 IFS=$as_save_IFS
12583   if test -z "$ac_cv_path_GREP"; then
12584     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12585   fi
12586 else
12587   ac_cv_path_GREP=$GREP
12588 fi
12589 
12590 fi
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12592 $as_echo "$ac_cv_path_GREP" >&6; }
12593  GREP="$ac_cv_path_GREP"
12594 
12595 
12596   else
12597     # The variable is set, but is it from the command line or the environment?
12598 
12599     # Try to remove the string !GREP! from our list.
12600     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
12601     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12602       # If it failed, the variable was not from the command line. Ignore it,
12603       # but warn the user (except for BASH, which is always set by the calling BASH).
12604       if test "xGREP" != xBASH; then
12605         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
12606 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
12607       fi
12608       # Try to locate tool using the code snippet
12609       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12610 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12611 if ${ac_cv_path_GREP+:} false; then :
12612   $as_echo_n "(cached) " >&6
12613 else
12614   if test -z "$GREP"; then
12615   ac_path_GREP_found=false
12616   # Loop through the user's path and test for each of PROGNAME-LIST
12617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12619 do
12620   IFS=$as_save_IFS
12621   test -z "$as_dir" && as_dir=.
12622     for ac_prog in grep ggrep; do
12623     for ac_exec_ext in '' $ac_executable_extensions; do
12624       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12625       as_fn_executable_p "$ac_path_GREP" || continue
12626 # Check for GNU ac_path_GREP and select it if it is found.
12627   # Check for GNU $ac_path_GREP
12628 case `"$ac_path_GREP" --version 2>&1` in
12629 *GNU*)
12630   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12631 *)
12632   ac_count=0
12633   $as_echo_n 0123456789 >"conftest.in"
12634   while :
12635   do
12636     cat "conftest.in" "conftest.in" >"conftest.tmp"
12637     mv "conftest.tmp" "conftest.in"
12638     cp "conftest.in" "conftest.nl"
12639     $as_echo 'GREP' >> "conftest.nl"
12640     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12641     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12642     as_fn_arith $ac_count + 1 && ac_count=$as_val
12643     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12644       # Best one so far, save it but keep looking for a better one
12645       ac_cv_path_GREP="$ac_path_GREP"
12646       ac_path_GREP_max=$ac_count
12647     fi
12648     # 10*(2^10) chars as input seems more than enough
12649     test $ac_count -gt 10 && break
12650   done
12651   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12652 esac
12653 
12654       $ac_path_GREP_found && break 3
12655     done
12656   done
12657   done
12658 IFS=$as_save_IFS
12659   if test -z "$ac_cv_path_GREP"; then
12660     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12661   fi
12662 else
12663   ac_cv_path_GREP=$GREP
12664 fi
12665 
12666 fi
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12668 $as_echo "$ac_cv_path_GREP" >&6; }
12669  GREP="$ac_cv_path_GREP"
12670 
12671 
12672     else
12673       # If it succeeded, then it was overridden by the user. We will use it
12674       # for the tool.
12675 
12676       # First remove it from the list of overridden variables, so we can test
12677       # for unknown variables in the end.
12678       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12679 
12680       # Check if we try to supply an empty value
12681       if test "x$GREP" = x; then
12682         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
12683 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
12684         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12685 $as_echo_n "checking for GREP... " >&6; }
12686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12687 $as_echo "disabled" >&6; }
12688       else
12689         # Check if the provided tool contains a complete path.
12690         tool_specified="$GREP"
12691         tool_basename="${tool_specified##*/}"
12692         if test "x$tool_basename" = "x$tool_specified"; then
12693           # A command without a complete path is provided, search $PATH.
12694           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
12695 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
12696           # Extract the first word of "$tool_basename", so it can be a program name with args.
12697 set dummy $tool_basename; ac_word=$2
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699 $as_echo_n "checking for $ac_word... " >&6; }
12700 if ${ac_cv_path_GREP+:} false; then :
12701   $as_echo_n "(cached) " >&6
12702 else
12703   case $GREP in
12704   [\\/]* | ?:[\\/]*)
12705   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12706   ;;
12707   *)
12708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709 for as_dir in $PATH
12710 do
12711   IFS=$as_save_IFS
12712   test -z "$as_dir" && as_dir=.
12713     for ac_exec_ext in '' $ac_executable_extensions; do
12714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12715     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12717     break 2
12718   fi
12719 done
12720   done
12721 IFS=$as_save_IFS
12722 
12723   ;;
12724 esac
12725 fi
12726 GREP=$ac_cv_path_GREP
12727 if test -n "$GREP"; then
12728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12729 $as_echo "$GREP" >&6; }
12730 else
12731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732 $as_echo "no" >&6; }
12733 fi
12734 
12735 
12736           if test "x$GREP" = x; then
12737             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12738           fi
12739         else
12740           # Otherwise we believe it is a complete path. Use it as it is.
12741           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
12742 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
12743           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12744 $as_echo_n "checking for GREP... " >&6; }
12745           if test ! -x "$tool_specified"; then
12746             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12747 $as_echo "not found" >&6; }
12748             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12749           fi
12750           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12751 $as_echo "$tool_specified" >&6; }
12752         fi
12753       fi
12754     fi
12755 
12756   fi
12757 
12758 
12759   if test "x$GREP" = x; then
12760     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
12761   fi
12762 
12763 
12764 
12765 
12766   # Publish this variable in the help.
12767 
12768 
12769   if [ -z "${EGREP+x}" ]; then
12770     # The variable is not set by user, try to locate tool using the code snippet
12771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12772 $as_echo_n "checking for egrep... " >&6; }
12773 if ${ac_cv_path_EGREP+:} false; then :
12774   $as_echo_n "(cached) " >&6
12775 else
12776   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12777    then ac_cv_path_EGREP="$GREP -E"
12778    else
12779      if test -z "$EGREP"; then
12780   ac_path_EGREP_found=false
12781   # Loop through the user's path and test for each of PROGNAME-LIST
12782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12784 do
12785   IFS=$as_save_IFS
12786   test -z "$as_dir" && as_dir=.
12787     for ac_prog in egrep; do
12788     for ac_exec_ext in '' $ac_executable_extensions; do
12789       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12790       as_fn_executable_p "$ac_path_EGREP" || continue
12791 # Check for GNU ac_path_EGREP and select it if it is found.
12792   # Check for GNU $ac_path_EGREP
12793 case `"$ac_path_EGREP" --version 2>&1` in
12794 *GNU*)
12795   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12796 *)
12797   ac_count=0
12798   $as_echo_n 0123456789 >"conftest.in"
12799   while :
12800   do
12801     cat "conftest.in" "conftest.in" >"conftest.tmp"
12802     mv "conftest.tmp" "conftest.in"
12803     cp "conftest.in" "conftest.nl"
12804     $as_echo 'EGREP' >> "conftest.nl"
12805     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12806     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12807     as_fn_arith $ac_count + 1 && ac_count=$as_val
12808     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12809       # Best one so far, save it but keep looking for a better one
12810       ac_cv_path_EGREP="$ac_path_EGREP"
12811       ac_path_EGREP_max=$ac_count
12812     fi
12813     # 10*(2^10) chars as input seems more than enough
12814     test $ac_count -gt 10 && break
12815   done
12816   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12817 esac
12818 
12819       $ac_path_EGREP_found && break 3
12820     done
12821   done
12822   done
12823 IFS=$as_save_IFS
12824   if test -z "$ac_cv_path_EGREP"; then
12825     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12826   fi
12827 else
12828   ac_cv_path_EGREP=$EGREP
12829 fi
12830 
12831    fi
12832 fi
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12834 $as_echo "$ac_cv_path_EGREP" >&6; }
12835  EGREP="$ac_cv_path_EGREP"
12836 
12837 
12838   else
12839     # The variable is set, but is it from the command line or the environment?
12840 
12841     # Try to remove the string !EGREP! from our list.
12842     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
12843     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12844       # If it failed, the variable was not from the command line. Ignore it,
12845       # but warn the user (except for BASH, which is always set by the calling BASH).
12846       if test "xEGREP" != xBASH; then
12847         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
12848 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
12849       fi
12850       # Try to locate tool using the code snippet
12851       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12852 $as_echo_n "checking for egrep... " >&6; }
12853 if ${ac_cv_path_EGREP+:} false; then :
12854   $as_echo_n "(cached) " >&6
12855 else
12856   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12857    then ac_cv_path_EGREP="$GREP -E"
12858    else
12859      if test -z "$EGREP"; then
12860   ac_path_EGREP_found=false
12861   # Loop through the user's path and test for each of PROGNAME-LIST
12862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12864 do
12865   IFS=$as_save_IFS
12866   test -z "$as_dir" && as_dir=.
12867     for ac_prog in egrep; do
12868     for ac_exec_ext in '' $ac_executable_extensions; do
12869       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12870       as_fn_executable_p "$ac_path_EGREP" || continue
12871 # Check for GNU ac_path_EGREP and select it if it is found.
12872   # Check for GNU $ac_path_EGREP
12873 case `"$ac_path_EGREP" --version 2>&1` in
12874 *GNU*)
12875   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12876 *)
12877   ac_count=0
12878   $as_echo_n 0123456789 >"conftest.in"
12879   while :
12880   do
12881     cat "conftest.in" "conftest.in" >"conftest.tmp"
12882     mv "conftest.tmp" "conftest.in"
12883     cp "conftest.in" "conftest.nl"
12884     $as_echo 'EGREP' >> "conftest.nl"
12885     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12886     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12887     as_fn_arith $ac_count + 1 && ac_count=$as_val
12888     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12889       # Best one so far, save it but keep looking for a better one
12890       ac_cv_path_EGREP="$ac_path_EGREP"
12891       ac_path_EGREP_max=$ac_count
12892     fi
12893     # 10*(2^10) chars as input seems more than enough
12894     test $ac_count -gt 10 && break
12895   done
12896   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12897 esac
12898 
12899       $ac_path_EGREP_found && break 3
12900     done
12901   done
12902   done
12903 IFS=$as_save_IFS
12904   if test -z "$ac_cv_path_EGREP"; then
12905     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12906   fi
12907 else
12908   ac_cv_path_EGREP=$EGREP
12909 fi
12910 
12911    fi
12912 fi
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12914 $as_echo "$ac_cv_path_EGREP" >&6; }
12915  EGREP="$ac_cv_path_EGREP"
12916 
12917 
12918     else
12919       # If it succeeded, then it was overridden by the user. We will use it
12920       # for the tool.
12921 
12922       # First remove it from the list of overridden variables, so we can test
12923       # for unknown variables in the end.
12924       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12925 
12926       # Check if we try to supply an empty value
12927       if test "x$EGREP" = x; then
12928         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
12929 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
12930         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12931 $as_echo_n "checking for EGREP... " >&6; }
12932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12933 $as_echo "disabled" >&6; }
12934       else
12935         # Check if the provided tool contains a complete path.
12936         tool_specified="$EGREP"
12937         tool_basename="${tool_specified##*/}"
12938         if test "x$tool_basename" = "x$tool_specified"; then
12939           # A command without a complete path is provided, search $PATH.
12940           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12941 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12942           # Extract the first word of "$tool_basename", so it can be a program name with args.
12943 set dummy $tool_basename; ac_word=$2
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945 $as_echo_n "checking for $ac_word... " >&6; }
12946 if ${ac_cv_path_EGREP+:} false; then :
12947   $as_echo_n "(cached) " >&6
12948 else
12949   case $EGREP in
12950   [\\/]* | ?:[\\/]*)
12951   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12952   ;;
12953   *)
12954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955 for as_dir in $PATH
12956 do
12957   IFS=$as_save_IFS
12958   test -z "$as_dir" && as_dir=.
12959     for ac_exec_ext in '' $ac_executable_extensions; do
12960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12961     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12963     break 2
12964   fi
12965 done
12966   done
12967 IFS=$as_save_IFS
12968 
12969   ;;
12970 esac
12971 fi
12972 EGREP=$ac_cv_path_EGREP
12973 if test -n "$EGREP"; then
12974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12975 $as_echo "$EGREP" >&6; }
12976 else
12977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12979 fi
12980 
12981 
12982           if test "x$EGREP" = x; then
12983             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12984           fi
12985         else
12986           # Otherwise we believe it is a complete path. Use it as it is.
12987           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12988 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12989           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12990 $as_echo_n "checking for EGREP... " >&6; }
12991           if test ! -x "$tool_specified"; then
12992             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12993 $as_echo "not found" >&6; }
12994             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12995           fi
12996           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12997 $as_echo "$tool_specified" >&6; }
12998         fi
12999       fi
13000     fi
13001 
13002   fi
13003 
13004 
13005   if test "x$EGREP" = x; then
13006     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13007   fi
13008 
13009 
13010 
13011 
13012   # Publish this variable in the help.
13013 
13014 
13015   if [ -z "${FGREP+x}" ]; then
13016     # The variable is not set by user, try to locate tool using the code snippet
13017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13018 $as_echo_n "checking for fgrep... " >&6; }
13019 if ${ac_cv_path_FGREP+:} false; then :
13020   $as_echo_n "(cached) " >&6
13021 else
13022   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13023    then ac_cv_path_FGREP="$GREP -F"
13024    else
13025      if test -z "$FGREP"; then
13026   ac_path_FGREP_found=false
13027   # Loop through the user's path and test for each of PROGNAME-LIST
13028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13030 do
13031   IFS=$as_save_IFS
13032   test -z "$as_dir" && as_dir=.
13033     for ac_prog in fgrep; do
13034     for ac_exec_ext in '' $ac_executable_extensions; do
13035       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13036       as_fn_executable_p "$ac_path_FGREP" || continue
13037 # Check for GNU ac_path_FGREP and select it if it is found.
13038   # Check for GNU $ac_path_FGREP
13039 case `"$ac_path_FGREP" --version 2>&1` in
13040 *GNU*)
13041   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13042 *)
13043   ac_count=0
13044   $as_echo_n 0123456789 >"conftest.in"
13045   while :
13046   do
13047     cat "conftest.in" "conftest.in" >"conftest.tmp"
13048     mv "conftest.tmp" "conftest.in"
13049     cp "conftest.in" "conftest.nl"
13050     $as_echo 'FGREP' >> "conftest.nl"
13051     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13052     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13053     as_fn_arith $ac_count + 1 && ac_count=$as_val
13054     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13055       # Best one so far, save it but keep looking for a better one
13056       ac_cv_path_FGREP="$ac_path_FGREP"
13057       ac_path_FGREP_max=$ac_count
13058     fi
13059     # 10*(2^10) chars as input seems more than enough
13060     test $ac_count -gt 10 && break
13061   done
13062   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13063 esac
13064 
13065       $ac_path_FGREP_found && break 3
13066     done
13067   done
13068   done
13069 IFS=$as_save_IFS
13070   if test -z "$ac_cv_path_FGREP"; then
13071     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13072   fi
13073 else
13074   ac_cv_path_FGREP=$FGREP
13075 fi
13076 
13077    fi
13078 fi
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13080 $as_echo "$ac_cv_path_FGREP" >&6; }
13081  FGREP="$ac_cv_path_FGREP"
13082 
13083 
13084   else
13085     # The variable is set, but is it from the command line or the environment?
13086 
13087     # Try to remove the string !FGREP! from our list.
13088     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13089     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13090       # If it failed, the variable was not from the command line. Ignore it,
13091       # but warn the user (except for BASH, which is always set by the calling BASH).
13092       if test "xFGREP" != xBASH; then
13093         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13094 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13095       fi
13096       # Try to locate tool using the code snippet
13097       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13098 $as_echo_n "checking for fgrep... " >&6; }
13099 if ${ac_cv_path_FGREP+:} false; then :
13100   $as_echo_n "(cached) " >&6
13101 else
13102   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13103    then ac_cv_path_FGREP="$GREP -F"
13104    else
13105      if test -z "$FGREP"; then
13106   ac_path_FGREP_found=false
13107   # Loop through the user's path and test for each of PROGNAME-LIST
13108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13110 do
13111   IFS=$as_save_IFS
13112   test -z "$as_dir" && as_dir=.
13113     for ac_prog in fgrep; do
13114     for ac_exec_ext in '' $ac_executable_extensions; do
13115       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13116       as_fn_executable_p "$ac_path_FGREP" || continue
13117 # Check for GNU ac_path_FGREP and select it if it is found.
13118   # Check for GNU $ac_path_FGREP
13119 case `"$ac_path_FGREP" --version 2>&1` in
13120 *GNU*)
13121   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13122 *)
13123   ac_count=0
13124   $as_echo_n 0123456789 >"conftest.in"
13125   while :
13126   do
13127     cat "conftest.in" "conftest.in" >"conftest.tmp"
13128     mv "conftest.tmp" "conftest.in"
13129     cp "conftest.in" "conftest.nl"
13130     $as_echo 'FGREP' >> "conftest.nl"
13131     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13132     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13133     as_fn_arith $ac_count + 1 && ac_count=$as_val
13134     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13135       # Best one so far, save it but keep looking for a better one
13136       ac_cv_path_FGREP="$ac_path_FGREP"
13137       ac_path_FGREP_max=$ac_count
13138     fi
13139     # 10*(2^10) chars as input seems more than enough
13140     test $ac_count -gt 10 && break
13141   done
13142   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13143 esac
13144 
13145       $ac_path_FGREP_found && break 3
13146     done
13147   done
13148   done
13149 IFS=$as_save_IFS
13150   if test -z "$ac_cv_path_FGREP"; then
13151     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13152   fi
13153 else
13154   ac_cv_path_FGREP=$FGREP
13155 fi
13156 
13157    fi
13158 fi
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13160 $as_echo "$ac_cv_path_FGREP" >&6; }
13161  FGREP="$ac_cv_path_FGREP"
13162 
13163 
13164     else
13165       # If it succeeded, then it was overridden by the user. We will use it
13166       # for the tool.
13167 
13168       # First remove it from the list of overridden variables, so we can test
13169       # for unknown variables in the end.
13170       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13171 
13172       # Check if we try to supply an empty value
13173       if test "x$FGREP" = x; then
13174         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13175 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13177 $as_echo_n "checking for FGREP... " >&6; }
13178         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13179 $as_echo "disabled" >&6; }
13180       else
13181         # Check if the provided tool contains a complete path.
13182         tool_specified="$FGREP"
13183         tool_basename="${tool_specified##*/}"
13184         if test "x$tool_basename" = "x$tool_specified"; then
13185           # A command without a complete path is provided, search $PATH.
13186           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13187 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13188           # Extract the first word of "$tool_basename", so it can be a program name with args.
13189 set dummy $tool_basename; ac_word=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 $as_echo_n "checking for $ac_word... " >&6; }
13192 if ${ac_cv_path_FGREP+:} false; then :
13193   $as_echo_n "(cached) " >&6
13194 else
13195   case $FGREP in
13196   [\\/]* | ?:[\\/]*)
13197   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13198   ;;
13199   *)
13200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201 for as_dir in $PATH
13202 do
13203   IFS=$as_save_IFS
13204   test -z "$as_dir" && as_dir=.
13205     for ac_exec_ext in '' $ac_executable_extensions; do
13206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13207     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13209     break 2
13210   fi
13211 done
13212   done
13213 IFS=$as_save_IFS
13214 
13215   ;;
13216 esac
13217 fi
13218 FGREP=$ac_cv_path_FGREP
13219 if test -n "$FGREP"; then
13220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
13221 $as_echo "$FGREP" >&6; }
13222 else
13223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13225 fi
13226 
13227 
13228           if test "x$FGREP" = x; then
13229             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13230           fi
13231         else
13232           # Otherwise we believe it is a complete path. Use it as it is.
13233           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
13234 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
13235           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13236 $as_echo_n "checking for FGREP... " >&6; }
13237           if test ! -x "$tool_specified"; then
13238             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13239 $as_echo "not found" >&6; }
13240             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13241           fi
13242           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13243 $as_echo "$tool_specified" >&6; }
13244         fi
13245       fi
13246     fi
13247 
13248   fi
13249 
13250 
13251   if test "x$FGREP" = x; then
13252     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
13253   fi
13254 
13255 
13256 
13257 
13258   # Publish this variable in the help.
13259 
13260 
13261   if [ -z "${SED+x}" ]; then
13262     # The variable is not set by user, try to locate tool using the code snippet
13263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13264 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13265 if ${ac_cv_path_SED+:} false; then :
13266   $as_echo_n "(cached) " >&6
13267 else
13268             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13269      for ac_i in 1 2 3 4 5 6 7; do
13270        ac_script="$ac_script$as_nl$ac_script"
13271      done
13272      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13273      { ac_script=; unset ac_script;}
13274      if test -z "$SED"; then
13275   ac_path_SED_found=false
13276   # Loop through the user's path and test for each of PROGNAME-LIST
13277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278 for as_dir in $PATH
13279 do
13280   IFS=$as_save_IFS
13281   test -z "$as_dir" && as_dir=.
13282     for ac_prog in sed gsed; do
13283     for ac_exec_ext in '' $ac_executable_extensions; do
13284       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13285       as_fn_executable_p "$ac_path_SED" || continue
13286 # Check for GNU ac_path_SED and select it if it is found.
13287   # Check for GNU $ac_path_SED
13288 case `"$ac_path_SED" --version 2>&1` in
13289 *GNU*)
13290   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13291 *)
13292   ac_count=0
13293   $as_echo_n 0123456789 >"conftest.in"
13294   while :
13295   do
13296     cat "conftest.in" "conftest.in" >"conftest.tmp"
13297     mv "conftest.tmp" "conftest.in"
13298     cp "conftest.in" "conftest.nl"
13299     $as_echo '' >> "conftest.nl"
13300     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13301     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13302     as_fn_arith $ac_count + 1 && ac_count=$as_val
13303     if test $ac_count -gt ${ac_path_SED_max-0}; then
13304       # Best one so far, save it but keep looking for a better one
13305       ac_cv_path_SED="$ac_path_SED"
13306       ac_path_SED_max=$ac_count
13307     fi
13308     # 10*(2^10) chars as input seems more than enough
13309     test $ac_count -gt 10 && break
13310   done
13311   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13312 esac
13313 
13314       $ac_path_SED_found && break 3
13315     done
13316   done
13317   done
13318 IFS=$as_save_IFS
13319   if test -z "$ac_cv_path_SED"; then
13320     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13321   fi
13322 else
13323   ac_cv_path_SED=$SED
13324 fi
13325 
13326 fi
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13328 $as_echo "$ac_cv_path_SED" >&6; }
13329  SED="$ac_cv_path_SED"
13330   rm -f conftest.sed
13331 
13332   else
13333     # The variable is set, but is it from the command line or the environment?
13334 
13335     # Try to remove the string !SED! from our list.
13336     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
13337     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13338       # If it failed, the variable was not from the command line. Ignore it,
13339       # but warn the user (except for BASH, which is always set by the calling BASH).
13340       if test "xSED" != xBASH; then
13341         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
13342 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
13343       fi
13344       # Try to locate tool using the code snippet
13345       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13346 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13347 if ${ac_cv_path_SED+:} false; then :
13348   $as_echo_n "(cached) " >&6
13349 else
13350             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13351      for ac_i in 1 2 3 4 5 6 7; do
13352        ac_script="$ac_script$as_nl$ac_script"
13353      done
13354      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13355      { ac_script=; unset ac_script;}
13356      if test -z "$SED"; then
13357   ac_path_SED_found=false
13358   # Loop through the user's path and test for each of PROGNAME-LIST
13359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360 for as_dir in $PATH
13361 do
13362   IFS=$as_save_IFS
13363   test -z "$as_dir" && as_dir=.
13364     for ac_prog in sed gsed; do
13365     for ac_exec_ext in '' $ac_executable_extensions; do
13366       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13367       as_fn_executable_p "$ac_path_SED" || continue
13368 # Check for GNU ac_path_SED and select it if it is found.
13369   # Check for GNU $ac_path_SED
13370 case `"$ac_path_SED" --version 2>&1` in
13371 *GNU*)
13372   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13373 *)
13374   ac_count=0
13375   $as_echo_n 0123456789 >"conftest.in"
13376   while :
13377   do
13378     cat "conftest.in" "conftest.in" >"conftest.tmp"
13379     mv "conftest.tmp" "conftest.in"
13380     cp "conftest.in" "conftest.nl"
13381     $as_echo '' >> "conftest.nl"
13382     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13383     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13384     as_fn_arith $ac_count + 1 && ac_count=$as_val
13385     if test $ac_count -gt ${ac_path_SED_max-0}; then
13386       # Best one so far, save it but keep looking for a better one
13387       ac_cv_path_SED="$ac_path_SED"
13388       ac_path_SED_max=$ac_count
13389     fi
13390     # 10*(2^10) chars as input seems more than enough
13391     test $ac_count -gt 10 && break
13392   done
13393   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13394 esac
13395 
13396       $ac_path_SED_found && break 3
13397     done
13398   done
13399   done
13400 IFS=$as_save_IFS
13401   if test -z "$ac_cv_path_SED"; then
13402     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13403   fi
13404 else
13405   ac_cv_path_SED=$SED
13406 fi
13407 
13408 fi
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13410 $as_echo "$ac_cv_path_SED" >&6; }
13411  SED="$ac_cv_path_SED"
13412   rm -f conftest.sed
13413 
13414     else
13415       # If it succeeded, then it was overridden by the user. We will use it
13416       # for the tool.
13417 
13418       # First remove it from the list of overridden variables, so we can test
13419       # for unknown variables in the end.
13420       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13421 
13422       # Check if we try to supply an empty value
13423       if test "x$SED" = x; then
13424         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
13425 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
13426         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13427 $as_echo_n "checking for SED... " >&6; }
13428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13429 $as_echo "disabled" >&6; }
13430       else
13431         # Check if the provided tool contains a complete path.
13432         tool_specified="$SED"
13433         tool_basename="${tool_specified##*/}"
13434         if test "x$tool_basename" = "x$tool_specified"; then
13435           # A command without a complete path is provided, search $PATH.
13436           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
13437 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
13438           # Extract the first word of "$tool_basename", so it can be a program name with args.
13439 set dummy $tool_basename; ac_word=$2
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441 $as_echo_n "checking for $ac_word... " >&6; }
13442 if ${ac_cv_path_SED+:} false; then :
13443   $as_echo_n "(cached) " >&6
13444 else
13445   case $SED in
13446   [\\/]* | ?:[\\/]*)
13447   ac_cv_path_SED="$SED" # Let the user override the test with a path.
13448   ;;
13449   *)
13450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451 for as_dir in $PATH
13452 do
13453   IFS=$as_save_IFS
13454   test -z "$as_dir" && as_dir=.
13455     for ac_exec_ext in '' $ac_executable_extensions; do
13456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13457     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13459     break 2
13460   fi
13461 done
13462   done
13463 IFS=$as_save_IFS
13464 
13465   ;;
13466 esac
13467 fi
13468 SED=$ac_cv_path_SED
13469 if test -n "$SED"; then
13470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13471 $as_echo "$SED" >&6; }
13472 else
13473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13474 $as_echo "no" >&6; }
13475 fi
13476 
13477 
13478           if test "x$SED" = x; then
13479             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13480           fi
13481         else
13482           # Otherwise we believe it is a complete path. Use it as it is.
13483           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
13484 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
13485           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13486 $as_echo_n "checking for SED... " >&6; }
13487           if test ! -x "$tool_specified"; then
13488             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13489 $as_echo "not found" >&6; }
13490             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
13491           fi
13492           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13493 $as_echo "$tool_specified" >&6; }
13494         fi
13495       fi
13496     fi
13497 
13498   fi
13499 
13500 
13501   if test "x$SED" = x; then
13502     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
13503   fi
13504 
13505 
13506 
13507   # Always force rm.
13508   RM="$RM -f"
13509 
13510   # pwd behaves differently on various platforms and some don't support the -L flag.
13511   # Always use the bash builtin pwd to get uniform behavior.
13512   THEPWDCMD=pwd
13513 
13514   # These are not required on all platforms
13515 
13516 
13517   # Publish this variable in the help.
13518 
13519 
13520   if [ -z "${CYGPATH+x}" ]; then
13521     # The variable is not set by user, try to locate tool using the code snippet
13522     for ac_prog in cygpath
13523 do
13524   # Extract the first word of "$ac_prog", so it can be a program name with args.
13525 set dummy $ac_prog; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if ${ac_cv_path_CYGPATH+:} false; then :
13529   $as_echo_n "(cached) " >&6
13530 else
13531   case $CYGPATH in
13532   [\\/]* | ?:[\\/]*)
13533   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13534   ;;
13535   *)
13536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537 for as_dir in $PATH
13538 do
13539   IFS=$as_save_IFS
13540   test -z "$as_dir" && as_dir=.
13541     for ac_exec_ext in '' $ac_executable_extensions; do
13542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13543     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545     break 2
13546   fi
13547 done
13548   done
13549 IFS=$as_save_IFS
13550 
13551   ;;
13552 esac
13553 fi
13554 CYGPATH=$ac_cv_path_CYGPATH
13555 if test -n "$CYGPATH"; then
13556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13557 $as_echo "$CYGPATH" >&6; }
13558 else
13559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13560 $as_echo "no" >&6; }
13561 fi
13562 
13563 
13564   test -n "$CYGPATH" && break
13565 done
13566 
13567   else
13568     # The variable is set, but is it from the command line or the environment?
13569 
13570     # Try to remove the string !CYGPATH! from our list.
13571     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
13572     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13573       # If it failed, the variable was not from the command line. Ignore it,
13574       # but warn the user (except for BASH, which is always set by the calling BASH).
13575       if test "xCYGPATH" != xBASH; then
13576         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
13577 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
13578       fi
13579       # Try to locate tool using the code snippet
13580       for ac_prog in cygpath
13581 do
13582   # Extract the first word of "$ac_prog", so it can be a program name with args.
13583 set dummy $ac_prog; ac_word=$2
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13585 $as_echo_n "checking for $ac_word... " >&6; }
13586 if ${ac_cv_path_CYGPATH+:} false; then :
13587   $as_echo_n "(cached) " >&6
13588 else
13589   case $CYGPATH in
13590   [\\/]* | ?:[\\/]*)
13591   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13592   ;;
13593   *)
13594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595 for as_dir in $PATH
13596 do
13597   IFS=$as_save_IFS
13598   test -z "$as_dir" && as_dir=.
13599     for ac_exec_ext in '' $ac_executable_extensions; do
13600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13601     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13603     break 2
13604   fi
13605 done
13606   done
13607 IFS=$as_save_IFS
13608 
13609   ;;
13610 esac
13611 fi
13612 CYGPATH=$ac_cv_path_CYGPATH
13613 if test -n "$CYGPATH"; then
13614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13615 $as_echo "$CYGPATH" >&6; }
13616 else
13617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 $as_echo "no" >&6; }
13619 fi
13620 
13621 
13622   test -n "$CYGPATH" && break
13623 done
13624 
13625     else
13626       # If it succeeded, then it was overridden by the user. We will use it
13627       # for the tool.
13628 
13629       # First remove it from the list of overridden variables, so we can test
13630       # for unknown variables in the end.
13631       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13632 
13633       # Check if we try to supply an empty value
13634       if test "x$CYGPATH" = x; then
13635         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
13636 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
13637         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13638 $as_echo_n "checking for CYGPATH... " >&6; }
13639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13640 $as_echo "disabled" >&6; }
13641       else
13642         # Check if the provided tool contains a complete path.
13643         tool_specified="$CYGPATH"
13644         tool_basename="${tool_specified##*/}"
13645         if test "x$tool_basename" = "x$tool_specified"; then
13646           # A command without a complete path is provided, search $PATH.
13647           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
13648 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
13649           # Extract the first word of "$tool_basename", so it can be a program name with args.
13650 set dummy $tool_basename; ac_word=$2
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652 $as_echo_n "checking for $ac_word... " >&6; }
13653 if ${ac_cv_path_CYGPATH+:} false; then :
13654   $as_echo_n "(cached) " >&6
13655 else
13656   case $CYGPATH in
13657   [\\/]* | ?:[\\/]*)
13658   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13659   ;;
13660   *)
13661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13662 for as_dir in $PATH
13663 do
13664   IFS=$as_save_IFS
13665   test -z "$as_dir" && as_dir=.
13666     for ac_exec_ext in '' $ac_executable_extensions; do
13667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13668     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13670     break 2
13671   fi
13672 done
13673   done
13674 IFS=$as_save_IFS
13675 
13676   ;;
13677 esac
13678 fi
13679 CYGPATH=$ac_cv_path_CYGPATH
13680 if test -n "$CYGPATH"; then
13681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13682 $as_echo "$CYGPATH" >&6; }
13683 else
13684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13685 $as_echo "no" >&6; }
13686 fi
13687 
13688 
13689           if test "x$CYGPATH" = x; then
13690             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13691           fi
13692         else
13693           # Otherwise we believe it is a complete path. Use it as it is.
13694           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
13695 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
13696           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13697 $as_echo_n "checking for CYGPATH... " >&6; }
13698           if test ! -x "$tool_specified"; then
13699             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13700 $as_echo "not found" >&6; }
13701             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
13702           fi
13703           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13704 $as_echo "$tool_specified" >&6; }
13705         fi
13706       fi
13707     fi
13708 
13709   fi
13710 
13711 
13712 
13713 
13714   # Publish this variable in the help.
13715 
13716 
13717   if [ -z "${READLINK+x}" ]; then
13718     # The variable is not set by user, try to locate tool using the code snippet
13719     for ac_prog in greadlink readlink
13720 do
13721   # Extract the first word of "$ac_prog", so it can be a program name with args.
13722 set dummy $ac_prog; ac_word=$2
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13724 $as_echo_n "checking for $ac_word... " >&6; }
13725 if ${ac_cv_path_READLINK+:} false; then :
13726   $as_echo_n "(cached) " >&6
13727 else
13728   case $READLINK in
13729   [\\/]* | ?:[\\/]*)
13730   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13731   ;;
13732   *)
13733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13735 do
13736   IFS=$as_save_IFS
13737   test -z "$as_dir" && as_dir=.
13738     for ac_exec_ext in '' $ac_executable_extensions; do
13739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13740     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13742     break 2
13743   fi
13744 done
13745   done
13746 IFS=$as_save_IFS
13747 
13748   ;;
13749 esac
13750 fi
13751 READLINK=$ac_cv_path_READLINK
13752 if test -n "$READLINK"; then
13753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13754 $as_echo "$READLINK" >&6; }
13755 else
13756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13758 fi
13759 
13760 
13761   test -n "$READLINK" && break
13762 done
13763 
13764   else
13765     # The variable is set, but is it from the command line or the environment?
13766 
13767     # Try to remove the string !READLINK! from our list.
13768     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
13769     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13770       # If it failed, the variable was not from the command line. Ignore it,
13771       # but warn the user (except for BASH, which is always set by the calling BASH).
13772       if test "xREADLINK" != xBASH; then
13773         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
13774 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
13775       fi
13776       # Try to locate tool using the code snippet
13777       for ac_prog in greadlink readlink
13778 do
13779   # Extract the first word of "$ac_prog", so it can be a program name with args.
13780 set dummy $ac_prog; ac_word=$2
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13782 $as_echo_n "checking for $ac_word... " >&6; }
13783 if ${ac_cv_path_READLINK+:} false; then :
13784   $as_echo_n "(cached) " >&6
13785 else
13786   case $READLINK in
13787   [\\/]* | ?:[\\/]*)
13788   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13789   ;;
13790   *)
13791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13792 for as_dir in $PATH
13793 do
13794   IFS=$as_save_IFS
13795   test -z "$as_dir" && as_dir=.
13796     for ac_exec_ext in '' $ac_executable_extensions; do
13797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13798     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13800     break 2
13801   fi
13802 done
13803   done
13804 IFS=$as_save_IFS
13805 
13806   ;;
13807 esac
13808 fi
13809 READLINK=$ac_cv_path_READLINK
13810 if test -n "$READLINK"; then
13811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13812 $as_echo "$READLINK" >&6; }
13813 else
13814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815 $as_echo "no" >&6; }
13816 fi
13817 
13818 
13819   test -n "$READLINK" && break
13820 done
13821 
13822     else
13823       # If it succeeded, then it was overridden by the user. We will use it
13824       # for the tool.
13825 
13826       # First remove it from the list of overridden variables, so we can test
13827       # for unknown variables in the end.
13828       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13829 
13830       # Check if we try to supply an empty value
13831       if test "x$READLINK" = x; then
13832         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
13833 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
13834         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13835 $as_echo_n "checking for READLINK... " >&6; }
13836         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13837 $as_echo "disabled" >&6; }
13838       else
13839         # Check if the provided tool contains a complete path.
13840         tool_specified="$READLINK"
13841         tool_basename="${tool_specified##*/}"
13842         if test "x$tool_basename" = "x$tool_specified"; then
13843           # A command without a complete path is provided, search $PATH.
13844           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
13845 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
13846           # Extract the first word of "$tool_basename", so it can be a program name with args.
13847 set dummy $tool_basename; ac_word=$2
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13849 $as_echo_n "checking for $ac_word... " >&6; }
13850 if ${ac_cv_path_READLINK+:} false; then :
13851   $as_echo_n "(cached) " >&6
13852 else
13853   case $READLINK in
13854   [\\/]* | ?:[\\/]*)
13855   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13856   ;;
13857   *)
13858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13859 for as_dir in $PATH
13860 do
13861   IFS=$as_save_IFS
13862   test -z "$as_dir" && as_dir=.
13863     for ac_exec_ext in '' $ac_executable_extensions; do
13864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13865     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13867     break 2
13868   fi
13869 done
13870   done
13871 IFS=$as_save_IFS
13872 
13873   ;;
13874 esac
13875 fi
13876 READLINK=$ac_cv_path_READLINK
13877 if test -n "$READLINK"; then
13878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13879 $as_echo "$READLINK" >&6; }
13880 else
13881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13882 $as_echo "no" >&6; }
13883 fi
13884 
13885 
13886           if test "x$READLINK" = x; then
13887             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13888           fi
13889         else
13890           # Otherwise we believe it is a complete path. Use it as it is.
13891           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
13892 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
13893           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13894 $as_echo_n "checking for READLINK... " >&6; }
13895           if test ! -x "$tool_specified"; then
13896             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13897 $as_echo "not found" >&6; }
13898             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
13899           fi
13900           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13901 $as_echo "$tool_specified" >&6; }
13902         fi
13903       fi
13904     fi
13905 
13906   fi
13907 
13908 
13909 
13910 
13911   # Publish this variable in the help.
13912 
13913 
13914   if [ -z "${DF+x}" ]; then
13915     # The variable is not set by user, try to locate tool using the code snippet
13916     for ac_prog in df
13917 do
13918   # Extract the first word of "$ac_prog", so it can be a program name with args.
13919 set dummy $ac_prog; ac_word=$2
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13921 $as_echo_n "checking for $ac_word... " >&6; }
13922 if ${ac_cv_path_DF+:} false; then :
13923   $as_echo_n "(cached) " >&6
13924 else
13925   case $DF in
13926   [\\/]* | ?:[\\/]*)
13927   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13928   ;;
13929   *)
13930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13931 for as_dir in $PATH
13932 do
13933   IFS=$as_save_IFS
13934   test -z "$as_dir" && as_dir=.
13935     for ac_exec_ext in '' $ac_executable_extensions; do
13936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13937     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13939     break 2
13940   fi
13941 done
13942   done
13943 IFS=$as_save_IFS
13944 
13945   ;;
13946 esac
13947 fi
13948 DF=$ac_cv_path_DF
13949 if test -n "$DF"; then
13950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13951 $as_echo "$DF" >&6; }
13952 else
13953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13954 $as_echo "no" >&6; }
13955 fi
13956 
13957 
13958   test -n "$DF" && break
13959 done
13960 
13961   else
13962     # The variable is set, but is it from the command line or the environment?
13963 
13964     # Try to remove the string !DF! from our list.
13965     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
13966     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13967       # If it failed, the variable was not from the command line. Ignore it,
13968       # but warn the user (except for BASH, which is always set by the calling BASH).
13969       if test "xDF" != xBASH; then
13970         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13971 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13972       fi
13973       # Try to locate tool using the code snippet
13974       for ac_prog in df
13975 do
13976   # Extract the first word of "$ac_prog", so it can be a program name with args.
13977 set dummy $ac_prog; ac_word=$2
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13979 $as_echo_n "checking for $ac_word... " >&6; }
13980 if ${ac_cv_path_DF+:} false; then :
13981   $as_echo_n "(cached) " >&6
13982 else
13983   case $DF in
13984   [\\/]* | ?:[\\/]*)
13985   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13986   ;;
13987   *)
13988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13989 for as_dir in $PATH
13990 do
13991   IFS=$as_save_IFS
13992   test -z "$as_dir" && as_dir=.
13993     for ac_exec_ext in '' $ac_executable_extensions; do
13994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13995     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13997     break 2
13998   fi
13999 done
14000   done
14001 IFS=$as_save_IFS
14002 
14003   ;;
14004 esac
14005 fi
14006 DF=$ac_cv_path_DF
14007 if test -n "$DF"; then
14008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14009 $as_echo "$DF" >&6; }
14010 else
14011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012 $as_echo "no" >&6; }
14013 fi
14014 
14015 
14016   test -n "$DF" && break
14017 done
14018 
14019     else
14020       # If it succeeded, then it was overridden by the user. We will use it
14021       # for the tool.
14022 
14023       # First remove it from the list of overridden variables, so we can test
14024       # for unknown variables in the end.
14025       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14026 
14027       # Check if we try to supply an empty value
14028       if test "x$DF" = x; then
14029         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14030 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14032 $as_echo_n "checking for DF... " >&6; }
14033         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14034 $as_echo "disabled" >&6; }
14035       else
14036         # Check if the provided tool contains a complete path.
14037         tool_specified="$DF"
14038         tool_basename="${tool_specified##*/}"
14039         if test "x$tool_basename" = "x$tool_specified"; then
14040           # A command without a complete path is provided, search $PATH.
14041           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14042 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14043           # Extract the first word of "$tool_basename", so it can be a program name with args.
14044 set dummy $tool_basename; ac_word=$2
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14046 $as_echo_n "checking for $ac_word... " >&6; }
14047 if ${ac_cv_path_DF+:} false; then :
14048   $as_echo_n "(cached) " >&6
14049 else
14050   case $DF in
14051   [\\/]* | ?:[\\/]*)
14052   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14053   ;;
14054   *)
14055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056 for as_dir in $PATH
14057 do
14058   IFS=$as_save_IFS
14059   test -z "$as_dir" && as_dir=.
14060     for ac_exec_ext in '' $ac_executable_extensions; do
14061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14062     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14064     break 2
14065   fi
14066 done
14067   done
14068 IFS=$as_save_IFS
14069 
14070   ;;
14071 esac
14072 fi
14073 DF=$ac_cv_path_DF
14074 if test -n "$DF"; then
14075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14076 $as_echo "$DF" >&6; }
14077 else
14078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 $as_echo "no" >&6; }
14080 fi
14081 
14082 
14083           if test "x$DF" = x; then
14084             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14085           fi
14086         else
14087           # Otherwise we believe it is a complete path. Use it as it is.
14088           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14089 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14090           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14091 $as_echo_n "checking for DF... " >&6; }
14092           if test ! -x "$tool_specified"; then
14093             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14094 $as_echo "not found" >&6; }
14095             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14096           fi
14097           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14098 $as_echo "$tool_specified" >&6; }
14099         fi
14100       fi
14101     fi
14102 
14103   fi
14104 
14105 
14106 
14107 
14108   # Publish this variable in the help.
14109 
14110 
14111   if [ -z "${CPIO+x}" ]; then
14112     # The variable is not set by user, try to locate tool using the code snippet
14113     for ac_prog in cpio bsdcpio
14114 do
14115   # Extract the first word of "$ac_prog", so it can be a program name with args.
14116 set dummy $ac_prog; ac_word=$2
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14118 $as_echo_n "checking for $ac_word... " >&6; }
14119 if ${ac_cv_path_CPIO+:} false; then :
14120   $as_echo_n "(cached) " >&6
14121 else
14122   case $CPIO in
14123   [\\/]* | ?:[\\/]*)
14124   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14125   ;;
14126   *)
14127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14128 for as_dir in $PATH
14129 do
14130   IFS=$as_save_IFS
14131   test -z "$as_dir" && as_dir=.
14132     for ac_exec_ext in '' $ac_executable_extensions; do
14133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14134     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14136     break 2
14137   fi
14138 done
14139   done
14140 IFS=$as_save_IFS
14141 
14142   ;;
14143 esac
14144 fi
14145 CPIO=$ac_cv_path_CPIO
14146 if test -n "$CPIO"; then
14147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14148 $as_echo "$CPIO" >&6; }
14149 else
14150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14151 $as_echo "no" >&6; }
14152 fi
14153 
14154 
14155   test -n "$CPIO" && break
14156 done
14157 
14158   else
14159     # The variable is set, but is it from the command line or the environment?
14160 
14161     # Try to remove the string !CPIO! from our list.
14162     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14163     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14164       # If it failed, the variable was not from the command line. Ignore it,
14165       # but warn the user (except for BASH, which is always set by the calling BASH).
14166       if test "xCPIO" != xBASH; then
14167         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14168 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14169       fi
14170       # Try to locate tool using the code snippet
14171       for ac_prog in cpio bsdcpio
14172 do
14173   # Extract the first word of "$ac_prog", so it can be a program name with args.
14174 set dummy $ac_prog; ac_word=$2
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14176 $as_echo_n "checking for $ac_word... " >&6; }
14177 if ${ac_cv_path_CPIO+:} false; then :
14178   $as_echo_n "(cached) " >&6
14179 else
14180   case $CPIO in
14181   [\\/]* | ?:[\\/]*)
14182   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14183   ;;
14184   *)
14185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14186 for as_dir in $PATH
14187 do
14188   IFS=$as_save_IFS
14189   test -z "$as_dir" && as_dir=.
14190     for ac_exec_ext in '' $ac_executable_extensions; do
14191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14192     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14194     break 2
14195   fi
14196 done
14197   done
14198 IFS=$as_save_IFS
14199 
14200   ;;
14201 esac
14202 fi
14203 CPIO=$ac_cv_path_CPIO
14204 if test -n "$CPIO"; then
14205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14206 $as_echo "$CPIO" >&6; }
14207 else
14208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209 $as_echo "no" >&6; }
14210 fi
14211 
14212 
14213   test -n "$CPIO" && break
14214 done
14215 
14216     else
14217       # If it succeeded, then it was overridden by the user. We will use it
14218       # for the tool.
14219 
14220       # First remove it from the list of overridden variables, so we can test
14221       # for unknown variables in the end.
14222       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14223 
14224       # Check if we try to supply an empty value
14225       if test "x$CPIO" = x; then
14226         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
14227 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
14228         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14229 $as_echo_n "checking for CPIO... " >&6; }
14230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14231 $as_echo "disabled" >&6; }
14232       else
14233         # Check if the provided tool contains a complete path.
14234         tool_specified="$CPIO"
14235         tool_basename="${tool_specified##*/}"
14236         if test "x$tool_basename" = "x$tool_specified"; then
14237           # A command without a complete path is provided, search $PATH.
14238           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
14239 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
14240           # Extract the first word of "$tool_basename", so it can be a program name with args.
14241 set dummy $tool_basename; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 $as_echo_n "checking for $ac_word... " >&6; }
14244 if ${ac_cv_path_CPIO+:} false; then :
14245   $as_echo_n "(cached) " >&6
14246 else
14247   case $CPIO in
14248   [\\/]* | ?:[\\/]*)
14249   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14250   ;;
14251   *)
14252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14254 do
14255   IFS=$as_save_IFS
14256   test -z "$as_dir" && as_dir=.
14257     for ac_exec_ext in '' $ac_executable_extensions; do
14258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14259     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14261     break 2
14262   fi
14263 done
14264   done
14265 IFS=$as_save_IFS
14266 
14267   ;;
14268 esac
14269 fi
14270 CPIO=$ac_cv_path_CPIO
14271 if test -n "$CPIO"; then
14272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14273 $as_echo "$CPIO" >&6; }
14274 else
14275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14277 fi
14278 
14279 
14280           if test "x$CPIO" = x; then
14281             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14282           fi
14283         else
14284           # Otherwise we believe it is a complete path. Use it as it is.
14285           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
14286 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
14287           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14288 $as_echo_n "checking for CPIO... " >&6; }
14289           if test ! -x "$tool_specified"; then
14290             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14291 $as_echo "not found" >&6; }
14292             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
14293           fi
14294           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14295 $as_echo "$tool_specified" >&6; }
14296         fi
14297       fi
14298     fi
14299 
14300   fi
14301 
14302 
14303 
14304 
14305   # Publish this variable in the help.
14306 
14307 
14308   if [ -z "${NICE+x}" ]; then
14309     # The variable is not set by user, try to locate tool using the code snippet
14310     for ac_prog in nice
14311 do
14312   # Extract the first word of "$ac_prog", so it can be a program name with args.
14313 set dummy $ac_prog; ac_word=$2
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14315 $as_echo_n "checking for $ac_word... " >&6; }
14316 if ${ac_cv_path_NICE+:} false; then :
14317   $as_echo_n "(cached) " >&6
14318 else
14319   case $NICE in
14320   [\\/]* | ?:[\\/]*)
14321   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14322   ;;
14323   *)
14324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325 for as_dir in $PATH
14326 do
14327   IFS=$as_save_IFS
14328   test -z "$as_dir" && as_dir=.
14329     for ac_exec_ext in '' $ac_executable_extensions; do
14330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14331     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14333     break 2
14334   fi
14335 done
14336   done
14337 IFS=$as_save_IFS
14338 
14339   ;;
14340 esac
14341 fi
14342 NICE=$ac_cv_path_NICE
14343 if test -n "$NICE"; then
14344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14345 $as_echo "$NICE" >&6; }
14346 else
14347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14349 fi
14350 
14351 
14352   test -n "$NICE" && break
14353 done
14354 
14355   else
14356     # The variable is set, but is it from the command line or the environment?
14357 
14358     # Try to remove the string !NICE! from our list.
14359     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
14360     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14361       # If it failed, the variable was not from the command line. Ignore it,
14362       # but warn the user (except for BASH, which is always set by the calling BASH).
14363       if test "xNICE" != xBASH; then
14364         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
14365 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
14366       fi
14367       # Try to locate tool using the code snippet
14368       for ac_prog in nice
14369 do
14370   # Extract the first word of "$ac_prog", so it can be a program name with args.
14371 set dummy $ac_prog; ac_word=$2
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14373 $as_echo_n "checking for $ac_word... " >&6; }
14374 if ${ac_cv_path_NICE+:} false; then :
14375   $as_echo_n "(cached) " >&6
14376 else
14377   case $NICE in
14378   [\\/]* | ?:[\\/]*)
14379   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14380   ;;
14381   *)
14382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14384 do
14385   IFS=$as_save_IFS
14386   test -z "$as_dir" && as_dir=.
14387     for ac_exec_ext in '' $ac_executable_extensions; do
14388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14389     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14391     break 2
14392   fi
14393 done
14394   done
14395 IFS=$as_save_IFS
14396 
14397   ;;
14398 esac
14399 fi
14400 NICE=$ac_cv_path_NICE
14401 if test -n "$NICE"; then
14402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14403 $as_echo "$NICE" >&6; }
14404 else
14405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14406 $as_echo "no" >&6; }
14407 fi
14408 
14409 
14410   test -n "$NICE" && break
14411 done
14412 
14413     else
14414       # If it succeeded, then it was overridden by the user. We will use it
14415       # for the tool.
14416 
14417       # First remove it from the list of overridden variables, so we can test
14418       # for unknown variables in the end.
14419       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14420 
14421       # Check if we try to supply an empty value
14422       if test "x$NICE" = x; then
14423         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
14424 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
14425         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14426 $as_echo_n "checking for NICE... " >&6; }
14427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14428 $as_echo "disabled" >&6; }
14429       else
14430         # Check if the provided tool contains a complete path.
14431         tool_specified="$NICE"
14432         tool_basename="${tool_specified##*/}"
14433         if test "x$tool_basename" = "x$tool_specified"; then
14434           # A command without a complete path is provided, search $PATH.
14435           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
14436 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
14437           # Extract the first word of "$tool_basename", so it can be a program name with args.
14438 set dummy $tool_basename; ac_word=$2
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14440 $as_echo_n "checking for $ac_word... " >&6; }
14441 if ${ac_cv_path_NICE+:} false; then :
14442   $as_echo_n "(cached) " >&6
14443 else
14444   case $NICE in
14445   [\\/]* | ?:[\\/]*)
14446   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14447   ;;
14448   *)
14449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450 for as_dir in $PATH
14451 do
14452   IFS=$as_save_IFS
14453   test -z "$as_dir" && as_dir=.
14454     for ac_exec_ext in '' $ac_executable_extensions; do
14455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14456     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14458     break 2
14459   fi
14460 done
14461   done
14462 IFS=$as_save_IFS
14463 
14464   ;;
14465 esac
14466 fi
14467 NICE=$ac_cv_path_NICE
14468 if test -n "$NICE"; then
14469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14470 $as_echo "$NICE" >&6; }
14471 else
14472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14473 $as_echo "no" >&6; }
14474 fi
14475 
14476 
14477           if test "x$NICE" = x; then
14478             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14479           fi
14480         else
14481           # Otherwise we believe it is a complete path. Use it as it is.
14482           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
14483 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
14484           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14485 $as_echo_n "checking for NICE... " >&6; }
14486           if test ! -x "$tool_specified"; then
14487             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14488 $as_echo "not found" >&6; }
14489             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
14490           fi
14491           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14492 $as_echo "$tool_specified" >&6; }
14493         fi
14494       fi
14495     fi
14496 
14497   fi
14498 
14499 
14500 
14501 
14502 # Now we can determine OpenJDK build and target platforms. This is required to
14503 # have early on.
14504 # Make sure we can run config.sub.
14505 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
14506   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
14507 
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
14509 $as_echo_n "checking build system type... " >&6; }
14510 if ${ac_cv_build+:} false; then :
14511   $as_echo_n "(cached) " >&6
14512 else
14513   ac_build_alias=$build_alias
14514 test "x$ac_build_alias" = x &&
14515   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
14516 test "x$ac_build_alias" = x &&
14517   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
14518 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
14519   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
14520 
14521 fi
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
14523 $as_echo "$ac_cv_build" >&6; }
14524 case $ac_cv_build in
14525 *-*-*) ;;
14526 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
14527 esac
14528 build=$ac_cv_build
14529 ac_save_IFS=$IFS; IFS='-'
14530 set x $ac_cv_build
14531 shift
14532 build_cpu=$1
14533 build_vendor=$2
14534 shift; shift
14535 # Remember, the first character of IFS is used to create $*,
14536 # except with old shells:
14537 build_os=$*
14538 IFS=$ac_save_IFS
14539 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
14540 
14541 
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
14543 $as_echo_n "checking host system type... " >&6; }
14544 if ${ac_cv_host+:} false; then :
14545   $as_echo_n "(cached) " >&6
14546 else
14547   if test "x$host_alias" = x; then
14548   ac_cv_host=$ac_cv_build
14549 else
14550   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
14551     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
14552 fi
14553 
14554 fi
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
14556 $as_echo "$ac_cv_host" >&6; }
14557 case $ac_cv_host in
14558 *-*-*) ;;
14559 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
14560 esac
14561 host=$ac_cv_host
14562 ac_save_IFS=$IFS; IFS='-'
14563 set x $ac_cv_host
14564 shift
14565 host_cpu=$1
14566 host_vendor=$2
14567 shift; shift
14568 # Remember, the first character of IFS is used to create $*,
14569 # except with old shells:
14570 host_os=$*
14571 IFS=$ac_save_IFS
14572 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
14573 
14574 
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
14576 $as_echo_n "checking target system type... " >&6; }
14577 if ${ac_cv_target+:} false; then :
14578   $as_echo_n "(cached) " >&6
14579 else
14580   if test "x$target_alias" = x; then
14581   ac_cv_target=$ac_cv_host
14582 else
14583   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
14584     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
14585 fi
14586 
14587 fi
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
14589 $as_echo "$ac_cv_target" >&6; }
14590 case $ac_cv_target in
14591 *-*-*) ;;
14592 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
14593 esac
14594 target=$ac_cv_target
14595 ac_save_IFS=$IFS; IFS='-'
14596 set x $ac_cv_target
14597 shift
14598 target_cpu=$1
14599 target_vendor=$2
14600 shift; shift
14601 # Remember, the first character of IFS is used to create $*,
14602 # except with old shells:
14603 target_os=$*
14604 IFS=$ac_save_IFS
14605 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
14606 
14607 
14608 # The aliases save the names the user supplied, while $host etc.
14609 # will get canonicalized.
14610 test -n "$target_alias" &&
14611   test "$program_prefix$program_suffix$program_transform_name" = \
14612     NONENONEs,x,x, &&
14613   program_prefix=${target_alias}-
14614 
14615   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
14616   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
14617   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
14618   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
14619   # to use the configure naming style.
14620 
14621 
14622 
14623 
14624 
14625   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
14626   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
14627   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
14628   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
14629   OPENJDK_TARGET_AUTOCONF_NAME="$host"
14630   OPENJDK_BUILD_AUTOCONF_NAME="$build"
14631 
14632 
14633 
14634   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14635 
14636   case "$build_os" in
14637     *linux*)
14638       VAR_OS=linux
14639       VAR_OS_TYPE=unix
14640       ;;
14641     *solaris*)
14642       VAR_OS=solaris
14643       VAR_OS_TYPE=unix
14644       ;;
14645     *darwin*)
14646       VAR_OS=macosx
14647       VAR_OS_TYPE=unix
14648       ;;
14649     *bsd*)
14650       VAR_OS=bsd
14651       VAR_OS_TYPE=unix
14652       ;;
14653     *cygwin*)
14654       VAR_OS=windows
14655       VAR_OS_ENV=windows.cygwin
14656       ;;
14657     *mingw*)
14658       VAR_OS=windows
14659       VAR_OS_ENV=windows.msys
14660       ;;
14661     *aix*)
14662       VAR_OS=aix
14663       VAR_OS_TYPE=unix
14664       ;;
14665     *)
14666       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
14667       ;;
14668   esac
14669 
14670 
14671   # First argument is the cpu name from the trip/quad
14672   case "$build_cpu" in
14673     x86_64)
14674       VAR_CPU=x86_64
14675       VAR_CPU_ARCH=x86
14676       VAR_CPU_BITS=64
14677       VAR_CPU_ENDIAN=little
14678       ;;
14679     i?86)
14680       VAR_CPU=x86
14681       VAR_CPU_ARCH=x86
14682       VAR_CPU_BITS=32
14683       VAR_CPU_ENDIAN=little
14684       ;;
14685     arm*)
14686       VAR_CPU=arm
14687       VAR_CPU_ARCH=arm
14688       VAR_CPU_BITS=32
14689       VAR_CPU_ENDIAN=little
14690       ;;
14691     aarch64)
14692       VAR_CPU=aarch64
14693       VAR_CPU_ARCH=aarch64
14694       VAR_CPU_BITS=64
14695       VAR_CPU_ENDIAN=little
14696       ;;
14697     powerpc)
14698       VAR_CPU=ppc
14699       VAR_CPU_ARCH=ppc
14700       VAR_CPU_BITS=32
14701       VAR_CPU_ENDIAN=big
14702       ;;
14703     powerpc64)
14704       VAR_CPU=ppc64
14705       VAR_CPU_ARCH=ppc
14706       VAR_CPU_BITS=64
14707       VAR_CPU_ENDIAN=big
14708       ;;
14709     powerpc64le)
14710       VAR_CPU=ppc64le
14711       VAR_CPU_ARCH=ppc
14712       VAR_CPU_BITS=64
14713       VAR_CPU_ENDIAN=little
14714       ;;
14715     s390)
14716       VAR_CPU=s390
14717       VAR_CPU_ARCH=s390
14718       VAR_CPU_BITS=32
14719       VAR_CPU_ENDIAN=big
14720       ;;
14721     s390x)
14722       VAR_CPU=s390x
14723       VAR_CPU_ARCH=s390
14724       VAR_CPU_BITS=64
14725       VAR_CPU_ENDIAN=big
14726       ;;
14727     sparc)
14728       VAR_CPU=sparc
14729       VAR_CPU_ARCH=sparc
14730       VAR_CPU_BITS=32
14731       VAR_CPU_ENDIAN=big
14732       ;;
14733     sparcv9|sparc64)
14734       VAR_CPU=sparcv9
14735       VAR_CPU_ARCH=sparc
14736       VAR_CPU_BITS=64
14737       VAR_CPU_ENDIAN=big
14738       ;;
14739     *)
14740       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
14741       ;;
14742   esac
14743 
14744   # ..and setup our own variables. (Do this explicitely to facilitate searching)
14745   OPENJDK_BUILD_OS="$VAR_OS"
14746   if test "x$VAR_OS_TYPE" != x; then
14747     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
14748   else
14749     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
14750   fi
14751   if test "x$VAR_OS_ENV" != x; then
14752     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
14753   else
14754     OPENJDK_BUILD_OS_ENV="$VAR_OS"
14755   fi
14756   OPENJDK_BUILD_CPU="$VAR_CPU"
14757   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
14758   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
14759   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14760 
14761 
14762 
14763 
14764 
14765 
14766 
14767 
14768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
14769 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
14770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
14771 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
14772 
14773   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14774 
14775   case "$host_os" in
14776     *linux*)
14777       VAR_OS=linux
14778       VAR_OS_TYPE=unix
14779       ;;
14780     *solaris*)
14781       VAR_OS=solaris
14782       VAR_OS_TYPE=unix
14783       ;;
14784     *darwin*)
14785       VAR_OS=macosx
14786       VAR_OS_TYPE=unix
14787       ;;
14788     *bsd*)
14789       VAR_OS=bsd
14790       VAR_OS_TYPE=unix
14791       ;;
14792     *cygwin*)
14793       VAR_OS=windows
14794       VAR_OS_ENV=windows.cygwin
14795       ;;
14796     *mingw*)
14797       VAR_OS=windows
14798       VAR_OS_ENV=windows.msys
14799       ;;
14800     *aix*)
14801       VAR_OS=aix
14802       VAR_OS_TYPE=unix
14803       ;;
14804     *)
14805       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
14806       ;;
14807   esac
14808 
14809 
14810   # First argument is the cpu name from the trip/quad
14811   case "$host_cpu" in
14812     x86_64)
14813       VAR_CPU=x86_64
14814       VAR_CPU_ARCH=x86
14815       VAR_CPU_BITS=64
14816       VAR_CPU_ENDIAN=little
14817       ;;
14818     i?86)
14819       VAR_CPU=x86
14820       VAR_CPU_ARCH=x86
14821       VAR_CPU_BITS=32
14822       VAR_CPU_ENDIAN=little
14823       ;;
14824     arm*)
14825       VAR_CPU=arm
14826       VAR_CPU_ARCH=arm
14827       VAR_CPU_BITS=32
14828       VAR_CPU_ENDIAN=little
14829       ;;
14830     aarch64)
14831       VAR_CPU=aarch64
14832       VAR_CPU_ARCH=aarch64
14833       VAR_CPU_BITS=64
14834       VAR_CPU_ENDIAN=little
14835       ;;
14836     powerpc)
14837       VAR_CPU=ppc
14838       VAR_CPU_ARCH=ppc
14839       VAR_CPU_BITS=32
14840       VAR_CPU_ENDIAN=big
14841       ;;
14842     powerpc64)
14843       VAR_CPU=ppc64
14844       VAR_CPU_ARCH=ppc
14845       VAR_CPU_BITS=64
14846       VAR_CPU_ENDIAN=big
14847       ;;
14848     powerpc64le)
14849       VAR_CPU=ppc64le
14850       VAR_CPU_ARCH=ppc
14851       VAR_CPU_BITS=64
14852       VAR_CPU_ENDIAN=little
14853       ;;
14854     s390)
14855       VAR_CPU=s390
14856       VAR_CPU_ARCH=s390
14857       VAR_CPU_BITS=32
14858       VAR_CPU_ENDIAN=big
14859       ;;
14860     s390x)
14861       VAR_CPU=s390x
14862       VAR_CPU_ARCH=s390
14863       VAR_CPU_BITS=64
14864       VAR_CPU_ENDIAN=big
14865       ;;
14866     sparc)
14867       VAR_CPU=sparc
14868       VAR_CPU_ARCH=sparc
14869       VAR_CPU_BITS=32
14870       VAR_CPU_ENDIAN=big
14871       ;;
14872     sparcv9|sparc64)
14873       VAR_CPU=sparcv9
14874       VAR_CPU_ARCH=sparc
14875       VAR_CPU_BITS=64
14876       VAR_CPU_ENDIAN=big
14877       ;;
14878     *)
14879       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
14880       ;;
14881   esac
14882 
14883   # ... and setup our own variables. (Do this explicitely to facilitate searching)
14884   OPENJDK_TARGET_OS="$VAR_OS"
14885   if test "x$VAR_OS_TYPE" != x; then
14886     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
14887   else
14888     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
14889   fi
14890   if test "x$VAR_OS_ENV" != x; then
14891     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
14892   else
14893     OPENJDK_TARGET_OS_ENV="$VAR_OS"
14894   fi
14895   OPENJDK_TARGET_CPU="$VAR_CPU"
14896   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
14897   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
14898   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14899 
14900 
14901 
14902 
14903 
14904 
14905 
14906 
14907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
14908 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
14909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
14910 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
14911 
14912 
14913 
14914 # Check whether --with-target-bits was given.
14915 if test "${with_target_bits+set}" = set; then :
14916   withval=$with_target_bits;
14917 fi
14918 
14919 
14920   # We have three types of compiles:
14921   # native  == normal compilation, target system == build system
14922   # cross   == traditional cross compilation, target system != build system; special toolchain needed
14923   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
14924   #
14925   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
14926     # We're doing a proper cross-compilation
14927     COMPILE_TYPE="cross"
14928   else
14929     COMPILE_TYPE="native"
14930   fi
14931 
14932   if test "x$with_target_bits" != x; then
14933     if test "x$COMPILE_TYPE" = "xcross"; then
14934       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
14935     fi
14936 
14937     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14938       # A reduced build is requested
14939       COMPILE_TYPE="reduced"
14940       OPENJDK_TARGET_CPU_BITS=32
14941       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
14942         OPENJDK_TARGET_CPU=x86
14943       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
14944         OPENJDK_TARGET_CPU=sparc
14945       else
14946         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
14947       fi
14948     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
14949       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
14950     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
14951       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
14952 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
14953     else
14954       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
14955     fi
14956   fi
14957 
14958 
14959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
14960 $as_echo_n "checking compilation type... " >&6; }
14961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
14962 $as_echo "$COMPILE_TYPE" >&6; }
14963 
14964 
14965   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
14966     REQUIRED_OS_NAME=SunOS
14967     REQUIRED_OS_VERSION=5.10
14968   fi
14969   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
14970     REQUIRED_OS_NAME=Linux
14971     REQUIRED_OS_VERSION=2.6
14972   fi
14973   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14974     REQUIRED_OS_NAME=Windows
14975     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
14976       REQUIRED_OS_VERSION=5.2
14977     else
14978       REQUIRED_OS_VERSION=5.1
14979     fi
14980   fi
14981   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14982     REQUIRED_OS_NAME=Darwin
14983     REQUIRED_OS_VERSION=11.2
14984   fi
14985 
14986 
14987 
14988 
14989 
14990   # Also store the legacy naming of the cpu.
14991   # Ie i586 and amd64 instead of x86 and x86_64
14992   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
14993   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14994     OPENJDK_TARGET_CPU_LEGACY="i586"
14995   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14996     # On all platforms except MacOSX replace x86_64 with amd64.
14997     OPENJDK_TARGET_CPU_LEGACY="amd64"
14998   fi
14999 
15000 
15001   # And the second legacy naming of the cpu.
15002   # Ie i386 and amd64 instead of x86 and x86_64.
15003   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
15004   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15005     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
15006   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15007     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
15008   fi
15009 
15010 
15011   # This is the name of the cpu (but using i386 and amd64 instead of
15012   # x86 and x86_64, respectively), preceeded by a /, to be used when
15013   # locating libraries. On macosx, it's empty, though.
15014   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
15015   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15016     OPENJDK_TARGET_CPU_LIBDIR=""
15017   fi
15018 
15019 
15020   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15021   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15022   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
15023   OPENJDK_TARGET_CPU_ISADIR=""
15024   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15025     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15026       OPENJDK_TARGET_CPU_ISADIR="/amd64"
15027     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15028       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
15029     fi
15030   fi
15031 
15032 
15033   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
15034   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
15035   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
15036     # On linux only, we replace x86 with i386.
15037     OPENJDK_TARGET_CPU_OSARCH="i386"
15038   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15039     # On all platforms except macosx, we replace x86_64 with amd64.
15040     OPENJDK_TARGET_CPU_OSARCH="amd64"
15041   fi
15042 
15043 
15044   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
15045   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15046     OPENJDK_TARGET_CPU_JLI="i386"
15047   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15048     # On all platforms except macosx, we replace x86_64 with amd64.
15049     OPENJDK_TARGET_CPU_JLI="amd64"
15050   fi
15051   # Now setup the -D flags for building libjli.
15052   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
15053   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15054     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
15055       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
15056     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
15057       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
15058     fi
15059   fi
15060 
15061 
15062   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15063       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
15064   else
15065       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
15066   fi
15067 
15068 
15069   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15070     A_LP64="LP64:="
15071     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15072     # unpack200.exe
15073     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
15074       ADD_LP64="-D_LP64=1"
15075     fi
15076   fi
15077   LP64=$A_LP64
15078 
15079 
15080   if test "x$COMPILE_TYPE" = "xcross"; then
15081     # FIXME: ... or should this include reduced builds..?
15082     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15083   else
15084     DEFINE_CROSS_COMPILE_ARCH=""
15085   fi
15086 
15087 
15088   # ZERO_ARCHDEF is used to enable architecture-specific code
15089   case "${OPENJDK_TARGET_CPU}" in
15090     ppc)     ZERO_ARCHDEF=PPC32 ;;
15091     ppc64)   ZERO_ARCHDEF=PPC64 ;;
15092     s390*)   ZERO_ARCHDEF=S390  ;;
15093     sparc*)  ZERO_ARCHDEF=SPARC ;;
15094     x86_64*) ZERO_ARCHDEF=AMD64 ;;
15095     x86)     ZERO_ARCHDEF=IA32  ;;
15096     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
15097   esac
15098 
15099 
15100 
15101 
15102 # Continue setting up basic stuff. Most remaining code require fundamental tools.
15103 
15104   # Save the current directory this script was started from
15105   CURDIR="$PWD"
15106 
15107   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
15108   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
15109   # was not available at that time.
15110   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
15111   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
15112     ORIGINAL_PATH="$REWRITTEN_PATH"
15113     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
15114 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
15115   fi
15116 
15117   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15118     PATH_SEP=";"
15119 
15120   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
15121   if test $SRC_ROOT_LENGTH -gt 100; then
15122     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
15123   fi
15124 
15125   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
15127 $as_echo_n "checking cygwin release... " >&6; }
15128     CYGWIN_VERSION=`$UNAME -r`
15129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
15130 $as_echo "$CYGWIN_VERSION" >&6; }
15131     WINDOWS_ENV_VENDOR='cygwin'
15132     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
15133 
15134     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
15135     if test "x$CYGWIN_VERSION_OLD" != x; then
15136       { $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
15137 $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;}
15138       as_fn_error $? "Cannot continue" "$LINENO" 5
15139     fi
15140     if test "x$CYGPATH" = x; then
15141       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
15142     fi
15143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
15144 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
15145     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15146     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
15147     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
15148     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
15149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
15150 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
15151     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
15152     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
15153     if test "x$test_cygdrive_prefix" = x; then
15154       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
15155     fi
15156   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
15158 $as_echo_n "checking msys release... " >&6; }
15159     MSYS_VERSION=`$UNAME -r`
15160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
15161 $as_echo "$MSYS_VERSION" >&6; }
15162 
15163     WINDOWS_ENV_VENDOR='msys'
15164     WINDOWS_ENV_VERSION="$MSYS_VERSION"
15165 
15166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
15167 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
15168     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15169     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
15170 
15171   windows_path="$MSYS_ROOT_PATH"
15172   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15173     unix_path=`$CYGPATH -u "$windows_path"`
15174     MSYS_ROOT_PATH="$unix_path"
15175   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15176     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15177     MSYS_ROOT_PATH="$unix_path"
15178   fi
15179 
15180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
15181 $as_echo "$MSYS_ROOT_PATH" >&6; }
15182     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
15183   else
15184     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
15185   fi
15186 
15187   # Test if windows or unix (cygwin/msys) find is first in path.
15188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
15189 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
15190   FIND_BINARY_OUTPUT=`find --version 2>&1`
15191   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
15192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
15193 $as_echo "unix style" >&6; }
15194   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
15195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
15196 $as_echo "Windows" >&6; }
15197     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
15198 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
15199     { $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
15200 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
15201     as_fn_error $? "Cannot continue" "$LINENO" 5
15202   else
15203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15204 $as_echo "unknown" >&6; }
15205     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
15206 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
15207   fi
15208 
15209   else
15210     PATH_SEP=":"
15211   fi
15212 
15213 
15214   # We get the top-level directory from the supporting wrappers.
15215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
15216 $as_echo_n "checking for top-level directory... " >&6; }
15217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
15218 $as_echo "$TOPDIR" >&6; }
15219 
15220 
15221   # Save the original version of TOPDIR for string comparisons
15222   ORIGINAL_TOPDIR="$TOPDIR"
15223 
15224 
15225   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
15226 
15227   # Only process if variable expands to non-empty
15228 
15229   if test "x$CURDIR" != x; then
15230     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15231 
15232   # Input might be given as Windows format, start by converting to
15233   # unix format.
15234   path="$CURDIR"
15235   new_path=`$CYGPATH -u "$path"`
15236 
15237   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15238   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15239   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15240   # "foo.exe" is OK but "foo" is an error.
15241   #
15242   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15243   # It is also a way to make sure we got the proper file name for the real test later on.
15244   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15245   if test "x$test_shortpath" = x; then
15246     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15247 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15248     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
15249   fi
15250 
15251   # Call helper function which possibly converts this using DOS-style short mode.
15252   # If so, the updated path is stored in $new_path.
15253 
15254   input_path="$new_path"
15255   # Check if we need to convert this using DOS-style short mode. If the path
15256   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15257   # take no chances and rewrite it.
15258   # Note: m4 eats our [], so we need to use [ and ] instead.
15259   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15260   if test "x$has_forbidden_chars" != x; then
15261     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15262     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15263     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15264     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15265       # Going to short mode and back again did indeed matter. Since short mode is
15266       # case insensitive, let's make it lowercase to improve readability.
15267       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15268       # Now convert it back to Unix-style (cygpath)
15269       input_path=`$CYGPATH -u "$shortmode_path"`
15270       new_path="$input_path"
15271     fi
15272   fi
15273 
15274   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15275   if test "x$test_cygdrive_prefix" = x; then
15276     # As a simple fix, exclude /usr/bin since it's not a real path.
15277     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15278       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15279       # a path prefixed by /cygdrive for fixpath to work.
15280       new_path="$CYGWIN_ROOT_PATH$input_path"
15281     fi
15282   fi
15283 
15284 
15285   if test "x$path" != "x$new_path"; then
15286     CURDIR="$new_path"
15287     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15288 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15289   fi
15290 
15291     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15292 
15293   path="$CURDIR"
15294   has_colon=`$ECHO $path | $GREP ^.:`
15295   new_path="$path"
15296   if test "x$has_colon" = x; then
15297     # Not in mixed or Windows style, start by that.
15298     new_path=`cmd //c echo $path`
15299   fi
15300 
15301 
15302   input_path="$new_path"
15303   # Check if we need to convert this using DOS-style short mode. If the path
15304   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15305   # take no chances and rewrite it.
15306   # Note: m4 eats our [], so we need to use [ and ] instead.
15307   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15308   if test "x$has_forbidden_chars" != x; then
15309     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15310     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15311   fi
15312 
15313 
15314   windows_path="$new_path"
15315   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15316     unix_path=`$CYGPATH -u "$windows_path"`
15317     new_path="$unix_path"
15318   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15319     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15320     new_path="$unix_path"
15321   fi
15322 
15323   if test "x$path" != "x$new_path"; then
15324     CURDIR="$new_path"
15325     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15326 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15327   fi
15328 
15329   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15330   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15331 
15332     else
15333       # We're on a unix platform. Hooray! :)
15334       path="$CURDIR"
15335       has_space=`$ECHO "$path" | $GREP " "`
15336       if test "x$has_space" != x; then
15337         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15338 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15339         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15340       fi
15341 
15342       # Use eval to expand a potential ~
15343       eval path="$path"
15344       if test ! -f "$path" && test ! -d "$path"; then
15345         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15346       fi
15347 
15348       if test -d "$path"; then
15349         CURDIR="`cd "$path"; $THEPWDCMD -L`"
15350       else
15351         dir="`$DIRNAME "$path"`"
15352         base="`$BASENAME "$path"`"
15353         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
15354       fi
15355     fi
15356   fi
15357 
15358 
15359   # Only process if variable expands to non-empty
15360 
15361   if test "x$TOPDIR" != x; then
15362     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15363 
15364   # Input might be given as Windows format, start by converting to
15365   # unix format.
15366   path="$TOPDIR"
15367   new_path=`$CYGPATH -u "$path"`
15368 
15369   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15370   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15371   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15372   # "foo.exe" is OK but "foo" is an error.
15373   #
15374   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15375   # It is also a way to make sure we got the proper file name for the real test later on.
15376   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15377   if test "x$test_shortpath" = x; then
15378     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15379 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15380     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
15381   fi
15382 
15383   # Call helper function which possibly converts this using DOS-style short mode.
15384   # If so, the updated path is stored in $new_path.
15385 
15386   input_path="$new_path"
15387   # Check if we need to convert this using DOS-style short mode. If the path
15388   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15389   # take no chances and rewrite it.
15390   # Note: m4 eats our [], so we need to use [ and ] instead.
15391   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15392   if test "x$has_forbidden_chars" != x; then
15393     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15394     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15395     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15396     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15397       # Going to short mode and back again did indeed matter. Since short mode is
15398       # case insensitive, let's make it lowercase to improve readability.
15399       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15400       # Now convert it back to Unix-style (cygpath)
15401       input_path=`$CYGPATH -u "$shortmode_path"`
15402       new_path="$input_path"
15403     fi
15404   fi
15405 
15406   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15407   if test "x$test_cygdrive_prefix" = x; then
15408     # As a simple fix, exclude /usr/bin since it's not a real path.
15409     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15410       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15411       # a path prefixed by /cygdrive for fixpath to work.
15412       new_path="$CYGWIN_ROOT_PATH$input_path"
15413     fi
15414   fi
15415 
15416 
15417   if test "x$path" != "x$new_path"; then
15418     TOPDIR="$new_path"
15419     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15420 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15421   fi
15422 
15423     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15424 
15425   path="$TOPDIR"
15426   has_colon=`$ECHO $path | $GREP ^.:`
15427   new_path="$path"
15428   if test "x$has_colon" = x; then
15429     # Not in mixed or Windows style, start by that.
15430     new_path=`cmd //c echo $path`
15431   fi
15432 
15433 
15434   input_path="$new_path"
15435   # Check if we need to convert this using DOS-style short mode. If the path
15436   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15437   # take no chances and rewrite it.
15438   # Note: m4 eats our [], so we need to use [ and ] instead.
15439   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15440   if test "x$has_forbidden_chars" != x; then
15441     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15442     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15443   fi
15444 
15445 
15446   windows_path="$new_path"
15447   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15448     unix_path=`$CYGPATH -u "$windows_path"`
15449     new_path="$unix_path"
15450   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15451     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15452     new_path="$unix_path"
15453   fi
15454 
15455   if test "x$path" != "x$new_path"; then
15456     TOPDIR="$new_path"
15457     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15458 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15459   fi
15460 
15461   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15462   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15463 
15464     else
15465       # We're on a unix platform. Hooray! :)
15466       path="$TOPDIR"
15467       has_space=`$ECHO "$path" | $GREP " "`
15468       if test "x$has_space" != x; then
15469         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15470 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15471         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15472       fi
15473 
15474       # Use eval to expand a potential ~
15475       eval path="$path"
15476       if test ! -f "$path" && test ! -d "$path"; then
15477         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15478       fi
15479 
15480       if test -d "$path"; then
15481         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
15482       else
15483         dir="`$DIRNAME "$path"`"
15484         base="`$BASENAME "$path"`"
15485         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
15486       fi
15487     fi
15488   fi
15489 
15490   # SRC_ROOT is a traditional alias for TOPDIR.
15491   SRC_ROOT=$TOPDIR
15492 
15493   # Calculate a canonical version of TOPDIR for string comparisons
15494   CANONICAL_TOPDIR=$TOPDIR
15495 
15496   if test "x$OPENJDK_BUILD_OS" != xwindows; then
15497     # Follow a chain of symbolic links. Use readlink
15498     # where it exists, else fall back to horribly
15499     # complicated shell code.
15500     if test "x$READLINK_TESTED" != yes; then
15501       # On MacOSX there is a readlink tool with a different
15502       # purpose than the GNU readlink tool. Check the found readlink.
15503       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
15504       if test "x$ISGNU" = x; then
15505         # A readlink that we do not know how to use.
15506         # Are there other non-GNU readlinks out there?
15507         READLINK_TESTED=yes
15508         READLINK=
15509       fi
15510     fi
15511 
15512     if test "x$READLINK" != x; then
15513       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
15514     else
15515       # Save the current directory for restoring afterwards
15516       STARTDIR=$PWD
15517       COUNTER=0
15518       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
15519       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
15520       cd $sym_link_dir
15521       # Use -P flag to resolve symlinks in directories.
15522       cd `$THEPWDCMD -P`
15523       sym_link_dir=`$THEPWDCMD -P`
15524       # Resolve file symlinks
15525       while test $COUNTER -lt 20; do
15526         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
15527         if test "x$ISLINK" == x; then
15528           # This is not a symbolic link! We are done!
15529           break
15530         fi
15531         # Again resolve directory symlinks since the target of the just found
15532         # link could be in a different directory
15533         cd `$DIRNAME $ISLINK`
15534         sym_link_dir=`$THEPWDCMD -P`
15535         sym_link_file=`$BASENAME $ISLINK`
15536         let COUNTER=COUNTER+1
15537       done
15538       cd $STARTDIR
15539       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
15540     fi
15541   fi
15542 
15543 
15544 
15545   # Locate the directory of this script.
15546   AUTOCONF_DIR=$TOPDIR/common/autoconf
15547 
15548 
15549 # Check if it's a pure open build or if custom sources are to be used.
15550 
15551   # Check whether --enable-openjdk-only was given.
15552 if test "${enable_openjdk_only+set}" = set; then :
15553   enableval=$enable_openjdk_only;
15554 else
15555   enable_openjdk_only="no"
15556 fi
15557 
15558 
15559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
15560 $as_echo_n "checking for presence of closed sources... " >&6; }
15561   if test -d "$SRC_ROOT/jdk/src/closed"; then
15562     CLOSED_SOURCE_PRESENT=yes
15563   else
15564     CLOSED_SOURCE_PRESENT=no
15565   fi
15566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
15567 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
15568 
15569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
15570 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
15571   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
15572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
15573 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
15574 
15575   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
15576     OPENJDK=true
15577     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15578       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
15579 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
15580     fi
15581   else
15582     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15583       OPENJDK=true
15584     else
15585       OPENJDK=false
15586     fi
15587   fi
15588 
15589   if test "x$OPENJDK" = "xtrue"; then
15590     SET_OPENJDK="OPENJDK=true"
15591   fi
15592 
15593 
15594 
15595   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
15596   # the IncludeCustomExtension macro.
15597 
15598 
15599 # Check whether --with-custom-make-dir was given.
15600 if test "${with_custom_make_dir+set}" = set; then :
15601   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
15602 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
15603 fi
15604 
15605 
15606 
15607 
15608 # These are needed to be able to create a configuration name (and thus the output directory)
15609 
15610   ###############################################################################
15611   #
15612   # Check which variant of the JDK that we want to build.
15613   # Currently we have:
15614   #    normal:   standard edition
15615   # but the custom make system may add other variants
15616   #
15617   # Effectively the JDK variant gives a name to a specific set of
15618   # modules to compile into the JDK. In the future, these modules
15619   # might even be Jigsaw modules.
15620   #
15621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
15622 $as_echo_n "checking which variant of the JDK to build... " >&6; }
15623 
15624 # Check whether --with-jdk-variant was given.
15625 if test "${with_jdk_variant+set}" = set; then :
15626   withval=$with_jdk_variant;
15627 fi
15628 
15629 
15630   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
15631     JDK_VARIANT="normal"
15632   else
15633     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
15634   fi
15635 
15636 
15637 
15638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
15639 $as_echo "$JDK_VARIANT" >&6; }
15640 
15641 
15642 ###############################################################################
15643 #
15644 # Check which interpreter of the JVM we want to build.
15645 # Currently we have:
15646 #    template: Template interpreter (the default)
15647 #    cpp     : C++ interpreter
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
15649 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
15650 
15651 # Check whether --with-jvm-interpreter was given.
15652 if test "${with_jvm_interpreter+set}" = set; then :
15653   withval=$with_jvm_interpreter;
15654 fi
15655 
15656 
15657 if test "x$with_jvm_interpreter" = x; then
15658      with_jvm_interpreter="template"
15659 fi
15660 
15661 JVM_INTERPRETER="$with_jvm_interpreter"
15662 
15663 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
15664    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
15665 fi
15666 
15667 
15668 
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
15670 $as_echo "$with_jvm_interpreter" >&6; }
15671 
15672 
15673 
15674   ###############################################################################
15675   #
15676   # Check which variants of the JVM that we want to build.
15677   # Currently we have:
15678   #    server: normal interpreter and a tiered C1/C2 compiler
15679   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
15680   #    minimal1: reduced form of client with optional VM services and features stripped out
15681   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
15682   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
15683   #    zero: no machine code interpreter, no compiler
15684   #    zeroshark: zero interpreter and shark/llvm compiler backend
15685 #    core: interpreter only, no compiler (only works on some platforms)
15686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
15687 $as_echo_n "checking which variants of the JVM to build... " >&6; }
15688 
15689 # Check whether --with-jvm-variants was given.
15690 if test "${with_jvm_variants+set}" = set; then :
15691   withval=$with_jvm_variants;
15692 fi
15693 
15694 
15695   if test "x$with_jvm_variants" = x; then
15696     with_jvm_variants="server"
15697   fi
15698 
15699   JVM_VARIANTS=",$with_jvm_variants,"
15700   TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//'  -e 's/minimal1,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'`
15701 
15702   if test "x$TEST_VARIANTS" != "x,"; then
15703      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
15704   fi
15705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
15706 $as_echo "$with_jvm_variants" >&6; }
15707 
15708   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
15709   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
15710   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
15711   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
15712   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
15713   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
15714   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
15715 
15716   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15717     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15718       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
15719     fi
15720   fi
15721   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15722     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15723       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
15724     fi
15725   fi
15726   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15727     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15728       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
15729     fi
15730   fi
15731 
15732   # Replace the commas with AND for use in the build directory name.
15733   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
15734   COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/' -e 's/core,/1/'`
15735   if test "x$COUNT_VARIANTS" != "x,1"; then
15736     BUILDING_MULTIPLE_JVM_VARIANTS=yes
15737   else
15738     BUILDING_MULTIPLE_JVM_VARIANTS=no
15739   fi
15740 
15741 
15742 
15743 
15744 
15745 
15746 
15747 
15748 
15749 
15750   INCLUDE_SA=true
15751   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
15752     INCLUDE_SA=false
15753   fi
15754   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
15755     INCLUDE_SA=false
15756   fi
15757   if test "x$OPENJDK_TARGET_OS" = xaix ; then
15758     INCLUDE_SA=false
15759   fi
15760   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15761     INCLUDE_SA=false
15762   fi
15763 
15764 
15765   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15766     MACOSX_UNIVERSAL="true"
15767   fi
15768 
15769 
15770 
15771 
15772   ###############################################################################
15773   #
15774   # Set the debug level
15775   #    release: no debug information, all optimizations, no asserts.
15776   #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
15777   #    fastdebug: debug information (-g), all optimizations, all asserts
15778   #    slowdebug: debug information (-g), no optimizations, all asserts
15779   #
15780   DEBUG_LEVEL="release"
15781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
15782 $as_echo_n "checking which debug level to use... " >&6; }
15783   # Check whether --enable-debug was given.
15784 if test "${enable_debug+set}" = set; then :
15785   enableval=$enable_debug;
15786         ENABLE_DEBUG="${enableval}"
15787         DEBUG_LEVEL="fastdebug"
15788 
15789 else
15790   ENABLE_DEBUG="no"
15791 fi
15792 
15793 
15794 
15795 # Check whether --with-debug-level was given.
15796 if test "${with_debug_level+set}" = set; then :
15797   withval=$with_debug_level;
15798         DEBUG_LEVEL="${withval}"
15799         if test "x$ENABLE_DEBUG" = xyes; then
15800           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
15801         fi
15802 
15803 fi
15804 
15805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
15806 $as_echo "$DEBUG_LEVEL" >&6; }
15807 
15808   if test "x$DEBUG_LEVEL" != xrelease && \
15809       test "x$DEBUG_LEVEL" != xoptimized && \
15810       test "x$DEBUG_LEVEL" != xfastdebug && \
15811       test "x$DEBUG_LEVEL" != xslowdebug; then
15812     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
15813   fi
15814 
15815 
15816   ###############################################################################
15817   #
15818   # Setup legacy vars/targets and new vars to deal with different debug levels.
15819   #
15820 
15821   case $DEBUG_LEVEL in
15822     release )
15823       VARIANT="OPT"
15824       FASTDEBUG="false"
15825       DEBUG_CLASSFILES="false"
15826       BUILD_VARIANT_RELEASE=""
15827       HOTSPOT_DEBUG_LEVEL="product"
15828       HOTSPOT_EXPORT="product"
15829       ;;
15830     fastdebug )
15831       VARIANT="DBG"
15832       FASTDEBUG="true"
15833       DEBUG_CLASSFILES="true"
15834       BUILD_VARIANT_RELEASE="-fastdebug"
15835       HOTSPOT_DEBUG_LEVEL="fastdebug"
15836       HOTSPOT_EXPORT="fastdebug"
15837       ;;
15838     slowdebug )
15839       VARIANT="DBG"
15840       FASTDEBUG="false"
15841       DEBUG_CLASSFILES="true"
15842       BUILD_VARIANT_RELEASE="-debug"
15843       HOTSPOT_DEBUG_LEVEL="debug"
15844       HOTSPOT_EXPORT="debug"
15845       ;;
15846     optimized )
15847       VARIANT="OPT"
15848       FASTDEBUG="false"
15849       DEBUG_CLASSFILES="false"
15850       BUILD_VARIANT_RELEASE="-optimized"
15851       HOTSPOT_DEBUG_LEVEL="optimized"
15852       HOTSPOT_EXPORT="optimized"
15853       ;;
15854   esac
15855 
15856   # The debug level 'optimized' is a little special because it is currently only
15857   # applicable to the HotSpot build where it means to build a completely
15858   # optimized version of the VM without any debugging code (like for the
15859   # 'release' debug level which is called 'product' in the HotSpot build) but
15860   # with the exception that it can contain additional code which is otherwise
15861   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
15862   # test new and/or experimental features which are not intended for customer
15863   # shipment. Because these new features need to be tested and benchmarked in
15864   # real world scenarios, we want to build the containing JDK at the 'release'
15865   # debug level.
15866   if test "x$DEBUG_LEVEL" = xoptimized; then
15867     DEBUG_LEVEL="release"
15868   fi
15869 
15870   #####
15871   # Generate the legacy makefile targets for hotspot.
15872   # The hotspot api for selecting the build artifacts, really, needs to be improved.
15873   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
15874   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
15875   # But until then ...
15876   HOTSPOT_TARGET=""
15877 
15878   if test "x$JVM_VARIANT_SERVER" = xtrue; then
15879     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
15880   fi
15881 
15882   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15883     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
15884   fi
15885 
15886   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15887     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
15888   fi
15889 
15890   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15891     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
15892   fi
15893 
15894   if test "x$JVM_VARIANT_ZERO" = xtrue; then
15895     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
15896   fi
15897 
15898   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
15899     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
15900   fi
15901 
15902   if test "x$JVM_VARIANT_CORE" = xtrue; then
15903     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
15904   fi
15905 
15906   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
15907 
15908   # On Macosx universal binaries are produced, but they only contain
15909   # 64 bit intel. This invalidates control of which jvms are built
15910   # from configure, but only server is valid anyway. Fix this
15911   # when hotspot makefiles are rewritten.
15912   if test "x$MACOSX_UNIVERSAL" = xtrue; then
15913     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
15914   fi
15915 
15916   #####
15917 
15918 
15919 
15920 
15921 
15922 
15923 
15924 
15925 # With basic setup done, call the custom early hook.
15926 
15927 
15928 # Check if we have devkits, extra paths or sysroot set.
15929 
15930 
15931 # Check whether --with-devkit was given.
15932 if test "${with_devkit+set}" = set; then :
15933   withval=$with_devkit;
15934 
15935   # Only process if variable expands to non-empty
15936 
15937   if test "x$with_devkit" != x; then
15938     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15939 
15940   # Input might be given as Windows format, start by converting to
15941   # unix format.
15942   path="$with_devkit"
15943   new_path=`$CYGPATH -u "$path"`
15944 
15945   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15946   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15947   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15948   # "foo.exe" is OK but "foo" is an error.
15949   #
15950   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15951   # It is also a way to make sure we got the proper file name for the real test later on.
15952   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15953   if test "x$test_shortpath" = x; then
15954     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15955 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15956     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
15957   fi
15958 
15959   # Call helper function which possibly converts this using DOS-style short mode.
15960   # If so, the updated path is stored in $new_path.
15961 
15962   input_path="$new_path"
15963   # Check if we need to convert this using DOS-style short mode. If the path
15964   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15965   # take no chances and rewrite it.
15966   # Note: m4 eats our [], so we need to use [ and ] instead.
15967   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15968   if test "x$has_forbidden_chars" != x; then
15969     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15970     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15971     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15972     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15973       # Going to short mode and back again did indeed matter. Since short mode is
15974       # case insensitive, let's make it lowercase to improve readability.
15975       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15976       # Now convert it back to Unix-style (cygpath)
15977       input_path=`$CYGPATH -u "$shortmode_path"`
15978       new_path="$input_path"
15979     fi
15980   fi
15981 
15982   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15983   if test "x$test_cygdrive_prefix" = x; then
15984     # As a simple fix, exclude /usr/bin since it's not a real path.
15985     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15986       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15987       # a path prefixed by /cygdrive for fixpath to work.
15988       new_path="$CYGWIN_ROOT_PATH$input_path"
15989     fi
15990   fi
15991 
15992 
15993   if test "x$path" != "x$new_path"; then
15994     with_devkit="$new_path"
15995     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15996 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15997   fi
15998 
15999     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16000 
16001   path="$with_devkit"
16002   has_colon=`$ECHO $path | $GREP ^.:`
16003   new_path="$path"
16004   if test "x$has_colon" = x; then
16005     # Not in mixed or Windows style, start by that.
16006     new_path=`cmd //c echo $path`
16007   fi
16008 
16009 
16010   input_path="$new_path"
16011   # Check if we need to convert this using DOS-style short mode. If the path
16012   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16013   # take no chances and rewrite it.
16014   # Note: m4 eats our [], so we need to use [ and ] instead.
16015   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16016   if test "x$has_forbidden_chars" != x; then
16017     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16018     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16019   fi
16020 
16021 
16022   windows_path="$new_path"
16023   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16024     unix_path=`$CYGPATH -u "$windows_path"`
16025     new_path="$unix_path"
16026   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16027     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16028     new_path="$unix_path"
16029   fi
16030 
16031   if test "x$path" != "x$new_path"; then
16032     with_devkit="$new_path"
16033     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16034 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16035   fi
16036 
16037   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16038   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16039 
16040     else
16041       # We're on a unix platform. Hooray! :)
16042       path="$with_devkit"
16043       has_space=`$ECHO "$path" | $GREP " "`
16044       if test "x$has_space" != x; then
16045         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16046 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16047         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16048       fi
16049 
16050       # Use eval to expand a potential ~
16051       eval path="$path"
16052       if test ! -f "$path" && test ! -d "$path"; then
16053         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
16054       fi
16055 
16056       if test -d "$path"; then
16057         with_devkit="`cd "$path"; $THEPWDCMD -L`"
16058       else
16059         dir="`$DIRNAME "$path"`"
16060         base="`$BASENAME "$path"`"
16061         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
16062       fi
16063     fi
16064   fi
16065 
16066         DEVKIT_ROOT="$with_devkit"
16067         # Check for a meta data info file in the root of the devkit
16068         if test -f "$DEVKIT_ROOT/devkit.info"; then
16069           . $DEVKIT_ROOT/devkit.info
16070           # This potentially sets the following:
16071           # A descriptive name of the devkit
16072 
16073   if test "x$DEVKIT_NAME" = x; then
16074     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
16075   fi
16076 
16077           # Corresponds to --with-extra-path
16078 
16079   if test "x$DEVKIT_EXTRA_PATH" = x; then
16080     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
16081   fi
16082 
16083           # Corresponds to --with-toolchain-path
16084 
16085   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16086     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
16087   fi
16088 
16089           # Corresponds to --with-sysroot
16090 
16091   if test "x$DEVKIT_SYSROOT" = x; then
16092     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
16093   fi
16094 
16095 
16096           # Identifies the Visual Studio version in the devkit
16097 
16098   if test "x$DEVKIT_VS_VERSION" = x; then
16099     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
16100   fi
16101 
16102           # The Visual Studio include environment variable
16103 
16104   if test "x$DEVKIT_VS_INCLUDE" = x; then
16105     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
16106   fi
16107 
16108           # The Visual Studio lib environment variable
16109 
16110   if test "x$DEVKIT_VS_LIB" = x; then
16111     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
16112   fi
16113 
16114           # Corresponds to --with-msvcr-dll
16115 
16116   if test "x$DEVKIT_MSVCR_DLL" = x; then
16117     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
16118   fi
16119 
16120           # Corresponds to --with-msvcp-dll
16121 
16122   if test "x$DEVKIT_MSVCP_DLL" = x; then
16123     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
16124   fi
16125 
16126         fi
16127 
16128         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
16129 $as_echo_n "checking for devkit... " >&6; }
16130         if test "x$DEVKIT_NAME" != x; then
16131           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
16132 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
16133         else
16134           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
16135 $as_echo "$DEVKIT_ROOT" >&6; }
16136         fi
16137 
16138 
16139   if test "x$DEVKIT_EXTRA_PATH" != x; then
16140     if test "x$EXTRA_PATH" = x; then
16141       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
16142     else
16143       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
16144     fi
16145   fi
16146 
16147 
16148         # Fallback default of just /bin if DEVKIT_PATH is not defined
16149         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16150           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
16151         fi
16152 
16153   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
16154     if test "x$TOOLCHAIN_PATH" = x; then
16155       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
16156     else
16157       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
16158     fi
16159   fi
16160 
16161 
16162         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
16163         # places for backwards compatiblity.
16164         if test "x$DEVKIT_SYSROOT" != x; then
16165           SYSROOT="$DEVKIT_SYSROOT"
16166         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
16167           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
16168         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
16169           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
16170         fi
16171 
16172 
16173 fi
16174 
16175 
16176   # You can force the sysroot if the sysroot encoded into the compiler tools
16177   # is not correct.
16178 
16179 # Check whether --with-sys-root was given.
16180 if test "${with_sys_root+set}" = set; then :
16181   withval=$with_sys_root; SYSROOT=$with_sys_root
16182 
16183 fi
16184 
16185 
16186 
16187 # Check whether --with-sysroot was given.
16188 if test "${with_sysroot+set}" = set; then :
16189   withval=$with_sysroot; SYSROOT=$with_sysroot
16190 
16191 fi
16192 
16193 
16194 
16195 # Check whether --with-tools-dir was given.
16196 if test "${with_tools_dir+set}" = set; then :
16197   withval=$with_tools_dir;
16198   if test "x$with_tools_dir" != x; then
16199     if test "x$TOOLCHAIN_PATH" = x; then
16200       TOOLCHAIN_PATH="$with_tools_dir"
16201     else
16202       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
16203     fi
16204   fi
16205 
16206 
16207 fi
16208 
16209 
16210 
16211 # Check whether --with-toolchain-path was given.
16212 if test "${with_toolchain_path+set}" = set; then :
16213   withval=$with_toolchain_path;
16214   if test "x$with_toolchain_path" != x; then
16215     if test "x$TOOLCHAIN_PATH" = x; then
16216       TOOLCHAIN_PATH="$with_toolchain_path"
16217     else
16218       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
16219     fi
16220   fi
16221 
16222 
16223 fi
16224 
16225 
16226 
16227 # Check whether --with-extra-path was given.
16228 if test "${with_extra_path+set}" = set; then :
16229   withval=$with_extra_path;
16230   if test "x$with_extra_path" != x; then
16231     if test "x$EXTRA_PATH" = x; then
16232       EXTRA_PATH="$with_extra_path"
16233     else
16234       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
16235     fi
16236   fi
16237 
16238 
16239 fi
16240 
16241 
16242   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
16243     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
16244     # If not, detect if Xcode is installed by running xcodebuild -version
16245     # if no Xcode installed, xcodebuild exits with 1
16246     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
16247     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
16248       # We need to use xcodebuild in the toolchain dir provided by the user, this will
16249       # fall back on the stub binary in /usr/bin/xcodebuild
16250       # Extract the first word of "xcodebuild", so it can be a program name with args.
16251 set dummy xcodebuild; ac_word=$2
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16253 $as_echo_n "checking for $ac_word... " >&6; }
16254 if ${ac_cv_path_XCODEBUILD+:} false; then :
16255   $as_echo_n "(cached) " >&6
16256 else
16257   case $XCODEBUILD in
16258   [\\/]* | ?:[\\/]*)
16259   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
16260   ;;
16261   *)
16262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16263 for as_dir in $TOOLCHAIN_PATH
16264 do
16265   IFS=$as_save_IFS
16266   test -z "$as_dir" && as_dir=.
16267     for ac_exec_ext in '' $ac_executable_extensions; do
16268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16269     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
16270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16271     break 2
16272   fi
16273 done
16274   done
16275 IFS=$as_save_IFS
16276 
16277   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
16278   ;;
16279 esac
16280 fi
16281 XCODEBUILD=$ac_cv_path_XCODEBUILD
16282 if test -n "$XCODEBUILD"; then
16283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
16284 $as_echo "$XCODEBUILD" >&6; }
16285 else
16286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16287 $as_echo "no" >&6; }
16288 fi
16289 
16290 
16291     else
16292       # this should result in SYSROOT being empty, unless --with-sysroot is provided
16293       # when only the command line tools are installed there are no SDKs, so headers
16294       # are copied into the system frameworks
16295       XCODEBUILD=
16296 
16297     fi
16298 
16299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
16300 $as_echo_n "checking for sdk name... " >&6; }
16301 
16302 # Check whether --with-sdk-name was given.
16303 if test "${with_sdk_name+set}" = set; then :
16304   withval=$with_sdk_name; SDKNAME=$with_sdk_name
16305 
16306 fi
16307 
16308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
16309 $as_echo "$SDKNAME" >&6; }
16310 
16311     # if toolchain path is specified then don't rely on system headers, they may not compile
16312     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
16313     test -z "$TOOLCHAIN_PATH" && \
16314       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
16315 
16316     if test -z "$SYSROOT"; then
16317       if test -n "$XCODEBUILD"; then
16318         # if we don't have system headers, use default SDK name (last resort)
16319         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16320           SDKNAME=${SDKNAME:-macosx}
16321         fi
16322 
16323         if test -n "$SDKNAME"; then
16324           # Call xcodebuild to determine SYSROOT
16325           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
16326         fi
16327       else
16328         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16329           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
16330         fi
16331       fi
16332     else
16333       # warn user if --with-sdk-name was also set
16334       if test -n "$with_sdk_name"; then
16335         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
16336 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
16337       fi
16338     fi
16339 
16340     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
16341       # If no system framework headers, then SYSROOT must be set, or we won't build
16342       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
16343     fi
16344 
16345     # Perform a basic sanity test
16346     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
16347       if test -z "$SYSROOT"; then
16348         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
16349       else
16350         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
16351       fi
16352     fi
16353 
16354     # set SDKROOT too, Xcode tools will pick it up
16355     SDKROOT=$SYSROOT
16356 
16357   fi
16358 
16359   # Prepend the extra path to the global path
16360 
16361   if test "x$EXTRA_PATH" != x; then
16362     if test "x$PATH" = x; then
16363       PATH="$EXTRA_PATH"
16364     else
16365       PATH="$EXTRA_PATH:$PATH"
16366     fi
16367   fi
16368 
16369 
16370   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
16371     # Add extra search paths on solaris for utilities like ar and as etc...
16372     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
16373   fi
16374 
16375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16376 $as_echo_n "checking for sysroot... " >&6; }
16377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
16378 $as_echo "$SYSROOT" >&6; }
16379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
16380 $as_echo_n "checking for toolchain path... " >&6; }
16381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
16382 $as_echo "$TOOLCHAIN_PATH" >&6; }
16383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
16384 $as_echo_n "checking for extra path... " >&6; }
16385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
16386 $as_echo "$EXTRA_PATH" >&6; }
16387 
16388 
16389 # To properly create a configuration name, we need to have the OpenJDK target
16390 # and options (variants and debug level) parsed.
16391 
16392 
16393 
16394 # Check whether --with-conf-name was given.
16395 if test "${with_conf_name+set}" = set; then :
16396   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
16397 fi
16398 
16399 
16400   # Test from where we are running configure, in or outside of src root.
16401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
16402 $as_echo_n "checking where to store configuration... " >&6; }
16403   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
16404       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
16405       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
16406     # We are running configure from the src root.
16407     # Create a default ./build/target-variant-debuglevel output root.
16408     if test "x${CONF_NAME}" = x; then
16409       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
16410 $as_echo "in default location" >&6; }
16411       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
16412     else
16413       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
16414 $as_echo "in build directory with custom name" >&6; }
16415     fi
16416     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
16417     $MKDIR -p "$OUTPUT_ROOT"
16418     if test ! -d "$OUTPUT_ROOT"; then
16419       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
16420     fi
16421   else
16422     # We are running configure from outside of the src dir.
16423     # Then use the current directory as output dir!
16424     # If configuration is situated in normal build directory, just use the build
16425     # directory name as configuration name, otherwise use the complete path.
16426     if test "x${CONF_NAME}" = x; then
16427       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
16428     fi
16429     OUTPUT_ROOT="$CURDIR"
16430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
16431 $as_echo "in current directory" >&6; }
16432 
16433     # WARNING: This might be a bad thing to do. You need to be sure you want to
16434     # have a configuration in this directory. Do some sanity checks!
16435 
16436     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
16437       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
16438       # other files
16439       files_present=`$LS $OUTPUT_ROOT`
16440       # Configure has already touched config.log and confdefs.h in the current dir when this check
16441       # is performed.
16442       filtered_files=`$ECHO "$files_present" \
16443           | $SED -e 's/config.log//g' \
16444               -e 's/configure.log//g' \
16445               -e 's/confdefs.h//g' \
16446               -e 's/ //g' \
16447           | $TR -d '\n'`
16448       if test "x$filtered_files" != x; then
16449         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
16450 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
16451         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
16452 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
16453         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
16454 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
16455         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
16456 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
16457         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
16458 $as_echo "$as_me: seriously mess up just about everything." >&6;}
16459         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
16460 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
16461         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
16462 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
16463         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
16464       fi
16465     fi
16466   fi
16467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
16468 $as_echo_n "checking what configuration name to use... " >&6; }
16469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
16470 $as_echo "$CONF_NAME" >&6; }
16471 
16472 
16473   # Only process if variable expands to non-empty
16474 
16475   if test "x$OUTPUT_ROOT" != x; then
16476     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16477 
16478   # Input might be given as Windows format, start by converting to
16479   # unix format.
16480   path="$OUTPUT_ROOT"
16481   new_path=`$CYGPATH -u "$path"`
16482 
16483   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16484   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16485   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16486   # "foo.exe" is OK but "foo" is an error.
16487   #
16488   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16489   # It is also a way to make sure we got the proper file name for the real test later on.
16490   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16491   if test "x$test_shortpath" = x; then
16492     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16493 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16494     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
16495   fi
16496 
16497   # Call helper function which possibly converts this using DOS-style short mode.
16498   # If so, the updated path is stored in $new_path.
16499 
16500   input_path="$new_path"
16501   # Check if we need to convert this using DOS-style short mode. If the path
16502   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16503   # take no chances and rewrite it.
16504   # Note: m4 eats our [], so we need to use [ and ] instead.
16505   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16506   if test "x$has_forbidden_chars" != x; then
16507     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16508     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16509     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16510     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16511       # Going to short mode and back again did indeed matter. Since short mode is
16512       # case insensitive, let's make it lowercase to improve readability.
16513       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16514       # Now convert it back to Unix-style (cygpath)
16515       input_path=`$CYGPATH -u "$shortmode_path"`
16516       new_path="$input_path"
16517     fi
16518   fi
16519 
16520   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16521   if test "x$test_cygdrive_prefix" = x; then
16522     # As a simple fix, exclude /usr/bin since it's not a real path.
16523     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16524       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16525       # a path prefixed by /cygdrive for fixpath to work.
16526       new_path="$CYGWIN_ROOT_PATH$input_path"
16527     fi
16528   fi
16529 
16530 
16531   if test "x$path" != "x$new_path"; then
16532     OUTPUT_ROOT="$new_path"
16533     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16534 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16535   fi
16536 
16537     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16538 
16539   path="$OUTPUT_ROOT"
16540   has_colon=`$ECHO $path | $GREP ^.:`
16541   new_path="$path"
16542   if test "x$has_colon" = x; then
16543     # Not in mixed or Windows style, start by that.
16544     new_path=`cmd //c echo $path`
16545   fi
16546 
16547 
16548   input_path="$new_path"
16549   # Check if we need to convert this using DOS-style short mode. If the path
16550   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16551   # take no chances and rewrite it.
16552   # Note: m4 eats our [], so we need to use [ and ] instead.
16553   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16554   if test "x$has_forbidden_chars" != x; then
16555     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16556     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16557   fi
16558 
16559 
16560   windows_path="$new_path"
16561   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16562     unix_path=`$CYGPATH -u "$windows_path"`
16563     new_path="$unix_path"
16564   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16565     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16566     new_path="$unix_path"
16567   fi
16568 
16569   if test "x$path" != "x$new_path"; then
16570     OUTPUT_ROOT="$new_path"
16571     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16572 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16573   fi
16574 
16575   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16576   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16577 
16578     else
16579       # We're on a unix platform. Hooray! :)
16580       path="$OUTPUT_ROOT"
16581       has_space=`$ECHO "$path" | $GREP " "`
16582       if test "x$has_space" != x; then
16583         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16584 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16585         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16586       fi
16587 
16588       # Use eval to expand a potential ~
16589       eval path="$path"
16590       if test ! -f "$path" && test ! -d "$path"; then
16591         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16592       fi
16593 
16594       if test -d "$path"; then
16595         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
16596       else
16597         dir="`$DIRNAME "$path"`"
16598         base="`$BASENAME "$path"`"
16599         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
16600       fi
16601     fi
16602   fi
16603 
16604 
16605   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
16606   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
16607 
16608   SPEC=$OUTPUT_ROOT/spec.gmk
16609 
16610   CONF_NAME=$CONF_NAME
16611 
16612   OUTPUT_ROOT=$OUTPUT_ROOT
16613 
16614 
16615 
16616   # The spec.gmk file contains all variables for the make system.
16617   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
16618 
16619   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
16620   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
16621 
16622   # The bootcycle-spec.gmk file contains support for boot cycle builds.
16623   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
16624 
16625   # The compare.sh is used to compare the build output to other builds.
16626   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
16627 
16628   # The generated Makefile knows where the spec.gmk is and where the source is.
16629   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
16630   # which will look for generated configurations
16631   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
16632 
16633 
16634 
16635 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
16636 
16637   for ac_prog in apt-get yum port pkgutil pkgadd
16638 do
16639   # Extract the first word of "$ac_prog", so it can be a program name with args.
16640 set dummy $ac_prog; ac_word=$2
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16642 $as_echo_n "checking for $ac_word... " >&6; }
16643 if ${ac_cv_prog_PKGHANDLER+:} false; then :
16644   $as_echo_n "(cached) " >&6
16645 else
16646   if test -n "$PKGHANDLER"; then
16647   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
16648 else
16649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16650 for as_dir in $PATH
16651 do
16652   IFS=$as_save_IFS
16653   test -z "$as_dir" && as_dir=.
16654     for ac_exec_ext in '' $ac_executable_extensions; do
16655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16656     ac_cv_prog_PKGHANDLER="$ac_prog"
16657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16658     break 2
16659   fi
16660 done
16661   done
16662 IFS=$as_save_IFS
16663 
16664 fi
16665 fi
16666 PKGHANDLER=$ac_cv_prog_PKGHANDLER
16667 if test -n "$PKGHANDLER"; then
16668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
16669 $as_echo "$PKGHANDLER" >&6; }
16670 else
16671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16672 $as_echo "no" >&6; }
16673 fi
16674 
16675 
16676   test -n "$PKGHANDLER" && break
16677 done
16678 
16679 
16680 
16681 # Setup tools that requires more complex handling, or that is not needed by the configure script.
16682 
16683 
16684 
16685   # Publish this variable in the help.
16686 
16687 
16688   if [ -z "${MAKE+x}" ]; then
16689     # The variable is not set by user, try to locate tool using the code snippet
16690 
16691     # Try our hardest to locate a correct version of GNU make
16692     for ac_prog in gmake
16693 do
16694   # Extract the first word of "$ac_prog", so it can be a program name with args.
16695 set dummy $ac_prog; ac_word=$2
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16697 $as_echo_n "checking for $ac_word... " >&6; }
16698 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
16699   $as_echo_n "(cached) " >&6
16700 else
16701   case $CHECK_GMAKE in
16702   [\\/]* | ?:[\\/]*)
16703   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
16704   ;;
16705   *)
16706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16707 for as_dir in $PATH
16708 do
16709   IFS=$as_save_IFS
16710   test -z "$as_dir" && as_dir=.
16711     for ac_exec_ext in '' $ac_executable_extensions; do
16712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16713     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16715     break 2
16716   fi
16717 done
16718   done
16719 IFS=$as_save_IFS
16720 
16721   ;;
16722 esac
16723 fi
16724 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
16725 if test -n "$CHECK_GMAKE"; then
16726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
16727 $as_echo "$CHECK_GMAKE" >&6; }
16728 else
16729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16730 $as_echo "no" >&6; }
16731 fi
16732 
16733 
16734   test -n "$CHECK_GMAKE" && break
16735 done
16736 
16737 
16738   MAKE_CANDIDATE=""$CHECK_GMAKE""
16739   DESCRIPTION="gmake in PATH"
16740 
16741   # On Cygwin, we require a newer version of make than on other platforms
16742   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16743     MAKE_VERSION_EXPR="-e 4\."
16744     MAKE_REQUIRED_VERSION="4.0"
16745    else
16746     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
16747     MAKE_REQUIRED_VERSION="3.81"
16748   fi
16749 
16750   if test "x$MAKE_CANDIDATE" != x; then
16751     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16752 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16753     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16754     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16755     if test "x$IS_GNU_MAKE" = x; then
16756       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16757 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16758     else
16759       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
16760       if test "x$IS_MODERN_MAKE" = x; then
16761         { $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
16762 $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;}
16763       else
16764         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16765           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16766             MAKE_EXPECTED_ENV='cygwin'
16767           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16768             MAKE_EXPECTED_ENV='msys'
16769           else
16770             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16771           fi
16772           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16773           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16774         else
16775           # Not relevant for non-Windows
16776           IS_MAKE_CORRECT_ENV=true
16777         fi
16778         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16779           { $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
16780 $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;}
16781         else
16782           FOUND_MAKE=$MAKE_CANDIDATE
16783 
16784   # Only process if variable expands to non-empty
16785 
16786   if test "x$FOUND_MAKE" != x; then
16787     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16788 
16789   # First separate the path from the arguments. This will split at the first
16790   # space.
16791   complete="$FOUND_MAKE"
16792   path="${complete%% *}"
16793   tmp="$complete EOL"
16794   arguments="${tmp#* }"
16795 
16796   # Input might be given as Windows format, start by converting to
16797   # unix format.
16798   new_path=`$CYGPATH -u "$path"`
16799 
16800   # Now try to locate executable using which
16801   new_path=`$WHICH "$new_path" 2> /dev/null`
16802   # bat and cmd files are not always considered executable in cygwin causing which
16803   # to not find them
16804   if test "x$new_path" = x \
16805       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16806       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16807     new_path=`$CYGPATH -u "$path"`
16808   fi
16809   if test "x$new_path" = x; then
16810     # Oops. Which didn't find the executable.
16811     # The splitting of arguments from the executable at a space might have been incorrect,
16812     # since paths with space are more likely in Windows. Give it another try with the whole
16813     # argument.
16814     path="$complete"
16815     arguments="EOL"
16816     new_path=`$CYGPATH -u "$path"`
16817     new_path=`$WHICH "$new_path" 2> /dev/null`
16818     # bat and cmd files are not always considered executable in cygwin causing which
16819     # to not find them
16820     if test "x$new_path" = x \
16821         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16822         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16823       new_path=`$CYGPATH -u "$path"`
16824     fi
16825     if test "x$new_path" = x; then
16826       # It's still not found. Now this is an unrecoverable error.
16827       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16828 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16829       has_space=`$ECHO "$complete" | $GREP " "`
16830       if test "x$has_space" != x; then
16831         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16832 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16833       fi
16834       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16835     fi
16836   fi
16837 
16838   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16839   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16840   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16841   # "foo.exe" is OK but "foo" is an error.
16842   #
16843   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16844   # It is also a way to make sure we got the proper file name for the real test later on.
16845   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16846   if test "x$test_shortpath" = x; then
16847     # Short path failed, file does not exist as specified.
16848     # Try adding .exe or .cmd
16849     if test -f "${new_path}.exe"; then
16850       input_to_shortpath="${new_path}.exe"
16851     elif test -f "${new_path}.cmd"; then
16852       input_to_shortpath="${new_path}.cmd"
16853     else
16854       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16855 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16856       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16857 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16858       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16859     fi
16860   else
16861     input_to_shortpath="$new_path"
16862   fi
16863 
16864   # Call helper function which possibly converts this using DOS-style short mode.
16865   # If so, the updated path is stored in $new_path.
16866   new_path="$input_to_shortpath"
16867 
16868   input_path="$input_to_shortpath"
16869   # Check if we need to convert this using DOS-style short mode. If the path
16870   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16871   # take no chances and rewrite it.
16872   # Note: m4 eats our [], so we need to use [ and ] instead.
16873   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16874   if test "x$has_forbidden_chars" != x; then
16875     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16876     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16877     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16878     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16879       # Going to short mode and back again did indeed matter. Since short mode is
16880       # case insensitive, let's make it lowercase to improve readability.
16881       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16882       # Now convert it back to Unix-style (cygpath)
16883       input_path=`$CYGPATH -u "$shortmode_path"`
16884       new_path="$input_path"
16885     fi
16886   fi
16887 
16888   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16889   if test "x$test_cygdrive_prefix" = x; then
16890     # As a simple fix, exclude /usr/bin since it's not a real path.
16891     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16892       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16893       # a path prefixed by /cygdrive for fixpath to work.
16894       new_path="$CYGWIN_ROOT_PATH$input_path"
16895     fi
16896   fi
16897 
16898   # remove trailing .exe if any
16899   new_path="${new_path/%.exe/}"
16900 
16901     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16902 
16903   # First separate the path from the arguments. This will split at the first
16904   # space.
16905   complete="$FOUND_MAKE"
16906   path="${complete%% *}"
16907   tmp="$complete EOL"
16908   arguments="${tmp#* }"
16909 
16910   # Input might be given as Windows format, start by converting to
16911   # unix format.
16912   new_path="$path"
16913 
16914   windows_path="$new_path"
16915   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16916     unix_path=`$CYGPATH -u "$windows_path"`
16917     new_path="$unix_path"
16918   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16919     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16920     new_path="$unix_path"
16921   fi
16922 
16923 
16924   # Now try to locate executable using which
16925   new_path=`$WHICH "$new_path" 2> /dev/null`
16926 
16927   if test "x$new_path" = x; then
16928     # Oops. Which didn't find the executable.
16929     # The splitting of arguments from the executable at a space might have been incorrect,
16930     # since paths with space are more likely in Windows. Give it another try with the whole
16931     # argument.
16932     path="$complete"
16933     arguments="EOL"
16934     new_path="$path"
16935 
16936   windows_path="$new_path"
16937   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16938     unix_path=`$CYGPATH -u "$windows_path"`
16939     new_path="$unix_path"
16940   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16941     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16942     new_path="$unix_path"
16943   fi
16944 
16945 
16946     new_path=`$WHICH "$new_path" 2> /dev/null`
16947     # bat and cmd files are not always considered executable in MSYS causing which
16948     # to not find them
16949     if test "x$new_path" = x \
16950         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16951         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16952       new_path="$path"
16953 
16954   windows_path="$new_path"
16955   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16956     unix_path=`$CYGPATH -u "$windows_path"`
16957     new_path="$unix_path"
16958   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16959     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16960     new_path="$unix_path"
16961   fi
16962 
16963     fi
16964 
16965     if test "x$new_path" = x; then
16966       # It's still not found. Now this is an unrecoverable error.
16967       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16968 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16969       has_space=`$ECHO "$complete" | $GREP " "`
16970       if test "x$has_space" != x; then
16971         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16972 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16973       fi
16974       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16975     fi
16976   fi
16977 
16978   # Now new_path has a complete unix path to the binary
16979   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16980     # Keep paths in /bin as-is, but remove trailing .exe if any
16981     new_path="${new_path/%.exe/}"
16982     # Do not save /bin paths to all_fixpath_prefixes!
16983   else
16984     # Not in mixed or Windows style, start by that.
16985     new_path=`cmd //c echo $new_path`
16986 
16987   input_path="$new_path"
16988   # Check if we need to convert this using DOS-style short mode. If the path
16989   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16990   # take no chances and rewrite it.
16991   # Note: m4 eats our [], so we need to use [ and ] instead.
16992   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16993   if test "x$has_forbidden_chars" != x; then
16994     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16995     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16996   fi
16997 
16998     # Output is in $new_path
16999 
17000   windows_path="$new_path"
17001   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17002     unix_path=`$CYGPATH -u "$windows_path"`
17003     new_path="$unix_path"
17004   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17005     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17006     new_path="$unix_path"
17007   fi
17008 
17009     # remove trailing .exe if any
17010     new_path="${new_path/%.exe/}"
17011 
17012     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17013     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17014   fi
17015 
17016     else
17017       # We're on a unix platform. Hooray! :)
17018       # First separate the path from the arguments. This will split at the first
17019       # space.
17020       complete="$FOUND_MAKE"
17021       path="${complete%% *}"
17022       tmp="$complete EOL"
17023       arguments="${tmp#* }"
17024 
17025       # Cannot rely on the command "which" here since it doesn't always work.
17026       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17027       if test -z "$is_absolute_path"; then
17028         # Path to executable is not absolute. Find it.
17029         IFS_save="$IFS"
17030         IFS=:
17031         for p in $PATH; do
17032           if test -f "$p/$path" && test -x "$p/$path"; then
17033             new_path="$p/$path"
17034             break
17035           fi
17036         done
17037         IFS="$IFS_save"
17038       else
17039         # This is an absolute path, we can use it without further modifications.
17040         new_path="$path"
17041       fi
17042 
17043       if test "x$new_path" = x; then
17044         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17045 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17046         has_space=`$ECHO "$complete" | $GREP " "`
17047         if test "x$has_space" != x; then
17048           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17049 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17050         fi
17051         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17052       fi
17053     fi
17054 
17055     # Now join together the path and the arguments once again
17056     if test "x$arguments" != xEOL; then
17057       new_complete="$new_path ${arguments% *}"
17058     else
17059       new_complete="$new_path"
17060     fi
17061 
17062     if test "x$complete" != "x$new_complete"; then
17063       FOUND_MAKE="$new_complete"
17064       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17065 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17066     fi
17067   fi
17068 
17069         fi
17070       fi
17071     fi
17072   fi
17073 
17074 
17075     if test "x$FOUND_MAKE" = x; then
17076       for ac_prog in make
17077 do
17078   # Extract the first word of "$ac_prog", so it can be a program name with args.
17079 set dummy $ac_prog; ac_word=$2
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17081 $as_echo_n "checking for $ac_word... " >&6; }
17082 if ${ac_cv_path_CHECK_MAKE+:} false; then :
17083   $as_echo_n "(cached) " >&6
17084 else
17085   case $CHECK_MAKE in
17086   [\\/]* | ?:[\\/]*)
17087   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
17088   ;;
17089   *)
17090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17091 for as_dir in $PATH
17092 do
17093   IFS=$as_save_IFS
17094   test -z "$as_dir" && as_dir=.
17095     for ac_exec_ext in '' $ac_executable_extensions; do
17096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17097     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
17098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17099     break 2
17100   fi
17101 done
17102   done
17103 IFS=$as_save_IFS
17104 
17105   ;;
17106 esac
17107 fi
17108 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
17109 if test -n "$CHECK_MAKE"; then
17110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
17111 $as_echo "$CHECK_MAKE" >&6; }
17112 else
17113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17114 $as_echo "no" >&6; }
17115 fi
17116 
17117 
17118   test -n "$CHECK_MAKE" && break
17119 done
17120 
17121 
17122   MAKE_CANDIDATE=""$CHECK_MAKE""
17123   DESCRIPTION="make in PATH"
17124 
17125   # On Cygwin, we require a newer version of make than on other platforms
17126   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17127     MAKE_VERSION_EXPR="-e 4\."
17128     MAKE_REQUIRED_VERSION="4.0"
17129    else
17130     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17131     MAKE_REQUIRED_VERSION="3.81"
17132   fi
17133 
17134   if test "x$MAKE_CANDIDATE" != x; then
17135     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17136 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17137     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17138     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17139     if test "x$IS_GNU_MAKE" = x; then
17140       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17141 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17142     else
17143       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17144       if test "x$IS_MODERN_MAKE" = x; then
17145         { $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
17146 $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;}
17147       else
17148         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17149           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17150             MAKE_EXPECTED_ENV='cygwin'
17151           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17152             MAKE_EXPECTED_ENV='msys'
17153           else
17154             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17155           fi
17156           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17157           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17158         else
17159           # Not relevant for non-Windows
17160           IS_MAKE_CORRECT_ENV=true
17161         fi
17162         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17163           { $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
17164 $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;}
17165         else
17166           FOUND_MAKE=$MAKE_CANDIDATE
17167 
17168   # Only process if variable expands to non-empty
17169 
17170   if test "x$FOUND_MAKE" != x; then
17171     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17172 
17173   # First separate the path from the arguments. This will split at the first
17174   # space.
17175   complete="$FOUND_MAKE"
17176   path="${complete%% *}"
17177   tmp="$complete EOL"
17178   arguments="${tmp#* }"
17179 
17180   # Input might be given as Windows format, start by converting to
17181   # unix format.
17182   new_path=`$CYGPATH -u "$path"`
17183 
17184   # Now try to locate executable using which
17185   new_path=`$WHICH "$new_path" 2> /dev/null`
17186   # bat and cmd files are not always considered executable in cygwin causing which
17187   # to not find them
17188   if test "x$new_path" = x \
17189       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17190       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17191     new_path=`$CYGPATH -u "$path"`
17192   fi
17193   if test "x$new_path" = x; then
17194     # Oops. Which didn't find the executable.
17195     # The splitting of arguments from the executable at a space might have been incorrect,
17196     # since paths with space are more likely in Windows. Give it another try with the whole
17197     # argument.
17198     path="$complete"
17199     arguments="EOL"
17200     new_path=`$CYGPATH -u "$path"`
17201     new_path=`$WHICH "$new_path" 2> /dev/null`
17202     # bat and cmd files are not always considered executable in cygwin causing which
17203     # to not find them
17204     if test "x$new_path" = x \
17205         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17206         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17207       new_path=`$CYGPATH -u "$path"`
17208     fi
17209     if test "x$new_path" = x; then
17210       # It's still not found. Now this is an unrecoverable error.
17211       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17212 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17213       has_space=`$ECHO "$complete" | $GREP " "`
17214       if test "x$has_space" != x; then
17215         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17216 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17217       fi
17218       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17219     fi
17220   fi
17221 
17222   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17223   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17224   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17225   # "foo.exe" is OK but "foo" is an error.
17226   #
17227   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17228   # It is also a way to make sure we got the proper file name for the real test later on.
17229   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17230   if test "x$test_shortpath" = x; then
17231     # Short path failed, file does not exist as specified.
17232     # Try adding .exe or .cmd
17233     if test -f "${new_path}.exe"; then
17234       input_to_shortpath="${new_path}.exe"
17235     elif test -f "${new_path}.cmd"; then
17236       input_to_shortpath="${new_path}.cmd"
17237     else
17238       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17239 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17240       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17241 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17242       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17243     fi
17244   else
17245     input_to_shortpath="$new_path"
17246   fi
17247 
17248   # Call helper function which possibly converts this using DOS-style short mode.
17249   # If so, the updated path is stored in $new_path.
17250   new_path="$input_to_shortpath"
17251 
17252   input_path="$input_to_shortpath"
17253   # Check if we need to convert this using DOS-style short mode. If the path
17254   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17255   # take no chances and rewrite it.
17256   # Note: m4 eats our [], so we need to use [ and ] instead.
17257   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17258   if test "x$has_forbidden_chars" != x; then
17259     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17260     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17261     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17262     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17263       # Going to short mode and back again did indeed matter. Since short mode is
17264       # case insensitive, let's make it lowercase to improve readability.
17265       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17266       # Now convert it back to Unix-style (cygpath)
17267       input_path=`$CYGPATH -u "$shortmode_path"`
17268       new_path="$input_path"
17269     fi
17270   fi
17271 
17272   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17273   if test "x$test_cygdrive_prefix" = x; then
17274     # As a simple fix, exclude /usr/bin since it's not a real path.
17275     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17276       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17277       # a path prefixed by /cygdrive for fixpath to work.
17278       new_path="$CYGWIN_ROOT_PATH$input_path"
17279     fi
17280   fi
17281 
17282   # remove trailing .exe if any
17283   new_path="${new_path/%.exe/}"
17284 
17285     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17286 
17287   # First separate the path from the arguments. This will split at the first
17288   # space.
17289   complete="$FOUND_MAKE"
17290   path="${complete%% *}"
17291   tmp="$complete EOL"
17292   arguments="${tmp#* }"
17293 
17294   # Input might be given as Windows format, start by converting to
17295   # unix format.
17296   new_path="$path"
17297 
17298   windows_path="$new_path"
17299   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17300     unix_path=`$CYGPATH -u "$windows_path"`
17301     new_path="$unix_path"
17302   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17303     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17304     new_path="$unix_path"
17305   fi
17306 
17307 
17308   # Now try to locate executable using which
17309   new_path=`$WHICH "$new_path" 2> /dev/null`
17310 
17311   if test "x$new_path" = x; then
17312     # Oops. Which didn't find the executable.
17313     # The splitting of arguments from the executable at a space might have been incorrect,
17314     # since paths with space are more likely in Windows. Give it another try with the whole
17315     # argument.
17316     path="$complete"
17317     arguments="EOL"
17318     new_path="$path"
17319 
17320   windows_path="$new_path"
17321   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17322     unix_path=`$CYGPATH -u "$windows_path"`
17323     new_path="$unix_path"
17324   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17325     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17326     new_path="$unix_path"
17327   fi
17328 
17329 
17330     new_path=`$WHICH "$new_path" 2> /dev/null`
17331     # bat and cmd files are not always considered executable in MSYS causing which
17332     # to not find them
17333     if test "x$new_path" = x \
17334         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17335         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17336       new_path="$path"
17337 
17338   windows_path="$new_path"
17339   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17340     unix_path=`$CYGPATH -u "$windows_path"`
17341     new_path="$unix_path"
17342   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17343     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17344     new_path="$unix_path"
17345   fi
17346 
17347     fi
17348 
17349     if test "x$new_path" = x; then
17350       # It's still not found. Now this is an unrecoverable error.
17351       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17352 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17353       has_space=`$ECHO "$complete" | $GREP " "`
17354       if test "x$has_space" != x; then
17355         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17356 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17357       fi
17358       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17359     fi
17360   fi
17361 
17362   # Now new_path has a complete unix path to the binary
17363   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17364     # Keep paths in /bin as-is, but remove trailing .exe if any
17365     new_path="${new_path/%.exe/}"
17366     # Do not save /bin paths to all_fixpath_prefixes!
17367   else
17368     # Not in mixed or Windows style, start by that.
17369     new_path=`cmd //c echo $new_path`
17370 
17371   input_path="$new_path"
17372   # Check if we need to convert this using DOS-style short mode. If the path
17373   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17374   # take no chances and rewrite it.
17375   # Note: m4 eats our [], so we need to use [ and ] instead.
17376   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17377   if test "x$has_forbidden_chars" != x; then
17378     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17379     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17380   fi
17381 
17382     # Output is in $new_path
17383 
17384   windows_path="$new_path"
17385   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17386     unix_path=`$CYGPATH -u "$windows_path"`
17387     new_path="$unix_path"
17388   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17389     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17390     new_path="$unix_path"
17391   fi
17392 
17393     # remove trailing .exe if any
17394     new_path="${new_path/%.exe/}"
17395 
17396     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17397     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17398   fi
17399 
17400     else
17401       # We're on a unix platform. Hooray! :)
17402       # First separate the path from the arguments. This will split at the first
17403       # space.
17404       complete="$FOUND_MAKE"
17405       path="${complete%% *}"
17406       tmp="$complete EOL"
17407       arguments="${tmp#* }"
17408 
17409       # Cannot rely on the command "which" here since it doesn't always work.
17410       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17411       if test -z "$is_absolute_path"; then
17412         # Path to executable is not absolute. Find it.
17413         IFS_save="$IFS"
17414         IFS=:
17415         for p in $PATH; do
17416           if test -f "$p/$path" && test -x "$p/$path"; then
17417             new_path="$p/$path"
17418             break
17419           fi
17420         done
17421         IFS="$IFS_save"
17422       else
17423         # This is an absolute path, we can use it without further modifications.
17424         new_path="$path"
17425       fi
17426 
17427       if test "x$new_path" = x; then
17428         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17429 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17430         has_space=`$ECHO "$complete" | $GREP " "`
17431         if test "x$has_space" != x; then
17432           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17433 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17434         fi
17435         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17436       fi
17437     fi
17438 
17439     # Now join together the path and the arguments once again
17440     if test "x$arguments" != xEOL; then
17441       new_complete="$new_path ${arguments% *}"
17442     else
17443       new_complete="$new_path"
17444     fi
17445 
17446     if test "x$complete" != "x$new_complete"; then
17447       FOUND_MAKE="$new_complete"
17448       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17449 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17450     fi
17451   fi
17452 
17453         fi
17454       fi
17455     fi
17456   fi
17457 
17458     fi
17459 
17460     if test "x$FOUND_MAKE" = x; then
17461       if test "x$TOOLCHAIN_PATH" != x; then
17462         # We have a toolchain path, check that as well before giving up.
17463         OLD_PATH=$PATH
17464         PATH=$TOOLCHAIN_PATH:$PATH
17465         for ac_prog in gmake
17466 do
17467   # Extract the first word of "$ac_prog", so it can be a program name with args.
17468 set dummy $ac_prog; ac_word=$2
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17470 $as_echo_n "checking for $ac_word... " >&6; }
17471 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17472   $as_echo_n "(cached) " >&6
17473 else
17474   case $CHECK_TOOLSDIR_GMAKE in
17475   [\\/]* | ?:[\\/]*)
17476   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17477   ;;
17478   *)
17479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17480 for as_dir in $PATH
17481 do
17482   IFS=$as_save_IFS
17483   test -z "$as_dir" && as_dir=.
17484     for ac_exec_ext in '' $ac_executable_extensions; do
17485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17486     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17488     break 2
17489   fi
17490 done
17491   done
17492 IFS=$as_save_IFS
17493 
17494   ;;
17495 esac
17496 fi
17497 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17498 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17500 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17501 else
17502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503 $as_echo "no" >&6; }
17504 fi
17505 
17506 
17507   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17508 done
17509 
17510 
17511   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17512   DESCRIPTION="gmake in tools-dir"
17513 
17514   # On Cygwin, we require a newer version of make than on other platforms
17515   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17516     MAKE_VERSION_EXPR="-e 4\."
17517     MAKE_REQUIRED_VERSION="4.0"
17518    else
17519     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17520     MAKE_REQUIRED_VERSION="3.81"
17521   fi
17522 
17523   if test "x$MAKE_CANDIDATE" != x; then
17524     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17525 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17526     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17527     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17528     if test "x$IS_GNU_MAKE" = x; then
17529       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17530 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17531     else
17532       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17533       if test "x$IS_MODERN_MAKE" = x; then
17534         { $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
17535 $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;}
17536       else
17537         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17538           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17539             MAKE_EXPECTED_ENV='cygwin'
17540           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17541             MAKE_EXPECTED_ENV='msys'
17542           else
17543             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17544           fi
17545           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17546           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17547         else
17548           # Not relevant for non-Windows
17549           IS_MAKE_CORRECT_ENV=true
17550         fi
17551         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17552           { $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
17553 $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;}
17554         else
17555           FOUND_MAKE=$MAKE_CANDIDATE
17556 
17557   # Only process if variable expands to non-empty
17558 
17559   if test "x$FOUND_MAKE" != x; then
17560     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17561 
17562   # First separate the path from the arguments. This will split at the first
17563   # space.
17564   complete="$FOUND_MAKE"
17565   path="${complete%% *}"
17566   tmp="$complete EOL"
17567   arguments="${tmp#* }"
17568 
17569   # Input might be given as Windows format, start by converting to
17570   # unix format.
17571   new_path=`$CYGPATH -u "$path"`
17572 
17573   # Now try to locate executable using which
17574   new_path=`$WHICH "$new_path" 2> /dev/null`
17575   # bat and cmd files are not always considered executable in cygwin causing which
17576   # to not find them
17577   if test "x$new_path" = x \
17578       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17579       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17580     new_path=`$CYGPATH -u "$path"`
17581   fi
17582   if test "x$new_path" = x; then
17583     # Oops. Which didn't find the executable.
17584     # The splitting of arguments from the executable at a space might have been incorrect,
17585     # since paths with space are more likely in Windows. Give it another try with the whole
17586     # argument.
17587     path="$complete"
17588     arguments="EOL"
17589     new_path=`$CYGPATH -u "$path"`
17590     new_path=`$WHICH "$new_path" 2> /dev/null`
17591     # bat and cmd files are not always considered executable in cygwin causing which
17592     # to not find them
17593     if test "x$new_path" = x \
17594         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17595         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17596       new_path=`$CYGPATH -u "$path"`
17597     fi
17598     if test "x$new_path" = x; then
17599       # It's still not found. Now this is an unrecoverable error.
17600       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17601 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17602       has_space=`$ECHO "$complete" | $GREP " "`
17603       if test "x$has_space" != x; then
17604         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17605 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17606       fi
17607       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17608     fi
17609   fi
17610 
17611   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17612   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17613   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17614   # "foo.exe" is OK but "foo" is an error.
17615   #
17616   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17617   # It is also a way to make sure we got the proper file name for the real test later on.
17618   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17619   if test "x$test_shortpath" = x; then
17620     # Short path failed, file does not exist as specified.
17621     # Try adding .exe or .cmd
17622     if test -f "${new_path}.exe"; then
17623       input_to_shortpath="${new_path}.exe"
17624     elif test -f "${new_path}.cmd"; then
17625       input_to_shortpath="${new_path}.cmd"
17626     else
17627       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17628 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17629       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17630 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17631       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17632     fi
17633   else
17634     input_to_shortpath="$new_path"
17635   fi
17636 
17637   # Call helper function which possibly converts this using DOS-style short mode.
17638   # If so, the updated path is stored in $new_path.
17639   new_path="$input_to_shortpath"
17640 
17641   input_path="$input_to_shortpath"
17642   # Check if we need to convert this using DOS-style short mode. If the path
17643   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17644   # take no chances and rewrite it.
17645   # Note: m4 eats our [], so we need to use [ and ] instead.
17646   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17647   if test "x$has_forbidden_chars" != x; then
17648     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17649     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17650     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17651     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17652       # Going to short mode and back again did indeed matter. Since short mode is
17653       # case insensitive, let's make it lowercase to improve readability.
17654       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17655       # Now convert it back to Unix-style (cygpath)
17656       input_path=`$CYGPATH -u "$shortmode_path"`
17657       new_path="$input_path"
17658     fi
17659   fi
17660 
17661   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17662   if test "x$test_cygdrive_prefix" = x; then
17663     # As a simple fix, exclude /usr/bin since it's not a real path.
17664     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17665       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17666       # a path prefixed by /cygdrive for fixpath to work.
17667       new_path="$CYGWIN_ROOT_PATH$input_path"
17668     fi
17669   fi
17670 
17671   # remove trailing .exe if any
17672   new_path="${new_path/%.exe/}"
17673 
17674     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17675 
17676   # First separate the path from the arguments. This will split at the first
17677   # space.
17678   complete="$FOUND_MAKE"
17679   path="${complete%% *}"
17680   tmp="$complete EOL"
17681   arguments="${tmp#* }"
17682 
17683   # Input might be given as Windows format, start by converting to
17684   # unix format.
17685   new_path="$path"
17686 
17687   windows_path="$new_path"
17688   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17689     unix_path=`$CYGPATH -u "$windows_path"`
17690     new_path="$unix_path"
17691   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17692     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17693     new_path="$unix_path"
17694   fi
17695 
17696 
17697   # Now try to locate executable using which
17698   new_path=`$WHICH "$new_path" 2> /dev/null`
17699 
17700   if test "x$new_path" = x; then
17701     # Oops. Which didn't find the executable.
17702     # The splitting of arguments from the executable at a space might have been incorrect,
17703     # since paths with space are more likely in Windows. Give it another try with the whole
17704     # argument.
17705     path="$complete"
17706     arguments="EOL"
17707     new_path="$path"
17708 
17709   windows_path="$new_path"
17710   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17711     unix_path=`$CYGPATH -u "$windows_path"`
17712     new_path="$unix_path"
17713   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17714     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17715     new_path="$unix_path"
17716   fi
17717 
17718 
17719     new_path=`$WHICH "$new_path" 2> /dev/null`
17720     # bat and cmd files are not always considered executable in MSYS causing which
17721     # to not find them
17722     if test "x$new_path" = x \
17723         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17724         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17725       new_path="$path"
17726 
17727   windows_path="$new_path"
17728   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17729     unix_path=`$CYGPATH -u "$windows_path"`
17730     new_path="$unix_path"
17731   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17732     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17733     new_path="$unix_path"
17734   fi
17735 
17736     fi
17737 
17738     if test "x$new_path" = x; then
17739       # It's still not found. Now this is an unrecoverable error.
17740       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17741 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17742       has_space=`$ECHO "$complete" | $GREP " "`
17743       if test "x$has_space" != x; then
17744         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17745 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17746       fi
17747       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17748     fi
17749   fi
17750 
17751   # Now new_path has a complete unix path to the binary
17752   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17753     # Keep paths in /bin as-is, but remove trailing .exe if any
17754     new_path="${new_path/%.exe/}"
17755     # Do not save /bin paths to all_fixpath_prefixes!
17756   else
17757     # Not in mixed or Windows style, start by that.
17758     new_path=`cmd //c echo $new_path`
17759 
17760   input_path="$new_path"
17761   # Check if we need to convert this using DOS-style short mode. If the path
17762   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17763   # take no chances and rewrite it.
17764   # Note: m4 eats our [], so we need to use [ and ] instead.
17765   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17766   if test "x$has_forbidden_chars" != x; then
17767     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17768     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17769   fi
17770 
17771     # Output is in $new_path
17772 
17773   windows_path="$new_path"
17774   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17775     unix_path=`$CYGPATH -u "$windows_path"`
17776     new_path="$unix_path"
17777   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17778     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17779     new_path="$unix_path"
17780   fi
17781 
17782     # remove trailing .exe if any
17783     new_path="${new_path/%.exe/}"
17784 
17785     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17786     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17787   fi
17788 
17789     else
17790       # We're on a unix platform. Hooray! :)
17791       # First separate the path from the arguments. This will split at the first
17792       # space.
17793       complete="$FOUND_MAKE"
17794       path="${complete%% *}"
17795       tmp="$complete EOL"
17796       arguments="${tmp#* }"
17797 
17798       # Cannot rely on the command "which" here since it doesn't always work.
17799       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17800       if test -z "$is_absolute_path"; then
17801         # Path to executable is not absolute. Find it.
17802         IFS_save="$IFS"
17803         IFS=:
17804         for p in $PATH; do
17805           if test -f "$p/$path" && test -x "$p/$path"; then
17806             new_path="$p/$path"
17807             break
17808           fi
17809         done
17810         IFS="$IFS_save"
17811       else
17812         # This is an absolute path, we can use it without further modifications.
17813         new_path="$path"
17814       fi
17815 
17816       if test "x$new_path" = x; then
17817         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17818 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17819         has_space=`$ECHO "$complete" | $GREP " "`
17820         if test "x$has_space" != x; then
17821           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17822 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17823         fi
17824         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17825       fi
17826     fi
17827 
17828     # Now join together the path and the arguments once again
17829     if test "x$arguments" != xEOL; then
17830       new_complete="$new_path ${arguments% *}"
17831     else
17832       new_complete="$new_path"
17833     fi
17834 
17835     if test "x$complete" != "x$new_complete"; then
17836       FOUND_MAKE="$new_complete"
17837       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17838 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17839     fi
17840   fi
17841 
17842         fi
17843       fi
17844     fi
17845   fi
17846 
17847         if test "x$FOUND_MAKE" = x; then
17848           for ac_prog in make
17849 do
17850   # Extract the first word of "$ac_prog", so it can be a program name with args.
17851 set dummy $ac_prog; ac_word=$2
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17853 $as_echo_n "checking for $ac_word... " >&6; }
17854 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
17855   $as_echo_n "(cached) " >&6
17856 else
17857   case $CHECK_TOOLSDIR_MAKE in
17858   [\\/]* | ?:[\\/]*)
17859   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
17860   ;;
17861   *)
17862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17863 for as_dir in $PATH
17864 do
17865   IFS=$as_save_IFS
17866   test -z "$as_dir" && as_dir=.
17867     for ac_exec_ext in '' $ac_executable_extensions; do
17868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17869     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
17870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17871     break 2
17872   fi
17873 done
17874   done
17875 IFS=$as_save_IFS
17876 
17877   ;;
17878 esac
17879 fi
17880 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
17881 if test -n "$CHECK_TOOLSDIR_MAKE"; then
17882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
17883 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
17884 else
17885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17886 $as_echo "no" >&6; }
17887 fi
17888 
17889 
17890   test -n "$CHECK_TOOLSDIR_MAKE" && break
17891 done
17892 
17893 
17894   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
17895   DESCRIPTION="make in tools-dir"
17896 
17897   # On Cygwin, we require a newer version of make than on other platforms
17898   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17899     MAKE_VERSION_EXPR="-e 4\."
17900     MAKE_REQUIRED_VERSION="4.0"
17901    else
17902     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17903     MAKE_REQUIRED_VERSION="3.81"
17904   fi
17905 
17906   if test "x$MAKE_CANDIDATE" != x; then
17907     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17908 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17909     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17910     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17911     if test "x$IS_GNU_MAKE" = x; then
17912       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17913 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17914     else
17915       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17916       if test "x$IS_MODERN_MAKE" = x; then
17917         { $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
17918 $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;}
17919       else
17920         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17921           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17922             MAKE_EXPECTED_ENV='cygwin'
17923           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17924             MAKE_EXPECTED_ENV='msys'
17925           else
17926             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17927           fi
17928           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17929           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17930         else
17931           # Not relevant for non-Windows
17932           IS_MAKE_CORRECT_ENV=true
17933         fi
17934         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17935           { $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
17936 $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;}
17937         else
17938           FOUND_MAKE=$MAKE_CANDIDATE
17939 
17940   # Only process if variable expands to non-empty
17941 
17942   if test "x$FOUND_MAKE" != x; then
17943     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17944 
17945   # First separate the path from the arguments. This will split at the first
17946   # space.
17947   complete="$FOUND_MAKE"
17948   path="${complete%% *}"
17949   tmp="$complete EOL"
17950   arguments="${tmp#* }"
17951 
17952   # Input might be given as Windows format, start by converting to
17953   # unix format.
17954   new_path=`$CYGPATH -u "$path"`
17955 
17956   # Now try to locate executable using which
17957   new_path=`$WHICH "$new_path" 2> /dev/null`
17958   # bat and cmd files are not always considered executable in cygwin causing which
17959   # to not find them
17960   if test "x$new_path" = x \
17961       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17962       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17963     new_path=`$CYGPATH -u "$path"`
17964   fi
17965   if test "x$new_path" = x; then
17966     # Oops. Which didn't find the executable.
17967     # The splitting of arguments from the executable at a space might have been incorrect,
17968     # since paths with space are more likely in Windows. Give it another try with the whole
17969     # argument.
17970     path="$complete"
17971     arguments="EOL"
17972     new_path=`$CYGPATH -u "$path"`
17973     new_path=`$WHICH "$new_path" 2> /dev/null`
17974     # bat and cmd files are not always considered executable in cygwin causing which
17975     # to not find them
17976     if test "x$new_path" = x \
17977         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17978         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17979       new_path=`$CYGPATH -u "$path"`
17980     fi
17981     if test "x$new_path" = x; then
17982       # It's still not found. Now this is an unrecoverable error.
17983       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17984 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17985       has_space=`$ECHO "$complete" | $GREP " "`
17986       if test "x$has_space" != x; then
17987         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17988 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17989       fi
17990       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17991     fi
17992   fi
17993 
17994   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17995   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17996   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17997   # "foo.exe" is OK but "foo" is an error.
17998   #
17999   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18000   # It is also a way to make sure we got the proper file name for the real test later on.
18001   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18002   if test "x$test_shortpath" = x; then
18003     # Short path failed, file does not exist as specified.
18004     # Try adding .exe or .cmd
18005     if test -f "${new_path}.exe"; then
18006       input_to_shortpath="${new_path}.exe"
18007     elif test -f "${new_path}.cmd"; then
18008       input_to_shortpath="${new_path}.cmd"
18009     else
18010       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18011 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18012       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18013 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18014       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18015     fi
18016   else
18017     input_to_shortpath="$new_path"
18018   fi
18019 
18020   # Call helper function which possibly converts this using DOS-style short mode.
18021   # If so, the updated path is stored in $new_path.
18022   new_path="$input_to_shortpath"
18023 
18024   input_path="$input_to_shortpath"
18025   # Check if we need to convert this using DOS-style short mode. If the path
18026   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18027   # take no chances and rewrite it.
18028   # Note: m4 eats our [], so we need to use [ and ] instead.
18029   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18030   if test "x$has_forbidden_chars" != x; then
18031     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18032     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18033     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18034     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18035       # Going to short mode and back again did indeed matter. Since short mode is
18036       # case insensitive, let's make it lowercase to improve readability.
18037       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18038       # Now convert it back to Unix-style (cygpath)
18039       input_path=`$CYGPATH -u "$shortmode_path"`
18040       new_path="$input_path"
18041     fi
18042   fi
18043 
18044   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18045   if test "x$test_cygdrive_prefix" = x; then
18046     # As a simple fix, exclude /usr/bin since it's not a real path.
18047     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18048       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18049       # a path prefixed by /cygdrive for fixpath to work.
18050       new_path="$CYGWIN_ROOT_PATH$input_path"
18051     fi
18052   fi
18053 
18054   # remove trailing .exe if any
18055   new_path="${new_path/%.exe/}"
18056 
18057     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18058 
18059   # First separate the path from the arguments. This will split at the first
18060   # space.
18061   complete="$FOUND_MAKE"
18062   path="${complete%% *}"
18063   tmp="$complete EOL"
18064   arguments="${tmp#* }"
18065 
18066   # Input might be given as Windows format, start by converting to
18067   # unix format.
18068   new_path="$path"
18069 
18070   windows_path="$new_path"
18071   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18072     unix_path=`$CYGPATH -u "$windows_path"`
18073     new_path="$unix_path"
18074   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18075     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18076     new_path="$unix_path"
18077   fi
18078 
18079 
18080   # Now try to locate executable using which
18081   new_path=`$WHICH "$new_path" 2> /dev/null`
18082 
18083   if test "x$new_path" = x; then
18084     # Oops. Which didn't find the executable.
18085     # The splitting of arguments from the executable at a space might have been incorrect,
18086     # since paths with space are more likely in Windows. Give it another try with the whole
18087     # argument.
18088     path="$complete"
18089     arguments="EOL"
18090     new_path="$path"
18091 
18092   windows_path="$new_path"
18093   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18094     unix_path=`$CYGPATH -u "$windows_path"`
18095     new_path="$unix_path"
18096   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18097     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18098     new_path="$unix_path"
18099   fi
18100 
18101 
18102     new_path=`$WHICH "$new_path" 2> /dev/null`
18103     # bat and cmd files are not always considered executable in MSYS causing which
18104     # to not find them
18105     if test "x$new_path" = x \
18106         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18107         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18108       new_path="$path"
18109 
18110   windows_path="$new_path"
18111   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18112     unix_path=`$CYGPATH -u "$windows_path"`
18113     new_path="$unix_path"
18114   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18115     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18116     new_path="$unix_path"
18117   fi
18118 
18119     fi
18120 
18121     if test "x$new_path" = x; then
18122       # It's still not found. Now this is an unrecoverable error.
18123       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18124 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18125       has_space=`$ECHO "$complete" | $GREP " "`
18126       if test "x$has_space" != x; then
18127         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18128 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18129       fi
18130       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18131     fi
18132   fi
18133 
18134   # Now new_path has a complete unix path to the binary
18135   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18136     # Keep paths in /bin as-is, but remove trailing .exe if any
18137     new_path="${new_path/%.exe/}"
18138     # Do not save /bin paths to all_fixpath_prefixes!
18139   else
18140     # Not in mixed or Windows style, start by that.
18141     new_path=`cmd //c echo $new_path`
18142 
18143   input_path="$new_path"
18144   # Check if we need to convert this using DOS-style short mode. If the path
18145   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18146   # take no chances and rewrite it.
18147   # Note: m4 eats our [], so we need to use [ and ] instead.
18148   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18149   if test "x$has_forbidden_chars" != x; then
18150     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18151     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18152   fi
18153 
18154     # Output is in $new_path
18155 
18156   windows_path="$new_path"
18157   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18158     unix_path=`$CYGPATH -u "$windows_path"`
18159     new_path="$unix_path"
18160   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18161     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18162     new_path="$unix_path"
18163   fi
18164 
18165     # remove trailing .exe if any
18166     new_path="${new_path/%.exe/}"
18167 
18168     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18169     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18170   fi
18171 
18172     else
18173       # We're on a unix platform. Hooray! :)
18174       # First separate the path from the arguments. This will split at the first
18175       # space.
18176       complete="$FOUND_MAKE"
18177       path="${complete%% *}"
18178       tmp="$complete EOL"
18179       arguments="${tmp#* }"
18180 
18181       # Cannot rely on the command "which" here since it doesn't always work.
18182       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18183       if test -z "$is_absolute_path"; then
18184         # Path to executable is not absolute. Find it.
18185         IFS_save="$IFS"
18186         IFS=:
18187         for p in $PATH; do
18188           if test -f "$p/$path" && test -x "$p/$path"; then
18189             new_path="$p/$path"
18190             break
18191           fi
18192         done
18193         IFS="$IFS_save"
18194       else
18195         # This is an absolute path, we can use it without further modifications.
18196         new_path="$path"
18197       fi
18198 
18199       if test "x$new_path" = x; then
18200         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18201 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18202         has_space=`$ECHO "$complete" | $GREP " "`
18203         if test "x$has_space" != x; then
18204           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18205 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18206         fi
18207         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18208       fi
18209     fi
18210 
18211     # Now join together the path and the arguments once again
18212     if test "x$arguments" != xEOL; then
18213       new_complete="$new_path ${arguments% *}"
18214     else
18215       new_complete="$new_path"
18216     fi
18217 
18218     if test "x$complete" != "x$new_complete"; then
18219       FOUND_MAKE="$new_complete"
18220       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18221 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18222     fi
18223   fi
18224 
18225         fi
18226       fi
18227     fi
18228   fi
18229 
18230         fi
18231         PATH=$OLD_PATH
18232       fi
18233     fi
18234 
18235     if test "x$FOUND_MAKE" = x; then
18236       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
18237     fi
18238 
18239   else
18240     # The variable is set, but is it from the command line or the environment?
18241 
18242     # Try to remove the string !MAKE! from our list.
18243     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
18244     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18245       # If it failed, the variable was not from the command line. Ignore it,
18246       # but warn the user (except for BASH, which is always set by the calling BASH).
18247       if test "xMAKE" != xBASH; then
18248         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
18249 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
18250       fi
18251       # Try to locate tool using the code snippet
18252 
18253     # Try our hardest to locate a correct version of GNU make
18254     for ac_prog in gmake
18255 do
18256   # Extract the first word of "$ac_prog", so it can be a program name with args.
18257 set dummy $ac_prog; ac_word=$2
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18259 $as_echo_n "checking for $ac_word... " >&6; }
18260 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
18261   $as_echo_n "(cached) " >&6
18262 else
18263   case $CHECK_GMAKE in
18264   [\\/]* | ?:[\\/]*)
18265   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
18266   ;;
18267   *)
18268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18269 for as_dir in $PATH
18270 do
18271   IFS=$as_save_IFS
18272   test -z "$as_dir" && as_dir=.
18273     for ac_exec_ext in '' $ac_executable_extensions; do
18274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18275     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18277     break 2
18278   fi
18279 done
18280   done
18281 IFS=$as_save_IFS
18282 
18283   ;;
18284 esac
18285 fi
18286 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
18287 if test -n "$CHECK_GMAKE"; then
18288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
18289 $as_echo "$CHECK_GMAKE" >&6; }
18290 else
18291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18292 $as_echo "no" >&6; }
18293 fi
18294 
18295 
18296   test -n "$CHECK_GMAKE" && break
18297 done
18298 
18299 
18300   MAKE_CANDIDATE=""$CHECK_GMAKE""
18301   DESCRIPTION="gmake in PATH"
18302 
18303   # On Cygwin, we require a newer version of make than on other platforms
18304   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18305     MAKE_VERSION_EXPR="-e 4\."
18306     MAKE_REQUIRED_VERSION="4.0"
18307    else
18308     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18309     MAKE_REQUIRED_VERSION="3.81"
18310   fi
18311 
18312   if test "x$MAKE_CANDIDATE" != x; then
18313     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18314 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18315     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18316     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18317     if test "x$IS_GNU_MAKE" = x; then
18318       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18319 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18320     else
18321       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18322       if test "x$IS_MODERN_MAKE" = x; then
18323         { $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
18324 $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;}
18325       else
18326         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18327           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18328             MAKE_EXPECTED_ENV='cygwin'
18329           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18330             MAKE_EXPECTED_ENV='msys'
18331           else
18332             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18333           fi
18334           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18335           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18336         else
18337           # Not relevant for non-Windows
18338           IS_MAKE_CORRECT_ENV=true
18339         fi
18340         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18341           { $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
18342 $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;}
18343         else
18344           FOUND_MAKE=$MAKE_CANDIDATE
18345 
18346   # Only process if variable expands to non-empty
18347 
18348   if test "x$FOUND_MAKE" != x; then
18349     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18350 
18351   # First separate the path from the arguments. This will split at the first
18352   # space.
18353   complete="$FOUND_MAKE"
18354   path="${complete%% *}"
18355   tmp="$complete EOL"
18356   arguments="${tmp#* }"
18357 
18358   # Input might be given as Windows format, start by converting to
18359   # unix format.
18360   new_path=`$CYGPATH -u "$path"`
18361 
18362   # Now try to locate executable using which
18363   new_path=`$WHICH "$new_path" 2> /dev/null`
18364   # bat and cmd files are not always considered executable in cygwin causing which
18365   # to not find them
18366   if test "x$new_path" = x \
18367       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18368       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18369     new_path=`$CYGPATH -u "$path"`
18370   fi
18371   if test "x$new_path" = x; then
18372     # Oops. Which didn't find the executable.
18373     # The splitting of arguments from the executable at a space might have been incorrect,
18374     # since paths with space are more likely in Windows. Give it another try with the whole
18375     # argument.
18376     path="$complete"
18377     arguments="EOL"
18378     new_path=`$CYGPATH -u "$path"`
18379     new_path=`$WHICH "$new_path" 2> /dev/null`
18380     # bat and cmd files are not always considered executable in cygwin causing which
18381     # to not find them
18382     if test "x$new_path" = x \
18383         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18384         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18385       new_path=`$CYGPATH -u "$path"`
18386     fi
18387     if test "x$new_path" = x; then
18388       # It's still not found. Now this is an unrecoverable error.
18389       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18390 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18391       has_space=`$ECHO "$complete" | $GREP " "`
18392       if test "x$has_space" != x; then
18393         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18394 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18395       fi
18396       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18397     fi
18398   fi
18399 
18400   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18401   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18402   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18403   # "foo.exe" is OK but "foo" is an error.
18404   #
18405   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18406   # It is also a way to make sure we got the proper file name for the real test later on.
18407   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18408   if test "x$test_shortpath" = x; then
18409     # Short path failed, file does not exist as specified.
18410     # Try adding .exe or .cmd
18411     if test -f "${new_path}.exe"; then
18412       input_to_shortpath="${new_path}.exe"
18413     elif test -f "${new_path}.cmd"; then
18414       input_to_shortpath="${new_path}.cmd"
18415     else
18416       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18417 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18418       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18419 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18420       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18421     fi
18422   else
18423     input_to_shortpath="$new_path"
18424   fi
18425 
18426   # Call helper function which possibly converts this using DOS-style short mode.
18427   # If so, the updated path is stored in $new_path.
18428   new_path="$input_to_shortpath"
18429 
18430   input_path="$input_to_shortpath"
18431   # Check if we need to convert this using DOS-style short mode. If the path
18432   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18433   # take no chances and rewrite it.
18434   # Note: m4 eats our [], so we need to use [ and ] instead.
18435   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18436   if test "x$has_forbidden_chars" != x; then
18437     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18438     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18439     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18440     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18441       # Going to short mode and back again did indeed matter. Since short mode is
18442       # case insensitive, let's make it lowercase to improve readability.
18443       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18444       # Now convert it back to Unix-style (cygpath)
18445       input_path=`$CYGPATH -u "$shortmode_path"`
18446       new_path="$input_path"
18447     fi
18448   fi
18449 
18450   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18451   if test "x$test_cygdrive_prefix" = x; then
18452     # As a simple fix, exclude /usr/bin since it's not a real path.
18453     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18454       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18455       # a path prefixed by /cygdrive for fixpath to work.
18456       new_path="$CYGWIN_ROOT_PATH$input_path"
18457     fi
18458   fi
18459 
18460   # remove trailing .exe if any
18461   new_path="${new_path/%.exe/}"
18462 
18463     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18464 
18465   # First separate the path from the arguments. This will split at the first
18466   # space.
18467   complete="$FOUND_MAKE"
18468   path="${complete%% *}"
18469   tmp="$complete EOL"
18470   arguments="${tmp#* }"
18471 
18472   # Input might be given as Windows format, start by converting to
18473   # unix format.
18474   new_path="$path"
18475 
18476   windows_path="$new_path"
18477   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18478     unix_path=`$CYGPATH -u "$windows_path"`
18479     new_path="$unix_path"
18480   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18481     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18482     new_path="$unix_path"
18483   fi
18484 
18485 
18486   # Now try to locate executable using which
18487   new_path=`$WHICH "$new_path" 2> /dev/null`
18488 
18489   if test "x$new_path" = x; then
18490     # Oops. Which didn't find the executable.
18491     # The splitting of arguments from the executable at a space might have been incorrect,
18492     # since paths with space are more likely in Windows. Give it another try with the whole
18493     # argument.
18494     path="$complete"
18495     arguments="EOL"
18496     new_path="$path"
18497 
18498   windows_path="$new_path"
18499   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18500     unix_path=`$CYGPATH -u "$windows_path"`
18501     new_path="$unix_path"
18502   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18503     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18504     new_path="$unix_path"
18505   fi
18506 
18507 
18508     new_path=`$WHICH "$new_path" 2> /dev/null`
18509     # bat and cmd files are not always considered executable in MSYS causing which
18510     # to not find them
18511     if test "x$new_path" = x \
18512         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18513         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18514       new_path="$path"
18515 
18516   windows_path="$new_path"
18517   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18518     unix_path=`$CYGPATH -u "$windows_path"`
18519     new_path="$unix_path"
18520   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18521     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18522     new_path="$unix_path"
18523   fi
18524 
18525     fi
18526 
18527     if test "x$new_path" = x; then
18528       # It's still not found. Now this is an unrecoverable error.
18529       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18530 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18531       has_space=`$ECHO "$complete" | $GREP " "`
18532       if test "x$has_space" != x; then
18533         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18534 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18535       fi
18536       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18537     fi
18538   fi
18539 
18540   # Now new_path has a complete unix path to the binary
18541   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18542     # Keep paths in /bin as-is, but remove trailing .exe if any
18543     new_path="${new_path/%.exe/}"
18544     # Do not save /bin paths to all_fixpath_prefixes!
18545   else
18546     # Not in mixed or Windows style, start by that.
18547     new_path=`cmd //c echo $new_path`
18548 
18549   input_path="$new_path"
18550   # Check if we need to convert this using DOS-style short mode. If the path
18551   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18552   # take no chances and rewrite it.
18553   # Note: m4 eats our [], so we need to use [ and ] instead.
18554   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18555   if test "x$has_forbidden_chars" != x; then
18556     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18557     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18558   fi
18559 
18560     # Output is in $new_path
18561 
18562   windows_path="$new_path"
18563   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18564     unix_path=`$CYGPATH -u "$windows_path"`
18565     new_path="$unix_path"
18566   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18567     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18568     new_path="$unix_path"
18569   fi
18570 
18571     # remove trailing .exe if any
18572     new_path="${new_path/%.exe/}"
18573 
18574     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18575     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18576   fi
18577 
18578     else
18579       # We're on a unix platform. Hooray! :)
18580       # First separate the path from the arguments. This will split at the first
18581       # space.
18582       complete="$FOUND_MAKE"
18583       path="${complete%% *}"
18584       tmp="$complete EOL"
18585       arguments="${tmp#* }"
18586 
18587       # Cannot rely on the command "which" here since it doesn't always work.
18588       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18589       if test -z "$is_absolute_path"; then
18590         # Path to executable is not absolute. Find it.
18591         IFS_save="$IFS"
18592         IFS=:
18593         for p in $PATH; do
18594           if test -f "$p/$path" && test -x "$p/$path"; then
18595             new_path="$p/$path"
18596             break
18597           fi
18598         done
18599         IFS="$IFS_save"
18600       else
18601         # This is an absolute path, we can use it without further modifications.
18602         new_path="$path"
18603       fi
18604 
18605       if test "x$new_path" = x; then
18606         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18607 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18608         has_space=`$ECHO "$complete" | $GREP " "`
18609         if test "x$has_space" != x; then
18610           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18611 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18612         fi
18613         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18614       fi
18615     fi
18616 
18617     # Now join together the path and the arguments once again
18618     if test "x$arguments" != xEOL; then
18619       new_complete="$new_path ${arguments% *}"
18620     else
18621       new_complete="$new_path"
18622     fi
18623 
18624     if test "x$complete" != "x$new_complete"; then
18625       FOUND_MAKE="$new_complete"
18626       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18627 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18628     fi
18629   fi
18630 
18631         fi
18632       fi
18633     fi
18634   fi
18635 
18636 
18637     if test "x$FOUND_MAKE" = x; then
18638       for ac_prog in make
18639 do
18640   # Extract the first word of "$ac_prog", so it can be a program name with args.
18641 set dummy $ac_prog; ac_word=$2
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18643 $as_echo_n "checking for $ac_word... " >&6; }
18644 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18645   $as_echo_n "(cached) " >&6
18646 else
18647   case $CHECK_MAKE in
18648   [\\/]* | ?:[\\/]*)
18649   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18650   ;;
18651   *)
18652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18653 for as_dir in $PATH
18654 do
18655   IFS=$as_save_IFS
18656   test -z "$as_dir" && as_dir=.
18657     for ac_exec_ext in '' $ac_executable_extensions; do
18658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18659     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18661     break 2
18662   fi
18663 done
18664   done
18665 IFS=$as_save_IFS
18666 
18667   ;;
18668 esac
18669 fi
18670 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18671 if test -n "$CHECK_MAKE"; then
18672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18673 $as_echo "$CHECK_MAKE" >&6; }
18674 else
18675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18676 $as_echo "no" >&6; }
18677 fi
18678 
18679 
18680   test -n "$CHECK_MAKE" && break
18681 done
18682 
18683 
18684   MAKE_CANDIDATE=""$CHECK_MAKE""
18685   DESCRIPTION="make in PATH"
18686 
18687   # On Cygwin, we require a newer version of make than on other platforms
18688   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18689     MAKE_VERSION_EXPR="-e 4\."
18690     MAKE_REQUIRED_VERSION="4.0"
18691    else
18692     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18693     MAKE_REQUIRED_VERSION="3.81"
18694   fi
18695 
18696   if test "x$MAKE_CANDIDATE" != x; then
18697     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18698 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18699     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18700     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18701     if test "x$IS_GNU_MAKE" = x; then
18702       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18703 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18704     else
18705       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18706       if test "x$IS_MODERN_MAKE" = x; then
18707         { $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
18708 $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;}
18709       else
18710         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18711           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18712             MAKE_EXPECTED_ENV='cygwin'
18713           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18714             MAKE_EXPECTED_ENV='msys'
18715           else
18716             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18717           fi
18718           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18719           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18720         else
18721           # Not relevant for non-Windows
18722           IS_MAKE_CORRECT_ENV=true
18723         fi
18724         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18725           { $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
18726 $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;}
18727         else
18728           FOUND_MAKE=$MAKE_CANDIDATE
18729 
18730   # Only process if variable expands to non-empty
18731 
18732   if test "x$FOUND_MAKE" != x; then
18733     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18734 
18735   # First separate the path from the arguments. This will split at the first
18736   # space.
18737   complete="$FOUND_MAKE"
18738   path="${complete%% *}"
18739   tmp="$complete EOL"
18740   arguments="${tmp#* }"
18741 
18742   # Input might be given as Windows format, start by converting to
18743   # unix format.
18744   new_path=`$CYGPATH -u "$path"`
18745 
18746   # Now try to locate executable using which
18747   new_path=`$WHICH "$new_path" 2> /dev/null`
18748   # bat and cmd files are not always considered executable in cygwin causing which
18749   # to not find them
18750   if test "x$new_path" = x \
18751       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18752       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18753     new_path=`$CYGPATH -u "$path"`
18754   fi
18755   if test "x$new_path" = x; then
18756     # Oops. Which didn't find the executable.
18757     # The splitting of arguments from the executable at a space might have been incorrect,
18758     # since paths with space are more likely in Windows. Give it another try with the whole
18759     # argument.
18760     path="$complete"
18761     arguments="EOL"
18762     new_path=`$CYGPATH -u "$path"`
18763     new_path=`$WHICH "$new_path" 2> /dev/null`
18764     # bat and cmd files are not always considered executable in cygwin causing which
18765     # to not find them
18766     if test "x$new_path" = x \
18767         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18768         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18769       new_path=`$CYGPATH -u "$path"`
18770     fi
18771     if test "x$new_path" = x; then
18772       # It's still not found. Now this is an unrecoverable error.
18773       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18774 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18775       has_space=`$ECHO "$complete" | $GREP " "`
18776       if test "x$has_space" != x; then
18777         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18778 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18779       fi
18780       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18781     fi
18782   fi
18783 
18784   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18785   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18786   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18787   # "foo.exe" is OK but "foo" is an error.
18788   #
18789   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18790   # It is also a way to make sure we got the proper file name for the real test later on.
18791   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18792   if test "x$test_shortpath" = x; then
18793     # Short path failed, file does not exist as specified.
18794     # Try adding .exe or .cmd
18795     if test -f "${new_path}.exe"; then
18796       input_to_shortpath="${new_path}.exe"
18797     elif test -f "${new_path}.cmd"; then
18798       input_to_shortpath="${new_path}.cmd"
18799     else
18800       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18801 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18802       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18803 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18804       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18805     fi
18806   else
18807     input_to_shortpath="$new_path"
18808   fi
18809 
18810   # Call helper function which possibly converts this using DOS-style short mode.
18811   # If so, the updated path is stored in $new_path.
18812   new_path="$input_to_shortpath"
18813 
18814   input_path="$input_to_shortpath"
18815   # Check if we need to convert this using DOS-style short mode. If the path
18816   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18817   # take no chances and rewrite it.
18818   # Note: m4 eats our [], so we need to use [ and ] instead.
18819   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18820   if test "x$has_forbidden_chars" != x; then
18821     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18822     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18823     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18824     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18825       # Going to short mode and back again did indeed matter. Since short mode is
18826       # case insensitive, let's make it lowercase to improve readability.
18827       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18828       # Now convert it back to Unix-style (cygpath)
18829       input_path=`$CYGPATH -u "$shortmode_path"`
18830       new_path="$input_path"
18831     fi
18832   fi
18833 
18834   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18835   if test "x$test_cygdrive_prefix" = x; then
18836     # As a simple fix, exclude /usr/bin since it's not a real path.
18837     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18838       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18839       # a path prefixed by /cygdrive for fixpath to work.
18840       new_path="$CYGWIN_ROOT_PATH$input_path"
18841     fi
18842   fi
18843 
18844   # remove trailing .exe if any
18845   new_path="${new_path/%.exe/}"
18846 
18847     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18848 
18849   # First separate the path from the arguments. This will split at the first
18850   # space.
18851   complete="$FOUND_MAKE"
18852   path="${complete%% *}"
18853   tmp="$complete EOL"
18854   arguments="${tmp#* }"
18855 
18856   # Input might be given as Windows format, start by converting to
18857   # unix format.
18858   new_path="$path"
18859 
18860   windows_path="$new_path"
18861   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18862     unix_path=`$CYGPATH -u "$windows_path"`
18863     new_path="$unix_path"
18864   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18865     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18866     new_path="$unix_path"
18867   fi
18868 
18869 
18870   # Now try to locate executable using which
18871   new_path=`$WHICH "$new_path" 2> /dev/null`
18872 
18873   if test "x$new_path" = x; then
18874     # Oops. Which didn't find the executable.
18875     # The splitting of arguments from the executable at a space might have been incorrect,
18876     # since paths with space are more likely in Windows. Give it another try with the whole
18877     # argument.
18878     path="$complete"
18879     arguments="EOL"
18880     new_path="$path"
18881 
18882   windows_path="$new_path"
18883   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18884     unix_path=`$CYGPATH -u "$windows_path"`
18885     new_path="$unix_path"
18886   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18887     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18888     new_path="$unix_path"
18889   fi
18890 
18891 
18892     new_path=`$WHICH "$new_path" 2> /dev/null`
18893     # bat and cmd files are not always considered executable in MSYS causing which
18894     # to not find them
18895     if test "x$new_path" = x \
18896         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18897         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18898       new_path="$path"
18899 
18900   windows_path="$new_path"
18901   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18902     unix_path=`$CYGPATH -u "$windows_path"`
18903     new_path="$unix_path"
18904   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18905     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18906     new_path="$unix_path"
18907   fi
18908 
18909     fi
18910 
18911     if test "x$new_path" = x; then
18912       # It's still not found. Now this is an unrecoverable error.
18913       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18914 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18915       has_space=`$ECHO "$complete" | $GREP " "`
18916       if test "x$has_space" != x; then
18917         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18918 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18919       fi
18920       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18921     fi
18922   fi
18923 
18924   # Now new_path has a complete unix path to the binary
18925   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18926     # Keep paths in /bin as-is, but remove trailing .exe if any
18927     new_path="${new_path/%.exe/}"
18928     # Do not save /bin paths to all_fixpath_prefixes!
18929   else
18930     # Not in mixed or Windows style, start by that.
18931     new_path=`cmd //c echo $new_path`
18932 
18933   input_path="$new_path"
18934   # Check if we need to convert this using DOS-style short mode. If the path
18935   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18936   # take no chances and rewrite it.
18937   # Note: m4 eats our [], so we need to use [ and ] instead.
18938   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18939   if test "x$has_forbidden_chars" != x; then
18940     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18941     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18942   fi
18943 
18944     # Output is in $new_path
18945 
18946   windows_path="$new_path"
18947   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18948     unix_path=`$CYGPATH -u "$windows_path"`
18949     new_path="$unix_path"
18950   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18951     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18952     new_path="$unix_path"
18953   fi
18954 
18955     # remove trailing .exe if any
18956     new_path="${new_path/%.exe/}"
18957 
18958     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18959     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18960   fi
18961 
18962     else
18963       # We're on a unix platform. Hooray! :)
18964       # First separate the path from the arguments. This will split at the first
18965       # space.
18966       complete="$FOUND_MAKE"
18967       path="${complete%% *}"
18968       tmp="$complete EOL"
18969       arguments="${tmp#* }"
18970 
18971       # Cannot rely on the command "which" here since it doesn't always work.
18972       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18973       if test -z "$is_absolute_path"; then
18974         # Path to executable is not absolute. Find it.
18975         IFS_save="$IFS"
18976         IFS=:
18977         for p in $PATH; do
18978           if test -f "$p/$path" && test -x "$p/$path"; then
18979             new_path="$p/$path"
18980             break
18981           fi
18982         done
18983         IFS="$IFS_save"
18984       else
18985         # This is an absolute path, we can use it without further modifications.
18986         new_path="$path"
18987       fi
18988 
18989       if test "x$new_path" = x; then
18990         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18991 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18992         has_space=`$ECHO "$complete" | $GREP " "`
18993         if test "x$has_space" != x; then
18994           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18995 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18996         fi
18997         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18998       fi
18999     fi
19000 
19001     # Now join together the path and the arguments once again
19002     if test "x$arguments" != xEOL; then
19003       new_complete="$new_path ${arguments% *}"
19004     else
19005       new_complete="$new_path"
19006     fi
19007 
19008     if test "x$complete" != "x$new_complete"; then
19009       FOUND_MAKE="$new_complete"
19010       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19011 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19012     fi
19013   fi
19014 
19015         fi
19016       fi
19017     fi
19018   fi
19019 
19020     fi
19021 
19022     if test "x$FOUND_MAKE" = x; then
19023       if test "x$TOOLCHAIN_PATH" != x; then
19024         # We have a toolchain path, check that as well before giving up.
19025         OLD_PATH=$PATH
19026         PATH=$TOOLCHAIN_PATH:$PATH
19027         for ac_prog in gmake
19028 do
19029   # Extract the first word of "$ac_prog", so it can be a program name with args.
19030 set dummy $ac_prog; ac_word=$2
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19032 $as_echo_n "checking for $ac_word... " >&6; }
19033 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
19034   $as_echo_n "(cached) " >&6
19035 else
19036   case $CHECK_TOOLSDIR_GMAKE in
19037   [\\/]* | ?:[\\/]*)
19038   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
19039   ;;
19040   *)
19041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19042 for as_dir in $PATH
19043 do
19044   IFS=$as_save_IFS
19045   test -z "$as_dir" && as_dir=.
19046     for ac_exec_ext in '' $ac_executable_extensions; do
19047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19048     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19050     break 2
19051   fi
19052 done
19053   done
19054 IFS=$as_save_IFS
19055 
19056   ;;
19057 esac
19058 fi
19059 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
19060 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
19061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
19062 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
19063 else
19064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19065 $as_echo "no" >&6; }
19066 fi
19067 
19068 
19069   test -n "$CHECK_TOOLSDIR_GMAKE" && break
19070 done
19071 
19072 
19073   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
19074   DESCRIPTION="gmake in tools-dir"
19075 
19076   # On Cygwin, we require a newer version of make than on other platforms
19077   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19078     MAKE_VERSION_EXPR="-e 4\."
19079     MAKE_REQUIRED_VERSION="4.0"
19080    else
19081     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19082     MAKE_REQUIRED_VERSION="3.81"
19083   fi
19084 
19085   if test "x$MAKE_CANDIDATE" != x; then
19086     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19087 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19088     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19089     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19090     if test "x$IS_GNU_MAKE" = x; then
19091       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19092 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19093     else
19094       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19095       if test "x$IS_MODERN_MAKE" = x; then
19096         { $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
19097 $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;}
19098       else
19099         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19100           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19101             MAKE_EXPECTED_ENV='cygwin'
19102           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19103             MAKE_EXPECTED_ENV='msys'
19104           else
19105             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19106           fi
19107           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19108           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19109         else
19110           # Not relevant for non-Windows
19111           IS_MAKE_CORRECT_ENV=true
19112         fi
19113         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19114           { $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
19115 $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;}
19116         else
19117           FOUND_MAKE=$MAKE_CANDIDATE
19118 
19119   # Only process if variable expands to non-empty
19120 
19121   if test "x$FOUND_MAKE" != x; then
19122     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19123 
19124   # First separate the path from the arguments. This will split at the first
19125   # space.
19126   complete="$FOUND_MAKE"
19127   path="${complete%% *}"
19128   tmp="$complete EOL"
19129   arguments="${tmp#* }"
19130 
19131   # Input might be given as Windows format, start by converting to
19132   # unix format.
19133   new_path=`$CYGPATH -u "$path"`
19134 
19135   # Now try to locate executable using which
19136   new_path=`$WHICH "$new_path" 2> /dev/null`
19137   # bat and cmd files are not always considered executable in cygwin causing which
19138   # to not find them
19139   if test "x$new_path" = x \
19140       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19141       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19142     new_path=`$CYGPATH -u "$path"`
19143   fi
19144   if test "x$new_path" = x; then
19145     # Oops. Which didn't find the executable.
19146     # The splitting of arguments from the executable at a space might have been incorrect,
19147     # since paths with space are more likely in Windows. Give it another try with the whole
19148     # argument.
19149     path="$complete"
19150     arguments="EOL"
19151     new_path=`$CYGPATH -u "$path"`
19152     new_path=`$WHICH "$new_path" 2> /dev/null`
19153     # bat and cmd files are not always considered executable in cygwin causing which
19154     # to not find them
19155     if test "x$new_path" = x \
19156         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19157         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19158       new_path=`$CYGPATH -u "$path"`
19159     fi
19160     if test "x$new_path" = x; then
19161       # It's still not found. Now this is an unrecoverable error.
19162       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19163 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19164       has_space=`$ECHO "$complete" | $GREP " "`
19165       if test "x$has_space" != x; then
19166         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19167 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19168       fi
19169       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19170     fi
19171   fi
19172 
19173   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19174   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19175   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19176   # "foo.exe" is OK but "foo" is an error.
19177   #
19178   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19179   # It is also a way to make sure we got the proper file name for the real test later on.
19180   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19181   if test "x$test_shortpath" = x; then
19182     # Short path failed, file does not exist as specified.
19183     # Try adding .exe or .cmd
19184     if test -f "${new_path}.exe"; then
19185       input_to_shortpath="${new_path}.exe"
19186     elif test -f "${new_path}.cmd"; then
19187       input_to_shortpath="${new_path}.cmd"
19188     else
19189       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19190 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19191       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19192 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19193       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19194     fi
19195   else
19196     input_to_shortpath="$new_path"
19197   fi
19198 
19199   # Call helper function which possibly converts this using DOS-style short mode.
19200   # If so, the updated path is stored in $new_path.
19201   new_path="$input_to_shortpath"
19202 
19203   input_path="$input_to_shortpath"
19204   # Check if we need to convert this using DOS-style short mode. If the path
19205   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19206   # take no chances and rewrite it.
19207   # Note: m4 eats our [], so we need to use [ and ] instead.
19208   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19209   if test "x$has_forbidden_chars" != x; then
19210     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19211     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19212     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19213     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19214       # Going to short mode and back again did indeed matter. Since short mode is
19215       # case insensitive, let's make it lowercase to improve readability.
19216       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19217       # Now convert it back to Unix-style (cygpath)
19218       input_path=`$CYGPATH -u "$shortmode_path"`
19219       new_path="$input_path"
19220     fi
19221   fi
19222 
19223   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19224   if test "x$test_cygdrive_prefix" = x; then
19225     # As a simple fix, exclude /usr/bin since it's not a real path.
19226     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19227       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19228       # a path prefixed by /cygdrive for fixpath to work.
19229       new_path="$CYGWIN_ROOT_PATH$input_path"
19230     fi
19231   fi
19232 
19233   # remove trailing .exe if any
19234   new_path="${new_path/%.exe/}"
19235 
19236     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19237 
19238   # First separate the path from the arguments. This will split at the first
19239   # space.
19240   complete="$FOUND_MAKE"
19241   path="${complete%% *}"
19242   tmp="$complete EOL"
19243   arguments="${tmp#* }"
19244 
19245   # Input might be given as Windows format, start by converting to
19246   # unix format.
19247   new_path="$path"
19248 
19249   windows_path="$new_path"
19250   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19251     unix_path=`$CYGPATH -u "$windows_path"`
19252     new_path="$unix_path"
19253   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19254     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19255     new_path="$unix_path"
19256   fi
19257 
19258 
19259   # Now try to locate executable using which
19260   new_path=`$WHICH "$new_path" 2> /dev/null`
19261 
19262   if test "x$new_path" = x; then
19263     # Oops. Which didn't find the executable.
19264     # The splitting of arguments from the executable at a space might have been incorrect,
19265     # since paths with space are more likely in Windows. Give it another try with the whole
19266     # argument.
19267     path="$complete"
19268     arguments="EOL"
19269     new_path="$path"
19270 
19271   windows_path="$new_path"
19272   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19273     unix_path=`$CYGPATH -u "$windows_path"`
19274     new_path="$unix_path"
19275   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19276     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19277     new_path="$unix_path"
19278   fi
19279 
19280 
19281     new_path=`$WHICH "$new_path" 2> /dev/null`
19282     # bat and cmd files are not always considered executable in MSYS causing which
19283     # to not find them
19284     if test "x$new_path" = x \
19285         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19286         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19287       new_path="$path"
19288 
19289   windows_path="$new_path"
19290   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19291     unix_path=`$CYGPATH -u "$windows_path"`
19292     new_path="$unix_path"
19293   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19294     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19295     new_path="$unix_path"
19296   fi
19297 
19298     fi
19299 
19300     if test "x$new_path" = x; then
19301       # It's still not found. Now this is an unrecoverable error.
19302       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19303 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19304       has_space=`$ECHO "$complete" | $GREP " "`
19305       if test "x$has_space" != x; then
19306         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19307 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19308       fi
19309       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19310     fi
19311   fi
19312 
19313   # Now new_path has a complete unix path to the binary
19314   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19315     # Keep paths in /bin as-is, but remove trailing .exe if any
19316     new_path="${new_path/%.exe/}"
19317     # Do not save /bin paths to all_fixpath_prefixes!
19318   else
19319     # Not in mixed or Windows style, start by that.
19320     new_path=`cmd //c echo $new_path`
19321 
19322   input_path="$new_path"
19323   # Check if we need to convert this using DOS-style short mode. If the path
19324   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19325   # take no chances and rewrite it.
19326   # Note: m4 eats our [], so we need to use [ and ] instead.
19327   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19328   if test "x$has_forbidden_chars" != x; then
19329     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19330     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19331   fi
19332 
19333     # Output is in $new_path
19334 
19335   windows_path="$new_path"
19336   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19337     unix_path=`$CYGPATH -u "$windows_path"`
19338     new_path="$unix_path"
19339   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19340     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19341     new_path="$unix_path"
19342   fi
19343 
19344     # remove trailing .exe if any
19345     new_path="${new_path/%.exe/}"
19346 
19347     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19348     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19349   fi
19350 
19351     else
19352       # We're on a unix platform. Hooray! :)
19353       # First separate the path from the arguments. This will split at the first
19354       # space.
19355       complete="$FOUND_MAKE"
19356       path="${complete%% *}"
19357       tmp="$complete EOL"
19358       arguments="${tmp#* }"
19359 
19360       # Cannot rely on the command "which" here since it doesn't always work.
19361       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19362       if test -z "$is_absolute_path"; then
19363         # Path to executable is not absolute. Find it.
19364         IFS_save="$IFS"
19365         IFS=:
19366         for p in $PATH; do
19367           if test -f "$p/$path" && test -x "$p/$path"; then
19368             new_path="$p/$path"
19369             break
19370           fi
19371         done
19372         IFS="$IFS_save"
19373       else
19374         # This is an absolute path, we can use it without further modifications.
19375         new_path="$path"
19376       fi
19377 
19378       if test "x$new_path" = x; then
19379         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19380 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19381         has_space=`$ECHO "$complete" | $GREP " "`
19382         if test "x$has_space" != x; then
19383           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19384 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19385         fi
19386         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19387       fi
19388     fi
19389 
19390     # Now join together the path and the arguments once again
19391     if test "x$arguments" != xEOL; then
19392       new_complete="$new_path ${arguments% *}"
19393     else
19394       new_complete="$new_path"
19395     fi
19396 
19397     if test "x$complete" != "x$new_complete"; then
19398       FOUND_MAKE="$new_complete"
19399       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19400 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19401     fi
19402   fi
19403 
19404         fi
19405       fi
19406     fi
19407   fi
19408 
19409         if test "x$FOUND_MAKE" = x; then
19410           for ac_prog in make
19411 do
19412   # Extract the first word of "$ac_prog", so it can be a program name with args.
19413 set dummy $ac_prog; ac_word=$2
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19415 $as_echo_n "checking for $ac_word... " >&6; }
19416 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19417   $as_echo_n "(cached) " >&6
19418 else
19419   case $CHECK_TOOLSDIR_MAKE in
19420   [\\/]* | ?:[\\/]*)
19421   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19422   ;;
19423   *)
19424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19425 for as_dir in $PATH
19426 do
19427   IFS=$as_save_IFS
19428   test -z "$as_dir" && as_dir=.
19429     for ac_exec_ext in '' $ac_executable_extensions; do
19430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19431     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19433     break 2
19434   fi
19435 done
19436   done
19437 IFS=$as_save_IFS
19438 
19439   ;;
19440 esac
19441 fi
19442 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19443 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19445 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19446 else
19447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19448 $as_echo "no" >&6; }
19449 fi
19450 
19451 
19452   test -n "$CHECK_TOOLSDIR_MAKE" && break
19453 done
19454 
19455 
19456   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19457   DESCRIPTION="make in tools-dir"
19458 
19459   # On Cygwin, we require a newer version of make than on other platforms
19460   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19461     MAKE_VERSION_EXPR="-e 4\."
19462     MAKE_REQUIRED_VERSION="4.0"
19463    else
19464     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19465     MAKE_REQUIRED_VERSION="3.81"
19466   fi
19467 
19468   if test "x$MAKE_CANDIDATE" != x; then
19469     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19470 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19471     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19472     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19473     if test "x$IS_GNU_MAKE" = x; then
19474       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19475 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19476     else
19477       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19478       if test "x$IS_MODERN_MAKE" = x; then
19479         { $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
19480 $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;}
19481       else
19482         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19483           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19484             MAKE_EXPECTED_ENV='cygwin'
19485           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19486             MAKE_EXPECTED_ENV='msys'
19487           else
19488             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19489           fi
19490           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19491           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19492         else
19493           # Not relevant for non-Windows
19494           IS_MAKE_CORRECT_ENV=true
19495         fi
19496         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19497           { $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
19498 $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;}
19499         else
19500           FOUND_MAKE=$MAKE_CANDIDATE
19501 
19502   # Only process if variable expands to non-empty
19503 
19504   if test "x$FOUND_MAKE" != x; then
19505     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19506 
19507   # First separate the path from the arguments. This will split at the first
19508   # space.
19509   complete="$FOUND_MAKE"
19510   path="${complete%% *}"
19511   tmp="$complete EOL"
19512   arguments="${tmp#* }"
19513 
19514   # Input might be given as Windows format, start by converting to
19515   # unix format.
19516   new_path=`$CYGPATH -u "$path"`
19517 
19518   # Now try to locate executable using which
19519   new_path=`$WHICH "$new_path" 2> /dev/null`
19520   # bat and cmd files are not always considered executable in cygwin causing which
19521   # to not find them
19522   if test "x$new_path" = x \
19523       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19524       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19525     new_path=`$CYGPATH -u "$path"`
19526   fi
19527   if test "x$new_path" = x; then
19528     # Oops. Which didn't find the executable.
19529     # The splitting of arguments from the executable at a space might have been incorrect,
19530     # since paths with space are more likely in Windows. Give it another try with the whole
19531     # argument.
19532     path="$complete"
19533     arguments="EOL"
19534     new_path=`$CYGPATH -u "$path"`
19535     new_path=`$WHICH "$new_path" 2> /dev/null`
19536     # bat and cmd files are not always considered executable in cygwin causing which
19537     # to not find them
19538     if test "x$new_path" = x \
19539         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19540         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19541       new_path=`$CYGPATH -u "$path"`
19542     fi
19543     if test "x$new_path" = x; then
19544       # It's still not found. Now this is an unrecoverable error.
19545       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19546 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19547       has_space=`$ECHO "$complete" | $GREP " "`
19548       if test "x$has_space" != x; then
19549         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19550 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19551       fi
19552       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19553     fi
19554   fi
19555 
19556   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19557   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19558   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19559   # "foo.exe" is OK but "foo" is an error.
19560   #
19561   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19562   # It is also a way to make sure we got the proper file name for the real test later on.
19563   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19564   if test "x$test_shortpath" = x; then
19565     # Short path failed, file does not exist as specified.
19566     # Try adding .exe or .cmd
19567     if test -f "${new_path}.exe"; then
19568       input_to_shortpath="${new_path}.exe"
19569     elif test -f "${new_path}.cmd"; then
19570       input_to_shortpath="${new_path}.cmd"
19571     else
19572       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19573 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19574       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19575 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19576       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19577     fi
19578   else
19579     input_to_shortpath="$new_path"
19580   fi
19581 
19582   # Call helper function which possibly converts this using DOS-style short mode.
19583   # If so, the updated path is stored in $new_path.
19584   new_path="$input_to_shortpath"
19585 
19586   input_path="$input_to_shortpath"
19587   # Check if we need to convert this using DOS-style short mode. If the path
19588   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19589   # take no chances and rewrite it.
19590   # Note: m4 eats our [], so we need to use [ and ] instead.
19591   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19592   if test "x$has_forbidden_chars" != x; then
19593     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19594     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19595     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19596     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19597       # Going to short mode and back again did indeed matter. Since short mode is
19598       # case insensitive, let's make it lowercase to improve readability.
19599       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19600       # Now convert it back to Unix-style (cygpath)
19601       input_path=`$CYGPATH -u "$shortmode_path"`
19602       new_path="$input_path"
19603     fi
19604   fi
19605 
19606   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19607   if test "x$test_cygdrive_prefix" = x; then
19608     # As a simple fix, exclude /usr/bin since it's not a real path.
19609     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19610       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19611       # a path prefixed by /cygdrive for fixpath to work.
19612       new_path="$CYGWIN_ROOT_PATH$input_path"
19613     fi
19614   fi
19615 
19616   # remove trailing .exe if any
19617   new_path="${new_path/%.exe/}"
19618 
19619     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19620 
19621   # First separate the path from the arguments. This will split at the first
19622   # space.
19623   complete="$FOUND_MAKE"
19624   path="${complete%% *}"
19625   tmp="$complete EOL"
19626   arguments="${tmp#* }"
19627 
19628   # Input might be given as Windows format, start by converting to
19629   # unix format.
19630   new_path="$path"
19631 
19632   windows_path="$new_path"
19633   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19634     unix_path=`$CYGPATH -u "$windows_path"`
19635     new_path="$unix_path"
19636   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19637     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19638     new_path="$unix_path"
19639   fi
19640 
19641 
19642   # Now try to locate executable using which
19643   new_path=`$WHICH "$new_path" 2> /dev/null`
19644 
19645   if test "x$new_path" = x; then
19646     # Oops. Which didn't find the executable.
19647     # The splitting of arguments from the executable at a space might have been incorrect,
19648     # since paths with space are more likely in Windows. Give it another try with the whole
19649     # argument.
19650     path="$complete"
19651     arguments="EOL"
19652     new_path="$path"
19653 
19654   windows_path="$new_path"
19655   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19656     unix_path=`$CYGPATH -u "$windows_path"`
19657     new_path="$unix_path"
19658   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19659     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19660     new_path="$unix_path"
19661   fi
19662 
19663 
19664     new_path=`$WHICH "$new_path" 2> /dev/null`
19665     # bat and cmd files are not always considered executable in MSYS causing which
19666     # to not find them
19667     if test "x$new_path" = x \
19668         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19669         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19670       new_path="$path"
19671 
19672   windows_path="$new_path"
19673   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19674     unix_path=`$CYGPATH -u "$windows_path"`
19675     new_path="$unix_path"
19676   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19677     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19678     new_path="$unix_path"
19679   fi
19680 
19681     fi
19682 
19683     if test "x$new_path" = x; then
19684       # It's still not found. Now this is an unrecoverable error.
19685       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19686 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19687       has_space=`$ECHO "$complete" | $GREP " "`
19688       if test "x$has_space" != x; then
19689         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19690 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19691       fi
19692       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19693     fi
19694   fi
19695 
19696   # Now new_path has a complete unix path to the binary
19697   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19698     # Keep paths in /bin as-is, but remove trailing .exe if any
19699     new_path="${new_path/%.exe/}"
19700     # Do not save /bin paths to all_fixpath_prefixes!
19701   else
19702     # Not in mixed or Windows style, start by that.
19703     new_path=`cmd //c echo $new_path`
19704 
19705   input_path="$new_path"
19706   # Check if we need to convert this using DOS-style short mode. If the path
19707   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19708   # take no chances and rewrite it.
19709   # Note: m4 eats our [], so we need to use [ and ] instead.
19710   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19711   if test "x$has_forbidden_chars" != x; then
19712     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19713     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19714   fi
19715 
19716     # Output is in $new_path
19717 
19718   windows_path="$new_path"
19719   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19720     unix_path=`$CYGPATH -u "$windows_path"`
19721     new_path="$unix_path"
19722   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19723     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19724     new_path="$unix_path"
19725   fi
19726 
19727     # remove trailing .exe if any
19728     new_path="${new_path/%.exe/}"
19729 
19730     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19731     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19732   fi
19733 
19734     else
19735       # We're on a unix platform. Hooray! :)
19736       # First separate the path from the arguments. This will split at the first
19737       # space.
19738       complete="$FOUND_MAKE"
19739       path="${complete%% *}"
19740       tmp="$complete EOL"
19741       arguments="${tmp#* }"
19742 
19743       # Cannot rely on the command "which" here since it doesn't always work.
19744       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19745       if test -z "$is_absolute_path"; then
19746         # Path to executable is not absolute. Find it.
19747         IFS_save="$IFS"
19748         IFS=:
19749         for p in $PATH; do
19750           if test -f "$p/$path" && test -x "$p/$path"; then
19751             new_path="$p/$path"
19752             break
19753           fi
19754         done
19755         IFS="$IFS_save"
19756       else
19757         # This is an absolute path, we can use it without further modifications.
19758         new_path="$path"
19759       fi
19760 
19761       if test "x$new_path" = x; then
19762         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19763 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19764         has_space=`$ECHO "$complete" | $GREP " "`
19765         if test "x$has_space" != x; then
19766           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19767 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19768         fi
19769         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19770       fi
19771     fi
19772 
19773     # Now join together the path and the arguments once again
19774     if test "x$arguments" != xEOL; then
19775       new_complete="$new_path ${arguments% *}"
19776     else
19777       new_complete="$new_path"
19778     fi
19779 
19780     if test "x$complete" != "x$new_complete"; then
19781       FOUND_MAKE="$new_complete"
19782       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19783 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19784     fi
19785   fi
19786 
19787         fi
19788       fi
19789     fi
19790   fi
19791 
19792         fi
19793         PATH=$OLD_PATH
19794       fi
19795     fi
19796 
19797     if test "x$FOUND_MAKE" = x; then
19798       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
19799     fi
19800 
19801     else
19802       # If it succeeded, then it was overridden by the user. We will use it
19803       # for the tool.
19804 
19805       # First remove it from the list of overridden variables, so we can test
19806       # for unknown variables in the end.
19807       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19808 
19809       # Check if we try to supply an empty value
19810       if test "x$MAKE" = x; then
19811         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
19812 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
19813         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19814 $as_echo_n "checking for MAKE... " >&6; }
19815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
19816 $as_echo "disabled" >&6; }
19817       else
19818         # Check if the provided tool contains a complete path.
19819         tool_specified="$MAKE"
19820         tool_basename="${tool_specified##*/}"
19821         if test "x$tool_basename" = "x$tool_specified"; then
19822           # A command without a complete path is provided, search $PATH.
19823           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
19824 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
19825           # Extract the first word of "$tool_basename", so it can be a program name with args.
19826 set dummy $tool_basename; ac_word=$2
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19828 $as_echo_n "checking for $ac_word... " >&6; }
19829 if ${ac_cv_path_MAKE+:} false; then :
19830   $as_echo_n "(cached) " >&6
19831 else
19832   case $MAKE in
19833   [\\/]* | ?:[\\/]*)
19834   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
19835   ;;
19836   *)
19837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19838 for as_dir in $PATH
19839 do
19840   IFS=$as_save_IFS
19841   test -z "$as_dir" && as_dir=.
19842     for ac_exec_ext in '' $ac_executable_extensions; do
19843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19844     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
19845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19846     break 2
19847   fi
19848 done
19849   done
19850 IFS=$as_save_IFS
19851 
19852   ;;
19853 esac
19854 fi
19855 MAKE=$ac_cv_path_MAKE
19856 if test -n "$MAKE"; then
19857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
19858 $as_echo "$MAKE" >&6; }
19859 else
19860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19861 $as_echo "no" >&6; }
19862 fi
19863 
19864 
19865           if test "x$MAKE" = x; then
19866             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19867           fi
19868         else
19869           # Otherwise we believe it is a complete path. Use it as it is.
19870           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
19871 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
19872           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19873 $as_echo_n "checking for MAKE... " >&6; }
19874           if test ! -x "$tool_specified"; then
19875             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19876 $as_echo "not found" >&6; }
19877             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
19878           fi
19879           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19880 $as_echo "$tool_specified" >&6; }
19881         fi
19882       fi
19883     fi
19884 
19885     # If MAKE was set by user, verify the version
19886 
19887   MAKE_CANDIDATE=""$MAKE""
19888   DESCRIPTION="user supplied MAKE=$MAKE"
19889 
19890   # On Cygwin, we require a newer version of make than on other platforms
19891   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19892     MAKE_VERSION_EXPR="-e 4\."
19893     MAKE_REQUIRED_VERSION="4.0"
19894    else
19895     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19896     MAKE_REQUIRED_VERSION="3.81"
19897   fi
19898 
19899   if test "x$MAKE_CANDIDATE" != x; then
19900     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19901 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19902     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19903     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19904     if test "x$IS_GNU_MAKE" = x; then
19905       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19906 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19907     else
19908       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19909       if test "x$IS_MODERN_MAKE" = x; then
19910         { $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
19911 $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;}
19912       else
19913         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19914           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19915             MAKE_EXPECTED_ENV='cygwin'
19916           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19917             MAKE_EXPECTED_ENV='msys'
19918           else
19919             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19920           fi
19921           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19922           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19923         else
19924           # Not relevant for non-Windows
19925           IS_MAKE_CORRECT_ENV=true
19926         fi
19927         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19928           { $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
19929 $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;}
19930         else
19931           FOUND_MAKE=$MAKE_CANDIDATE
19932 
19933   # Only process if variable expands to non-empty
19934 
19935   if test "x$FOUND_MAKE" != x; then
19936     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19937 
19938   # First separate the path from the arguments. This will split at the first
19939   # space.
19940   complete="$FOUND_MAKE"
19941   path="${complete%% *}"
19942   tmp="$complete EOL"
19943   arguments="${tmp#* }"
19944 
19945   # Input might be given as Windows format, start by converting to
19946   # unix format.
19947   new_path=`$CYGPATH -u "$path"`
19948 
19949   # Now try to locate executable using which
19950   new_path=`$WHICH "$new_path" 2> /dev/null`
19951   # bat and cmd files are not always considered executable in cygwin causing which
19952   # to not find them
19953   if test "x$new_path" = x \
19954       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19955       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19956     new_path=`$CYGPATH -u "$path"`
19957   fi
19958   if test "x$new_path" = x; then
19959     # Oops. Which didn't find the executable.
19960     # The splitting of arguments from the executable at a space might have been incorrect,
19961     # since paths with space are more likely in Windows. Give it another try with the whole
19962     # argument.
19963     path="$complete"
19964     arguments="EOL"
19965     new_path=`$CYGPATH -u "$path"`
19966     new_path=`$WHICH "$new_path" 2> /dev/null`
19967     # bat and cmd files are not always considered executable in cygwin causing which
19968     # to not find them
19969     if test "x$new_path" = x \
19970         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19971         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19972       new_path=`$CYGPATH -u "$path"`
19973     fi
19974     if test "x$new_path" = x; then
19975       # It's still not found. Now this is an unrecoverable error.
19976       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19977 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19978       has_space=`$ECHO "$complete" | $GREP " "`
19979       if test "x$has_space" != x; then
19980         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19981 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19982       fi
19983       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19984     fi
19985   fi
19986 
19987   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19988   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19989   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19990   # "foo.exe" is OK but "foo" is an error.
19991   #
19992   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19993   # It is also a way to make sure we got the proper file name for the real test later on.
19994   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19995   if test "x$test_shortpath" = x; then
19996     # Short path failed, file does not exist as specified.
19997     # Try adding .exe or .cmd
19998     if test -f "${new_path}.exe"; then
19999       input_to_shortpath="${new_path}.exe"
20000     elif test -f "${new_path}.cmd"; then
20001       input_to_shortpath="${new_path}.cmd"
20002     else
20003       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20004 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20005       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20006 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20007       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20008     fi
20009   else
20010     input_to_shortpath="$new_path"
20011   fi
20012 
20013   # Call helper function which possibly converts this using DOS-style short mode.
20014   # If so, the updated path is stored in $new_path.
20015   new_path="$input_to_shortpath"
20016 
20017   input_path="$input_to_shortpath"
20018   # Check if we need to convert this using DOS-style short mode. If the path
20019   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20020   # take no chances and rewrite it.
20021   # Note: m4 eats our [], so we need to use [ and ] instead.
20022   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20023   if test "x$has_forbidden_chars" != x; then
20024     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20025     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20026     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20027     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20028       # Going to short mode and back again did indeed matter. Since short mode is
20029       # case insensitive, let's make it lowercase to improve readability.
20030       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20031       # Now convert it back to Unix-style (cygpath)
20032       input_path=`$CYGPATH -u "$shortmode_path"`
20033       new_path="$input_path"
20034     fi
20035   fi
20036 
20037   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20038   if test "x$test_cygdrive_prefix" = x; then
20039     # As a simple fix, exclude /usr/bin since it's not a real path.
20040     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20041       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20042       # a path prefixed by /cygdrive for fixpath to work.
20043       new_path="$CYGWIN_ROOT_PATH$input_path"
20044     fi
20045   fi
20046 
20047   # remove trailing .exe if any
20048   new_path="${new_path/%.exe/}"
20049 
20050     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20051 
20052   # First separate the path from the arguments. This will split at the first
20053   # space.
20054   complete="$FOUND_MAKE"
20055   path="${complete%% *}"
20056   tmp="$complete EOL"
20057   arguments="${tmp#* }"
20058 
20059   # Input might be given as Windows format, start by converting to
20060   # unix format.
20061   new_path="$path"
20062 
20063   windows_path="$new_path"
20064   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20065     unix_path=`$CYGPATH -u "$windows_path"`
20066     new_path="$unix_path"
20067   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20068     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20069     new_path="$unix_path"
20070   fi
20071 
20072 
20073   # Now try to locate executable using which
20074   new_path=`$WHICH "$new_path" 2> /dev/null`
20075 
20076   if test "x$new_path" = x; then
20077     # Oops. Which didn't find the executable.
20078     # The splitting of arguments from the executable at a space might have been incorrect,
20079     # since paths with space are more likely in Windows. Give it another try with the whole
20080     # argument.
20081     path="$complete"
20082     arguments="EOL"
20083     new_path="$path"
20084 
20085   windows_path="$new_path"
20086   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20087     unix_path=`$CYGPATH -u "$windows_path"`
20088     new_path="$unix_path"
20089   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20090     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20091     new_path="$unix_path"
20092   fi
20093 
20094 
20095     new_path=`$WHICH "$new_path" 2> /dev/null`
20096     # bat and cmd files are not always considered executable in MSYS causing which
20097     # to not find them
20098     if test "x$new_path" = x \
20099         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20100         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20101       new_path="$path"
20102 
20103   windows_path="$new_path"
20104   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20105     unix_path=`$CYGPATH -u "$windows_path"`
20106     new_path="$unix_path"
20107   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20108     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20109     new_path="$unix_path"
20110   fi
20111 
20112     fi
20113 
20114     if test "x$new_path" = x; then
20115       # It's still not found. Now this is an unrecoverable error.
20116       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20117 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20118       has_space=`$ECHO "$complete" | $GREP " "`
20119       if test "x$has_space" != x; then
20120         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20121 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20122       fi
20123       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20124     fi
20125   fi
20126 
20127   # Now new_path has a complete unix path to the binary
20128   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20129     # Keep paths in /bin as-is, but remove trailing .exe if any
20130     new_path="${new_path/%.exe/}"
20131     # Do not save /bin paths to all_fixpath_prefixes!
20132   else
20133     # Not in mixed or Windows style, start by that.
20134     new_path=`cmd //c echo $new_path`
20135 
20136   input_path="$new_path"
20137   # Check if we need to convert this using DOS-style short mode. If the path
20138   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20139   # take no chances and rewrite it.
20140   # Note: m4 eats our [], so we need to use [ and ] instead.
20141   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20142   if test "x$has_forbidden_chars" != x; then
20143     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20144     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20145   fi
20146 
20147     # Output is in $new_path
20148 
20149   windows_path="$new_path"
20150   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20151     unix_path=`$CYGPATH -u "$windows_path"`
20152     new_path="$unix_path"
20153   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20154     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20155     new_path="$unix_path"
20156   fi
20157 
20158     # remove trailing .exe if any
20159     new_path="${new_path/%.exe/}"
20160 
20161     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20162     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20163   fi
20164 
20165     else
20166       # We're on a unix platform. Hooray! :)
20167       # First separate the path from the arguments. This will split at the first
20168       # space.
20169       complete="$FOUND_MAKE"
20170       path="${complete%% *}"
20171       tmp="$complete EOL"
20172       arguments="${tmp#* }"
20173 
20174       # Cannot rely on the command "which" here since it doesn't always work.
20175       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20176       if test -z "$is_absolute_path"; then
20177         # Path to executable is not absolute. Find it.
20178         IFS_save="$IFS"
20179         IFS=:
20180         for p in $PATH; do
20181           if test -f "$p/$path" && test -x "$p/$path"; then
20182             new_path="$p/$path"
20183             break
20184           fi
20185         done
20186         IFS="$IFS_save"
20187       else
20188         # This is an absolute path, we can use it without further modifications.
20189         new_path="$path"
20190       fi
20191 
20192       if test "x$new_path" = x; then
20193         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20194 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20195         has_space=`$ECHO "$complete" | $GREP " "`
20196         if test "x$has_space" != x; then
20197           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20198 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20199         fi
20200         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20201       fi
20202     fi
20203 
20204     # Now join together the path and the arguments once again
20205     if test "x$arguments" != xEOL; then
20206       new_complete="$new_path ${arguments% *}"
20207     else
20208       new_complete="$new_path"
20209     fi
20210 
20211     if test "x$complete" != "x$new_complete"; then
20212       FOUND_MAKE="$new_complete"
20213       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20214 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20215     fi
20216   fi
20217 
20218         fi
20219       fi
20220     fi
20221   fi
20222 
20223     if test "x$FOUND_MAKE" = x; then
20224       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
20225     fi
20226 
20227   fi
20228 
20229 
20230   MAKE=$FOUND_MAKE
20231 
20232   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
20233 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
20234 
20235 
20236   # Check if make supports the output sync option and if so, setup using it.
20237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
20238 $as_echo_n "checking if make --output-sync is supported... " >&6; }
20239   if $MAKE --version -O > /dev/null 2>&1; then
20240     OUTPUT_SYNC_SUPPORTED=true
20241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20242 $as_echo "yes" >&6; }
20243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
20244 $as_echo_n "checking for output-sync value... " >&6; }
20245 
20246 # Check whether --with-output-sync was given.
20247 if test "${with_output_sync+set}" = set; then :
20248   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
20249 fi
20250 
20251     if test "x$OUTPUT_SYNC" = "x"; then
20252       OUTPUT_SYNC=none
20253     fi
20254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
20255 $as_echo "$OUTPUT_SYNC" >&6; }
20256     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
20257       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
20258     fi
20259   else
20260     OUTPUT_SYNC_SUPPORTED=false
20261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20262 $as_echo "no" >&6; }
20263   fi
20264 
20265 
20266 
20267 
20268 
20269 
20270   # Test if find supports -delete
20271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
20272 $as_echo_n "checking if find supports -delete... " >&6; }
20273   FIND_DELETE="-delete"
20274 
20275   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
20276 
20277   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
20278 
20279   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
20280   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
20281     # No, it does not.
20282     rm $DELETEDIR/TestIfFindSupportsDelete
20283     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
20284       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
20285       FIND_DELETE="-print | xargs rm"
20286     else
20287       FIND_DELETE="-exec rm \{\} \+"
20288     fi
20289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20290 $as_echo "no" >&6; }
20291   else
20292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20293 $as_echo "yes" >&6; }
20294   fi
20295   rmdir $DELETEDIR
20296 
20297 
20298 
20299   # These tools might not be installed by default,
20300   # need hint on how to install them.
20301 
20302 
20303 
20304   # Publish this variable in the help.
20305 
20306 
20307   if [ -z "${UNZIP+x}" ]; then
20308     # The variable is not set by user, try to locate tool using the code snippet
20309     for ac_prog in unzip
20310 do
20311   # Extract the first word of "$ac_prog", so it can be a program name with args.
20312 set dummy $ac_prog; ac_word=$2
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20314 $as_echo_n "checking for $ac_word... " >&6; }
20315 if ${ac_cv_path_UNZIP+:} false; then :
20316   $as_echo_n "(cached) " >&6
20317 else
20318   case $UNZIP in
20319   [\\/]* | ?:[\\/]*)
20320   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20321   ;;
20322   *)
20323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20324 for as_dir in $PATH
20325 do
20326   IFS=$as_save_IFS
20327   test -z "$as_dir" && as_dir=.
20328     for ac_exec_ext in '' $ac_executable_extensions; do
20329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20330     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20332     break 2
20333   fi
20334 done
20335   done
20336 IFS=$as_save_IFS
20337 
20338   ;;
20339 esac
20340 fi
20341 UNZIP=$ac_cv_path_UNZIP
20342 if test -n "$UNZIP"; then
20343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20344 $as_echo "$UNZIP" >&6; }
20345 else
20346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20347 $as_echo "no" >&6; }
20348 fi
20349 
20350 
20351   test -n "$UNZIP" && break
20352 done
20353 
20354   else
20355     # The variable is set, but is it from the command line or the environment?
20356 
20357     # Try to remove the string !UNZIP! from our list.
20358     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
20359     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20360       # If it failed, the variable was not from the command line. Ignore it,
20361       # but warn the user (except for BASH, which is always set by the calling BASH).
20362       if test "xUNZIP" != xBASH; then
20363         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
20364 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
20365       fi
20366       # Try to locate tool using the code snippet
20367       for ac_prog in unzip
20368 do
20369   # Extract the first word of "$ac_prog", so it can be a program name with args.
20370 set dummy $ac_prog; ac_word=$2
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20372 $as_echo_n "checking for $ac_word... " >&6; }
20373 if ${ac_cv_path_UNZIP+:} false; then :
20374   $as_echo_n "(cached) " >&6
20375 else
20376   case $UNZIP in
20377   [\\/]* | ?:[\\/]*)
20378   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20379   ;;
20380   *)
20381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20382 for as_dir in $PATH
20383 do
20384   IFS=$as_save_IFS
20385   test -z "$as_dir" && as_dir=.
20386     for ac_exec_ext in '' $ac_executable_extensions; do
20387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20388     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20390     break 2
20391   fi
20392 done
20393   done
20394 IFS=$as_save_IFS
20395 
20396   ;;
20397 esac
20398 fi
20399 UNZIP=$ac_cv_path_UNZIP
20400 if test -n "$UNZIP"; then
20401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20402 $as_echo "$UNZIP" >&6; }
20403 else
20404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20405 $as_echo "no" >&6; }
20406 fi
20407 
20408 
20409   test -n "$UNZIP" && break
20410 done
20411 
20412     else
20413       # If it succeeded, then it was overridden by the user. We will use it
20414       # for the tool.
20415 
20416       # First remove it from the list of overridden variables, so we can test
20417       # for unknown variables in the end.
20418       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20419 
20420       # Check if we try to supply an empty value
20421       if test "x$UNZIP" = x; then
20422         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
20423 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
20424         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20425 $as_echo_n "checking for UNZIP... " >&6; }
20426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20427 $as_echo "disabled" >&6; }
20428       else
20429         # Check if the provided tool contains a complete path.
20430         tool_specified="$UNZIP"
20431         tool_basename="${tool_specified##*/}"
20432         if test "x$tool_basename" = "x$tool_specified"; then
20433           # A command without a complete path is provided, search $PATH.
20434           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
20435 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
20436           # Extract the first word of "$tool_basename", so it can be a program name with args.
20437 set dummy $tool_basename; ac_word=$2
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20439 $as_echo_n "checking for $ac_word... " >&6; }
20440 if ${ac_cv_path_UNZIP+:} false; then :
20441   $as_echo_n "(cached) " >&6
20442 else
20443   case $UNZIP in
20444   [\\/]* | ?:[\\/]*)
20445   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20446   ;;
20447   *)
20448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20449 for as_dir in $PATH
20450 do
20451   IFS=$as_save_IFS
20452   test -z "$as_dir" && as_dir=.
20453     for ac_exec_ext in '' $ac_executable_extensions; do
20454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20455     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20457     break 2
20458   fi
20459 done
20460   done
20461 IFS=$as_save_IFS
20462 
20463   ;;
20464 esac
20465 fi
20466 UNZIP=$ac_cv_path_UNZIP
20467 if test -n "$UNZIP"; then
20468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20469 $as_echo "$UNZIP" >&6; }
20470 else
20471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20472 $as_echo "no" >&6; }
20473 fi
20474 
20475 
20476           if test "x$UNZIP" = x; then
20477             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20478           fi
20479         else
20480           # Otherwise we believe it is a complete path. Use it as it is.
20481           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
20482 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
20483           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20484 $as_echo_n "checking for UNZIP... " >&6; }
20485           if test ! -x "$tool_specified"; then
20486             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20487 $as_echo "not found" >&6; }
20488             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20489           fi
20490           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20491 $as_echo "$tool_specified" >&6; }
20492         fi
20493       fi
20494     fi
20495 
20496   fi
20497 
20498 
20499 
20500   if test "x$UNZIP" = x; then
20501     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
20502   fi
20503 
20504 
20505 
20506 
20507 
20508   # Publish this variable in the help.
20509 
20510 
20511   if [ -z "${ZIP+x}" ]; then
20512     # The variable is not set by user, try to locate tool using the code snippet
20513     for ac_prog in zip
20514 do
20515   # Extract the first word of "$ac_prog", so it can be a program name with args.
20516 set dummy $ac_prog; ac_word=$2
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20518 $as_echo_n "checking for $ac_word... " >&6; }
20519 if ${ac_cv_path_ZIP+:} false; then :
20520   $as_echo_n "(cached) " >&6
20521 else
20522   case $ZIP in
20523   [\\/]* | ?:[\\/]*)
20524   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20525   ;;
20526   *)
20527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20528 for as_dir in $PATH
20529 do
20530   IFS=$as_save_IFS
20531   test -z "$as_dir" && as_dir=.
20532     for ac_exec_ext in '' $ac_executable_extensions; do
20533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20534     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20536     break 2
20537   fi
20538 done
20539   done
20540 IFS=$as_save_IFS
20541 
20542   ;;
20543 esac
20544 fi
20545 ZIP=$ac_cv_path_ZIP
20546 if test -n "$ZIP"; then
20547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20548 $as_echo "$ZIP" >&6; }
20549 else
20550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20551 $as_echo "no" >&6; }
20552 fi
20553 
20554 
20555   test -n "$ZIP" && break
20556 done
20557 
20558   else
20559     # The variable is set, but is it from the command line or the environment?
20560 
20561     # Try to remove the string !ZIP! from our list.
20562     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
20563     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20564       # If it failed, the variable was not from the command line. Ignore it,
20565       # but warn the user (except for BASH, which is always set by the calling BASH).
20566       if test "xZIP" != xBASH; then
20567         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
20568 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
20569       fi
20570       # Try to locate tool using the code snippet
20571       for ac_prog in zip
20572 do
20573   # Extract the first word of "$ac_prog", so it can be a program name with args.
20574 set dummy $ac_prog; ac_word=$2
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20576 $as_echo_n "checking for $ac_word... " >&6; }
20577 if ${ac_cv_path_ZIP+:} false; then :
20578   $as_echo_n "(cached) " >&6
20579 else
20580   case $ZIP in
20581   [\\/]* | ?:[\\/]*)
20582   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20583   ;;
20584   *)
20585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20586 for as_dir in $PATH
20587 do
20588   IFS=$as_save_IFS
20589   test -z "$as_dir" && as_dir=.
20590     for ac_exec_ext in '' $ac_executable_extensions; do
20591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20592     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20594     break 2
20595   fi
20596 done
20597   done
20598 IFS=$as_save_IFS
20599 
20600   ;;
20601 esac
20602 fi
20603 ZIP=$ac_cv_path_ZIP
20604 if test -n "$ZIP"; then
20605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20606 $as_echo "$ZIP" >&6; }
20607 else
20608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20609 $as_echo "no" >&6; }
20610 fi
20611 
20612 
20613   test -n "$ZIP" && break
20614 done
20615 
20616     else
20617       # If it succeeded, then it was overridden by the user. We will use it
20618       # for the tool.
20619 
20620       # First remove it from the list of overridden variables, so we can test
20621       # for unknown variables in the end.
20622       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20623 
20624       # Check if we try to supply an empty value
20625       if test "x$ZIP" = x; then
20626         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
20627 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
20628         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20629 $as_echo_n "checking for ZIP... " >&6; }
20630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20631 $as_echo "disabled" >&6; }
20632       else
20633         # Check if the provided tool contains a complete path.
20634         tool_specified="$ZIP"
20635         tool_basename="${tool_specified##*/}"
20636         if test "x$tool_basename" = "x$tool_specified"; then
20637           # A command without a complete path is provided, search $PATH.
20638           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
20639 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
20640           # Extract the first word of "$tool_basename", so it can be a program name with args.
20641 set dummy $tool_basename; ac_word=$2
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20643 $as_echo_n "checking for $ac_word... " >&6; }
20644 if ${ac_cv_path_ZIP+:} false; then :
20645   $as_echo_n "(cached) " >&6
20646 else
20647   case $ZIP in
20648   [\\/]* | ?:[\\/]*)
20649   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20650   ;;
20651   *)
20652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20653 for as_dir in $PATH
20654 do
20655   IFS=$as_save_IFS
20656   test -z "$as_dir" && as_dir=.
20657     for ac_exec_ext in '' $ac_executable_extensions; do
20658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20659     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20661     break 2
20662   fi
20663 done
20664   done
20665 IFS=$as_save_IFS
20666 
20667   ;;
20668 esac
20669 fi
20670 ZIP=$ac_cv_path_ZIP
20671 if test -n "$ZIP"; then
20672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20673 $as_echo "$ZIP" >&6; }
20674 else
20675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20676 $as_echo "no" >&6; }
20677 fi
20678 
20679 
20680           if test "x$ZIP" = x; then
20681             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20682           fi
20683         else
20684           # Otherwise we believe it is a complete path. Use it as it is.
20685           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
20686 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
20687           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20688 $as_echo_n "checking for ZIP... " >&6; }
20689           if test ! -x "$tool_specified"; then
20690             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20691 $as_echo "not found" >&6; }
20692             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20693           fi
20694           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20695 $as_echo "$tool_specified" >&6; }
20696         fi
20697       fi
20698     fi
20699 
20700   fi
20701 
20702 
20703 
20704   if test "x$ZIP" = x; then
20705     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
20706   fi
20707 
20708 
20709 
20710   # Non-required basic tools
20711 
20712 
20713 
20714   # Publish this variable in the help.
20715 
20716 
20717   if [ -z "${LDD+x}" ]; then
20718     # The variable is not set by user, try to locate tool using the code snippet
20719     for ac_prog in ldd
20720 do
20721   # Extract the first word of "$ac_prog", so it can be a program name with args.
20722 set dummy $ac_prog; ac_word=$2
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20724 $as_echo_n "checking for $ac_word... " >&6; }
20725 if ${ac_cv_path_LDD+:} false; then :
20726   $as_echo_n "(cached) " >&6
20727 else
20728   case $LDD in
20729   [\\/]* | ?:[\\/]*)
20730   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20731   ;;
20732   *)
20733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20734 for as_dir in $PATH
20735 do
20736   IFS=$as_save_IFS
20737   test -z "$as_dir" && as_dir=.
20738     for ac_exec_ext in '' $ac_executable_extensions; do
20739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20740     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20742     break 2
20743   fi
20744 done
20745   done
20746 IFS=$as_save_IFS
20747 
20748   ;;
20749 esac
20750 fi
20751 LDD=$ac_cv_path_LDD
20752 if test -n "$LDD"; then
20753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20754 $as_echo "$LDD" >&6; }
20755 else
20756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20757 $as_echo "no" >&6; }
20758 fi
20759 
20760 
20761   test -n "$LDD" && break
20762 done
20763 
20764   else
20765     # The variable is set, but is it from the command line or the environment?
20766 
20767     # Try to remove the string !LDD! from our list.
20768     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
20769     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20770       # If it failed, the variable was not from the command line. Ignore it,
20771       # but warn the user (except for BASH, which is always set by the calling BASH).
20772       if test "xLDD" != xBASH; then
20773         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
20774 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
20775       fi
20776       # Try to locate tool using the code snippet
20777       for ac_prog in ldd
20778 do
20779   # Extract the first word of "$ac_prog", so it can be a program name with args.
20780 set dummy $ac_prog; ac_word=$2
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20782 $as_echo_n "checking for $ac_word... " >&6; }
20783 if ${ac_cv_path_LDD+:} false; then :
20784   $as_echo_n "(cached) " >&6
20785 else
20786   case $LDD in
20787   [\\/]* | ?:[\\/]*)
20788   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20789   ;;
20790   *)
20791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20792 for as_dir in $PATH
20793 do
20794   IFS=$as_save_IFS
20795   test -z "$as_dir" && as_dir=.
20796     for ac_exec_ext in '' $ac_executable_extensions; do
20797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20798     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20800     break 2
20801   fi
20802 done
20803   done
20804 IFS=$as_save_IFS
20805 
20806   ;;
20807 esac
20808 fi
20809 LDD=$ac_cv_path_LDD
20810 if test -n "$LDD"; then
20811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20812 $as_echo "$LDD" >&6; }
20813 else
20814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20815 $as_echo "no" >&6; }
20816 fi
20817 
20818 
20819   test -n "$LDD" && break
20820 done
20821 
20822     else
20823       # If it succeeded, then it was overridden by the user. We will use it
20824       # for the tool.
20825 
20826       # First remove it from the list of overridden variables, so we can test
20827       # for unknown variables in the end.
20828       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20829 
20830       # Check if we try to supply an empty value
20831       if test "x$LDD" = x; then
20832         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
20833 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
20834         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20835 $as_echo_n "checking for LDD... " >&6; }
20836         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20837 $as_echo "disabled" >&6; }
20838       else
20839         # Check if the provided tool contains a complete path.
20840         tool_specified="$LDD"
20841         tool_basename="${tool_specified##*/}"
20842         if test "x$tool_basename" = "x$tool_specified"; then
20843           # A command without a complete path is provided, search $PATH.
20844           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
20845 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
20846           # Extract the first word of "$tool_basename", so it can be a program name with args.
20847 set dummy $tool_basename; ac_word=$2
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20849 $as_echo_n "checking for $ac_word... " >&6; }
20850 if ${ac_cv_path_LDD+:} false; then :
20851   $as_echo_n "(cached) " >&6
20852 else
20853   case $LDD in
20854   [\\/]* | ?:[\\/]*)
20855   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20856   ;;
20857   *)
20858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20859 for as_dir in $PATH
20860 do
20861   IFS=$as_save_IFS
20862   test -z "$as_dir" && as_dir=.
20863     for ac_exec_ext in '' $ac_executable_extensions; do
20864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20865     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20867     break 2
20868   fi
20869 done
20870   done
20871 IFS=$as_save_IFS
20872 
20873   ;;
20874 esac
20875 fi
20876 LDD=$ac_cv_path_LDD
20877 if test -n "$LDD"; then
20878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20879 $as_echo "$LDD" >&6; }
20880 else
20881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20882 $as_echo "no" >&6; }
20883 fi
20884 
20885 
20886           if test "x$LDD" = x; then
20887             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20888           fi
20889         else
20890           # Otherwise we believe it is a complete path. Use it as it is.
20891           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
20892 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
20893           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20894 $as_echo_n "checking for LDD... " >&6; }
20895           if test ! -x "$tool_specified"; then
20896             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20897 $as_echo "not found" >&6; }
20898             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
20899           fi
20900           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20901 $as_echo "$tool_specified" >&6; }
20902         fi
20903       fi
20904     fi
20905 
20906   fi
20907 
20908 
20909   if test "x$LDD" = "x"; then
20910     # List shared lib dependencies is used for
20911     # debug output and checking for forbidden dependencies.
20912     # We can build without it.
20913     LDD="true"
20914   fi
20915 
20916 
20917   # Publish this variable in the help.
20918 
20919 
20920   if [ -z "${OTOOL+x}" ]; then
20921     # The variable is not set by user, try to locate tool using the code snippet
20922     for ac_prog in otool
20923 do
20924   # Extract the first word of "$ac_prog", so it can be a program name with args.
20925 set dummy $ac_prog; ac_word=$2
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20927 $as_echo_n "checking for $ac_word... " >&6; }
20928 if ${ac_cv_path_OTOOL+:} false; then :
20929   $as_echo_n "(cached) " >&6
20930 else
20931   case $OTOOL in
20932   [\\/]* | ?:[\\/]*)
20933   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20934   ;;
20935   *)
20936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20937 for as_dir in $PATH
20938 do
20939   IFS=$as_save_IFS
20940   test -z "$as_dir" && as_dir=.
20941     for ac_exec_ext in '' $ac_executable_extensions; do
20942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20943     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20945     break 2
20946   fi
20947 done
20948   done
20949 IFS=$as_save_IFS
20950 
20951   ;;
20952 esac
20953 fi
20954 OTOOL=$ac_cv_path_OTOOL
20955 if test -n "$OTOOL"; then
20956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20957 $as_echo "$OTOOL" >&6; }
20958 else
20959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20960 $as_echo "no" >&6; }
20961 fi
20962 
20963 
20964   test -n "$OTOOL" && break
20965 done
20966 
20967   else
20968     # The variable is set, but is it from the command line or the environment?
20969 
20970     # Try to remove the string !OTOOL! from our list.
20971     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
20972     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20973       # If it failed, the variable was not from the command line. Ignore it,
20974       # but warn the user (except for BASH, which is always set by the calling BASH).
20975       if test "xOTOOL" != xBASH; then
20976         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
20977 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
20978       fi
20979       # Try to locate tool using the code snippet
20980       for ac_prog in otool
20981 do
20982   # Extract the first word of "$ac_prog", so it can be a program name with args.
20983 set dummy $ac_prog; ac_word=$2
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20985 $as_echo_n "checking for $ac_word... " >&6; }
20986 if ${ac_cv_path_OTOOL+:} false; then :
20987   $as_echo_n "(cached) " >&6
20988 else
20989   case $OTOOL in
20990   [\\/]* | ?:[\\/]*)
20991   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20992   ;;
20993   *)
20994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20995 for as_dir in $PATH
20996 do
20997   IFS=$as_save_IFS
20998   test -z "$as_dir" && as_dir=.
20999     for ac_exec_ext in '' $ac_executable_extensions; do
21000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21001     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21003     break 2
21004   fi
21005 done
21006   done
21007 IFS=$as_save_IFS
21008 
21009   ;;
21010 esac
21011 fi
21012 OTOOL=$ac_cv_path_OTOOL
21013 if test -n "$OTOOL"; then
21014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21015 $as_echo "$OTOOL" >&6; }
21016 else
21017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21018 $as_echo "no" >&6; }
21019 fi
21020 
21021 
21022   test -n "$OTOOL" && break
21023 done
21024 
21025     else
21026       # If it succeeded, then it was overridden by the user. We will use it
21027       # for the tool.
21028 
21029       # First remove it from the list of overridden variables, so we can test
21030       # for unknown variables in the end.
21031       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21032 
21033       # Check if we try to supply an empty value
21034       if test "x$OTOOL" = x; then
21035         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
21036 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
21037         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21038 $as_echo_n "checking for OTOOL... " >&6; }
21039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21040 $as_echo "disabled" >&6; }
21041       else
21042         # Check if the provided tool contains a complete path.
21043         tool_specified="$OTOOL"
21044         tool_basename="${tool_specified##*/}"
21045         if test "x$tool_basename" = "x$tool_specified"; then
21046           # A command without a complete path is provided, search $PATH.
21047           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
21048 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
21049           # Extract the first word of "$tool_basename", so it can be a program name with args.
21050 set dummy $tool_basename; ac_word=$2
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21052 $as_echo_n "checking for $ac_word... " >&6; }
21053 if ${ac_cv_path_OTOOL+:} false; then :
21054   $as_echo_n "(cached) " >&6
21055 else
21056   case $OTOOL in
21057   [\\/]* | ?:[\\/]*)
21058   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21059   ;;
21060   *)
21061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21062 for as_dir in $PATH
21063 do
21064   IFS=$as_save_IFS
21065   test -z "$as_dir" && as_dir=.
21066     for ac_exec_ext in '' $ac_executable_extensions; do
21067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21068     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21070     break 2
21071   fi
21072 done
21073   done
21074 IFS=$as_save_IFS
21075 
21076   ;;
21077 esac
21078 fi
21079 OTOOL=$ac_cv_path_OTOOL
21080 if test -n "$OTOOL"; then
21081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21082 $as_echo "$OTOOL" >&6; }
21083 else
21084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21085 $as_echo "no" >&6; }
21086 fi
21087 
21088 
21089           if test "x$OTOOL" = x; then
21090             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21091           fi
21092         else
21093           # Otherwise we believe it is a complete path. Use it as it is.
21094           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
21095 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
21096           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21097 $as_echo_n "checking for OTOOL... " >&6; }
21098           if test ! -x "$tool_specified"; then
21099             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21100 $as_echo "not found" >&6; }
21101             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
21102           fi
21103           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21104 $as_echo "$tool_specified" >&6; }
21105         fi
21106       fi
21107     fi
21108 
21109   fi
21110 
21111 
21112   if test "x$OTOOL" = "x"; then
21113     OTOOL="true"
21114   fi
21115 
21116 
21117   # Publish this variable in the help.
21118 
21119 
21120   if [ -z "${READELF+x}" ]; then
21121     # The variable is not set by user, try to locate tool using the code snippet
21122     for ac_prog in greadelf readelf
21123 do
21124   # Extract the first word of "$ac_prog", so it can be a program name with args.
21125 set dummy $ac_prog; ac_word=$2
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21127 $as_echo_n "checking for $ac_word... " >&6; }
21128 if ${ac_cv_path_READELF+:} false; then :
21129   $as_echo_n "(cached) " >&6
21130 else
21131   case $READELF in
21132   [\\/]* | ?:[\\/]*)
21133   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21134   ;;
21135   *)
21136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21137 for as_dir in $PATH
21138 do
21139   IFS=$as_save_IFS
21140   test -z "$as_dir" && as_dir=.
21141     for ac_exec_ext in '' $ac_executable_extensions; do
21142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21143     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21145     break 2
21146   fi
21147 done
21148   done
21149 IFS=$as_save_IFS
21150 
21151   ;;
21152 esac
21153 fi
21154 READELF=$ac_cv_path_READELF
21155 if test -n "$READELF"; then
21156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21157 $as_echo "$READELF" >&6; }
21158 else
21159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21160 $as_echo "no" >&6; }
21161 fi
21162 
21163 
21164   test -n "$READELF" && break
21165 done
21166 
21167   else
21168     # The variable is set, but is it from the command line or the environment?
21169 
21170     # Try to remove the string !READELF! from our list.
21171     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
21172     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21173       # If it failed, the variable was not from the command line. Ignore it,
21174       # but warn the user (except for BASH, which is always set by the calling BASH).
21175       if test "xREADELF" != xBASH; then
21176         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
21177 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
21178       fi
21179       # Try to locate tool using the code snippet
21180       for ac_prog in greadelf readelf
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_READELF+:} false; then :
21187   $as_echo_n "(cached) " >&6
21188 else
21189   case $READELF in
21190   [\\/]* | ?:[\\/]*)
21191   ac_cv_path_READELF="$READELF" # 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_READELF="$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 READELF=$ac_cv_path_READELF
21213 if test -n "$READELF"; then
21214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21215 $as_echo "$READELF" >&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 "$READELF" && break
21223 done
21224 
21225     else
21226       # If it succeeded, then it was overridden by the user. We will use it
21227       # for the tool.
21228 
21229       # First remove it from the list of overridden variables, so we can test
21230       # for unknown variables in the end.
21231       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21232 
21233       # Check if we try to supply an empty value
21234       if test "x$READELF" = x; then
21235         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
21236 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
21237         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21238 $as_echo_n "checking for READELF... " >&6; }
21239         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21240 $as_echo "disabled" >&6; }
21241       else
21242         # Check if the provided tool contains a complete path.
21243         tool_specified="$READELF"
21244         tool_basename="${tool_specified##*/}"
21245         if test "x$tool_basename" = "x$tool_specified"; then
21246           # A command without a complete path is provided, search $PATH.
21247           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
21248 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
21249           # Extract the first word of "$tool_basename", so it can be a program name with args.
21250 set dummy $tool_basename; ac_word=$2
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21252 $as_echo_n "checking for $ac_word... " >&6; }
21253 if ${ac_cv_path_READELF+:} false; then :
21254   $as_echo_n "(cached) " >&6
21255 else
21256   case $READELF in
21257   [\\/]* | ?:[\\/]*)
21258   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21259   ;;
21260   *)
21261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21262 for as_dir in $PATH
21263 do
21264   IFS=$as_save_IFS
21265   test -z "$as_dir" && as_dir=.
21266     for ac_exec_ext in '' $ac_executable_extensions; do
21267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21268     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21270     break 2
21271   fi
21272 done
21273   done
21274 IFS=$as_save_IFS
21275 
21276   ;;
21277 esac
21278 fi
21279 READELF=$ac_cv_path_READELF
21280 if test -n "$READELF"; then
21281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21282 $as_echo "$READELF" >&6; }
21283 else
21284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21285 $as_echo "no" >&6; }
21286 fi
21287 
21288 
21289           if test "x$READELF" = x; then
21290             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21291           fi
21292         else
21293           # Otherwise we believe it is a complete path. Use it as it is.
21294           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
21295 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
21296           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21297 $as_echo_n "checking for READELF... " >&6; }
21298           if test ! -x "$tool_specified"; then
21299             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21300 $as_echo "not found" >&6; }
21301             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
21302           fi
21303           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21304 $as_echo "$tool_specified" >&6; }
21305         fi
21306       fi
21307     fi
21308 
21309   fi
21310 
21311 
21312 
21313 
21314   # Publish this variable in the help.
21315 
21316 
21317   if [ -z "${HG+x}" ]; then
21318     # The variable is not set by user, try to locate tool using the code snippet
21319     for ac_prog in hg
21320 do
21321   # Extract the first word of "$ac_prog", so it can be a program name with args.
21322 set dummy $ac_prog; ac_word=$2
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21324 $as_echo_n "checking for $ac_word... " >&6; }
21325 if ${ac_cv_path_HG+:} false; then :
21326   $as_echo_n "(cached) " >&6
21327 else
21328   case $HG in
21329   [\\/]* | ?:[\\/]*)
21330   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21331   ;;
21332   *)
21333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21334 for as_dir in $PATH
21335 do
21336   IFS=$as_save_IFS
21337   test -z "$as_dir" && as_dir=.
21338     for ac_exec_ext in '' $ac_executable_extensions; do
21339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21340     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21342     break 2
21343   fi
21344 done
21345   done
21346 IFS=$as_save_IFS
21347 
21348   ;;
21349 esac
21350 fi
21351 HG=$ac_cv_path_HG
21352 if test -n "$HG"; then
21353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21354 $as_echo "$HG" >&6; }
21355 else
21356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21357 $as_echo "no" >&6; }
21358 fi
21359 
21360 
21361   test -n "$HG" && break
21362 done
21363 
21364   else
21365     # The variable is set, but is it from the command line or the environment?
21366 
21367     # Try to remove the string !HG! from our list.
21368     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
21369     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21370       # If it failed, the variable was not from the command line. Ignore it,
21371       # but warn the user (except for BASH, which is always set by the calling BASH).
21372       if test "xHG" != xBASH; then
21373         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
21374 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
21375       fi
21376       # Try to locate tool using the code snippet
21377       for ac_prog in hg
21378 do
21379   # Extract the first word of "$ac_prog", so it can be a program name with args.
21380 set dummy $ac_prog; ac_word=$2
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21382 $as_echo_n "checking for $ac_word... " >&6; }
21383 if ${ac_cv_path_HG+:} false; then :
21384   $as_echo_n "(cached) " >&6
21385 else
21386   case $HG in
21387   [\\/]* | ?:[\\/]*)
21388   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21389   ;;
21390   *)
21391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21392 for as_dir in $PATH
21393 do
21394   IFS=$as_save_IFS
21395   test -z "$as_dir" && as_dir=.
21396     for ac_exec_ext in '' $ac_executable_extensions; do
21397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21398     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21400     break 2
21401   fi
21402 done
21403   done
21404 IFS=$as_save_IFS
21405 
21406   ;;
21407 esac
21408 fi
21409 HG=$ac_cv_path_HG
21410 if test -n "$HG"; then
21411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21412 $as_echo "$HG" >&6; }
21413 else
21414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21415 $as_echo "no" >&6; }
21416 fi
21417 
21418 
21419   test -n "$HG" && break
21420 done
21421 
21422     else
21423       # If it succeeded, then it was overridden by the user. We will use it
21424       # for the tool.
21425 
21426       # First remove it from the list of overridden variables, so we can test
21427       # for unknown variables in the end.
21428       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21429 
21430       # Check if we try to supply an empty value
21431       if test "x$HG" = x; then
21432         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
21433 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
21434         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21435 $as_echo_n "checking for HG... " >&6; }
21436         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21437 $as_echo "disabled" >&6; }
21438       else
21439         # Check if the provided tool contains a complete path.
21440         tool_specified="$HG"
21441         tool_basename="${tool_specified##*/}"
21442         if test "x$tool_basename" = "x$tool_specified"; then
21443           # A command without a complete path is provided, search $PATH.
21444           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
21445 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
21446           # Extract the first word of "$tool_basename", so it can be a program name with args.
21447 set dummy $tool_basename; 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_HG+:} false; then :
21451   $as_echo_n "(cached) " >&6
21452 else
21453   case $HG in
21454   [\\/]* | ?:[\\/]*)
21455   ac_cv_path_HG="$HG" # 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_HG="$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 HG=$ac_cv_path_HG
21477 if test -n "$HG"; then
21478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21479 $as_echo "$HG" >&6; }
21480 else
21481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21482 $as_echo "no" >&6; }
21483 fi
21484 
21485 
21486           if test "x$HG" = x; then
21487             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21488           fi
21489         else
21490           # Otherwise we believe it is a complete path. Use it as it is.
21491           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
21492 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
21493           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21494 $as_echo_n "checking for HG... " >&6; }
21495           if test ! -x "$tool_specified"; then
21496             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21497 $as_echo "not found" >&6; }
21498             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
21499           fi
21500           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21501 $as_echo "$tool_specified" >&6; }
21502         fi
21503       fi
21504     fi
21505 
21506   fi
21507 
21508 
21509 
21510 
21511   # Publish this variable in the help.
21512 
21513 
21514   if [ -z "${STAT+x}" ]; then
21515     # The variable is not set by user, try to locate tool using the code snippet
21516     for ac_prog in stat
21517 do
21518   # Extract the first word of "$ac_prog", so it can be a program name with args.
21519 set dummy $ac_prog; ac_word=$2
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21521 $as_echo_n "checking for $ac_word... " >&6; }
21522 if ${ac_cv_path_STAT+:} false; then :
21523   $as_echo_n "(cached) " >&6
21524 else
21525   case $STAT in
21526   [\\/]* | ?:[\\/]*)
21527   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21528   ;;
21529   *)
21530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21531 for as_dir in $PATH
21532 do
21533   IFS=$as_save_IFS
21534   test -z "$as_dir" && as_dir=.
21535     for ac_exec_ext in '' $ac_executable_extensions; do
21536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21537     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21539     break 2
21540   fi
21541 done
21542   done
21543 IFS=$as_save_IFS
21544 
21545   ;;
21546 esac
21547 fi
21548 STAT=$ac_cv_path_STAT
21549 if test -n "$STAT"; then
21550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21551 $as_echo "$STAT" >&6; }
21552 else
21553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21554 $as_echo "no" >&6; }
21555 fi
21556 
21557 
21558   test -n "$STAT" && break
21559 done
21560 
21561   else
21562     # The variable is set, but is it from the command line or the environment?
21563 
21564     # Try to remove the string !STAT! from our list.
21565     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
21566     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21567       # If it failed, the variable was not from the command line. Ignore it,
21568       # but warn the user (except for BASH, which is always set by the calling BASH).
21569       if test "xSTAT" != xBASH; then
21570         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
21571 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
21572       fi
21573       # Try to locate tool using the code snippet
21574       for ac_prog in stat
21575 do
21576   # Extract the first word of "$ac_prog", so it can be a program name with args.
21577 set dummy $ac_prog; ac_word=$2
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21579 $as_echo_n "checking for $ac_word... " >&6; }
21580 if ${ac_cv_path_STAT+:} false; then :
21581   $as_echo_n "(cached) " >&6
21582 else
21583   case $STAT in
21584   [\\/]* | ?:[\\/]*)
21585   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21586   ;;
21587   *)
21588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21589 for as_dir in $PATH
21590 do
21591   IFS=$as_save_IFS
21592   test -z "$as_dir" && as_dir=.
21593     for ac_exec_ext in '' $ac_executable_extensions; do
21594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21595     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21597     break 2
21598   fi
21599 done
21600   done
21601 IFS=$as_save_IFS
21602 
21603   ;;
21604 esac
21605 fi
21606 STAT=$ac_cv_path_STAT
21607 if test -n "$STAT"; then
21608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21609 $as_echo "$STAT" >&6; }
21610 else
21611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21612 $as_echo "no" >&6; }
21613 fi
21614 
21615 
21616   test -n "$STAT" && break
21617 done
21618 
21619     else
21620       # If it succeeded, then it was overridden by the user. We will use it
21621       # for the tool.
21622 
21623       # First remove it from the list of overridden variables, so we can test
21624       # for unknown variables in the end.
21625       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21626 
21627       # Check if we try to supply an empty value
21628       if test "x$STAT" = x; then
21629         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
21630 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
21631         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21632 $as_echo_n "checking for STAT... " >&6; }
21633         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21634 $as_echo "disabled" >&6; }
21635       else
21636         # Check if the provided tool contains a complete path.
21637         tool_specified="$STAT"
21638         tool_basename="${tool_specified##*/}"
21639         if test "x$tool_basename" = "x$tool_specified"; then
21640           # A command without a complete path is provided, search $PATH.
21641           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
21642 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
21643           # Extract the first word of "$tool_basename", so it can be a program name with args.
21644 set dummy $tool_basename; ac_word=$2
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21646 $as_echo_n "checking for $ac_word... " >&6; }
21647 if ${ac_cv_path_STAT+:} false; then :
21648   $as_echo_n "(cached) " >&6
21649 else
21650   case $STAT in
21651   [\\/]* | ?:[\\/]*)
21652   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21653   ;;
21654   *)
21655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21656 for as_dir in $PATH
21657 do
21658   IFS=$as_save_IFS
21659   test -z "$as_dir" && as_dir=.
21660     for ac_exec_ext in '' $ac_executable_extensions; do
21661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21662     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21664     break 2
21665   fi
21666 done
21667   done
21668 IFS=$as_save_IFS
21669 
21670   ;;
21671 esac
21672 fi
21673 STAT=$ac_cv_path_STAT
21674 if test -n "$STAT"; then
21675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21676 $as_echo "$STAT" >&6; }
21677 else
21678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21679 $as_echo "no" >&6; }
21680 fi
21681 
21682 
21683           if test "x$STAT" = x; then
21684             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21685           fi
21686         else
21687           # Otherwise we believe it is a complete path. Use it as it is.
21688           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
21689 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
21690           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21691 $as_echo_n "checking for STAT... " >&6; }
21692           if test ! -x "$tool_specified"; then
21693             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21694 $as_echo "not found" >&6; }
21695             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
21696           fi
21697           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21698 $as_echo "$tool_specified" >&6; }
21699         fi
21700       fi
21701     fi
21702 
21703   fi
21704 
21705 
21706 
21707 
21708   # Publish this variable in the help.
21709 
21710 
21711   if [ -z "${TIME+x}" ]; then
21712     # The variable is not set by user, try to locate tool using the code snippet
21713     for ac_prog in time
21714 do
21715   # Extract the first word of "$ac_prog", so it can be a program name with args.
21716 set dummy $ac_prog; ac_word=$2
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21718 $as_echo_n "checking for $ac_word... " >&6; }
21719 if ${ac_cv_path_TIME+:} false; then :
21720   $as_echo_n "(cached) " >&6
21721 else
21722   case $TIME in
21723   [\\/]* | ?:[\\/]*)
21724   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21725   ;;
21726   *)
21727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21728 for as_dir in $PATH
21729 do
21730   IFS=$as_save_IFS
21731   test -z "$as_dir" && as_dir=.
21732     for ac_exec_ext in '' $ac_executable_extensions; do
21733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21734     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21736     break 2
21737   fi
21738 done
21739   done
21740 IFS=$as_save_IFS
21741 
21742   ;;
21743 esac
21744 fi
21745 TIME=$ac_cv_path_TIME
21746 if test -n "$TIME"; then
21747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21748 $as_echo "$TIME" >&6; }
21749 else
21750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21751 $as_echo "no" >&6; }
21752 fi
21753 
21754 
21755   test -n "$TIME" && break
21756 done
21757 
21758   else
21759     # The variable is set, but is it from the command line or the environment?
21760 
21761     # Try to remove the string !TIME! from our list.
21762     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
21763     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21764       # If it failed, the variable was not from the command line. Ignore it,
21765       # but warn the user (except for BASH, which is always set by the calling BASH).
21766       if test "xTIME" != xBASH; then
21767         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
21768 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
21769       fi
21770       # Try to locate tool using the code snippet
21771       for ac_prog in time
21772 do
21773   # Extract the first word of "$ac_prog", so it can be a program name with args.
21774 set dummy $ac_prog; ac_word=$2
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21776 $as_echo_n "checking for $ac_word... " >&6; }
21777 if ${ac_cv_path_TIME+:} false; then :
21778   $as_echo_n "(cached) " >&6
21779 else
21780   case $TIME in
21781   [\\/]* | ?:[\\/]*)
21782   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21783   ;;
21784   *)
21785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21786 for as_dir in $PATH
21787 do
21788   IFS=$as_save_IFS
21789   test -z "$as_dir" && as_dir=.
21790     for ac_exec_ext in '' $ac_executable_extensions; do
21791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21792     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21794     break 2
21795   fi
21796 done
21797   done
21798 IFS=$as_save_IFS
21799 
21800   ;;
21801 esac
21802 fi
21803 TIME=$ac_cv_path_TIME
21804 if test -n "$TIME"; then
21805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21806 $as_echo "$TIME" >&6; }
21807 else
21808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21809 $as_echo "no" >&6; }
21810 fi
21811 
21812 
21813   test -n "$TIME" && break
21814 done
21815 
21816     else
21817       # If it succeeded, then it was overridden by the user. We will use it
21818       # for the tool.
21819 
21820       # First remove it from the list of overridden variables, so we can test
21821       # for unknown variables in the end.
21822       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21823 
21824       # Check if we try to supply an empty value
21825       if test "x$TIME" = x; then
21826         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
21827 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
21828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21829 $as_echo_n "checking for TIME... " >&6; }
21830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21831 $as_echo "disabled" >&6; }
21832       else
21833         # Check if the provided tool contains a complete path.
21834         tool_specified="$TIME"
21835         tool_basename="${tool_specified##*/}"
21836         if test "x$tool_basename" = "x$tool_specified"; then
21837           # A command without a complete path is provided, search $PATH.
21838           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
21839 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
21840           # Extract the first word of "$tool_basename", so it can be a program name with args.
21841 set dummy $tool_basename; ac_word=$2
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21843 $as_echo_n "checking for $ac_word... " >&6; }
21844 if ${ac_cv_path_TIME+:} false; then :
21845   $as_echo_n "(cached) " >&6
21846 else
21847   case $TIME in
21848   [\\/]* | ?:[\\/]*)
21849   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21850   ;;
21851   *)
21852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21853 for as_dir in $PATH
21854 do
21855   IFS=$as_save_IFS
21856   test -z "$as_dir" && as_dir=.
21857     for ac_exec_ext in '' $ac_executable_extensions; do
21858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21859     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21861     break 2
21862   fi
21863 done
21864   done
21865 IFS=$as_save_IFS
21866 
21867   ;;
21868 esac
21869 fi
21870 TIME=$ac_cv_path_TIME
21871 if test -n "$TIME"; then
21872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21873 $as_echo "$TIME" >&6; }
21874 else
21875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21876 $as_echo "no" >&6; }
21877 fi
21878 
21879 
21880           if test "x$TIME" = x; then
21881             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21882           fi
21883         else
21884           # Otherwise we believe it is a complete path. Use it as it is.
21885           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
21886 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
21887           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21888 $as_echo_n "checking for TIME... " >&6; }
21889           if test ! -x "$tool_specified"; then
21890             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21891 $as_echo "not found" >&6; }
21892             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
21893           fi
21894           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21895 $as_echo "$tool_specified" >&6; }
21896         fi
21897       fi
21898     fi
21899 
21900   fi
21901 
21902 
21903 
21904 
21905   # Publish this variable in the help.
21906 
21907 
21908   if [ -z "${PATCH+x}" ]; then
21909     # The variable is not set by user, try to locate tool using the code snippet
21910     for ac_prog in gpatch patch
21911 do
21912   # Extract the first word of "$ac_prog", so it can be a program name with args.
21913 set dummy $ac_prog; ac_word=$2
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21915 $as_echo_n "checking for $ac_word... " >&6; }
21916 if ${ac_cv_path_PATCH+:} false; then :
21917   $as_echo_n "(cached) " >&6
21918 else
21919   case $PATCH in
21920   [\\/]* | ?:[\\/]*)
21921   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21922   ;;
21923   *)
21924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21925 for as_dir in $PATH
21926 do
21927   IFS=$as_save_IFS
21928   test -z "$as_dir" && as_dir=.
21929     for ac_exec_ext in '' $ac_executable_extensions; do
21930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21931     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21933     break 2
21934   fi
21935 done
21936   done
21937 IFS=$as_save_IFS
21938 
21939   ;;
21940 esac
21941 fi
21942 PATCH=$ac_cv_path_PATCH
21943 if test -n "$PATCH"; then
21944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21945 $as_echo "$PATCH" >&6; }
21946 else
21947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21948 $as_echo "no" >&6; }
21949 fi
21950 
21951 
21952   test -n "$PATCH" && break
21953 done
21954 
21955   else
21956     # The variable is set, but is it from the command line or the environment?
21957 
21958     # Try to remove the string !PATCH! from our list.
21959     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
21960     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21961       # If it failed, the variable was not from the command line. Ignore it,
21962       # but warn the user (except for BASH, which is always set by the calling BASH).
21963       if test "xPATCH" != xBASH; then
21964         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
21965 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
21966       fi
21967       # Try to locate tool using the code snippet
21968       for ac_prog in gpatch patch
21969 do
21970   # Extract the first word of "$ac_prog", so it can be a program name with args.
21971 set dummy $ac_prog; ac_word=$2
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21973 $as_echo_n "checking for $ac_word... " >&6; }
21974 if ${ac_cv_path_PATCH+:} false; then :
21975   $as_echo_n "(cached) " >&6
21976 else
21977   case $PATCH in
21978   [\\/]* | ?:[\\/]*)
21979   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21980   ;;
21981   *)
21982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21983 for as_dir in $PATH
21984 do
21985   IFS=$as_save_IFS
21986   test -z "$as_dir" && as_dir=.
21987     for ac_exec_ext in '' $ac_executable_extensions; do
21988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21989     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21991     break 2
21992   fi
21993 done
21994   done
21995 IFS=$as_save_IFS
21996 
21997   ;;
21998 esac
21999 fi
22000 PATCH=$ac_cv_path_PATCH
22001 if test -n "$PATCH"; then
22002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22003 $as_echo "$PATCH" >&6; }
22004 else
22005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22006 $as_echo "no" >&6; }
22007 fi
22008 
22009 
22010   test -n "$PATCH" && break
22011 done
22012 
22013     else
22014       # If it succeeded, then it was overridden by the user. We will use it
22015       # for the tool.
22016 
22017       # First remove it from the list of overridden variables, so we can test
22018       # for unknown variables in the end.
22019       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22020 
22021       # Check if we try to supply an empty value
22022       if test "x$PATCH" = x; then
22023         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
22024 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
22025         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
22026 $as_echo_n "checking for PATCH... " >&6; }
22027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22028 $as_echo "disabled" >&6; }
22029       else
22030         # Check if the provided tool contains a complete path.
22031         tool_specified="$PATCH"
22032         tool_basename="${tool_specified##*/}"
22033         if test "x$tool_basename" = "x$tool_specified"; then
22034           # A command without a complete path is provided, search $PATH.
22035           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
22036 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
22037           # Extract the first word of "$tool_basename", so it can be a program name with args.
22038 set dummy $tool_basename; ac_word=$2
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22040 $as_echo_n "checking for $ac_word... " >&6; }
22041 if ${ac_cv_path_PATCH+:} false; then :
22042   $as_echo_n "(cached) " >&6
22043 else
22044   case $PATCH in
22045   [\\/]* | ?:[\\/]*)
22046   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22047   ;;
22048   *)
22049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22050 for as_dir in $PATH
22051 do
22052   IFS=$as_save_IFS
22053   test -z "$as_dir" && as_dir=.
22054     for ac_exec_ext in '' $ac_executable_extensions; do
22055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22056     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22058     break 2
22059   fi
22060 done
22061   done
22062 IFS=$as_save_IFS
22063 
22064   ;;
22065 esac
22066 fi
22067 PATCH=$ac_cv_path_PATCH
22068 if test -n "$PATCH"; then
22069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22070 $as_echo "$PATCH" >&6; }
22071 else
22072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22073 $as_echo "no" >&6; }
22074 fi
22075 
22076 
22077           if test "x$PATCH" = x; then
22078             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22079           fi
22080         else
22081           # Otherwise we believe it is a complete path. Use it as it is.
22082           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
22083 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
22084           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
22085 $as_echo_n "checking for PATCH... " >&6; }
22086           if test ! -x "$tool_specified"; then
22087             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22088 $as_echo "not found" >&6; }
22089             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
22090           fi
22091           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22092 $as_echo "$tool_specified" >&6; }
22093         fi
22094       fi
22095     fi
22096 
22097   fi
22098 
22099 
22100   # Check if it's GNU time
22101   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
22102   if test "x$IS_GNU_TIME" != x; then
22103     IS_GNU_TIME=yes
22104   else
22105     IS_GNU_TIME=no
22106   fi
22107 
22108 
22109   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
22110 
22111 
22112 
22113   # Publish this variable in the help.
22114 
22115 
22116   if [ -z "${DSYMUTIL+x}" ]; then
22117     # The variable is not set by user, try to locate tool using the code snippet
22118     for ac_prog in dsymutil
22119 do
22120   # Extract the first word of "$ac_prog", so it can be a program name with args.
22121 set dummy $ac_prog; ac_word=$2
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22123 $as_echo_n "checking for $ac_word... " >&6; }
22124 if ${ac_cv_path_DSYMUTIL+:} false; then :
22125   $as_echo_n "(cached) " >&6
22126 else
22127   case $DSYMUTIL in
22128   [\\/]* | ?:[\\/]*)
22129   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22130   ;;
22131   *)
22132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22133 for as_dir in $PATH
22134 do
22135   IFS=$as_save_IFS
22136   test -z "$as_dir" && as_dir=.
22137     for ac_exec_ext in '' $ac_executable_extensions; do
22138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22139     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22141     break 2
22142   fi
22143 done
22144   done
22145 IFS=$as_save_IFS
22146 
22147   ;;
22148 esac
22149 fi
22150 DSYMUTIL=$ac_cv_path_DSYMUTIL
22151 if test -n "$DSYMUTIL"; then
22152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22153 $as_echo "$DSYMUTIL" >&6; }
22154 else
22155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22156 $as_echo "no" >&6; }
22157 fi
22158 
22159 
22160   test -n "$DSYMUTIL" && break
22161 done
22162 
22163   else
22164     # The variable is set, but is it from the command line or the environment?
22165 
22166     # Try to remove the string !DSYMUTIL! from our list.
22167     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
22168     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22169       # If it failed, the variable was not from the command line. Ignore it,
22170       # but warn the user (except for BASH, which is always set by the calling BASH).
22171       if test "xDSYMUTIL" != xBASH; then
22172         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
22173 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
22174       fi
22175       # Try to locate tool using the code snippet
22176       for ac_prog in dsymutil
22177 do
22178   # Extract the first word of "$ac_prog", so it can be a program name with args.
22179 set dummy $ac_prog; ac_word=$2
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22181 $as_echo_n "checking for $ac_word... " >&6; }
22182 if ${ac_cv_path_DSYMUTIL+:} false; then :
22183   $as_echo_n "(cached) " >&6
22184 else
22185   case $DSYMUTIL in
22186   [\\/]* | ?:[\\/]*)
22187   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22188   ;;
22189   *)
22190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22191 for as_dir in $PATH
22192 do
22193   IFS=$as_save_IFS
22194   test -z "$as_dir" && as_dir=.
22195     for ac_exec_ext in '' $ac_executable_extensions; do
22196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22197     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22199     break 2
22200   fi
22201 done
22202   done
22203 IFS=$as_save_IFS
22204 
22205   ;;
22206 esac
22207 fi
22208 DSYMUTIL=$ac_cv_path_DSYMUTIL
22209 if test -n "$DSYMUTIL"; then
22210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22211 $as_echo "$DSYMUTIL" >&6; }
22212 else
22213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22214 $as_echo "no" >&6; }
22215 fi
22216 
22217 
22218   test -n "$DSYMUTIL" && break
22219 done
22220 
22221     else
22222       # If it succeeded, then it was overridden by the user. We will use it
22223       # for the tool.
22224 
22225       # First remove it from the list of overridden variables, so we can test
22226       # for unknown variables in the end.
22227       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22228 
22229       # Check if we try to supply an empty value
22230       if test "x$DSYMUTIL" = x; then
22231         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
22232 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
22233         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22234 $as_echo_n "checking for DSYMUTIL... " >&6; }
22235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22236 $as_echo "disabled" >&6; }
22237       else
22238         # Check if the provided tool contains a complete path.
22239         tool_specified="$DSYMUTIL"
22240         tool_basename="${tool_specified##*/}"
22241         if test "x$tool_basename" = "x$tool_specified"; then
22242           # A command without a complete path is provided, search $PATH.
22243           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
22244 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
22245           # Extract the first word of "$tool_basename", so it can be a program name with args.
22246 set dummy $tool_basename; ac_word=$2
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22248 $as_echo_n "checking for $ac_word... " >&6; }
22249 if ${ac_cv_path_DSYMUTIL+:} false; then :
22250   $as_echo_n "(cached) " >&6
22251 else
22252   case $DSYMUTIL in
22253   [\\/]* | ?:[\\/]*)
22254   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22255   ;;
22256   *)
22257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22258 for as_dir in $PATH
22259 do
22260   IFS=$as_save_IFS
22261   test -z "$as_dir" && as_dir=.
22262     for ac_exec_ext in '' $ac_executable_extensions; do
22263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22264     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22266     break 2
22267   fi
22268 done
22269   done
22270 IFS=$as_save_IFS
22271 
22272   ;;
22273 esac
22274 fi
22275 DSYMUTIL=$ac_cv_path_DSYMUTIL
22276 if test -n "$DSYMUTIL"; then
22277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22278 $as_echo "$DSYMUTIL" >&6; }
22279 else
22280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22281 $as_echo "no" >&6; }
22282 fi
22283 
22284 
22285           if test "x$DSYMUTIL" = x; then
22286             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22287           fi
22288         else
22289           # Otherwise we believe it is a complete path. Use it as it is.
22290           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
22291 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
22292           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22293 $as_echo_n "checking for DSYMUTIL... " >&6; }
22294           if test ! -x "$tool_specified"; then
22295             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22296 $as_echo "not found" >&6; }
22297             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
22298           fi
22299           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22300 $as_echo "$tool_specified" >&6; }
22301         fi
22302       fi
22303     fi
22304 
22305   fi
22306 
22307 
22308 
22309   if test "x$DSYMUTIL" = x; then
22310     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
22311   fi
22312 
22313 
22314 
22315 
22316 
22317   # Publish this variable in the help.
22318 
22319 
22320   if [ -z "${XATTR+x}" ]; then
22321     # The variable is not set by user, try to locate tool using the code snippet
22322     for ac_prog in xattr
22323 do
22324   # Extract the first word of "$ac_prog", so it can be a program name with args.
22325 set dummy $ac_prog; ac_word=$2
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22327 $as_echo_n "checking for $ac_word... " >&6; }
22328 if ${ac_cv_path_XATTR+:} false; then :
22329   $as_echo_n "(cached) " >&6
22330 else
22331   case $XATTR in
22332   [\\/]* | ?:[\\/]*)
22333   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22334   ;;
22335   *)
22336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22337 for as_dir in $PATH
22338 do
22339   IFS=$as_save_IFS
22340   test -z "$as_dir" && as_dir=.
22341     for ac_exec_ext in '' $ac_executable_extensions; do
22342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22343     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22345     break 2
22346   fi
22347 done
22348   done
22349 IFS=$as_save_IFS
22350 
22351   ;;
22352 esac
22353 fi
22354 XATTR=$ac_cv_path_XATTR
22355 if test -n "$XATTR"; then
22356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22357 $as_echo "$XATTR" >&6; }
22358 else
22359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22360 $as_echo "no" >&6; }
22361 fi
22362 
22363 
22364   test -n "$XATTR" && break
22365 done
22366 
22367   else
22368     # The variable is set, but is it from the command line or the environment?
22369 
22370     # Try to remove the string !XATTR! from our list.
22371     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
22372     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22373       # If it failed, the variable was not from the command line. Ignore it,
22374       # but warn the user (except for BASH, which is always set by the calling BASH).
22375       if test "xXATTR" != xBASH; then
22376         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
22377 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
22378       fi
22379       # Try to locate tool using the code snippet
22380       for ac_prog in xattr
22381 do
22382   # Extract the first word of "$ac_prog", so it can be a program name with args.
22383 set dummy $ac_prog; ac_word=$2
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22385 $as_echo_n "checking for $ac_word... " >&6; }
22386 if ${ac_cv_path_XATTR+:} false; then :
22387   $as_echo_n "(cached) " >&6
22388 else
22389   case $XATTR in
22390   [\\/]* | ?:[\\/]*)
22391   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22392   ;;
22393   *)
22394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22395 for as_dir in $PATH
22396 do
22397   IFS=$as_save_IFS
22398   test -z "$as_dir" && as_dir=.
22399     for ac_exec_ext in '' $ac_executable_extensions; do
22400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22401     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22403     break 2
22404   fi
22405 done
22406   done
22407 IFS=$as_save_IFS
22408 
22409   ;;
22410 esac
22411 fi
22412 XATTR=$ac_cv_path_XATTR
22413 if test -n "$XATTR"; then
22414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22415 $as_echo "$XATTR" >&6; }
22416 else
22417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22418 $as_echo "no" >&6; }
22419 fi
22420 
22421 
22422   test -n "$XATTR" && break
22423 done
22424 
22425     else
22426       # If it succeeded, then it was overridden by the user. We will use it
22427       # for the tool.
22428 
22429       # First remove it from the list of overridden variables, so we can test
22430       # for unknown variables in the end.
22431       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22432 
22433       # Check if we try to supply an empty value
22434       if test "x$XATTR" = x; then
22435         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
22436 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
22437         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22438 $as_echo_n "checking for XATTR... " >&6; }
22439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22440 $as_echo "disabled" >&6; }
22441       else
22442         # Check if the provided tool contains a complete path.
22443         tool_specified="$XATTR"
22444         tool_basename="${tool_specified##*/}"
22445         if test "x$tool_basename" = "x$tool_specified"; then
22446           # A command without a complete path is provided, search $PATH.
22447           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
22448 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
22449           # Extract the first word of "$tool_basename", so it can be a program name with args.
22450 set dummy $tool_basename; 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_XATTR+:} false; then :
22454   $as_echo_n "(cached) " >&6
22455 else
22456   case $XATTR in
22457   [\\/]* | ?:[\\/]*)
22458   ac_cv_path_XATTR="$XATTR" # 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_XATTR="$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 XATTR=$ac_cv_path_XATTR
22480 if test -n "$XATTR"; then
22481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22482 $as_echo "$XATTR" >&6; }
22483 else
22484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22485 $as_echo "no" >&6; }
22486 fi
22487 
22488 
22489           if test "x$XATTR" = x; then
22490             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22491           fi
22492         else
22493           # Otherwise we believe it is a complete path. Use it as it is.
22494           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
22495 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
22496           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22497 $as_echo_n "checking for XATTR... " >&6; }
22498           if test ! -x "$tool_specified"; then
22499             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22500 $as_echo "not found" >&6; }
22501             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
22502           fi
22503           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22504 $as_echo "$tool_specified" >&6; }
22505         fi
22506       fi
22507     fi
22508 
22509   fi
22510 
22511 
22512 
22513   if test "x$XATTR" = x; then
22514     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
22515   fi
22516 
22517 
22518 
22519 
22520   # Publish this variable in the help.
22521 
22522 
22523   if [ -z "${CODESIGN+x}" ]; then
22524     # The variable is not set by user, try to locate tool using the code snippet
22525     for ac_prog in codesign
22526 do
22527   # Extract the first word of "$ac_prog", so it can be a program name with args.
22528 set dummy $ac_prog; ac_word=$2
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22530 $as_echo_n "checking for $ac_word... " >&6; }
22531 if ${ac_cv_path_CODESIGN+:} false; then :
22532   $as_echo_n "(cached) " >&6
22533 else
22534   case $CODESIGN in
22535   [\\/]* | ?:[\\/]*)
22536   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22537   ;;
22538   *)
22539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22540 for as_dir in $PATH
22541 do
22542   IFS=$as_save_IFS
22543   test -z "$as_dir" && as_dir=.
22544     for ac_exec_ext in '' $ac_executable_extensions; do
22545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22546     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22548     break 2
22549   fi
22550 done
22551   done
22552 IFS=$as_save_IFS
22553 
22554   ;;
22555 esac
22556 fi
22557 CODESIGN=$ac_cv_path_CODESIGN
22558 if test -n "$CODESIGN"; then
22559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22560 $as_echo "$CODESIGN" >&6; }
22561 else
22562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22563 $as_echo "no" >&6; }
22564 fi
22565 
22566 
22567   test -n "$CODESIGN" && break
22568 done
22569 
22570   else
22571     # The variable is set, but is it from the command line or the environment?
22572 
22573     # Try to remove the string !CODESIGN! from our list.
22574     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
22575     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22576       # If it failed, the variable was not from the command line. Ignore it,
22577       # but warn the user (except for BASH, which is always set by the calling BASH).
22578       if test "xCODESIGN" != xBASH; then
22579         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
22580 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
22581       fi
22582       # Try to locate tool using the code snippet
22583       for ac_prog in codesign
22584 do
22585   # Extract the first word of "$ac_prog", so it can be a program name with args.
22586 set dummy $ac_prog; ac_word=$2
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22588 $as_echo_n "checking for $ac_word... " >&6; }
22589 if ${ac_cv_path_CODESIGN+:} false; then :
22590   $as_echo_n "(cached) " >&6
22591 else
22592   case $CODESIGN in
22593   [\\/]* | ?:[\\/]*)
22594   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22595   ;;
22596   *)
22597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22598 for as_dir in $PATH
22599 do
22600   IFS=$as_save_IFS
22601   test -z "$as_dir" && as_dir=.
22602     for ac_exec_ext in '' $ac_executable_extensions; do
22603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22604     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22606     break 2
22607   fi
22608 done
22609   done
22610 IFS=$as_save_IFS
22611 
22612   ;;
22613 esac
22614 fi
22615 CODESIGN=$ac_cv_path_CODESIGN
22616 if test -n "$CODESIGN"; then
22617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22618 $as_echo "$CODESIGN" >&6; }
22619 else
22620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22621 $as_echo "no" >&6; }
22622 fi
22623 
22624 
22625   test -n "$CODESIGN" && break
22626 done
22627 
22628     else
22629       # If it succeeded, then it was overridden by the user. We will use it
22630       # for the tool.
22631 
22632       # First remove it from the list of overridden variables, so we can test
22633       # for unknown variables in the end.
22634       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22635 
22636       # Check if we try to supply an empty value
22637       if test "x$CODESIGN" = x; then
22638         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
22639 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
22640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22641 $as_echo_n "checking for CODESIGN... " >&6; }
22642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22643 $as_echo "disabled" >&6; }
22644       else
22645         # Check if the provided tool contains a complete path.
22646         tool_specified="$CODESIGN"
22647         tool_basename="${tool_specified##*/}"
22648         if test "x$tool_basename" = "x$tool_specified"; then
22649           # A command without a complete path is provided, search $PATH.
22650           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
22651 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
22652           # Extract the first word of "$tool_basename", so it can be a program name with args.
22653 set dummy $tool_basename; ac_word=$2
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22655 $as_echo_n "checking for $ac_word... " >&6; }
22656 if ${ac_cv_path_CODESIGN+:} false; then :
22657   $as_echo_n "(cached) " >&6
22658 else
22659   case $CODESIGN in
22660   [\\/]* | ?:[\\/]*)
22661   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22662   ;;
22663   *)
22664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22665 for as_dir in $PATH
22666 do
22667   IFS=$as_save_IFS
22668   test -z "$as_dir" && as_dir=.
22669     for ac_exec_ext in '' $ac_executable_extensions; do
22670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22671     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22673     break 2
22674   fi
22675 done
22676   done
22677 IFS=$as_save_IFS
22678 
22679   ;;
22680 esac
22681 fi
22682 CODESIGN=$ac_cv_path_CODESIGN
22683 if test -n "$CODESIGN"; then
22684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22685 $as_echo "$CODESIGN" >&6; }
22686 else
22687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22688 $as_echo "no" >&6; }
22689 fi
22690 
22691 
22692           if test "x$CODESIGN" = x; then
22693             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22694           fi
22695         else
22696           # Otherwise we believe it is a complete path. Use it as it is.
22697           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
22698 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
22699           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22700 $as_echo_n "checking for CODESIGN... " >&6; }
22701           if test ! -x "$tool_specified"; then
22702             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22703 $as_echo "not found" >&6; }
22704             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
22705           fi
22706           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22707 $as_echo "$tool_specified" >&6; }
22708         fi
22709       fi
22710     fi
22711 
22712   fi
22713 
22714 
22715     if test "x$CODESIGN" != "x"; then
22716       # Verify that the openjdk_codesign certificate is present
22717       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
22718 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
22719       rm -f codesign-testfile
22720       touch codesign-testfile
22721       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
22722       rm -f codesign-testfile
22723       if test "x$CODESIGN" = x; then
22724         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22725 $as_echo "no" >&6; }
22726       else
22727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22728 $as_echo "yes" >&6; }
22729       fi
22730     fi
22731 
22732 
22733 
22734   # Publish this variable in the help.
22735 
22736 
22737   if [ -z "${SETFILE+x}" ]; then
22738     # The variable is not set by user, try to locate tool using the code snippet
22739     for ac_prog in SetFile
22740 do
22741   # Extract the first word of "$ac_prog", so it can be a program name with args.
22742 set dummy $ac_prog; ac_word=$2
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22744 $as_echo_n "checking for $ac_word... " >&6; }
22745 if ${ac_cv_path_SETFILE+:} false; then :
22746   $as_echo_n "(cached) " >&6
22747 else
22748   case $SETFILE in
22749   [\\/]* | ?:[\\/]*)
22750   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22751   ;;
22752   *)
22753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22754 for as_dir in $PATH
22755 do
22756   IFS=$as_save_IFS
22757   test -z "$as_dir" && as_dir=.
22758     for ac_exec_ext in '' $ac_executable_extensions; do
22759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22760     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22762     break 2
22763   fi
22764 done
22765   done
22766 IFS=$as_save_IFS
22767 
22768   ;;
22769 esac
22770 fi
22771 SETFILE=$ac_cv_path_SETFILE
22772 if test -n "$SETFILE"; then
22773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22774 $as_echo "$SETFILE" >&6; }
22775 else
22776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22777 $as_echo "no" >&6; }
22778 fi
22779 
22780 
22781   test -n "$SETFILE" && break
22782 done
22783 
22784   else
22785     # The variable is set, but is it from the command line or the environment?
22786 
22787     # Try to remove the string !SETFILE! from our list.
22788     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
22789     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22790       # If it failed, the variable was not from the command line. Ignore it,
22791       # but warn the user (except for BASH, which is always set by the calling BASH).
22792       if test "xSETFILE" != xBASH; then
22793         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
22794 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
22795       fi
22796       # Try to locate tool using the code snippet
22797       for ac_prog in SetFile
22798 do
22799   # Extract the first word of "$ac_prog", so it can be a program name with args.
22800 set dummy $ac_prog; ac_word=$2
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22802 $as_echo_n "checking for $ac_word... " >&6; }
22803 if ${ac_cv_path_SETFILE+:} false; then :
22804   $as_echo_n "(cached) " >&6
22805 else
22806   case $SETFILE in
22807   [\\/]* | ?:[\\/]*)
22808   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22809   ;;
22810   *)
22811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22812 for as_dir in $PATH
22813 do
22814   IFS=$as_save_IFS
22815   test -z "$as_dir" && as_dir=.
22816     for ac_exec_ext in '' $ac_executable_extensions; do
22817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22818     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22820     break 2
22821   fi
22822 done
22823   done
22824 IFS=$as_save_IFS
22825 
22826   ;;
22827 esac
22828 fi
22829 SETFILE=$ac_cv_path_SETFILE
22830 if test -n "$SETFILE"; then
22831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22832 $as_echo "$SETFILE" >&6; }
22833 else
22834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22835 $as_echo "no" >&6; }
22836 fi
22837 
22838 
22839   test -n "$SETFILE" && break
22840 done
22841 
22842     else
22843       # If it succeeded, then it was overridden by the user. We will use it
22844       # for the tool.
22845 
22846       # First remove it from the list of overridden variables, so we can test
22847       # for unknown variables in the end.
22848       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22849 
22850       # Check if we try to supply an empty value
22851       if test "x$SETFILE" = x; then
22852         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
22853 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
22854         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22855 $as_echo_n "checking for SETFILE... " >&6; }
22856         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22857 $as_echo "disabled" >&6; }
22858       else
22859         # Check if the provided tool contains a complete path.
22860         tool_specified="$SETFILE"
22861         tool_basename="${tool_specified##*/}"
22862         if test "x$tool_basename" = "x$tool_specified"; then
22863           # A command without a complete path is provided, search $PATH.
22864           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
22865 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
22866           # Extract the first word of "$tool_basename", so it can be a program name with args.
22867 set dummy $tool_basename; ac_word=$2
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22869 $as_echo_n "checking for $ac_word... " >&6; }
22870 if ${ac_cv_path_SETFILE+:} false; then :
22871   $as_echo_n "(cached) " >&6
22872 else
22873   case $SETFILE in
22874   [\\/]* | ?:[\\/]*)
22875   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22876   ;;
22877   *)
22878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22879 for as_dir in $PATH
22880 do
22881   IFS=$as_save_IFS
22882   test -z "$as_dir" && as_dir=.
22883     for ac_exec_ext in '' $ac_executable_extensions; do
22884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22885     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22887     break 2
22888   fi
22889 done
22890   done
22891 IFS=$as_save_IFS
22892 
22893   ;;
22894 esac
22895 fi
22896 SETFILE=$ac_cv_path_SETFILE
22897 if test -n "$SETFILE"; then
22898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22899 $as_echo "$SETFILE" >&6; }
22900 else
22901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22902 $as_echo "no" >&6; }
22903 fi
22904 
22905 
22906           if test "x$SETFILE" = x; then
22907             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22908           fi
22909         else
22910           # Otherwise we believe it is a complete path. Use it as it is.
22911           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
22912 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
22913           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22914 $as_echo_n "checking for SETFILE... " >&6; }
22915           if test ! -x "$tool_specified"; then
22916             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22917 $as_echo "not found" >&6; }
22918             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
22919           fi
22920           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22921 $as_echo "$tool_specified" >&6; }
22922         fi
22923       fi
22924     fi
22925 
22926   fi
22927 
22928 
22929 
22930   if test "x$SETFILE" = x; then
22931     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
22932   fi
22933 
22934 
22935   fi
22936 
22937 
22938   # Test if bash supports pipefail.
22939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
22940 $as_echo_n "checking if bash supports pipefail... " >&6; }
22941   if ${BASH} -c 'set -o pipefail'; then
22942     BASH_ARGS="$BASH_ARGS -o pipefail"
22943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22944 $as_echo "yes" >&6; }
22945   else
22946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22947 $as_echo "no" >&6; }
22948   fi
22949 
22950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
22951 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
22952   if ${BASH} -e -c 'true'; then
22953     BASH_ARGS="$BASH_ARGS -e"
22954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22955 $as_echo "yes" >&6; }
22956   else
22957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22958 $as_echo "no" >&6; }
22959   fi
22960 
22961 
22962 
22963 
22964 # Check if pkg-config is available.
22965 
22966 
22967 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22968         if test -n "$ac_tool_prefix"; then
22969   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22970 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22972 $as_echo_n "checking for $ac_word... " >&6; }
22973 if ${ac_cv_path_PKG_CONFIG+:} false; then :
22974   $as_echo_n "(cached) " >&6
22975 else
22976   case $PKG_CONFIG in
22977   [\\/]* | ?:[\\/]*)
22978   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22979   ;;
22980   *)
22981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22982 for as_dir in $PATH
22983 do
22984   IFS=$as_save_IFS
22985   test -z "$as_dir" && as_dir=.
22986     for ac_exec_ext in '' $ac_executable_extensions; do
22987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22988     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22990     break 2
22991   fi
22992 done
22993   done
22994 IFS=$as_save_IFS
22995 
22996   ;;
22997 esac
22998 fi
22999 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23000 if test -n "$PKG_CONFIG"; then
23001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23002 $as_echo "$PKG_CONFIG" >&6; }
23003 else
23004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23005 $as_echo "no" >&6; }
23006 fi
23007 
23008 
23009 fi
23010 if test -z "$ac_cv_path_PKG_CONFIG"; then
23011   ac_pt_PKG_CONFIG=$PKG_CONFIG
23012   # Extract the first word of "pkg-config", so it can be a program name with args.
23013 set dummy pkg-config; ac_word=$2
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23015 $as_echo_n "checking for $ac_word... " >&6; }
23016 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
23017   $as_echo_n "(cached) " >&6
23018 else
23019   case $ac_pt_PKG_CONFIG in
23020   [\\/]* | ?:[\\/]*)
23021   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23022   ;;
23023   *)
23024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23025 for as_dir in $PATH
23026 do
23027   IFS=$as_save_IFS
23028   test -z "$as_dir" && as_dir=.
23029     for ac_exec_ext in '' $ac_executable_extensions; do
23030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23031     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23033     break 2
23034   fi
23035 done
23036   done
23037 IFS=$as_save_IFS
23038 
23039   ;;
23040 esac
23041 fi
23042 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23043 if test -n "$ac_pt_PKG_CONFIG"; then
23044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23045 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23046 else
23047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23048 $as_echo "no" >&6; }
23049 fi
23050 
23051   if test "x$ac_pt_PKG_CONFIG" = x; then
23052     PKG_CONFIG=""
23053   else
23054     case $cross_compiling:$ac_tool_warned in
23055 yes:)
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23058 ac_tool_warned=yes ;;
23059 esac
23060     PKG_CONFIG=$ac_pt_PKG_CONFIG
23061   fi
23062 else
23063   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23064 fi
23065 
23066 fi
23067 if test -n "$PKG_CONFIG"; then
23068         _pkg_min_version=0.9.0
23069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
23070 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23071         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23072                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23073 $as_echo "yes" >&6; }
23074         else
23075                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23076 $as_echo "no" >&6; }
23077                 PKG_CONFIG=""
23078         fi
23079 
23080 fi
23081 
23082 # After basic tools have been setup, we can check build os specific details.
23083 
23084   ###############################################################################
23085 
23086   # Note that this is the build platform OS version!
23087 
23088   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
23089   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
23090   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
23091   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
23092 
23093 
23094 
23095 
23096 
23097 # Misc basic settings
23098 
23099 
23100 # Check whether --with-default-make-target was given.
23101 if test "${with_default_make_target+set}" = set; then :
23102   withval=$with_default_make_target;
23103 fi
23104 
23105   if test "x$with_default_make_target" = "x" \
23106       || test "x$with_default_make_target" = "xyes"; then
23107     DEFAULT_MAKE_TARGET="exploded-image"
23108   elif test "x$with_default_make_target" = "xno"; then
23109     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
23110   else
23111     DEFAULT_MAKE_TARGET="$with_default_make_target"
23112   fi
23113 
23114 
23115 
23116 
23117 ###############################################################################
23118 #
23119 # Determine OpenJDK variants, options and version numbers.
23120 #
23121 ###############################################################################
23122 
23123 # We need build & target for this.
23124 
23125 
23126   ###############################################################################
23127   #
23128   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
23129   # We always build headless support.
23130   #
23131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
23132 $as_echo_n "checking headful support... " >&6; }
23133   # Check whether --enable-headful was given.
23134 if test "${enable_headful+set}" = set; then :
23135   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
23136 else
23137   SUPPORT_HEADFUL=yes
23138 fi
23139 
23140 
23141   SUPPORT_HEADLESS=yes
23142   BUILD_HEADLESS="BUILD_HEADLESS:=true"
23143 
23144   if test "x$SUPPORT_HEADFUL" = xyes; then
23145     # We are building both headful and headless.
23146     headful_msg="include support for both headful and headless"
23147   fi
23148 
23149   if test "x$SUPPORT_HEADFUL" = xno; then
23150     # Thus we are building headless only.
23151     BUILD_HEADLESS="BUILD_HEADLESS:=true"
23152     headful_msg="headless only"
23153   fi
23154 
23155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
23156 $as_echo "$headful_msg" >&6; }
23157 
23158 
23159 
23160 
23161 
23162   # Control wether Hotspot runs Queens test after build.
23163   # Check whether --enable-hotspot-test-in-build was given.
23164 if test "${enable_hotspot_test_in_build+set}" = set; then :
23165   enableval=$enable_hotspot_test_in_build;
23166 else
23167   enable_hotspot_test_in_build=no
23168 fi
23169 
23170   if test "x$enable_hotspot_test_in_build" = "xyes"; then
23171     TEST_IN_BUILD=true
23172   else
23173     TEST_IN_BUILD=false
23174   fi
23175 
23176 
23177   ###############################################################################
23178   #
23179   # Choose cacerts source file
23180   #
23181 
23182 # Check whether --with-cacerts-file was given.
23183 if test "${with_cacerts_file+set}" = set; then :
23184   withval=$with_cacerts_file;
23185 fi
23186 
23187   if test "x$with_cacerts_file" != x; then
23188     CACERTS_FILE=$with_cacerts_file
23189   fi
23190 
23191 
23192   ###############################################################################
23193   #
23194   # Enable or disable unlimited crypto
23195   #
23196   # Check whether --enable-unlimited-crypto was given.
23197 if test "${enable_unlimited_crypto+set}" = set; then :
23198   enableval=$enable_unlimited_crypto;
23199 else
23200   enable_unlimited_crypto=no
23201 fi
23202 
23203   if test "x$enable_unlimited_crypto" = "xyes"; then
23204     UNLIMITED_CRYPTO=true
23205   else
23206     UNLIMITED_CRYPTO=false
23207   fi
23208 
23209 
23210   ###############################################################################
23211   #
23212   # Compress jars
23213   #
23214   COMPRESS_JARS=false
23215 
23216 
23217 
23218   # Setup default copyright year. Mostly overridden when building close to a new year.
23219 
23220 # Check whether --with-copyright-year was given.
23221 if test "${with_copyright_year+set}" = set; then :
23222   withval=$with_copyright_year;
23223 fi
23224 
23225   if test "x$with_copyright_year" = xyes; then
23226     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
23227   elif test "x$with_copyright_year" != x; then
23228     COPYRIGHT_YEAR="$with_copyright_year"
23229   else
23230     COPYRIGHT_YEAR=`date +'%Y'`
23231   fi
23232 
23233 
23234 
23235   # Warn user that old version arguments are deprecated.
23236 
23237 
23238 # Check whether --with-milestone was given.
23239 if test "${with_milestone+set}" = set; then :
23240   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
23241 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
23242 fi
23243 
23244 
23245 
23246 
23247 # Check whether --with-update-version was given.
23248 if test "${with_update_version+set}" = set; then :
23249   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
23250 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
23251 fi
23252 
23253 
23254 
23255 
23256 # Check whether --with-user-release-suffix was given.
23257 if test "${with_user_release_suffix+set}" = set; then :
23258   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
23259 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
23260 fi
23261 
23262 
23263 
23264 
23265 # Check whether --with-build-number was given.
23266 if test "${with_build_number+set}" = set; then :
23267   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
23268 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
23269 fi
23270 
23271 
23272 
23273   # Source the version numbers file
23274   . $AUTOCONF_DIR/version-numbers
23275 
23276   # Some non-version number information is set in that file
23277 
23278 
23279 
23280 
23281 
23282 
23283 
23284 
23285   # Override version from arguments
23286 
23287   # If --with-version-string is set, process it first. It is possible to
23288   # override parts with more specific flags, since these are processed later.
23289 
23290 # Check whether --with-version-string was given.
23291 if test "${with_version_string+set}" = set; then :
23292   withval=$with_version_string;
23293 fi
23294 
23295   if test "x$with_version_string" = xyes; then
23296     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
23297   elif test "x$with_version_string" != x; then
23298     # Additional [] needed to keep m4 from mangling shell constructs.
23299     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
23300       VERSION_MAJOR=${BASH_REMATCH[1]}
23301       VERSION_MINOR=${BASH_REMATCH[3]}
23302       VERSION_SECURITY=${BASH_REMATCH[5]}
23303       VERSION_PATCH=${BASH_REMATCH[7]}
23304       VERSION_PRE=${BASH_REMATCH[9]}
23305       version_plus_separator=${BASH_REMATCH[11]}
23306       VERSION_BUILD=${BASH_REMATCH[12]}
23307       VERSION_OPT=${BASH_REMATCH[14]}
23308       # Unspecified numerical fields are interpreted as 0.
23309       if test "x$VERSION_MINOR" = x; then
23310         VERSION_MINOR=0
23311       fi
23312       if test "x$VERSION_SECURITY" = x; then
23313         VERSION_SECURITY=0
23314       fi
23315       if test "x$VERSION_PATCH" = x; then
23316         VERSION_PATCH=0
23317       fi
23318       if test "x$version_plus_separator" != x \
23319           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
23320         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
23321       fi
23322       # Stop the version part process from setting default values.
23323       # We still allow them to explicitely override though.
23324       NO_DEFAULT_VERSION_PARTS=true
23325     else
23326       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
23327     fi
23328   fi
23329 
23330 
23331 # Check whether --with-version-pre was given.
23332 if test "${with_version_pre+set}" = set; then :
23333   withval=$with_version_pre; with_version_pre_present=true
23334 else
23335   with_version_pre_present=false
23336 fi
23337 
23338 
23339   if test "x$with_version_pre_present" = xtrue; then
23340     if test "x$with_version_pre" = xyes; then
23341       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
23342     elif test "x$with_version_pre" = xno; then
23343       # Interpret --without-* as empty string instead of the literal "no"
23344       VERSION_PRE=
23345     else
23346       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
23347        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
23348       if test "x$VERSION_PRE" != "x$with_version_pre"; then
23349         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
23350 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
23351       fi
23352     fi
23353   else
23354     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23355       # Default is to use "internal" as pre
23356       VERSION_PRE="internal"
23357     fi
23358   fi
23359 
23360 
23361 # Check whether --with-version-opt was given.
23362 if test "${with_version_opt+set}" = set; then :
23363   withval=$with_version_opt; with_version_opt_present=true
23364 else
23365   with_version_opt_present=false
23366 fi
23367 
23368 
23369   if test "x$with_version_opt_present" = xtrue; then
23370     if test "x$with_version_opt" = xyes; then
23371       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
23372     elif test "x$with_version_opt" = xno; then
23373       # Interpret --without-* as empty string instead of the literal "no"
23374       VERSION_OPT=
23375     else
23376       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
23377        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
23378       if test "x$VERSION_OPT" != "x$with_version_opt"; then
23379         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
23380 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
23381       fi
23382     fi
23383   else
23384     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23385       # Default is to calculate a string like this <timestamp>.<username>.<base dir name>
23386       timestamp=`$DATE '+%Y-%m-%d-%H%M%S'`
23387       # Outer [ ] to quote m4.
23388        username=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
23389        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
23390       VERSION_OPT="$timestamp.$username.$basedirname"
23391     fi
23392   fi
23393 
23394 
23395 # Check whether --with-version-build was given.
23396 if test "${with_version_build+set}" = set; then :
23397   withval=$with_version_build; with_version_build_present=true
23398 else
23399   with_version_build_present=false
23400 fi
23401 
23402 
23403   if test "x$with_version_build_present" = xtrue; then
23404     if test "x$with_version_build" = xyes; then
23405       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
23406     elif test "x$with_version_build" = xno; then
23407       # Interpret --without-* as empty string instead of the literal "no"
23408       VERSION_BUILD=
23409     elif test "x$with_version_build" = x; then
23410       VERSION_BUILD=
23411     else
23412 
23413   # Additional [] needed to keep m4 from mangling shell constructs.
23414   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23415     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
23416   fi
23417   # Extract the version number without leading zeros.
23418   cleaned_value=${BASH_REMATCH[1]}
23419   if test "x$cleaned_value" = x; then
23420     # Special case for zero
23421     cleaned_value=${BASH_REMATCH[2]}
23422   fi
23423 
23424   if test $cleaned_value -gt 255; then
23425     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
23426   fi
23427   if test "x$cleaned_value" != "x$with_version_build"; then
23428     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
23429 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
23430   fi
23431   VERSION_BUILD=$cleaned_value
23432 
23433     fi
23434   else
23435     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23436       # Default is to not have a build number.
23437       VERSION_BUILD=""
23438       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
23439       VERSION_BUILD=0
23440     fi
23441   fi
23442 
23443 
23444 # Check whether --with-version-major was given.
23445 if test "${with_version_major+set}" = set; then :
23446   withval=$with_version_major; with_version_major_present=true
23447 else
23448   with_version_major_present=false
23449 fi
23450 
23451 
23452   if test "x$with_version_major_present" = xtrue; then
23453     if test "x$with_version_major" = xyes; then
23454       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
23455     else
23456 
23457   # Additional [] needed to keep m4 from mangling shell constructs.
23458   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23459     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
23460   fi
23461   # Extract the version number without leading zeros.
23462   cleaned_value=${BASH_REMATCH[1]}
23463   if test "x$cleaned_value" = x; then
23464     # Special case for zero
23465     cleaned_value=${BASH_REMATCH[2]}
23466   fi
23467 
23468   if test $cleaned_value -gt 255; then
23469     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
23470   fi
23471   if test "x$cleaned_value" != "x$with_version_major"; then
23472     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
23473 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
23474   fi
23475   VERSION_MAJOR=$cleaned_value
23476 
23477     fi
23478   else
23479     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23480       # Default is to get value from version-numbers
23481       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
23482     fi
23483   fi
23484 
23485 
23486 # Check whether --with-version-minor was given.
23487 if test "${with_version_minor+set}" = set; then :
23488   withval=$with_version_minor; with_version_minor_present=true
23489 else
23490   with_version_minor_present=false
23491 fi
23492 
23493 
23494   if test "x$with_version_minor_present" = xtrue; then
23495     if test "x$with_version_minor" = xyes; then
23496       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
23497     elif test "x$with_version_minor" = xno; then
23498       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
23499       VERSION_MINOR=0
23500     elif test "x$with_version_minor" = x; then
23501       VERSION_MINOR=0
23502     else
23503 
23504   # Additional [] needed to keep m4 from mangling shell constructs.
23505   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23506     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
23507   fi
23508   # Extract the version number without leading zeros.
23509   cleaned_value=${BASH_REMATCH[1]}
23510   if test "x$cleaned_value" = x; then
23511     # Special case for zero
23512     cleaned_value=${BASH_REMATCH[2]}
23513   fi
23514 
23515   if test $cleaned_value -gt 255; then
23516     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
23517   fi
23518   if test "x$cleaned_value" != "x$with_version_minor"; then
23519     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
23520 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
23521   fi
23522   VERSION_MINOR=$cleaned_value
23523 
23524     fi
23525   else
23526     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23527       # Default is 0, if unspecified
23528       VERSION_MINOR=0
23529     fi
23530   fi
23531 
23532 
23533 # Check whether --with-version-security was given.
23534 if test "${with_version_security+set}" = set; then :
23535   withval=$with_version_security; with_version_security_present=true
23536 else
23537   with_version_security_present=false
23538 fi
23539 
23540 
23541   if test "x$with_version_security_present" = xtrue; then
23542     if test "x$with_version_security" = xyes; then
23543       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
23544     elif test "x$with_version_security" = xno; then
23545       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
23546       VERSION_SECURITY=0
23547     elif test "x$with_version_security" = x; then
23548       VERSION_SECURITY=0
23549     else
23550 
23551   # Additional [] needed to keep m4 from mangling shell constructs.
23552   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23553     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
23554   fi
23555   # Extract the version number without leading zeros.
23556   cleaned_value=${BASH_REMATCH[1]}
23557   if test "x$cleaned_value" = x; then
23558     # Special case for zero
23559     cleaned_value=${BASH_REMATCH[2]}
23560   fi
23561 
23562   if test $cleaned_value -gt 255; then
23563     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
23564   fi
23565   if test "x$cleaned_value" != "x$with_version_security"; then
23566     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
23567 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
23568   fi
23569   VERSION_SECURITY=$cleaned_value
23570 
23571     fi
23572   else
23573     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23574       # Default is 0, if unspecified
23575       VERSION_SECURITY=0
23576     fi
23577   fi
23578 
23579 
23580 # Check whether --with-version-patch was given.
23581 if test "${with_version_patch+set}" = set; then :
23582   withval=$with_version_patch; with_version_patch_present=true
23583 else
23584   with_version_patch_present=false
23585 fi
23586 
23587 
23588   if test "x$with_version_patch_present" = xtrue; then
23589     if test "x$with_version_patch" = xyes; then
23590       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
23591     elif test "x$with_version_patch" = xno; then
23592       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
23593       VERSION_PATCH=0
23594     elif test "x$with_version_patch" = x; then
23595       VERSION_PATCH=0
23596     else
23597 
23598   # Additional [] needed to keep m4 from mangling shell constructs.
23599   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23600     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
23601   fi
23602   # Extract the version number without leading zeros.
23603   cleaned_value=${BASH_REMATCH[1]}
23604   if test "x$cleaned_value" = x; then
23605     # Special case for zero
23606     cleaned_value=${BASH_REMATCH[2]}
23607   fi
23608 
23609   if test $cleaned_value -gt 255; then
23610     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
23611   fi
23612   if test "x$cleaned_value" != "x$with_version_patch"; then
23613     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
23614 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
23615   fi
23616   VERSION_PATCH=$cleaned_value
23617 
23618     fi
23619   else
23620     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23621       # Default is 0, if unspecified
23622       VERSION_PATCH=0
23623     fi
23624   fi
23625 
23626   # Calculate derived version properties
23627 
23628   # Set VERSION_IS_GA based on if VERSION_PRE has a value
23629   if test "x$VERSION_PRE" = x; then
23630     VERSION_IS_GA=true
23631   else
23632     VERSION_IS_GA=false
23633   fi
23634 
23635   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
23636   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
23637 
23638   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
23639   # Strip trailing zeroes from stripped_version_number
23640   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
23641   VERSION_NUMBER=$stripped_version_number
23642 
23643   # The complete version string, with additional build information
23644   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
23645     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
23646   else
23647     # If either build or opt is set, we need a + separator
23648     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
23649   fi
23650 
23651   # The short version string, just VERSION_NUMBER and PRE, if present.
23652   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
23653 
23654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
23655 $as_echo_n "checking for version string... " >&6; }
23656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
23657 $as_echo "$VERSION_STRING" >&6; }
23658 
23659 
23660 
23661 
23662 
23663 
23664 
23665 
23666 
23667 
23668 
23669 
23670 
23671 
23672 
23673 ###############################################################################
23674 #
23675 # Setup BootJDK, used to bootstrap the build.
23676 #
23677 ###############################################################################
23678 
23679 
23680   BOOT_JDK_FOUND=no
23681 
23682 # Check whether --with-boot-jdk was given.
23683 if test "${with_boot_jdk+set}" = set; then :
23684   withval=$with_boot_jdk;
23685 fi
23686 
23687 
23688   # We look for the Boot JDK through various means, going from more certain to
23689   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
23690   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
23691   # must check if this is indeed valid; otherwise we'll continue looking.
23692 
23693   # Test: Is bootjdk explicitely set by command line arguments?
23694 
23695   if test "x$BOOT_JDK_FOUND" = xno; then
23696     # Now execute the test
23697 
23698   if test "x$with_boot_jdk" != x; then
23699     BOOT_JDK=$with_boot_jdk
23700     BOOT_JDK_FOUND=maybe
23701     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
23702 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
23703   fi
23704 
23705 
23706     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23707     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23708       # Do we have a bin/java?
23709       if test ! -x "$BOOT_JDK/bin/java"; then
23710         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23711 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23712         BOOT_JDK_FOUND=no
23713       else
23714         # Do we have a bin/javac?
23715         if test ! -x "$BOOT_JDK/bin/javac"; then
23716           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23717 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23718           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23719 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23720           BOOT_JDK_FOUND=no
23721         else
23722           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23723           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23724 
23725           # Extra M4 quote needed to protect [] in grep expression.
23726           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
23727           if test "x$FOUND_CORRECT_VERSION" = x; then
23728             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23729 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23730             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23731 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23732             BOOT_JDK_FOUND=no
23733           else
23734             # We're done! :-)
23735             BOOT_JDK_FOUND=yes
23736 
23737   # Only process if variable expands to non-empty
23738 
23739   if test "x$BOOT_JDK" != x; then
23740     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23741 
23742   # Input might be given as Windows format, start by converting to
23743   # unix format.
23744   path="$BOOT_JDK"
23745   new_path=`$CYGPATH -u "$path"`
23746 
23747   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23748   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23749   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23750   # "foo.exe" is OK but "foo" is an error.
23751   #
23752   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23753   # It is also a way to make sure we got the proper file name for the real test later on.
23754   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23755   if test "x$test_shortpath" = x; then
23756     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23757 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23758     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23759   fi
23760 
23761   # Call helper function which possibly converts this using DOS-style short mode.
23762   # If so, the updated path is stored in $new_path.
23763 
23764   input_path="$new_path"
23765   # Check if we need to convert this using DOS-style short mode. If the path
23766   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23767   # take no chances and rewrite it.
23768   # Note: m4 eats our [], so we need to use [ and ] instead.
23769   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23770   if test "x$has_forbidden_chars" != x; then
23771     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23772     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23773     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23774     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23775       # Going to short mode and back again did indeed matter. Since short mode is
23776       # case insensitive, let's make it lowercase to improve readability.
23777       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23778       # Now convert it back to Unix-style (cygpath)
23779       input_path=`$CYGPATH -u "$shortmode_path"`
23780       new_path="$input_path"
23781     fi
23782   fi
23783 
23784   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23785   if test "x$test_cygdrive_prefix" = x; then
23786     # As a simple fix, exclude /usr/bin since it's not a real path.
23787     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23788       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23789       # a path prefixed by /cygdrive for fixpath to work.
23790       new_path="$CYGWIN_ROOT_PATH$input_path"
23791     fi
23792   fi
23793 
23794 
23795   if test "x$path" != "x$new_path"; then
23796     BOOT_JDK="$new_path"
23797     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23798 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23799   fi
23800 
23801     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23802 
23803   path="$BOOT_JDK"
23804   has_colon=`$ECHO $path | $GREP ^.:`
23805   new_path="$path"
23806   if test "x$has_colon" = x; then
23807     # Not in mixed or Windows style, start by that.
23808     new_path=`cmd //c echo $path`
23809   fi
23810 
23811 
23812   input_path="$new_path"
23813   # Check if we need to convert this using DOS-style short mode. If the path
23814   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23815   # take no chances and rewrite it.
23816   # Note: m4 eats our [], so we need to use [ and ] instead.
23817   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23818   if test "x$has_forbidden_chars" != x; then
23819     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23820     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23821   fi
23822 
23823 
23824   windows_path="$new_path"
23825   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23826     unix_path=`$CYGPATH -u "$windows_path"`
23827     new_path="$unix_path"
23828   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23829     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23830     new_path="$unix_path"
23831   fi
23832 
23833   if test "x$path" != "x$new_path"; then
23834     BOOT_JDK="$new_path"
23835     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23836 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23837   fi
23838 
23839   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23840   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23841 
23842     else
23843       # We're on a unix platform. Hooray! :)
23844       path="$BOOT_JDK"
23845       has_space=`$ECHO "$path" | $GREP " "`
23846       if test "x$has_space" != x; then
23847         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23848 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23849         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23850       fi
23851 
23852       # Use eval to expand a potential ~
23853       eval path="$path"
23854       if test ! -f "$path" && test ! -d "$path"; then
23855         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23856       fi
23857 
23858       if test -d "$path"; then
23859         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23860       else
23861         dir="`$DIRNAME "$path"`"
23862         base="`$BASENAME "$path"`"
23863         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
23864       fi
23865     fi
23866   fi
23867 
23868             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23869 $as_echo_n "checking for Boot JDK... " >&6; }
23870             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23871 $as_echo "$BOOT_JDK" >&6; }
23872             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23873 $as_echo_n "checking Boot JDK version... " >&6; }
23874             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23875             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23876 $as_echo "$BOOT_JDK_VERSION" >&6; }
23877           fi # end check jdk version
23878         fi # end check javac
23879       fi # end check java
23880     fi # end check boot jdk found
23881   fi
23882 
23883   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
23884     # Having specified an argument which is incorrect will produce an instant failure;
23885     # we should not go on looking
23886     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
23887   fi
23888 
23889   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
23890 
23891   if test "x$BOOT_JDK_FOUND" = xno; then
23892     # Now execute the test
23893 
23894   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
23895     # First check at user selected default
23896 
23897   if test "x$BOOT_JDK_FOUND" = xno; then
23898     # Now execute the test
23899 
23900   if test -x /usr/libexec/java_home; then
23901     BOOT_JDK=`/usr/libexec/java_home `
23902     BOOT_JDK_FOUND=maybe
23903     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
23904 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
23905   fi
23906 
23907 
23908     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23909     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23910       # Do we have a bin/java?
23911       if test ! -x "$BOOT_JDK/bin/java"; then
23912         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23913 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23914         BOOT_JDK_FOUND=no
23915       else
23916         # Do we have a bin/javac?
23917         if test ! -x "$BOOT_JDK/bin/javac"; then
23918           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23919 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23920           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23921 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23922           BOOT_JDK_FOUND=no
23923         else
23924           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23925           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23926 
23927           # Extra M4 quote needed to protect [] in grep expression.
23928           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
23929           if test "x$FOUND_CORRECT_VERSION" = x; then
23930             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23931 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23932             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23933 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23934             BOOT_JDK_FOUND=no
23935           else
23936             # We're done! :-)
23937             BOOT_JDK_FOUND=yes
23938 
23939   # Only process if variable expands to non-empty
23940 
23941   if test "x$BOOT_JDK" != x; then
23942     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23943 
23944   # Input might be given as Windows format, start by converting to
23945   # unix format.
23946   path="$BOOT_JDK"
23947   new_path=`$CYGPATH -u "$path"`
23948 
23949   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23950   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23951   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23952   # "foo.exe" is OK but "foo" is an error.
23953   #
23954   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23955   # It is also a way to make sure we got the proper file name for the real test later on.
23956   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23957   if test "x$test_shortpath" = x; then
23958     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23959 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23960     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23961   fi
23962 
23963   # Call helper function which possibly converts this using DOS-style short mode.
23964   # If so, the updated path is stored in $new_path.
23965 
23966   input_path="$new_path"
23967   # Check if we need to convert this using DOS-style short mode. If the path
23968   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23969   # take no chances and rewrite it.
23970   # Note: m4 eats our [], so we need to use [ and ] instead.
23971   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23972   if test "x$has_forbidden_chars" != x; then
23973     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23974     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23975     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23976     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23977       # Going to short mode and back again did indeed matter. Since short mode is
23978       # case insensitive, let's make it lowercase to improve readability.
23979       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23980       # Now convert it back to Unix-style (cygpath)
23981       input_path=`$CYGPATH -u "$shortmode_path"`
23982       new_path="$input_path"
23983     fi
23984   fi
23985 
23986   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23987   if test "x$test_cygdrive_prefix" = x; then
23988     # As a simple fix, exclude /usr/bin since it's not a real path.
23989     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23990       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23991       # a path prefixed by /cygdrive for fixpath to work.
23992       new_path="$CYGWIN_ROOT_PATH$input_path"
23993     fi
23994   fi
23995 
23996 
23997   if test "x$path" != "x$new_path"; then
23998     BOOT_JDK="$new_path"
23999     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24000 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24001   fi
24002 
24003     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24004 
24005   path="$BOOT_JDK"
24006   has_colon=`$ECHO $path | $GREP ^.:`
24007   new_path="$path"
24008   if test "x$has_colon" = x; then
24009     # Not in mixed or Windows style, start by that.
24010     new_path=`cmd //c echo $path`
24011   fi
24012 
24013 
24014   input_path="$new_path"
24015   # Check if we need to convert this using DOS-style short mode. If the path
24016   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24017   # take no chances and rewrite it.
24018   # Note: m4 eats our [], so we need to use [ and ] instead.
24019   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24020   if test "x$has_forbidden_chars" != x; then
24021     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24022     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24023   fi
24024 
24025 
24026   windows_path="$new_path"
24027   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24028     unix_path=`$CYGPATH -u "$windows_path"`
24029     new_path="$unix_path"
24030   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24031     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24032     new_path="$unix_path"
24033   fi
24034 
24035   if test "x$path" != "x$new_path"; then
24036     BOOT_JDK="$new_path"
24037     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24038 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24039   fi
24040 
24041   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24042   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24043 
24044     else
24045       # We're on a unix platform. Hooray! :)
24046       path="$BOOT_JDK"
24047       has_space=`$ECHO "$path" | $GREP " "`
24048       if test "x$has_space" != x; then
24049         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24050 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24051         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24052       fi
24053 
24054       # Use eval to expand a potential ~
24055       eval path="$path"
24056       if test ! -f "$path" && test ! -d "$path"; then
24057         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24058       fi
24059 
24060       if test -d "$path"; then
24061         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24062       else
24063         dir="`$DIRNAME "$path"`"
24064         base="`$BASENAME "$path"`"
24065         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24066       fi
24067     fi
24068   fi
24069 
24070             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24071 $as_echo_n "checking for Boot JDK... " >&6; }
24072             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24073 $as_echo "$BOOT_JDK" >&6; }
24074             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24075 $as_echo_n "checking Boot JDK version... " >&6; }
24076             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24077             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24078 $as_echo "$BOOT_JDK_VERSION" >&6; }
24079           fi # end check jdk version
24080         fi # end check javac
24081       fi # end check java
24082     fi # end check boot jdk found
24083   fi
24084 
24085     # If that did not work out (e.g. too old), try explicit versions instead
24086 
24087   if test "x$BOOT_JDK_FOUND" = xno; then
24088     # Now execute the test
24089 
24090   if test -x /usr/libexec/java_home; then
24091     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
24092     BOOT_JDK_FOUND=maybe
24093     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
24094 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
24095   fi
24096 
24097 
24098     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24099     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24100       # Do we have a bin/java?
24101       if test ! -x "$BOOT_JDK/bin/java"; then
24102         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24103 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24104         BOOT_JDK_FOUND=no
24105       else
24106         # Do we have a bin/javac?
24107         if test ! -x "$BOOT_JDK/bin/javac"; then
24108           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24109 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24110           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24111 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24112           BOOT_JDK_FOUND=no
24113         else
24114           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24115           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24116 
24117           # Extra M4 quote needed to protect [] in grep expression.
24118           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24119           if test "x$FOUND_CORRECT_VERSION" = x; then
24120             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24121 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24122             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24123 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24124             BOOT_JDK_FOUND=no
24125           else
24126             # We're done! :-)
24127             BOOT_JDK_FOUND=yes
24128 
24129   # Only process if variable expands to non-empty
24130 
24131   if test "x$BOOT_JDK" != x; then
24132     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24133 
24134   # Input might be given as Windows format, start by converting to
24135   # unix format.
24136   path="$BOOT_JDK"
24137   new_path=`$CYGPATH -u "$path"`
24138 
24139   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24140   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24141   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24142   # "foo.exe" is OK but "foo" is an error.
24143   #
24144   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24145   # It is also a way to make sure we got the proper file name for the real test later on.
24146   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24147   if test "x$test_shortpath" = x; then
24148     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24149 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24150     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24151   fi
24152 
24153   # Call helper function which possibly converts this using DOS-style short mode.
24154   # If so, the updated path is stored in $new_path.
24155 
24156   input_path="$new_path"
24157   # Check if we need to convert this using DOS-style short mode. If the path
24158   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24159   # take no chances and rewrite it.
24160   # Note: m4 eats our [], so we need to use [ and ] instead.
24161   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24162   if test "x$has_forbidden_chars" != x; then
24163     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24164     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24165     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24166     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24167       # Going to short mode and back again did indeed matter. Since short mode is
24168       # case insensitive, let's make it lowercase to improve readability.
24169       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24170       # Now convert it back to Unix-style (cygpath)
24171       input_path=`$CYGPATH -u "$shortmode_path"`
24172       new_path="$input_path"
24173     fi
24174   fi
24175 
24176   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24177   if test "x$test_cygdrive_prefix" = x; then
24178     # As a simple fix, exclude /usr/bin since it's not a real path.
24179     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24180       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24181       # a path prefixed by /cygdrive for fixpath to work.
24182       new_path="$CYGWIN_ROOT_PATH$input_path"
24183     fi
24184   fi
24185 
24186 
24187   if test "x$path" != "x$new_path"; then
24188     BOOT_JDK="$new_path"
24189     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24190 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24191   fi
24192 
24193     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24194 
24195   path="$BOOT_JDK"
24196   has_colon=`$ECHO $path | $GREP ^.:`
24197   new_path="$path"
24198   if test "x$has_colon" = x; then
24199     # Not in mixed or Windows style, start by that.
24200     new_path=`cmd //c echo $path`
24201   fi
24202 
24203 
24204   input_path="$new_path"
24205   # Check if we need to convert this using DOS-style short mode. If the path
24206   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24207   # take no chances and rewrite it.
24208   # Note: m4 eats our [], so we need to use [ and ] instead.
24209   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24210   if test "x$has_forbidden_chars" != x; then
24211     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24212     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24213   fi
24214 
24215 
24216   windows_path="$new_path"
24217   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24218     unix_path=`$CYGPATH -u "$windows_path"`
24219     new_path="$unix_path"
24220   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24221     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24222     new_path="$unix_path"
24223   fi
24224 
24225   if test "x$path" != "x$new_path"; then
24226     BOOT_JDK="$new_path"
24227     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24228 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24229   fi
24230 
24231   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24232   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24233 
24234     else
24235       # We're on a unix platform. Hooray! :)
24236       path="$BOOT_JDK"
24237       has_space=`$ECHO "$path" | $GREP " "`
24238       if test "x$has_space" != x; then
24239         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24240 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24241         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24242       fi
24243 
24244       # Use eval to expand a potential ~
24245       eval path="$path"
24246       if test ! -f "$path" && test ! -d "$path"; then
24247         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24248       fi
24249 
24250       if test -d "$path"; then
24251         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24252       else
24253         dir="`$DIRNAME "$path"`"
24254         base="`$BASENAME "$path"`"
24255         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24256       fi
24257     fi
24258   fi
24259 
24260             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24261 $as_echo_n "checking for Boot JDK... " >&6; }
24262             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24263 $as_echo "$BOOT_JDK" >&6; }
24264             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24265 $as_echo_n "checking Boot JDK version... " >&6; }
24266             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24267             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24268 $as_echo "$BOOT_JDK_VERSION" >&6; }
24269           fi # end check jdk version
24270         fi # end check javac
24271       fi # end check java
24272     fi # end check boot jdk found
24273   fi
24274 
24275 
24276   if test "x$BOOT_JDK_FOUND" = xno; then
24277     # Now execute the test
24278 
24279   if test -x /usr/libexec/java_home; then
24280     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
24281     BOOT_JDK_FOUND=maybe
24282     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
24283 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
24284   fi
24285 
24286 
24287     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24288     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24289       # Do we have a bin/java?
24290       if test ! -x "$BOOT_JDK/bin/java"; then
24291         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24292 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24293         BOOT_JDK_FOUND=no
24294       else
24295         # Do we have a bin/javac?
24296         if test ! -x "$BOOT_JDK/bin/javac"; then
24297           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24298 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24299           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24300 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24301           BOOT_JDK_FOUND=no
24302         else
24303           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24304           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24305 
24306           # Extra M4 quote needed to protect [] in grep expression.
24307           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24308           if test "x$FOUND_CORRECT_VERSION" = x; then
24309             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24310 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24311             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24312 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24313             BOOT_JDK_FOUND=no
24314           else
24315             # We're done! :-)
24316             BOOT_JDK_FOUND=yes
24317 
24318   # Only process if variable expands to non-empty
24319 
24320   if test "x$BOOT_JDK" != x; then
24321     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24322 
24323   # Input might be given as Windows format, start by converting to
24324   # unix format.
24325   path="$BOOT_JDK"
24326   new_path=`$CYGPATH -u "$path"`
24327 
24328   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24329   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24330   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24331   # "foo.exe" is OK but "foo" is an error.
24332   #
24333   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24334   # It is also a way to make sure we got the proper file name for the real test later on.
24335   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24336   if test "x$test_shortpath" = x; then
24337     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24338 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24339     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24340   fi
24341 
24342   # Call helper function which possibly converts this using DOS-style short mode.
24343   # If so, the updated path is stored in $new_path.
24344 
24345   input_path="$new_path"
24346   # Check if we need to convert this using DOS-style short mode. If the path
24347   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24348   # take no chances and rewrite it.
24349   # Note: m4 eats our [], so we need to use [ and ] instead.
24350   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24351   if test "x$has_forbidden_chars" != x; then
24352     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24353     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24354     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24355     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24356       # Going to short mode and back again did indeed matter. Since short mode is
24357       # case insensitive, let's make it lowercase to improve readability.
24358       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24359       # Now convert it back to Unix-style (cygpath)
24360       input_path=`$CYGPATH -u "$shortmode_path"`
24361       new_path="$input_path"
24362     fi
24363   fi
24364 
24365   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24366   if test "x$test_cygdrive_prefix" = x; then
24367     # As a simple fix, exclude /usr/bin since it's not a real path.
24368     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24369       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24370       # a path prefixed by /cygdrive for fixpath to work.
24371       new_path="$CYGWIN_ROOT_PATH$input_path"
24372     fi
24373   fi
24374 
24375 
24376   if test "x$path" != "x$new_path"; then
24377     BOOT_JDK="$new_path"
24378     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24379 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24380   fi
24381 
24382     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24383 
24384   path="$BOOT_JDK"
24385   has_colon=`$ECHO $path | $GREP ^.:`
24386   new_path="$path"
24387   if test "x$has_colon" = x; then
24388     # Not in mixed or Windows style, start by that.
24389     new_path=`cmd //c echo $path`
24390   fi
24391 
24392 
24393   input_path="$new_path"
24394   # Check if we need to convert this using DOS-style short mode. If the path
24395   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24396   # take no chances and rewrite it.
24397   # Note: m4 eats our [], so we need to use [ and ] instead.
24398   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24399   if test "x$has_forbidden_chars" != x; then
24400     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24401     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24402   fi
24403 
24404 
24405   windows_path="$new_path"
24406   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24407     unix_path=`$CYGPATH -u "$windows_path"`
24408     new_path="$unix_path"
24409   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24410     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24411     new_path="$unix_path"
24412   fi
24413 
24414   if test "x$path" != "x$new_path"; then
24415     BOOT_JDK="$new_path"
24416     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24417 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24418   fi
24419 
24420   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24421   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24422 
24423     else
24424       # We're on a unix platform. Hooray! :)
24425       path="$BOOT_JDK"
24426       has_space=`$ECHO "$path" | $GREP " "`
24427       if test "x$has_space" != x; then
24428         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24429 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24430         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24431       fi
24432 
24433       # Use eval to expand a potential ~
24434       eval path="$path"
24435       if test ! -f "$path" && test ! -d "$path"; then
24436         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24437       fi
24438 
24439       if test -d "$path"; then
24440         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24441       else
24442         dir="`$DIRNAME "$path"`"
24443         base="`$BASENAME "$path"`"
24444         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24445       fi
24446     fi
24447   fi
24448 
24449             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24450 $as_echo_n "checking for Boot JDK... " >&6; }
24451             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24452 $as_echo "$BOOT_JDK" >&6; }
24453             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24454 $as_echo_n "checking Boot JDK version... " >&6; }
24455             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24456             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24457 $as_echo "$BOOT_JDK_VERSION" >&6; }
24458           fi # end check jdk version
24459         fi # end check javac
24460       fi # end check java
24461     fi # end check boot jdk found
24462   fi
24463 
24464 
24465   if test "x$BOOT_JDK_FOUND" = xno; then
24466     # Now execute the test
24467 
24468   if test -x /usr/libexec/java_home; then
24469     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
24470     BOOT_JDK_FOUND=maybe
24471     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
24472 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
24473   fi
24474 
24475 
24476     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24477     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24478       # Do we have a bin/java?
24479       if test ! -x "$BOOT_JDK/bin/java"; then
24480         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24481 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24482         BOOT_JDK_FOUND=no
24483       else
24484         # Do we have a bin/javac?
24485         if test ! -x "$BOOT_JDK/bin/javac"; then
24486           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24487 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24488           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24489 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24490           BOOT_JDK_FOUND=no
24491         else
24492           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24493           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24494 
24495           # Extra M4 quote needed to protect [] in grep expression.
24496           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24497           if test "x$FOUND_CORRECT_VERSION" = x; then
24498             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24499 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24500             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24501 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24502             BOOT_JDK_FOUND=no
24503           else
24504             # We're done! :-)
24505             BOOT_JDK_FOUND=yes
24506 
24507   # Only process if variable expands to non-empty
24508 
24509   if test "x$BOOT_JDK" != x; then
24510     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24511 
24512   # Input might be given as Windows format, start by converting to
24513   # unix format.
24514   path="$BOOT_JDK"
24515   new_path=`$CYGPATH -u "$path"`
24516 
24517   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24518   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24519   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24520   # "foo.exe" is OK but "foo" is an error.
24521   #
24522   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24523   # It is also a way to make sure we got the proper file name for the real test later on.
24524   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24525   if test "x$test_shortpath" = x; then
24526     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24527 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24528     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24529   fi
24530 
24531   # Call helper function which possibly converts this using DOS-style short mode.
24532   # If so, the updated path is stored in $new_path.
24533 
24534   input_path="$new_path"
24535   # Check if we need to convert this using DOS-style short mode. If the path
24536   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24537   # take no chances and rewrite it.
24538   # Note: m4 eats our [], so we need to use [ and ] instead.
24539   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24540   if test "x$has_forbidden_chars" != x; then
24541     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24542     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24543     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24544     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24545       # Going to short mode and back again did indeed matter. Since short mode is
24546       # case insensitive, let's make it lowercase to improve readability.
24547       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24548       # Now convert it back to Unix-style (cygpath)
24549       input_path=`$CYGPATH -u "$shortmode_path"`
24550       new_path="$input_path"
24551     fi
24552   fi
24553 
24554   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24555   if test "x$test_cygdrive_prefix" = x; then
24556     # As a simple fix, exclude /usr/bin since it's not a real path.
24557     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24558       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24559       # a path prefixed by /cygdrive for fixpath to work.
24560       new_path="$CYGWIN_ROOT_PATH$input_path"
24561     fi
24562   fi
24563 
24564 
24565   if test "x$path" != "x$new_path"; then
24566     BOOT_JDK="$new_path"
24567     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24568 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24569   fi
24570 
24571     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24572 
24573   path="$BOOT_JDK"
24574   has_colon=`$ECHO $path | $GREP ^.:`
24575   new_path="$path"
24576   if test "x$has_colon" = x; then
24577     # Not in mixed or Windows style, start by that.
24578     new_path=`cmd //c echo $path`
24579   fi
24580 
24581 
24582   input_path="$new_path"
24583   # Check if we need to convert this using DOS-style short mode. If the path
24584   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24585   # take no chances and rewrite it.
24586   # Note: m4 eats our [], so we need to use [ and ] instead.
24587   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24588   if test "x$has_forbidden_chars" != x; then
24589     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24590     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24591   fi
24592 
24593 
24594   windows_path="$new_path"
24595   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24596     unix_path=`$CYGPATH -u "$windows_path"`
24597     new_path="$unix_path"
24598   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24599     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24600     new_path="$unix_path"
24601   fi
24602 
24603   if test "x$path" != "x$new_path"; then
24604     BOOT_JDK="$new_path"
24605     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24606 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24607   fi
24608 
24609   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24610   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24611 
24612     else
24613       # We're on a unix platform. Hooray! :)
24614       path="$BOOT_JDK"
24615       has_space=`$ECHO "$path" | $GREP " "`
24616       if test "x$has_space" != x; then
24617         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24618 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24619         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24620       fi
24621 
24622       # Use eval to expand a potential ~
24623       eval path="$path"
24624       if test ! -f "$path" && test ! -d "$path"; then
24625         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24626       fi
24627 
24628       if test -d "$path"; then
24629         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24630       else
24631         dir="`$DIRNAME "$path"`"
24632         base="`$BASENAME "$path"`"
24633         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24634       fi
24635     fi
24636   fi
24637 
24638             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24639 $as_echo_n "checking for Boot JDK... " >&6; }
24640             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24641 $as_echo "$BOOT_JDK" >&6; }
24642             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24643 $as_echo_n "checking Boot JDK version... " >&6; }
24644             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24645             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24646 $as_echo "$BOOT_JDK_VERSION" >&6; }
24647           fi # end check jdk version
24648         fi # end check javac
24649       fi # end check java
24650     fi # end check boot jdk found
24651   fi
24652 
24653   fi
24654 
24655 
24656     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24657     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24658       # Do we have a bin/java?
24659       if test ! -x "$BOOT_JDK/bin/java"; then
24660         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24661 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24662         BOOT_JDK_FOUND=no
24663       else
24664         # Do we have a bin/javac?
24665         if test ! -x "$BOOT_JDK/bin/javac"; then
24666           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24667 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24668           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24669 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24670           BOOT_JDK_FOUND=no
24671         else
24672           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24673           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24674 
24675           # Extra M4 quote needed to protect [] in grep expression.
24676           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24677           if test "x$FOUND_CORRECT_VERSION" = x; then
24678             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24679 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24680             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24681 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24682             BOOT_JDK_FOUND=no
24683           else
24684             # We're done! :-)
24685             BOOT_JDK_FOUND=yes
24686 
24687   # Only process if variable expands to non-empty
24688 
24689   if test "x$BOOT_JDK" != x; then
24690     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24691 
24692   # Input might be given as Windows format, start by converting to
24693   # unix format.
24694   path="$BOOT_JDK"
24695   new_path=`$CYGPATH -u "$path"`
24696 
24697   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24698   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24699   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24700   # "foo.exe" is OK but "foo" is an error.
24701   #
24702   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24703   # It is also a way to make sure we got the proper file name for the real test later on.
24704   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24705   if test "x$test_shortpath" = x; then
24706     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24707 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24708     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24709   fi
24710 
24711   # Call helper function which possibly converts this using DOS-style short mode.
24712   # If so, the updated path is stored in $new_path.
24713 
24714   input_path="$new_path"
24715   # Check if we need to convert this using DOS-style short mode. If the path
24716   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24717   # take no chances and rewrite it.
24718   # Note: m4 eats our [], so we need to use [ and ] instead.
24719   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24720   if test "x$has_forbidden_chars" != x; then
24721     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24722     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24723     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24724     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24725       # Going to short mode and back again did indeed matter. Since short mode is
24726       # case insensitive, let's make it lowercase to improve readability.
24727       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24728       # Now convert it back to Unix-style (cygpath)
24729       input_path=`$CYGPATH -u "$shortmode_path"`
24730       new_path="$input_path"
24731     fi
24732   fi
24733 
24734   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24735   if test "x$test_cygdrive_prefix" = x; then
24736     # As a simple fix, exclude /usr/bin since it's not a real path.
24737     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24738       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24739       # a path prefixed by /cygdrive for fixpath to work.
24740       new_path="$CYGWIN_ROOT_PATH$input_path"
24741     fi
24742   fi
24743 
24744 
24745   if test "x$path" != "x$new_path"; then
24746     BOOT_JDK="$new_path"
24747     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24748 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24749   fi
24750 
24751     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24752 
24753   path="$BOOT_JDK"
24754   has_colon=`$ECHO $path | $GREP ^.:`
24755   new_path="$path"
24756   if test "x$has_colon" = x; then
24757     # Not in mixed or Windows style, start by that.
24758     new_path=`cmd //c echo $path`
24759   fi
24760 
24761 
24762   input_path="$new_path"
24763   # Check if we need to convert this using DOS-style short mode. If the path
24764   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24765   # take no chances and rewrite it.
24766   # Note: m4 eats our [], so we need to use [ and ] instead.
24767   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24768   if test "x$has_forbidden_chars" != x; then
24769     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24770     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24771   fi
24772 
24773 
24774   windows_path="$new_path"
24775   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24776     unix_path=`$CYGPATH -u "$windows_path"`
24777     new_path="$unix_path"
24778   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24779     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24780     new_path="$unix_path"
24781   fi
24782 
24783   if test "x$path" != "x$new_path"; then
24784     BOOT_JDK="$new_path"
24785     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24786 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24787   fi
24788 
24789   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24790   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24791 
24792     else
24793       # We're on a unix platform. Hooray! :)
24794       path="$BOOT_JDK"
24795       has_space=`$ECHO "$path" | $GREP " "`
24796       if test "x$has_space" != x; then
24797         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24798 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24799         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24800       fi
24801 
24802       # Use eval to expand a potential ~
24803       eval path="$path"
24804       if test ! -f "$path" && test ! -d "$path"; then
24805         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24806       fi
24807 
24808       if test -d "$path"; then
24809         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24810       else
24811         dir="`$DIRNAME "$path"`"
24812         base="`$BASENAME "$path"`"
24813         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24814       fi
24815     fi
24816   fi
24817 
24818             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24819 $as_echo_n "checking for Boot JDK... " >&6; }
24820             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24821 $as_echo "$BOOT_JDK" >&6; }
24822             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24823 $as_echo_n "checking Boot JDK version... " >&6; }
24824             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24825             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24826 $as_echo "$BOOT_JDK_VERSION" >&6; }
24827           fi # end check jdk version
24828         fi # end check javac
24829       fi # end check java
24830     fi # end check boot jdk found
24831   fi
24832 
24833 
24834   # Test: Is $JAVA_HOME set?
24835 
24836   if test "x$BOOT_JDK_FOUND" = xno; then
24837     # Now execute the test
24838 
24839   if test "x$JAVA_HOME" != x; then
24840     JAVA_HOME_PROCESSED="$JAVA_HOME"
24841 
24842   # Only process if variable expands to non-empty
24843 
24844   if test "x$JAVA_HOME_PROCESSED" != x; then
24845     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24846 
24847   # Input might be given as Windows format, start by converting to
24848   # unix format.
24849   path="$JAVA_HOME_PROCESSED"
24850   new_path=`$CYGPATH -u "$path"`
24851 
24852   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24853   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24854   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24855   # "foo.exe" is OK but "foo" is an error.
24856   #
24857   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24858   # It is also a way to make sure we got the proper file name for the real test later on.
24859   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24860   if test "x$test_shortpath" = x; then
24861     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24862 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24863     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
24864   fi
24865 
24866   # Call helper function which possibly converts this using DOS-style short mode.
24867   # If so, the updated path is stored in $new_path.
24868 
24869   input_path="$new_path"
24870   # Check if we need to convert this using DOS-style short mode. If the path
24871   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24872   # take no chances and rewrite it.
24873   # Note: m4 eats our [], so we need to use [ and ] instead.
24874   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24875   if test "x$has_forbidden_chars" != x; then
24876     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24877     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24878     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24879     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24880       # Going to short mode and back again did indeed matter. Since short mode is
24881       # case insensitive, let's make it lowercase to improve readability.
24882       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24883       # Now convert it back to Unix-style (cygpath)
24884       input_path=`$CYGPATH -u "$shortmode_path"`
24885       new_path="$input_path"
24886     fi
24887   fi
24888 
24889   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24890   if test "x$test_cygdrive_prefix" = x; then
24891     # As a simple fix, exclude /usr/bin since it's not a real path.
24892     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24893       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24894       # a path prefixed by /cygdrive for fixpath to work.
24895       new_path="$CYGWIN_ROOT_PATH$input_path"
24896     fi
24897   fi
24898 
24899 
24900   if test "x$path" != "x$new_path"; then
24901     JAVA_HOME_PROCESSED="$new_path"
24902     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24903 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24904   fi
24905 
24906     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24907 
24908   path="$JAVA_HOME_PROCESSED"
24909   has_colon=`$ECHO $path | $GREP ^.:`
24910   new_path="$path"
24911   if test "x$has_colon" = x; then
24912     # Not in mixed or Windows style, start by that.
24913     new_path=`cmd //c echo $path`
24914   fi
24915 
24916 
24917   input_path="$new_path"
24918   # Check if we need to convert this using DOS-style short mode. If the path
24919   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24920   # take no chances and rewrite it.
24921   # Note: m4 eats our [], so we need to use [ and ] instead.
24922   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24923   if test "x$has_forbidden_chars" != x; then
24924     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24925     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24926   fi
24927 
24928 
24929   windows_path="$new_path"
24930   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24931     unix_path=`$CYGPATH -u "$windows_path"`
24932     new_path="$unix_path"
24933   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24934     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24935     new_path="$unix_path"
24936   fi
24937 
24938   if test "x$path" != "x$new_path"; then
24939     JAVA_HOME_PROCESSED="$new_path"
24940     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24941 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24942   fi
24943 
24944   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24945   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24946 
24947     else
24948       # We're on a unix platform. Hooray! :)
24949       path="$JAVA_HOME_PROCESSED"
24950       has_space=`$ECHO "$path" | $GREP " "`
24951       if test "x$has_space" != x; then
24952         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24953 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24954         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24955       fi
24956 
24957       # Use eval to expand a potential ~
24958       eval path="$path"
24959       if test ! -f "$path" && test ! -d "$path"; then
24960         as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
24961       fi
24962 
24963       if test -d "$path"; then
24964         JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
24965       else
24966         dir="`$DIRNAME "$path"`"
24967         base="`$BASENAME "$path"`"
24968         JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base"
24969       fi
24970     fi
24971   fi
24972 
24973     if test ! -d "$JAVA_HOME_PROCESSED"; then
24974       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
24975 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
24976     else
24977       # Aha, the user has set a JAVA_HOME
24978       # let us use that as the Boot JDK.
24979       BOOT_JDK="$JAVA_HOME_PROCESSED"
24980       BOOT_JDK_FOUND=maybe
24981       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
24982 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
24983     fi
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