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 OS_VERSION_MICRO
 869 OS_VERSION_MINOR
 870 OS_VERSION_MAJOR
 871 PKG_CONFIG
 872 BASH_ARGS
 873 SETFILE
 874 CODESIGN
 875 XATTR
 876 DSYMUTIL
 877 IS_GNU_TIME
 878 PATCH
 879 TIME
 880 STAT
 881 HG
 882 READELF
 883 OTOOL
 884 LDD
 885 ZIP
 886 UNZIP
 887 FIND_DELETE
 888 OUTPUT_SYNC
 889 OUTPUT_SYNC_SUPPORTED
 890 CHECK_TOOLSDIR_MAKE
 891 CHECK_TOOLSDIR_GMAKE
 892 CHECK_MAKE
 893 CHECK_GMAKE
 894 MAKE
 895 PKGHANDLER
 896 CONFIGURESUPPORT_OUTPUTDIR
 897 OUTPUT_ROOT
 898 CONF_NAME
 899 SPEC
 900 SDKROOT
 901 XCODEBUILD
 902 BUILD_VARIANT_RELEASE
 903 DEBUG_CLASSFILES
 904 FASTDEBUG
 905 VARIANT
 906 DEBUG_LEVEL
 907 MACOSX_UNIVERSAL
 908 INCLUDE_SA
 909 JVM_VARIANT_CORE
 910 JVM_VARIANT_ZEROSHARK
 911 JVM_VARIANT_ZERO
 912 JVM_VARIANT_KERNEL
 913 JVM_VARIANT_MINIMAL1
 914 JVM_VARIANT_CLIENT
 915 JVM_VARIANT_SERVER
 916 JVM_VARIANTS
 917 JVM_INTERPRETER
 918 JDK_VARIANT
 919 SET_OPENJDK
 920 CANONICAL_TOPDIR
 921 ORIGINAL_TOPDIR
 922 TOPDIR
 923 PATH_SEP
 924 ZERO_ARCHDEF
 925 DEFINE_CROSS_COMPILE_ARCH
 926 LP64
 927 OPENJDK_TARGET_OS_EXPORT_DIR
 928 OPENJDK_TARGET_CPU_JLI_CFLAGS
 929 OPENJDK_TARGET_CPU_OSARCH
 930 OPENJDK_TARGET_CPU_ISADIR
 931 OPENJDK_TARGET_CPU_LIBDIR
 932 OPENJDK_TARGET_CPU_LEGACY_LIB
 933 OPENJDK_TARGET_CPU_LEGACY
 934 REQUIRED_OS_VERSION
 935 REQUIRED_OS_NAME
 936 COMPILE_TYPE
 937 OPENJDK_TARGET_CPU_ENDIAN
 938 OPENJDK_TARGET_CPU_BITS
 939 OPENJDK_TARGET_CPU_ARCH
 940 OPENJDK_TARGET_CPU
 941 OPENJDK_TARGET_OS_ENV
 942 OPENJDK_TARGET_OS_TYPE
 943 OPENJDK_TARGET_OS
 944 OPENJDK_BUILD_CPU_ENDIAN
 945 OPENJDK_BUILD_CPU_BITS
 946 OPENJDK_BUILD_CPU_ARCH
 947 OPENJDK_BUILD_CPU
 948 OPENJDK_BUILD_OS_ENV
 949 OPENJDK_BUILD_OS_TYPE
 950 OPENJDK_BUILD_OS
 951 OPENJDK_BUILD_AUTOCONF_NAME
 952 OPENJDK_TARGET_AUTOCONF_NAME
 953 target_os
 954 target_vendor
 955 target_cpu
 956 target
 957 host_os
 958 host_vendor
 959 host_cpu
 960 host
 961 build_os
 962 build_vendor
 963 build_cpu
 964 build
 965 NICE
 966 CPIO
 967 DF
 968 READLINK
 969 CYGPATH
 970 SED
 971 FGREP
 972 EGREP
 973 GREP
 974 AWK
 975 XARGS
 976 WHICH
 977 WC
 978 UNIQ
 979 UNAME
 980 TR
 981 TOUCH
 982 TEE
 983 TAR
 984 TAIL
 985 SORT
 986 SH
 987 RMDIR
 988 RM
 989 PRINTF
 990 NAWK
 991 MV
 992 MKTEMP
 993 MKDIR
 994 LS
 995 LN
 996 HEAD
 997 FIND
 998 FILE
 999 EXPR
1000 ECHO
1001 DIRNAME
1002 DIFF
1003 DATE
1004 CUT
1005 CP
1006 COMM
1007 CMP
1008 CHMOD
1009 CAT
1010 BASH
1011 BASENAME
1012 DATE_WHEN_CONFIGURED
1013 ORIGINAL_PATH
1014 CONFIGURE_COMMAND_LINE
1015 target_alias
1016 host_alias
1017 build_alias
1018 LIBS
1019 ECHO_T
1020 ECHO_N
1021 ECHO_C
1022 DEFS
1023 mandir
1024 localedir
1025 libdir
1026 psdir
1027 pdfdir
1028 dvidir
1029 htmldir
1030 infodir
1031 docdir
1032 oldincludedir
1033 includedir
1034 localstatedir
1035 sharedstatedir
1036 sysconfdir
1037 datadir
1038 datarootdir
1039 libexecdir
1040 sbindir
1041 bindir
1042 program_transform_name
1043 prefix
1044 exec_prefix
1045 PACKAGE_URL
1046 PACKAGE_BUGREPORT
1047 PACKAGE_STRING
1048 PACKAGE_VERSION
1049 PACKAGE_TARNAME
1050 PACKAGE_NAME
1051 PATH_SEPARATOR
1052 SHELL'
1053 ac_subst_files=''
1054 ac_user_opts='
1055 enable_option_checking
1056 with_target_bits
1057 enable_openjdk_only
1058 with_custom_make_dir
1059 with_jdk_variant
1060 with_jvm_interpreter
1061 with_jvm_variants
1062 enable_debug
1063 with_debug_level
1064 with_devkit
1065 with_sys_root
1066 with_sysroot
1067 with_tools_dir
1068 with_toolchain_path
1069 with_extra_path
1070 with_sdk_name
1071 with_conf_name
1072 with_output_sync
1073 enable_headful
1074 enable_hotspot_test_in_build
1075 with_cacerts_file
1076 enable_unlimited_crypto
1077 with_copyright_year
1078 with_milestone
1079 with_update_version
1080 with_user_release_suffix
1081 with_build_number
1082 with_version_string
1083 with_version_pre
1084 with_version_opt
1085 with_version_build
1086 with_version_major
1087 with_version_minor
1088 with_version_security
1089 with_version_patch
1090 with_boot_jdk
1091 with_add_source_root
1092 with_override_source_root
1093 with_adds_and_overrides
1094 with_override_langtools
1095 with_override_corba
1096 with_override_jaxp
1097 with_override_jaxws
1098 with_override_hotspot
1099 with_override_nashorn
1100 with_override_jdk
1101 with_import_hotspot
1102 enable_static_build
1103 with_toolchain_type
1104 with_extra_cflags
1105 with_extra_cxxflags
1106 with_extra_ldflags
1107 with_toolchain_version
1108 with_build_devkit
1109 with_jtreg
1110 enable_warnings_as_errors
1111 with_native_debug_symbols
1112 enable_debug_symbols
1113 enable_zip_debug_info
1114 enable_native_coverage
1115 with_stdc__lib
1116 with_msvcr_dll
1117 with_msvcp_dll
1118 with_x
1119 with_cups
1120 with_cups_include
1121 with_freetype
1122 with_freetype_include
1123 with_freetype_lib
1124 with_freetype_src
1125 enable_freetype_bundling
1126 with_alsa
1127 with_alsa_include
1128 with_alsa_lib
1129 with_libffi
1130 with_libffi_include
1131 with_libffi_lib
1132 with_libjpeg
1133 with_giflib
1134 with_libpng
1135 with_zlib
1136 with_lcms
1137 with_dxsdk
1138 with_dxsdk_lib
1139 with_dxsdk_include
1140 with_num_cores
1141 with_memory_size
1142 with_jobs
1143 with_boot_jdk_jvmargs
1144 with_sjavac_server_java
1145 enable_sjavac
1146 enable_javac_server
1147 enable_icecc
1148 enable_precompiled_headers
1149 enable_ccache
1150 with_ccache_dir
1151 '
1152       ac_precious_vars='build_alias
1153 host_alias
1154 target_alias
1155 BASENAME
1156 BASH
1157 CAT
1158 CHMOD
1159 CMP
1160 COMM
1161 CP
1162 CUT
1163 DATE
1164 DIFF
1165 DIRNAME
1166 ECHO
1167 EXPR
1168 FILE
1169 FIND
1170 HEAD
1171 LN
1172 LS
1173 MKDIR
1174 MKTEMP
1175 MV
1176 NAWK
1177 PRINTF
1178 RM
1179 RMDIR
1180 SH
1181 SORT
1182 TAIL
1183 TAR
1184 TEE
1185 TOUCH
1186 TR
1187 UNAME
1188 UNIQ
1189 WC
1190 WHICH
1191 XARGS
1192 AWK
1193 GREP
1194 EGREP
1195 FGREP
1196 SED
1197 CYGPATH
1198 READLINK
1199 DF
1200 CPIO
1201 NICE
1202 MAKE
1203 UNZIP
1204 ZIP
1205 LDD
1206 OTOOL
1207 READELF
1208 HG
1209 STAT
1210 TIME
1211 PATCH
1212 DSYMUTIL
1213 XATTR
1214 CODESIGN
1215 SETFILE
1216 PKG_CONFIG
1217 JAVA
1218 JAVAC
1219 JAVAH
1220 JAR
1221 JARSIGNER
1222 CC
1223 CFLAGS
1224 LDFLAGS
1225 LIBS
1226 CPPFLAGS
1227 CXX
1228 CXXFLAGS
1229 CCC
1230 CPP
1231 CXXCPP
1232 AS
1233 AR
1234 LIPO
1235 STRIP
1236 NM
1237 GNM
1238 OBJCOPY
1239 OBJDUMP
1240 BUILD_CC
1241 BUILD_CXX
1242 BUILD_NM
1243 BUILD_AR
1244 JTREGEXE
1245 XMKMF
1246 FREETYPE_CFLAGS
1247 FREETYPE_LIBS
1248 ALSA_CFLAGS
1249 ALSA_LIBS
1250 LIBFFI_CFLAGS
1251 LIBFFI_LIBS
1252 PNG_CFLAGS
1253 PNG_LIBS
1254 LCMS_CFLAGS
1255 LCMS_LIBS
1256 ICECC_CMD
1257 ICECC_CREATE_ENV
1258 ICECC_WRAPPER
1259 CCACHE'
1260 
1261 
1262 # Initialize some variables set by options.
1263 ac_init_help=
1264 ac_init_version=false
1265 ac_unrecognized_opts=
1266 ac_unrecognized_sep=
1267 # The variables have the same names as the options, with
1268 # dashes changed to underlines.
1269 cache_file=/dev/null
1270 exec_prefix=NONE
1271 no_create=
1272 no_recursion=
1273 prefix=NONE
1274 program_prefix=NONE
1275 program_suffix=NONE
1276 program_transform_name=s,x,x,
1277 silent=
1278 site=
1279 srcdir=
1280 verbose=
1281 x_includes=NONE
1282 x_libraries=NONE
1283 
1284 # Installation directory options.
1285 # These are left unexpanded so users can "make install exec_prefix=/foo"
1286 # and all the variables that are supposed to be based on exec_prefix
1287 # by default will actually change.
1288 # Use braces instead of parens because sh, perl, etc. also accept them.
1289 # (The list follows the same order as the GNU Coding Standards.)
1290 bindir='${exec_prefix}/bin'
1291 sbindir='${exec_prefix}/sbin'
1292 libexecdir='${exec_prefix}/libexec'
1293 datarootdir='${prefix}/share'
1294 datadir='${datarootdir}'
1295 sysconfdir='${prefix}/etc'
1296 sharedstatedir='${prefix}/com'
1297 localstatedir='${prefix}/var'
1298 includedir='${prefix}/include'
1299 oldincludedir='/usr/include'
1300 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1301 infodir='${datarootdir}/info'
1302 htmldir='${docdir}'
1303 dvidir='${docdir}'
1304 pdfdir='${docdir}'
1305 psdir='${docdir}'
1306 libdir='${exec_prefix}/lib'
1307 localedir='${datarootdir}/locale'
1308 mandir='${datarootdir}/man'
1309 
1310 ac_prev=
1311 ac_dashdash=
1312 for ac_option
1313 do
1314   # If the previous option needs an argument, assign it.
1315   if test -n "$ac_prev"; then
1316     eval $ac_prev=\$ac_option
1317     ac_prev=
1318     continue
1319   fi
1320 
1321   case $ac_option in
1322   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1323   *=)   ac_optarg= ;;
1324   *)    ac_optarg=yes ;;
1325   esac
1326 
1327   # Accept the important Cygnus configure options, so we can diagnose typos.
1328 
1329   case $ac_dashdash$ac_option in
1330   --)
1331     ac_dashdash=yes ;;
1332 
1333   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1334     ac_prev=bindir ;;
1335   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1336     bindir=$ac_optarg ;;
1337 
1338   -build | --build | --buil | --bui | --bu)
1339     ac_prev=build_alias ;;
1340   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1341     build_alias=$ac_optarg ;;
1342 
1343   -cache-file | --cache-file | --cache-fil | --cache-fi \
1344   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1345     ac_prev=cache_file ;;
1346   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1347   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1348     cache_file=$ac_optarg ;;
1349 
1350   --config-cache | -C)
1351     cache_file=config.cache ;;
1352 
1353   -datadir | --datadir | --datadi | --datad)
1354     ac_prev=datadir ;;
1355   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1356     datadir=$ac_optarg ;;
1357 
1358   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1359   | --dataroo | --dataro | --datar)
1360     ac_prev=datarootdir ;;
1361   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1362   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1363     datarootdir=$ac_optarg ;;
1364 
1365   -disable-* | --disable-*)
1366     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1367     # Reject names that are not valid shell variable names.
1368     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1369       as_fn_error $? "invalid feature name: $ac_useropt"
1370     ac_useropt_orig=$ac_useropt
1371     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1372     case $ac_user_opts in
1373       *"
1374 "enable_$ac_useropt"
1375 "*) ;;
1376       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1377          ac_unrecognized_sep=', ';;
1378     esac
1379     eval enable_$ac_useropt=no ;;
1380 
1381   -docdir | --docdir | --docdi | --doc | --do)
1382     ac_prev=docdir ;;
1383   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1384     docdir=$ac_optarg ;;
1385 
1386   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1387     ac_prev=dvidir ;;
1388   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1389     dvidir=$ac_optarg ;;
1390 
1391   -enable-* | --enable-*)
1392     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1393     # Reject names that are not valid shell variable names.
1394     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1395       as_fn_error $? "invalid feature name: $ac_useropt"
1396     ac_useropt_orig=$ac_useropt
1397     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1398     case $ac_user_opts in
1399       *"
1400 "enable_$ac_useropt"
1401 "*) ;;
1402       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1403          ac_unrecognized_sep=', ';;
1404     esac
1405     eval enable_$ac_useropt=\$ac_optarg ;;
1406 
1407   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1408   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1409   | --exec | --exe | --ex)
1410     ac_prev=exec_prefix ;;
1411   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1412   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1413   | --exec=* | --exe=* | --ex=*)
1414     exec_prefix=$ac_optarg ;;
1415 
1416   -gas | --gas | --ga | --g)
1417     # Obsolete; use --with-gas.
1418     with_gas=yes ;;
1419 
1420   -help | --help | --hel | --he | -h)
1421     ac_init_help=long ;;
1422   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1423     ac_init_help=recursive ;;
1424   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1425     ac_init_help=short ;;
1426 
1427   -host | --host | --hos | --ho)
1428     ac_prev=host_alias ;;
1429   -host=* | --host=* | --hos=* | --ho=*)
1430     host_alias=$ac_optarg ;;
1431 
1432   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1433     ac_prev=htmldir ;;
1434   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1435   | --ht=*)
1436     htmldir=$ac_optarg ;;
1437 
1438   -includedir | --includedir | --includedi | --included | --include \
1439   | --includ | --inclu | --incl | --inc)
1440     ac_prev=includedir ;;
1441   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1442   | --includ=* | --inclu=* | --incl=* | --inc=*)
1443     includedir=$ac_optarg ;;
1444 
1445   -infodir | --infodir | --infodi | --infod | --info | --inf)
1446     ac_prev=infodir ;;
1447   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1448     infodir=$ac_optarg ;;
1449 
1450   -libdir | --libdir | --libdi | --libd)
1451     ac_prev=libdir ;;
1452   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1453     libdir=$ac_optarg ;;
1454 
1455   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1456   | --libexe | --libex | --libe)
1457     ac_prev=libexecdir ;;
1458   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1459   | --libexe=* | --libex=* | --libe=*)
1460     libexecdir=$ac_optarg ;;
1461 
1462   -localedir | --localedir | --localedi | --localed | --locale)
1463     ac_prev=localedir ;;
1464   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1465     localedir=$ac_optarg ;;
1466 
1467   -localstatedir | --localstatedir | --localstatedi | --localstated \
1468   | --localstate | --localstat | --localsta | --localst | --locals)
1469     ac_prev=localstatedir ;;
1470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1471   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1472     localstatedir=$ac_optarg ;;
1473 
1474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1475     ac_prev=mandir ;;
1476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1477     mandir=$ac_optarg ;;
1478 
1479   -nfp | --nfp | --nf)
1480     # Obsolete; use --without-fp.
1481     with_fp=no ;;
1482 
1483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1484   | --no-cr | --no-c | -n)
1485     no_create=yes ;;
1486 
1487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1489     no_recursion=yes ;;
1490 
1491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1493   | --oldin | --oldi | --old | --ol | --o)
1494     ac_prev=oldincludedir ;;
1495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1498     oldincludedir=$ac_optarg ;;
1499 
1500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1501     ac_prev=prefix ;;
1502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1503     prefix=$ac_optarg ;;
1504 
1505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1506   | --program-pre | --program-pr | --program-p)
1507     ac_prev=program_prefix ;;
1508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1510     program_prefix=$ac_optarg ;;
1511 
1512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1513   | --program-suf | --program-su | --program-s)
1514     ac_prev=program_suffix ;;
1515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1517     program_suffix=$ac_optarg ;;
1518 
1519   -program-transform-name | --program-transform-name \
1520   | --program-transform-nam | --program-transform-na \
1521   | --program-transform-n | --program-transform- \
1522   | --program-transform | --program-transfor \
1523   | --program-transfo | --program-transf \
1524   | --program-trans | --program-tran \
1525   | --progr-tra | --program-tr | --program-t)
1526     ac_prev=program_transform_name ;;
1527   -program-transform-name=* | --program-transform-name=* \
1528   | --program-transform-nam=* | --program-transform-na=* \
1529   | --program-transform-n=* | --program-transform-=* \
1530   | --program-transform=* | --program-transfor=* \
1531   | --program-transfo=* | --program-transf=* \
1532   | --program-trans=* | --program-tran=* \
1533   | --progr-tra=* | --program-tr=* | --program-t=*)
1534     program_transform_name=$ac_optarg ;;
1535 
1536   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1537     ac_prev=pdfdir ;;
1538   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1539     pdfdir=$ac_optarg ;;
1540 
1541   -psdir | --psdir | --psdi | --psd | --ps)
1542     ac_prev=psdir ;;
1543   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1544     psdir=$ac_optarg ;;
1545 
1546   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1547   | -silent | --silent | --silen | --sile | --sil)
1548     silent=yes ;;
1549 
1550   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1551     ac_prev=sbindir ;;
1552   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1553   | --sbi=* | --sb=*)
1554     sbindir=$ac_optarg ;;
1555 
1556   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1557   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1558   | --sharedst | --shareds | --shared | --share | --shar \
1559   | --sha | --sh)
1560     ac_prev=sharedstatedir ;;
1561   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1562   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1563   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1564   | --sha=* | --sh=*)
1565     sharedstatedir=$ac_optarg ;;
1566 
1567   -site | --site | --sit)
1568     ac_prev=site ;;
1569   -site=* | --site=* | --sit=*)
1570     site=$ac_optarg ;;
1571 
1572   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1573     ac_prev=srcdir ;;
1574   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1575     srcdir=$ac_optarg ;;
1576 
1577   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1578   | --syscon | --sysco | --sysc | --sys | --sy)
1579     ac_prev=sysconfdir ;;
1580   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1581   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1582     sysconfdir=$ac_optarg ;;
1583 
1584   -target | --target | --targe | --targ | --tar | --ta | --t)
1585     ac_prev=target_alias ;;
1586   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1587     target_alias=$ac_optarg ;;
1588 
1589   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1590     verbose=yes ;;
1591 
1592   -version | --version | --versio | --versi | --vers | -V)
1593     ac_init_version=: ;;
1594 
1595   -with-* | --with-*)
1596     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1597     # Reject names that are not valid shell variable names.
1598     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1599       as_fn_error $? "invalid package name: $ac_useropt"
1600     ac_useropt_orig=$ac_useropt
1601     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1602     case $ac_user_opts in
1603       *"
1604 "with_$ac_useropt"
1605 "*) ;;
1606       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1607          ac_unrecognized_sep=', ';;
1608     esac
1609     eval with_$ac_useropt=\$ac_optarg ;;
1610 
1611   -without-* | --without-*)
1612     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1613     # Reject names that are not valid shell variable names.
1614     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1615       as_fn_error $? "invalid package name: $ac_useropt"
1616     ac_useropt_orig=$ac_useropt
1617     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1618     case $ac_user_opts in
1619       *"
1620 "with_$ac_useropt"
1621 "*) ;;
1622       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1623          ac_unrecognized_sep=', ';;
1624     esac
1625     eval with_$ac_useropt=no ;;
1626 
1627   --x)
1628     # Obsolete; use --with-x.
1629     with_x=yes ;;
1630 
1631   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1632   | --x-incl | --x-inc | --x-in | --x-i)
1633     ac_prev=x_includes ;;
1634   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1635   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1636     x_includes=$ac_optarg ;;
1637 
1638   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1639   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1640     ac_prev=x_libraries ;;
1641   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1642   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1643     x_libraries=$ac_optarg ;;
1644 
1645   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1646 Try \`$0 --help' for more information"
1647     ;;
1648 
1649   *=*)
1650     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1651     # Reject names that are not valid shell variable names.
1652     case $ac_envvar in #(
1653       '' | [0-9]* | *[!_$as_cr_alnum]* )
1654       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1655     esac
1656     eval $ac_envvar=\$ac_optarg
1657     export $ac_envvar ;;
1658 
1659   *)
1660     # FIXME: should be removed in autoconf 3.0.
1661     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1662     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1663       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1664     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1665     ;;
1666 
1667   esac
1668 done
1669 
1670 if test -n "$ac_prev"; then
1671   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1672   as_fn_error $? "missing argument to $ac_option"
1673 fi
1674 
1675 if test -n "$ac_unrecognized_opts"; then
1676   case $enable_option_checking in
1677     no) ;;
1678     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1679     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1680   esac
1681 fi
1682 
1683 # Check all directory arguments for consistency.
1684 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1685                 datadir sysconfdir sharedstatedir localstatedir includedir \
1686                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1687                 libdir localedir mandir
1688 do
1689   eval ac_val=\$$ac_var
1690   # Remove trailing slashes.
1691   case $ac_val in
1692     */ )
1693       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1694       eval $ac_var=\$ac_val;;
1695   esac
1696   # Be sure to have absolute directory names.
1697   case $ac_val in
1698     [\\/$]* | ?:[\\/]* )  continue;;
1699     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1700   esac
1701   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1702 done
1703 
1704 # There might be people who depend on the old broken behavior: `$host'
1705 # used to hold the argument of --host etc.
1706 # FIXME: To remove some day.
1707 build=$build_alias
1708 host=$host_alias
1709 target=$target_alias
1710 
1711 # FIXME: To remove some day.
1712 if test "x$host_alias" != x; then
1713   if test "x$build_alias" = x; then
1714     cross_compiling=maybe
1715   elif test "x$build_alias" != "x$host_alias"; then
1716     cross_compiling=yes
1717   fi
1718 fi
1719 
1720 ac_tool_prefix=
1721 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1722 
1723 test "$silent" = yes && exec 6>/dev/null
1724 
1725 
1726 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1727 ac_ls_di=`ls -di .` &&
1728 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1729   as_fn_error $? "working directory cannot be determined"
1730 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1731   as_fn_error $? "pwd does not report name of working directory"
1732 
1733 
1734 # Find the source files, if location was not specified.
1735 if test -z "$srcdir"; then
1736   ac_srcdir_defaulted=yes
1737   # Try the directory containing this script, then the parent directory.
1738   ac_confdir=`$as_dirname -- "$as_myself" ||
1739 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1740          X"$as_myself" : 'X\(//\)[^/]' \| \
1741          X"$as_myself" : 'X\(//\)$' \| \
1742          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1743 $as_echo X"$as_myself" |
1744     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1745             s//\1/
1746             q
1747           }
1748           /^X\(\/\/\)[^/].*/{
1749             s//\1/
1750             q
1751           }
1752           /^X\(\/\/\)$/{
1753             s//\1/
1754             q
1755           }
1756           /^X\(\/\).*/{
1757             s//\1/
1758             q
1759           }
1760           s/.*/./; q'`
1761   srcdir=$ac_confdir
1762   if test ! -r "$srcdir/$ac_unique_file"; then
1763     srcdir=..
1764   fi
1765 else
1766   ac_srcdir_defaulted=no
1767 fi
1768 if test ! -r "$srcdir/$ac_unique_file"; then
1769   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1770   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1771 fi
1772 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1773 ac_abs_confdir=`(
1774         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1775         pwd)`
1776 # When building in place, set srcdir=.
1777 if test "$ac_abs_confdir" = "$ac_pwd"; then
1778   srcdir=.
1779 fi
1780 # Remove unnecessary trailing slashes from srcdir.
1781 # Double slashes in file names in object file debugging info
1782 # mess up M-x gdb in Emacs.
1783 case $srcdir in
1784 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1785 esac
1786 for ac_var in $ac_precious_vars; do
1787   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1788   eval ac_env_${ac_var}_value=\$${ac_var}
1789   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1790   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1791 done
1792 
1793 #
1794 # Report the --help message.
1795 #
1796 if test "$ac_init_help" = "long"; then
1797   # Omit some internal or obsolete options to make the list less imposing.
1798   # This message is too long to be a string in the A/UX 3.1 sh.
1799   cat <<_ACEOF
1800 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1801 
1802 Usage: $0 [OPTION]... [VAR=VALUE]...
1803 
1804 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1805 VAR=VALUE.  See below for descriptions of some of the useful variables.
1806 
1807 Defaults for the options are specified in brackets.
1808 
1809 Configuration:
1810   -h, --help              display this help and exit
1811       --help=short        display options specific to this package
1812       --help=recursive    display the short help of all the included packages
1813   -V, --version           display version information and exit
1814   -q, --quiet, --silent   do not print \`checking ...' messages
1815       --cache-file=FILE   cache test results in FILE [disabled]
1816   -C, --config-cache      alias for \`--cache-file=config.cache'
1817   -n, --no-create         do not create output files
1818       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1819 
1820 Installation directories:
1821   --prefix=PREFIX         install architecture-independent files in PREFIX
1822                           [$ac_default_prefix]
1823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1824                           [PREFIX]
1825 
1826 By default, \`make install' will install all the files in
1827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1829 for instance \`--prefix=\$HOME'.
1830 
1831 For better control, use the options below.
1832 
1833 Fine tuning of the installation directories:
1834   --bindir=DIR            user executables [EPREFIX/bin]
1835   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1836   --libexecdir=DIR        program executables [EPREFIX/libexec]
1837   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1838   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1839   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1840   --libdir=DIR            object code libraries [EPREFIX/lib]
1841   --includedir=DIR        C header files [PREFIX/include]
1842   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1843   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1844   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1845   --infodir=DIR           info documentation [DATAROOTDIR/info]
1846   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1847   --mandir=DIR            man documentation [DATAROOTDIR/man]
1848   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1849   --htmldir=DIR           html documentation [DOCDIR]
1850   --dvidir=DIR            dvi documentation [DOCDIR]
1851   --pdfdir=DIR            pdf documentation [DOCDIR]
1852   --psdir=DIR             ps documentation [DOCDIR]
1853 _ACEOF
1854 
1855   cat <<\_ACEOF
1856 
1857 X features:
1858   --x-includes=DIR    X include files are in DIR
1859   --x-libraries=DIR   X library files are in DIR
1860 
1861 System types:
1862   --build=BUILD     configure for building on BUILD [guessed]
1863   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1864   --target=TARGET   configure for building compilers for TARGET [HOST]
1865 _ACEOF
1866 fi
1867 
1868 if test -n "$ac_init_help"; then
1869   case $ac_init_help in
1870      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1871    esac
1872   cat <<\_ACEOF
1873 
1874 Optional Features:
1875   --disable-option-checking  ignore unrecognized --enable/--with options
1876   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1877   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1878   --enable-openjdk-only   suppress building custom source even if present
1879                           [disabled]
1880   --enable-debug          set the debug level to fastdebug (shorthand for
1881                           --with-debug-level=fastdebug) [disabled]
1882   --disable-headful       disable building headful support (graphical UI
1883                           support) [enabled]
1884   --enable-hotspot-test-in-build
1885                           run the Queens test after Hotspot build [disabled]
1886   --enable-unlimited-crypto
1887                           Enable unlimited crypto policy [disabled]
1888   --enable-static-build   enable static library build [disabled]
1889   --disable-warnings-as-errors
1890                           do not consider native warnings to be an error
1891                           [enabled]
1892   --enable-debug-symbols  Deprecated. Option is kept for backwards
1893                           compatibility and is ignored
1894   --enable-zip-debug-info Deprecated. Option is kept for backwards
1895                           compatibility and is ignored
1896   --enable-native-coverage
1897                           enable native compilation with code coverage
1898                           data[disabled]
1899   --disable-freetype-bundling
1900                           disable bundling of the freetype library with the
1901                           build result [enabled on Windows or when using
1902                           --with-freetype, disabled otherwise]
1903   --enable-sjavac         use sjavac to do fast incremental compiles
1904                           [disabled]
1905   --disable-javac-server  disable javac server [enabled]
1906   --enable-icecc          enable distribted compilation of native code using
1907                           icecc/icecream [disabled]
1908   --disable-precompiled-headers
1909                           disable using precompiled headers when compiling C++
1910                           [enabled]
1911   --enable-ccache         enable using ccache to speed up recompilations
1912                           [disabled]
1913 
1914 Optional Packages:
1915   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1916   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1917   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1918                           support it), e.g. --with-target-bits=32 [guessed]
1919   --with-custom-make-dir  Deprecated. Option is kept for backwards
1920                           compatibility and is ignored
1921   --with-jdk-variant      JDK variant to build (normal) [normal]
1922   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1923   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1924                           client, minimal1, kernel, zero, zeroshark, core)
1925                           [server]
1926   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1927                           optimized (HotSpot build only)) [release]
1928   --with-devkit           use this devkit for compilers, tools and resources
1929   --with-sys-root         alias for --with-sysroot for backwards compatability
1930   --with-sysroot          use this directory as sysroot
1931   --with-tools-dir        alias for --with-toolchain-path for backwards
1932                           compatibility
1933   --with-toolchain-path   prepend these directories when searching for
1934                           toolchain binaries (compilers etc)
1935   --with-extra-path       prepend these directories to the default path
1936   --with-sdk-name         use the platform SDK of the given name. [macosx]
1937   --with-conf-name        use this as the name of the configuration [generated
1938                           from important configuration options]
1939   --with-output-sync      set make output sync type if supported by make.
1940                           [recurse]
1941   --with-cacerts-file     specify alternative cacerts file
1942   --with-copyright-year   Set copyright year value for build [current year]
1943   --with-milestone        Deprecated. Option is kept for backwards
1944                           compatibility and is ignored
1945   --with-update-version   Deprecated. Option is kept for backwards
1946                           compatibility and is ignored
1947   --with-user-release-suffix
1948                           Deprecated. Option is kept for backwards
1949                           compatibility and is ignored
1950   --with-build-number     Deprecated. Option is kept for backwards
1951                           compatibility and is ignored
1952   --with-version-string   Set version string [calculated]
1953   --with-version-pre      Set the base part of the version 'PRE' field
1954                           (pre-release identifier) ['internal']
1955   --with-version-opt      Set version 'OPT' field (build metadata)
1956                           [<timestamp>.<user>.<dirname>]
1957   --with-version-build    Set version 'BUILD' field (build number) [not
1958                           specified]
1959   --with-version-major    Set version 'MAJOR' field (first number) [current
1960                           source value]
1961   --with-version-minor    Set version 'MINOR' field (second number) [current
1962                           source value]
1963   --with-version-security Set version 'SECURITY' field (third number) [current
1964                           source value]
1965   --with-version-patch    Set version 'PATCH' field (fourth number) [not
1966                           specified]
1967   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1968   --with-add-source-root  Deprecated. Option is kept for backwards
1969                           compatibility and is ignored
1970   --with-override-source-root
1971                           Deprecated. Option is kept for backwards
1972                           compatibility and is ignored
1973   --with-adds-and-overrides
1974                           Deprecated. Option is kept for backwards
1975                           compatibility and is ignored
1976   --with-override-langtools
1977                           Deprecated. Option is kept for backwards
1978                           compatibility and is ignored
1979   --with-override-corba   Deprecated. Option is kept for backwards
1980                           compatibility and is ignored
1981   --with-override-jaxp    Deprecated. Option is kept for backwards
1982                           compatibility and is ignored
1983   --with-override-jaxws   Deprecated. Option is kept for backwards
1984                           compatibility and is ignored
1985   --with-override-hotspot Deprecated. Option is kept for backwards
1986                           compatibility and is ignored
1987   --with-override-nashorn Deprecated. Option is kept for backwards
1988                           compatibility and is ignored
1989   --with-override-jdk     Deprecated. Option is kept for backwards
1990                           compatibility and is ignored
1991   --with-import-hotspot   import hotspot binaries from this jdk image or
1992                           hotspot build dist dir instead of building from
1993                           source
1994   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1995                           to show possible values [platform dependent]
1996   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1997   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1998   --with-extra-ldflags    extra flags to be used when linking jdk
1999   --with-toolchain-version
2000                           the version of the toolchain to look for, use
2001                           '--help' to show possible values [platform
2002                           dependent]
2003   --with-build-devkit     Devkit to use for the build platform toolchain
2004   --with-jtreg            Regression Test Harness [probed]
2005   --with-native-debug-symbols
2006                           set the native debug symbol configuration (none,
2007                           internal, external, zipped) [zipped]
2008   --with-stdc++lib=<static>,<dynamic>,<default>
2009                           force linking of the C++ runtime on Linux to either
2010                           static or dynamic, default is static with dynamic as
2011                           fallback
2012   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2013                           (Windows only) [probed]
2014   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2015                           (Windows only) [probed]
2016   --with-x                use the X Window System
2017   --with-cups             specify prefix directory for the cups package
2018                           (expecting the headers under PATH/include)
2019   --with-cups-include     specify directory for the cups include files
2020   --with-freetype         specify prefix directory for the freetype package
2021                           (expecting the libraries under PATH/lib and the
2022                           headers under PATH/include)
2023   --with-freetype-include specify directory for the freetype include files
2024   --with-freetype-lib     specify directory for the freetype library
2025   --with-freetype-src     specify directory with freetype sources to
2026                           automatically build the library (experimental,
2027                           Windows-only)
2028   --with-alsa             specify prefix directory for the alsa package
2029                           (expecting the libraries under PATH/lib and the
2030                           headers under PATH/include)
2031   --with-alsa-include     specify directory for the alsa include files
2032   --with-alsa-lib         specify directory for the alsa library
2033   --with-libffi           specify prefix directory for the libffi package
2034                           (expecting the libraries under PATH/lib and the
2035                           headers under PATH/include)
2036   --with-libffi-include   specify directory for the libffi include files
2037   --with-libffi-lib       specify directory for the libffi library
2038   --with-libjpeg          use libjpeg from build system or OpenJDK source
2039                           (system, bundled) [bundled]
2040   --with-giflib           use giflib from build system or OpenJDK source
2041                           (system, bundled) [bundled]
2042   --with-libpng           use libpng from build system or OpenJDK source
2043                           (system, bundled) [bundled]
2044   --with-zlib             use zlib from build system or OpenJDK source
2045                           (system, bundled) [bundled]
2046   --with-lcms             use lcms2 from build system or OpenJDK source
2047                           (system, bundled) [bundled]
2048   --with-dxsdk            Deprecated. Option is kept for backwards
2049                           compatibility and is ignored
2050   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2051                           compatibility and is ignored
2052   --with-dxsdk-include    Deprecated. Option is kept for backwards
2053                           compatibility and is ignored
2054   --with-num-cores        number of cores in the build system, e.g.
2055                           --with-num-cores=8 [probed]
2056   --with-memory-size      memory (in MB) available in the build system, e.g.
2057                           --with-memory-size=1024 [probed]
2058   --with-jobs             number of parallel jobs to let make run [calculated
2059                           based on cores and memory]
2060   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2061                           invocations of boot JDK, overriding the default
2062                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2063                           -enableassertions"
2064   --with-sjavac-server-java
2065                           use this java binary for running the sjavac
2066                           background server [Boot JDK java]
2067   --with-ccache-dir       where to store ccache files [~/.ccache]
2068 
2069 Some influential environment variables:
2070   BASENAME    Override default value for BASENAME
2071   BASH        Override default value for BASH
2072   CAT         Override default value for CAT
2073   CHMOD       Override default value for CHMOD
2074   CMP         Override default value for CMP
2075   COMM        Override default value for COMM
2076   CP          Override default value for CP
2077   CUT         Override default value for CUT
2078   DATE        Override default value for DATE
2079   DIFF        Override default value for DIFF
2080   DIRNAME     Override default value for DIRNAME
2081   ECHO        Override default value for ECHO
2082   EXPR        Override default value for EXPR
2083   FILE        Override default value for FILE
2084   FIND        Override default value for FIND
2085   HEAD        Override default value for HEAD
2086   LN          Override default value for LN
2087   LS          Override default value for LS
2088   MKDIR       Override default value for MKDIR
2089   MKTEMP      Override default value for MKTEMP
2090   MV          Override default value for MV
2091   NAWK        Override default value for NAWK
2092   PRINTF      Override default value for PRINTF
2093   RM          Override default value for RM
2094   RMDIR       Override default value for RMDIR
2095   SH          Override default value for SH
2096   SORT        Override default value for SORT
2097   TAIL        Override default value for TAIL
2098   TAR         Override default value for TAR
2099   TEE         Override default value for TEE
2100   TOUCH       Override default value for TOUCH
2101   TR          Override default value for TR
2102   UNAME       Override default value for UNAME
2103   UNIQ        Override default value for UNIQ
2104   WC          Override default value for WC
2105   WHICH       Override default value for WHICH
2106   XARGS       Override default value for XARGS
2107   AWK         Override default value for AWK
2108   GREP        Override default value for GREP
2109   EGREP       Override default value for EGREP
2110   FGREP       Override default value for FGREP
2111   SED         Override default value for SED
2112   CYGPATH     Override default value for CYGPATH
2113   READLINK    Override default value for READLINK
2114   DF          Override default value for DF
2115   CPIO        Override default value for CPIO
2116   NICE        Override default value for NICE
2117   MAKE        Override default value for MAKE
2118   UNZIP       Override default value for UNZIP
2119   ZIP         Override default value for ZIP
2120   LDD         Override default value for LDD
2121   OTOOL       Override default value for OTOOL
2122   READELF     Override default value for READELF
2123   HG          Override default value for HG
2124   STAT        Override default value for STAT
2125   TIME        Override default value for TIME
2126   PATCH       Override default value for PATCH
2127   DSYMUTIL    Override default value for DSYMUTIL
2128   XATTR       Override default value for XATTR
2129   CODESIGN    Override default value for CODESIGN
2130   SETFILE     Override default value for SETFILE
2131   PKG_CONFIG  path to pkg-config utility
2132   JAVA        Override default value for JAVA
2133   JAVAC       Override default value for JAVAC
2134   JAVAH       Override default value for JAVAH
2135   JAR         Override default value for JAR
2136   JARSIGNER   Override default value for JARSIGNER
2137   CC          C compiler command
2138   CFLAGS      C compiler flags
2139   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2140               nonstandard directory <lib dir>
2141   LIBS        libraries to pass to the linker, e.g. -l<library>
2142   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2143               you have headers in a nonstandard directory <include dir>
2144   CXX         C++ compiler command
2145   CXXFLAGS    C++ compiler flags
2146   CPP         C preprocessor
2147   CXXCPP      C++ preprocessor
2148   AS          Override default value for AS
2149   AR          Override default value for AR
2150   LIPO        Override default value for LIPO
2151   STRIP       Override default value for STRIP
2152   NM          Override default value for NM
2153   GNM         Override default value for GNM
2154   OBJCOPY     Override default value for OBJCOPY
2155   OBJDUMP     Override default value for OBJDUMP
2156   BUILD_CC    Override default value for BUILD_CC
2157   BUILD_CXX   Override default value for BUILD_CXX
2158   BUILD_NM    Override default value for BUILD_NM
2159   BUILD_AR    Override default value for BUILD_AR
2160   JTREGEXE    Override default value for JTREGEXE
2161   XMKMF       Path to xmkmf, Makefile generator for X Window System
2162   FREETYPE_CFLAGS
2163               C compiler flags for FREETYPE, overriding pkg-config
2164   FREETYPE_LIBS
2165               linker flags for FREETYPE, overriding pkg-config
2166   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2167   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2168   LIBFFI_CFLAGS
2169               C compiler flags for LIBFFI, overriding pkg-config
2170   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2171   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2172   PNG_LIBS    linker flags for PNG, overriding pkg-config
2173   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2174   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2175   ICECC_CMD   Override default value for ICECC_CMD
2176   ICECC_CREATE_ENV
2177               Override default value for ICECC_CREATE_ENV
2178   ICECC_WRAPPER
2179               Override default value for ICECC_WRAPPER
2180   CCACHE      Override default value for CCACHE
2181 
2182 Use these variables to override the choices made by `configure' or to help
2183 it to find libraries and programs with nonstandard names/locations.
2184 
2185 Report bugs to <build-dev@openjdk.java.net>.
2186 OpenJDK home page: <http://openjdk.java.net>.
2187 _ACEOF
2188 ac_status=$?
2189 fi
2190 
2191 if test "$ac_init_help" = "recursive"; then
2192   # If there are subdirs, report their specific --help.
2193   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2194     test -d "$ac_dir" ||
2195       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2196       continue
2197     ac_builddir=.
2198 
2199 case "$ac_dir" in
2200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2201 *)
2202   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2203   # A ".." for each directory in $ac_dir_suffix.
2204   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2205   case $ac_top_builddir_sub in
2206   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2207   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2208   esac ;;
2209 esac
2210 ac_abs_top_builddir=$ac_pwd
2211 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2212 # for backward compatibility:
2213 ac_top_builddir=$ac_top_build_prefix
2214 
2215 case $srcdir in
2216   .)  # We are building in place.
2217     ac_srcdir=.
2218     ac_top_srcdir=$ac_top_builddir_sub
2219     ac_abs_top_srcdir=$ac_pwd ;;
2220   [\\/]* | ?:[\\/]* )  # Absolute name.
2221     ac_srcdir=$srcdir$ac_dir_suffix;
2222     ac_top_srcdir=$srcdir
2223     ac_abs_top_srcdir=$srcdir ;;
2224   *) # Relative name.
2225     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2226     ac_top_srcdir=$ac_top_build_prefix$srcdir
2227     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2228 esac
2229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2230 
2231     cd "$ac_dir" || { ac_status=$?; continue; }
2232     # Check for guested configure.
2233     if test -f "$ac_srcdir/configure.gnu"; then
2234       echo &&
2235       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2236     elif test -f "$ac_srcdir/configure"; then
2237       echo &&
2238       $SHELL "$ac_srcdir/configure" --help=recursive
2239     else
2240       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2241     fi || ac_status=$?
2242     cd "$ac_pwd" || { ac_status=$?; break; }
2243   done
2244 fi
2245 
2246 test -n "$ac_init_help" && exit $ac_status
2247 if $ac_init_version; then
2248   cat <<\_ACEOF
2249 OpenJDK configure jdk9
2250 generated by GNU Autoconf 2.69
2251 
2252 Copyright (C) 2012 Free Software Foundation, Inc.
2253 This configure script is free software; the Free Software Foundation
2254 gives unlimited permission to copy, distribute and modify it.
2255 _ACEOF
2256   exit
2257 fi
2258 
2259 ## ------------------------ ##
2260 ## Autoconf initialization. ##
2261 ## ------------------------ ##
2262 
2263 # ac_fn_c_try_compile LINENO
2264 # --------------------------
2265 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2266 ac_fn_c_try_compile ()
2267 {
2268   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269   rm -f conftest.$ac_objext
2270   if { { ac_try="$ac_compile"
2271 case "(($ac_try" in
2272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273   *) ac_try_echo=$ac_try;;
2274 esac
2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277   (eval "$ac_compile") 2>conftest.err
2278   ac_status=$?
2279   if test -s conftest.err; then
2280     grep -v '^ *+' conftest.err >conftest.er1
2281     cat conftest.er1 >&5
2282     mv -f conftest.er1 conftest.err
2283   fi
2284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285   test $ac_status = 0; } && {
2286          test -z "$ac_c_werror_flag" ||
2287          test ! -s conftest.err
2288        } && test -s conftest.$ac_objext; then :
2289   ac_retval=0
2290 else
2291   $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2293 
2294         ac_retval=1
2295 fi
2296   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297   as_fn_set_status $ac_retval
2298 
2299 } # ac_fn_c_try_compile
2300 
2301 # ac_fn_cxx_try_compile LINENO
2302 # ----------------------------
2303 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2304 ac_fn_cxx_try_compile ()
2305 {
2306   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307   rm -f conftest.$ac_objext
2308   if { { ac_try="$ac_compile"
2309 case "(($ac_try" in
2310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311   *) ac_try_echo=$ac_try;;
2312 esac
2313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2314 $as_echo "$ac_try_echo"; } >&5
2315   (eval "$ac_compile") 2>conftest.err
2316   ac_status=$?
2317   if test -s conftest.err; then
2318     grep -v '^ *+' conftest.err >conftest.er1
2319     cat conftest.er1 >&5
2320     mv -f conftest.er1 conftest.err
2321   fi
2322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323   test $ac_status = 0; } && {
2324          test -z "$ac_cxx_werror_flag" ||
2325          test ! -s conftest.err
2326        } && test -s conftest.$ac_objext; then :
2327   ac_retval=0
2328 else
2329   $as_echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331 
2332         ac_retval=1
2333 fi
2334   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335   as_fn_set_status $ac_retval
2336 
2337 } # ac_fn_cxx_try_compile
2338 
2339 # ac_fn_c_try_cpp LINENO
2340 # ----------------------
2341 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2342 ac_fn_c_try_cpp ()
2343 {
2344   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345   if { { ac_try="$ac_cpp conftest.$ac_ext"
2346 case "(($ac_try" in
2347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348   *) ac_try_echo=$ac_try;;
2349 esac
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2353   ac_status=$?
2354   if test -s conftest.err; then
2355     grep -v '^ *+' conftest.err >conftest.er1
2356     cat conftest.er1 >&5
2357     mv -f conftest.er1 conftest.err
2358   fi
2359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2360   test $ac_status = 0; } > conftest.i && {
2361          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2362          test ! -s conftest.err
2363        }; then :
2364   ac_retval=0
2365 else
2366   $as_echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368 
2369     ac_retval=1
2370 fi
2371   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2372   as_fn_set_status $ac_retval
2373 
2374 } # ac_fn_c_try_cpp
2375 
2376 # ac_fn_cxx_try_cpp LINENO
2377 # ------------------------
2378 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2379 ac_fn_cxx_try_cpp ()
2380 {
2381   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382   if { { ac_try="$ac_cpp conftest.$ac_ext"
2383 case "(($ac_try" in
2384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385   *) ac_try_echo=$ac_try;;
2386 esac
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2390   ac_status=$?
2391   if test -s conftest.err; then
2392     grep -v '^ *+' conftest.err >conftest.er1
2393     cat conftest.er1 >&5
2394     mv -f conftest.er1 conftest.err
2395   fi
2396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397   test $ac_status = 0; } > conftest.i && {
2398          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2399          test ! -s conftest.err
2400        }; then :
2401   ac_retval=0
2402 else
2403   $as_echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405 
2406     ac_retval=1
2407 fi
2408   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409   as_fn_set_status $ac_retval
2410 
2411 } # ac_fn_cxx_try_cpp
2412 
2413 # ac_fn_c_try_link LINENO
2414 # -----------------------
2415 # Try to link conftest.$ac_ext, and return whether this succeeded.
2416 ac_fn_c_try_link ()
2417 {
2418   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419   rm -f conftest.$ac_objext conftest$ac_exeext
2420   if { { ac_try="$ac_link"
2421 case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2426 $as_echo "$ac_try_echo"; } >&5
2427   (eval "$ac_link") 2>conftest.err
2428   ac_status=$?
2429   if test -s conftest.err; then
2430     grep -v '^ *+' conftest.err >conftest.er1
2431     cat conftest.er1 >&5
2432     mv -f conftest.er1 conftest.err
2433   fi
2434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2435   test $ac_status = 0; } && {
2436          test -z "$ac_c_werror_flag" ||
2437          test ! -s conftest.err
2438        } && test -s conftest$ac_exeext && {
2439          test "$cross_compiling" = yes ||
2440          test -x conftest$ac_exeext
2441        }; then :
2442   ac_retval=0
2443 else
2444   $as_echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2446 
2447         ac_retval=1
2448 fi
2449   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2450   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2451   # interfere with the next link command; also delete a directory that is
2452   # left behind by Apple's compiler.  We do this before executing the actions.
2453   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2454   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2455   as_fn_set_status $ac_retval
2456 
2457 } # ac_fn_c_try_link
2458 
2459 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2460 # ---------------------------------------------------------
2461 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2462 # the include files in INCLUDES and setting the cache variable VAR
2463 # accordingly.
2464 ac_fn_cxx_check_header_mongrel ()
2465 {
2466   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467   if eval \${$3+:} false; then :
2468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2469 $as_echo_n "checking for $2... " >&6; }
2470 if eval \${$3+:} false; then :
2471   $as_echo_n "(cached) " >&6
2472 fi
2473 eval ac_res=\$$3
2474                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475 $as_echo "$ac_res" >&6; }
2476 else
2477   # Is the header compilable?
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2479 $as_echo_n "checking $2 usability... " >&6; }
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h.  */
2482 $4
2483 #include <$2>
2484 _ACEOF
2485 if ac_fn_cxx_try_compile "$LINENO"; then :
2486   ac_header_compiler=yes
2487 else
2488   ac_header_compiler=no
2489 fi
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2492 $as_echo "$ac_header_compiler" >&6; }
2493 
2494 # Is the header present?
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2496 $as_echo_n "checking $2 presence... " >&6; }
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h.  */
2499 #include <$2>
2500 _ACEOF
2501 if ac_fn_cxx_try_cpp "$LINENO"; then :
2502   ac_header_preproc=yes
2503 else
2504   ac_header_preproc=no
2505 fi
2506 rm -f conftest.err conftest.i conftest.$ac_ext
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2508 $as_echo "$ac_header_preproc" >&6; }
2509 
2510 # So?  What about this header?
2511 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2512   yes:no: )
2513     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2514 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2515     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2516 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2517     ;;
2518   no:yes:* )
2519     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2520 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2521     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2522 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2523     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2524 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2525     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2526 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2527     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2528 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2529 ( $as_echo "## ----------------------------------------- ##
2530 ## Report this to build-dev@openjdk.java.net ##
2531 ## ----------------------------------------- ##"
2532      ) | sed "s/^/$as_me: WARNING:     /" >&2
2533     ;;
2534 esac
2535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 $as_echo_n "checking for $2... " >&6; }
2537 if eval \${$3+:} false; then :
2538   $as_echo_n "(cached) " >&6
2539 else
2540   eval "$3=\$ac_header_compiler"
2541 fi
2542 eval ac_res=\$$3
2543                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 $as_echo "$ac_res" >&6; }
2545 fi
2546   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2547 
2548 } # ac_fn_cxx_check_header_mongrel
2549 
2550 # ac_fn_cxx_try_run LINENO
2551 # ------------------------
2552 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2553 # that executables *can* be run.
2554 ac_fn_cxx_try_run ()
2555 {
2556   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557   if { { ac_try="$ac_link"
2558 case "(($ac_try" in
2559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560   *) ac_try_echo=$ac_try;;
2561 esac
2562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563 $as_echo "$ac_try_echo"; } >&5
2564   (eval "$ac_link") 2>&5
2565   ac_status=$?
2566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2567   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2568   { { case "(($ac_try" in
2569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570   *) ac_try_echo=$ac_try;;
2571 esac
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo"; } >&5
2574   (eval "$ac_try") 2>&5
2575   ac_status=$?
2576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577   test $ac_status = 0; }; }; then :
2578   ac_retval=0
2579 else
2580   $as_echo "$as_me: program exited with status $ac_status" >&5
2581        $as_echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583 
2584        ac_retval=$ac_status
2585 fi
2586   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2587   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2588   as_fn_set_status $ac_retval
2589 
2590 } # ac_fn_cxx_try_run
2591 
2592 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2593 # ---------------------------------------------------------
2594 # Tests whether HEADER exists and can be compiled using the include files in
2595 # INCLUDES, setting the cache variable VAR accordingly.
2596 ac_fn_cxx_check_header_compile ()
2597 {
2598   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2600 $as_echo_n "checking for $2... " >&6; }
2601 if eval \${$3+:} false; then :
2602   $as_echo_n "(cached) " >&6
2603 else
2604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h.  */
2606 $4
2607 #include <$2>
2608 _ACEOF
2609 if ac_fn_cxx_try_compile "$LINENO"; then :
2610   eval "$3=yes"
2611 else
2612   eval "$3=no"
2613 fi
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 fi
2616 eval ac_res=\$$3
2617                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2620 
2621 } # ac_fn_cxx_check_header_compile
2622 
2623 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2624 # ----------------------------------------------
2625 # Tries to find the compile-time value of EXPR in a program that includes
2626 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2627 # computed
2628 ac_fn_cxx_compute_int ()
2629 {
2630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631   if test "$cross_compiling" = yes; then
2632     # Depending upon the size, compute the lo and hi bounds.
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h.  */
2635 $4
2636 int
2637 main ()
2638 {
2639 static int test_array [1 - 2 * !(($2) >= 0)];
2640 test_array [0] = 0;
2641 return test_array [0];
2642 
2643   ;
2644   return 0;
2645 }
2646 _ACEOF
2647 if ac_fn_cxx_try_compile "$LINENO"; then :
2648   ac_lo=0 ac_mid=0
2649   while :; do
2650     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h.  */
2652 $4
2653 int
2654 main ()
2655 {
2656 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2657 test_array [0] = 0;
2658 return test_array [0];
2659 
2660   ;
2661   return 0;
2662 }
2663 _ACEOF
2664 if ac_fn_cxx_try_compile "$LINENO"; then :
2665   ac_hi=$ac_mid; break
2666 else
2667   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2668                         if test $ac_lo -le $ac_mid; then
2669                           ac_lo= ac_hi=
2670                           break
2671                         fi
2672                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2673 fi
2674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675   done
2676 else
2677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h.  */
2679 $4
2680 int
2681 main ()
2682 {
2683 static int test_array [1 - 2 * !(($2) < 0)];
2684 test_array [0] = 0;
2685 return test_array [0];
2686 
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 if ac_fn_cxx_try_compile "$LINENO"; then :
2692   ac_hi=-1 ac_mid=-1
2693   while :; do
2694     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h.  */
2696 $4
2697 int
2698 main ()
2699 {
2700 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2701 test_array [0] = 0;
2702 return test_array [0];
2703 
2704   ;
2705   return 0;
2706 }
2707 _ACEOF
2708 if ac_fn_cxx_try_compile "$LINENO"; then :
2709   ac_lo=$ac_mid; break
2710 else
2711   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2712                         if test $ac_mid -le $ac_hi; then
2713                           ac_lo= ac_hi=
2714                           break
2715                         fi
2716                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2717 fi
2718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719   done
2720 else
2721   ac_lo= ac_hi=
2722 fi
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 fi
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 # Binary search between lo and hi bounds.
2727 while test "x$ac_lo" != "x$ac_hi"; do
2728   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h.  */
2731 $4
2732 int
2733 main ()
2734 {
2735 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2736 test_array [0] = 0;
2737 return test_array [0];
2738 
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 if ac_fn_cxx_try_compile "$LINENO"; then :
2744   ac_hi=$ac_mid
2745 else
2746   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2747 fi
2748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 done
2750 case $ac_lo in #((
2751 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2752 '') ac_retval=1 ;;
2753 esac
2754   else
2755     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756 /* end confdefs.h.  */
2757 $4
2758 static long int longval () { return $2; }
2759 static unsigned long int ulongval () { return $2; }
2760 #include <stdio.h>
2761 #include <stdlib.h>
2762 int
2763 main ()
2764 {
2765 
2766   FILE *f = fopen ("conftest.val", "w");
2767   if (! f)
2768     return 1;
2769   if (($2) < 0)
2770     {
2771       long int i = longval ();
2772       if (i != ($2))
2773         return 1;
2774       fprintf (f, "%ld", i);
2775     }
2776   else
2777     {
2778       unsigned long int i = ulongval ();
2779       if (i != ($2))
2780         return 1;
2781       fprintf (f, "%lu", i);
2782     }
2783   /* Do not output a trailing newline, as this causes \r\n confusion
2784      on some platforms.  */
2785   return ferror (f) || fclose (f) != 0;
2786 
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 if ac_fn_cxx_try_run "$LINENO"; then :
2792   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2793 else
2794   ac_retval=1
2795 fi
2796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2797   conftest.$ac_objext conftest.beam conftest.$ac_ext
2798 rm -f conftest.val
2799 
2800   fi
2801   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2802   as_fn_set_status $ac_retval
2803 
2804 } # ac_fn_cxx_compute_int
2805 
2806 # ac_fn_cxx_try_link LINENO
2807 # -------------------------
2808 # Try to link conftest.$ac_ext, and return whether this succeeded.
2809 ac_fn_cxx_try_link ()
2810 {
2811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2812   rm -f conftest.$ac_objext conftest$ac_exeext
2813   if { { ac_try="$ac_link"
2814 case "(($ac_try" in
2815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816   *) ac_try_echo=$ac_try;;
2817 esac
2818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2819 $as_echo "$ac_try_echo"; } >&5
2820   (eval "$ac_link") 2>conftest.err
2821   ac_status=$?
2822   if test -s conftest.err; then
2823     grep -v '^ *+' conftest.err >conftest.er1
2824     cat conftest.er1 >&5
2825     mv -f conftest.er1 conftest.err
2826   fi
2827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2828   test $ac_status = 0; } && {
2829          test -z "$ac_cxx_werror_flag" ||
2830          test ! -s conftest.err
2831        } && test -s conftest$ac_exeext && {
2832          test "$cross_compiling" = yes ||
2833          test -x conftest$ac_exeext
2834        }; then :
2835   ac_retval=0
2836 else
2837   $as_echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2839 
2840         ac_retval=1
2841 fi
2842   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2843   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2844   # interfere with the next link command; also delete a directory that is
2845   # left behind by Apple's compiler.  We do this before executing the actions.
2846   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2847   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2848   as_fn_set_status $ac_retval
2849 
2850 } # ac_fn_cxx_try_link
2851 
2852 # ac_fn_cxx_check_func LINENO FUNC VAR
2853 # ------------------------------------
2854 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2855 ac_fn_cxx_check_func ()
2856 {
2857   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2859 $as_echo_n "checking for $2... " >&6; }
2860 if eval \${$3+:} false; then :
2861   $as_echo_n "(cached) " >&6
2862 else
2863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864 /* end confdefs.h.  */
2865 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2867 #define $2 innocuous_$2
2868 
2869 /* System header to define __stub macros and hopefully few prototypes,
2870     which can conflict with char $2 (); below.
2871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2872     <limits.h> exists even on freestanding compilers.  */
2873 
2874 #ifdef __STDC__
2875 # include <limits.h>
2876 #else
2877 # include <assert.h>
2878 #endif
2879 
2880 #undef $2
2881 
2882 /* Override any GCC internal prototype to avoid an error.
2883    Use char because int might match the return type of a GCC
2884    builtin and then its argument prototype would still apply.  */
2885 #ifdef __cplusplus
2886 extern "C"
2887 #endif
2888 char $2 ();
2889 /* The GNU C library defines this for functions which it implements
2890     to always fail with ENOSYS.  Some functions are actually named
2891     something starting with __ and the normal name is an alias.  */
2892 #if defined __stub_$2 || defined __stub___$2
2893 choke me
2894 #endif
2895 
2896 int
2897 main ()
2898 {
2899 return $2 ();
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 if ac_fn_cxx_try_link "$LINENO"; then :
2905   eval "$3=yes"
2906 else
2907   eval "$3=no"
2908 fi
2909 rm -f core conftest.err conftest.$ac_objext \
2910     conftest$ac_exeext conftest.$ac_ext
2911 fi
2912 eval ac_res=\$$3
2913                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2914 $as_echo "$ac_res" >&6; }
2915   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2916 
2917 } # ac_fn_cxx_check_func
2918 
2919 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2920 # -------------------------------------------------------
2921 # Tests whether HEADER exists and can be compiled using the include files in
2922 # INCLUDES, setting the cache variable VAR accordingly.
2923 ac_fn_c_check_header_compile ()
2924 {
2925   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2927 $as_echo_n "checking for $2... " >&6; }
2928 if eval \${$3+:} false; then :
2929   $as_echo_n "(cached) " >&6
2930 else
2931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932 /* end confdefs.h.  */
2933 $4
2934 #include <$2>
2935 _ACEOF
2936 if ac_fn_c_try_compile "$LINENO"; then :
2937   eval "$3=yes"
2938 else
2939   eval "$3=no"
2940 fi
2941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942 fi
2943 eval ac_res=\$$3
2944                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2945 $as_echo "$ac_res" >&6; }
2946   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2947 
2948 } # ac_fn_c_check_header_compile
2949 cat >config.log <<_ACEOF
2950 This file contains any messages produced by compilers while
2951 running configure, to aid debugging if configure makes a mistake.
2952 
2953 It was created by OpenJDK $as_me jdk9, which was
2954 generated by GNU Autoconf 2.69.  Invocation command line was
2955 
2956   $ $0 $@
2957 
2958 _ACEOF
2959 exec 5>>config.log
2960 {
2961 cat <<_ASUNAME
2962 ## --------- ##
2963 ## Platform. ##
2964 ## --------- ##
2965 
2966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2971 
2972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2973 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2974 
2975 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2976 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2978 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2979 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2980 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2981 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2982 
2983 _ASUNAME
2984 
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988   IFS=$as_save_IFS
2989   test -z "$as_dir" && as_dir=.
2990     $as_echo "PATH: $as_dir"
2991   done
2992 IFS=$as_save_IFS
2993 
2994 } >&5
2995 
2996 cat >&5 <<_ACEOF
2997 
2998 
2999 ## ----------- ##
3000 ## Core tests. ##
3001 ## ----------- ##
3002 
3003 _ACEOF
3004 
3005 
3006 # Keep a trace of the command line.
3007 # Strip out --no-create and --no-recursion so they do not pile up.
3008 # Strip out --silent because we don't want to record it for future runs.
3009 # Also quote any args containing shell meta-characters.
3010 # Make two passes to allow for proper duplicate-argument suppression.
3011 ac_configure_args=
3012 ac_configure_args0=
3013 ac_configure_args1=
3014 ac_must_keep_next=false
3015 for ac_pass in 1 2
3016 do
3017   for ac_arg
3018   do
3019     case $ac_arg in
3020     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3021     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3022     | -silent | --silent | --silen | --sile | --sil)
3023       continue ;;
3024     *\'*)
3025       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3026     esac
3027     case $ac_pass in
3028     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3029     2)
3030       as_fn_append ac_configure_args1 " '$ac_arg'"
3031       if test $ac_must_keep_next = true; then
3032         ac_must_keep_next=false # Got value, back to normal.
3033       else
3034         case $ac_arg in
3035           *=* | --config-cache | -C | -disable-* | --disable-* \
3036           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3037           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3038           | -with-* | --with-* | -without-* | --without-* | --x)
3039             case "$ac_configure_args0 " in
3040               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3041             esac
3042             ;;
3043           -* ) ac_must_keep_next=true ;;
3044         esac
3045       fi
3046       as_fn_append ac_configure_args " '$ac_arg'"
3047       ;;
3048     esac
3049   done
3050 done
3051 { ac_configure_args0=; unset ac_configure_args0;}
3052 { ac_configure_args1=; unset ac_configure_args1;}
3053 
3054 # When interrupted or exit'd, cleanup temporary files, and complete
3055 # config.log.  We remove comments because anyway the quotes in there
3056 # would cause problems or look ugly.
3057 # WARNING: Use '\'' to represent an apostrophe within the trap.
3058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3059 trap 'exit_status=$?
3060   # Save into config.log some information that might help in debugging.
3061   {
3062     echo
3063 
3064     $as_echo "## ---------------- ##
3065 ## Cache variables. ##
3066 ## ---------------- ##"
3067     echo
3068     # The following way of writing the cache mishandles newlines in values,
3069 (
3070   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3071     eval ac_val=\$$ac_var
3072     case $ac_val in #(
3073     *${as_nl}*)
3074       case $ac_var in #(
3075       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3077       esac
3078       case $ac_var in #(
3079       _ | IFS | as_nl) ;; #(
3080       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3081       *) { eval $ac_var=; unset $ac_var;} ;;
3082       esac ;;
3083     esac
3084   done
3085   (set) 2>&1 |
3086     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3087     *${as_nl}ac_space=\ *)
3088       sed -n \
3089         "s/'\''/'\''\\\\'\'''\''/g;
3090           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3091       ;; #(
3092     *)
3093       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3094       ;;
3095     esac |
3096     sort
3097 )
3098     echo
3099 
3100     $as_echo "## ----------------- ##
3101 ## Output variables. ##
3102 ## ----------------- ##"
3103     echo
3104     for ac_var in $ac_subst_vars
3105     do
3106       eval ac_val=\$$ac_var
3107       case $ac_val in
3108       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3109       esac
3110       $as_echo "$ac_var='\''$ac_val'\''"
3111     done | sort
3112     echo
3113 
3114     if test -n "$ac_subst_files"; then
3115       $as_echo "## ------------------- ##
3116 ## File substitutions. ##
3117 ## ------------------- ##"
3118       echo
3119       for ac_var in $ac_subst_files
3120       do
3121         eval ac_val=\$$ac_var
3122         case $ac_val in
3123         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3124         esac
3125         $as_echo "$ac_var='\''$ac_val'\''"
3126       done | sort
3127       echo
3128     fi
3129 
3130     if test -s confdefs.h; then
3131       $as_echo "## ----------- ##
3132 ## confdefs.h. ##
3133 ## ----------- ##"
3134       echo
3135       cat confdefs.h
3136       echo
3137     fi
3138     test "$ac_signal" != 0 &&
3139       $as_echo "$as_me: caught signal $ac_signal"
3140     $as_echo "$as_me: exit $exit_status"
3141   } >&5
3142   rm -f core *.core core.conftest.* &&
3143     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3144     exit $exit_status
3145 ' 0
3146 for ac_signal in 1 2 13 15; do
3147   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3148 done
3149 ac_signal=0
3150 
3151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3152 rm -f -r conftest* confdefs.h
3153 
3154 $as_echo "/* confdefs.h */" > confdefs.h
3155 
3156 # Predefined preprocessor variables.
3157 
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_NAME "$PACKAGE_NAME"
3160 _ACEOF
3161 
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3164 _ACEOF
3165 
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3168 _ACEOF
3169 
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_STRING "$PACKAGE_STRING"
3172 _ACEOF
3173 
3174 cat >>confdefs.h <<_ACEOF
3175 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3176 _ACEOF
3177 
3178 cat >>confdefs.h <<_ACEOF
3179 #define PACKAGE_URL "$PACKAGE_URL"
3180 _ACEOF
3181 
3182 
3183 # Let the site file select an alternate cache file if it wants to.
3184 # Prefer an explicitly selected file to automatically selected ones.
3185 ac_site_file1=NONE
3186 ac_site_file2=NONE
3187 if test -n "$CONFIG_SITE"; then
3188   # We do not want a PATH search for config.site.
3189   case $CONFIG_SITE in #((
3190     -*)  ac_site_file1=./$CONFIG_SITE;;
3191     */*) ac_site_file1=$CONFIG_SITE;;
3192     *)   ac_site_file1=./$CONFIG_SITE;;
3193   esac
3194 elif test "x$prefix" != xNONE; then
3195   ac_site_file1=$prefix/share/config.site
3196   ac_site_file2=$prefix/etc/config.site
3197 else
3198   ac_site_file1=$ac_default_prefix/share/config.site
3199   ac_site_file2=$ac_default_prefix/etc/config.site
3200 fi
3201 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3202 do
3203   test "x$ac_site_file" = xNONE && continue
3204   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3205     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3206 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3207     sed 's/^/| /' "$ac_site_file" >&5
3208     . "$ac_site_file" \
3209       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error $? "failed to load site script $ac_site_file
3212 See \`config.log' for more details" "$LINENO" 5; }
3213   fi
3214 done
3215 
3216 if test -r "$cache_file"; then
3217   # Some versions of bash will fail to source /dev/null (special files
3218   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3219   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3220     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3221 $as_echo "$as_me: loading cache $cache_file" >&6;}
3222     case $cache_file in
3223       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3224       *)                      . "./$cache_file";;
3225     esac
3226   fi
3227 else
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3229 $as_echo "$as_me: creating cache $cache_file" >&6;}
3230   >$cache_file
3231 fi
3232 
3233 # Check that the precious variables saved in the cache have kept the same
3234 # value.
3235 ac_cache_corrupted=false
3236 for ac_var in $ac_precious_vars; do
3237   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3238   eval ac_new_set=\$ac_env_${ac_var}_set
3239   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3240   eval ac_new_val=\$ac_env_${ac_var}_value
3241   case $ac_old_set,$ac_new_set in
3242     set,)
3243       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3244 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3245       ac_cache_corrupted=: ;;
3246     ,set)
3247       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3248 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3249       ac_cache_corrupted=: ;;
3250     ,);;
3251     *)
3252       if test "x$ac_old_val" != "x$ac_new_val"; then
3253         # differences in whitespace do not lead to failure.
3254         ac_old_val_w=`echo x $ac_old_val`
3255         ac_new_val_w=`echo x $ac_new_val`
3256         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3257           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3258 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3259           ac_cache_corrupted=:
3260         else
3261           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3262 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3263           eval $ac_var=\$ac_old_val
3264         fi
3265         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3266 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3267         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3268 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3269       fi;;
3270   esac
3271   # Pass precious variables to config.status.
3272   if test "$ac_new_set" = set; then
3273     case $ac_new_val in
3274     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3275     *) ac_arg=$ac_var=$ac_new_val ;;
3276     esac
3277     case " $ac_configure_args " in
3278       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3279       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3280     esac
3281   fi
3282 done
3283 if $ac_cache_corrupted; then
3284   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3287 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3288   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3289 fi
3290 ## -------------------- ##
3291 ## Main body of script. ##
3292 ## -------------------- ##
3293 
3294 ac_ext=c
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299 
3300 
3301 
3302 ac_aux_dir=
3303 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3304   if test -f "$ac_dir/install-sh"; then
3305     ac_aux_dir=$ac_dir
3306     ac_install_sh="$ac_aux_dir/install-sh -c"
3307     break
3308   elif 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/shtool"; then
3313     ac_aux_dir=$ac_dir
3314     ac_install_sh="$ac_aux_dir/shtool install -c"
3315     break
3316   fi
3317 done
3318 if test -z "$ac_aux_dir"; then
3319   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
3320 fi
3321 
3322 # These three variables are undocumented and unsupported,
3323 # and are intended to be withdrawn in a future Autoconf release.
3324 # They can cause serious problems if a builder's source tree is in a directory
3325 # whose full name contains unusual characters.
3326 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3327 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3328 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3329 
3330 
3331 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3332 
3333 #
3334 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3335 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3336 #
3337 # This code is free software; you can redistribute it and/or modify it
3338 # under the terms of the GNU General Public License version 2 only, as
3339 # published by the Free Software Foundation.  Oracle designates this
3340 # particular file as subject to the "Classpath" exception as provided
3341 # by Oracle in the LICENSE file that accompanied this code.
3342 #
3343 # This code is distributed in the hope that it will be useful, but WITHOUT
3344 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3345 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3346 # version 2 for more details (a copy is included in the LICENSE file that
3347 # accompanied this code).
3348 #
3349 # You should have received a copy of the GNU General Public License version
3350 # 2 along with this work; if not, write to the Free Software Foundation,
3351 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3352 #
3353 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3354 # or visit www.oracle.com if you need additional information or have any
3355 # questions.
3356 #
3357 
3358 #
3359 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3360 #
3361 # This program is free software; you can redistribute it and/or modify
3362 # it under the terms of the GNU General Public License as published by
3363 # the Free Software Foundation; either version 2 of the License, or
3364 # (at your option) any later version.
3365 #
3366 # This program is distributed in the hope that it will be useful, but
3367 # WITHOUT ANY WARRANTY; without even the implied warranty of
3368 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3369 # General Public License for more details.
3370 #
3371 # You should have received a copy of the GNU General Public License
3372 # along with this program; if not, write to the Free Software
3373 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3374 #
3375 # As a special exception to the GNU General Public License, if you
3376 # distribute this file as part of a program that contains a
3377 # configuration script generated by Autoconf, you may include it under
3378 # the same distribution terms that you use for the rest of that program.
3379 
3380 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3381 # ----------------------------------
3382 # PKG_PROG_PKG_CONFIG
3383 
3384 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3385 #
3386 # Check to see whether a particular set of modules exists.  Similar
3387 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3388 #
3389 #
3390 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3391 # this or PKG_CHECK_MODULES is called, or make sure to call
3392 # PKG_CHECK_EXISTS manually
3393 # --------------------------------------------------------------
3394 
3395 
3396 
3397 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3398 # ---------------------------------------------
3399 # _PKG_CONFIG
3400 
3401 # _PKG_SHORT_ERRORS_SUPPORTED
3402 # -----------------------------
3403 # _PKG_SHORT_ERRORS_SUPPORTED
3404 
3405 
3406 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3407 # [ACTION-IF-NOT-FOUND])
3408 #
3409 #
3410 # Note that if there is a possibility the first call to
3411 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3412 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3413 #
3414 #
3415 # --------------------------------------------------------------
3416 # PKG_CHECK_MODULES
3417 
3418 
3419 # Include these first...
3420 #
3421 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3422 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3423 #
3424 # This code is free software; you can redistribute it and/or modify it
3425 # under the terms of the GNU General Public License version 2 only, as
3426 # published by the Free Software Foundation.  Oracle designates this
3427 # particular file as subject to the "Classpath" exception as provided
3428 # by Oracle in the LICENSE file that accompanied this code.
3429 #
3430 # This code is distributed in the hope that it will be useful, but WITHOUT
3431 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3432 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3433 # version 2 for more details (a copy is included in the LICENSE file that
3434 # accompanied this code).
3435 #
3436 # You should have received a copy of the GNU General Public License version
3437 # 2 along with this work; if not, write to the Free Software Foundation,
3438 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3439 #
3440 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3441 # or visit www.oracle.com if you need additional information or have any
3442 # questions.
3443 #
3444 
3445 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3446 # If so, then append $1 to $2 \
3447 # Also set JVM_ARG_OK to true/false depending on outcome.
3448 
3449 
3450 # Appends a string to a path variable, only adding the : when needed.
3451 
3452 
3453 # Prepends a string to a path variable, only adding the : when needed.
3454 
3455 
3456 # This will make sure the given variable points to a full and proper
3457 # path. This means:
3458 # 1) There will be no spaces in the path. On unix platforms,
3459 #    spaces in the path will result in an error. On Windows,
3460 #    the path will be rewritten using short-style to be space-free.
3461 # 2) The path will be absolute, and it will be in unix-style (on
3462 #     cygwin).
3463 # $1: The name of the variable to fix
3464 
3465 
3466 # This will make sure the given variable points to a executable
3467 # with a full and proper path. This means:
3468 # 1) There will be no spaces in the path. On unix platforms,
3469 #    spaces in the path will result in an error. On Windows,
3470 #    the path will be rewritten using short-style to be space-free.
3471 # 2) The path will be absolute, and it will be in unix-style (on
3472 #     cygwin).
3473 # Any arguments given to the executable is preserved.
3474 # If the input variable does not have a directory specification, then
3475 # it need to be in the PATH.
3476 # $1: The name of the variable to fix
3477 
3478 
3479 
3480 
3481 # Register a --with argument but mark it as deprecated
3482 # $1: The name of the with argument to deprecate, not including --with-
3483 
3484 
3485 # Register a --enable argument but mark it as deprecated
3486 # $1: The name of the with argument to deprecate, not including --enable-
3487 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3488 # $3: Messages to user.
3489 
3490 
3491 
3492 
3493 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3494 # $1: variable to check
3495 
3496 
3497 # Check that there are no unprocessed overridden variables left.
3498 # If so, they are an incorrect argument and we will exit with an error.
3499 
3500 
3501 # Setup a tool for the given variable. If correctly specified by the user,
3502 # use that value, otherwise search for the tool using the supplied code snippet.
3503 # $1: variable to set
3504 # $2: code snippet to call to look for the tool
3505 # $3: code snippet to call if variable was used to find tool
3506 
3507 
3508 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3509 # $1: variable to set
3510 # $2: executable name (or list of names) to look for
3511 
3512 
3513 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3514 # $1: variable to set
3515 # $2: executable name (or list of names) to look for
3516 
3517 
3518 # Like BASIC_PATH_PROGS but fails if no tool was found.
3519 # $1: variable to set
3520 # $2: executable name (or list of names) to look for
3521 
3522 
3523 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3524 # $1: variable to set
3525 # $2: autoconf macro to call to look for the special tool
3526 
3527 
3528 # Setup the most fundamental tools that relies on not much else to set up,
3529 # but is used by much of the early bootstrap code.
3530 
3531 
3532 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3533 
3534 
3535 # Evaluates platform specific overrides for devkit variables.
3536 # $1: Name of variable
3537 
3538 
3539 
3540 
3541 
3542 
3543 #%%% Simple tools %%%
3544 
3545 # Check if we have found a usable version of make
3546 # $1: the path to a potential make binary (or empty)
3547 # $2: the description on how we found this
3548 
3549 
3550 
3551 
3552 # Goes looking for a usable version of GNU make.
3553 
3554 
3555 
3556 
3557 
3558 
3559 # Check if build directory is on local disk. If not possible to determine,
3560 # we prefer to claim it's local.
3561 # Argument 1: directory to test
3562 # Argument 2: what to do if it is on local disk
3563 # Argument 3: what to do otherwise (remote disk or failure)
3564 
3565 
3566 # Check that source files have basic read permissions set. This might
3567 # not be the case in cygwin in certain conditions.
3568 
3569 
3570 
3571 
3572 # Check for support for specific options in bash
3573 
3574 
3575 # Code to run after AC_OUTPUT
3576 
3577 
3578 #
3579 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3580 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3581 #
3582 # This code is free software; you can redistribute it and/or modify it
3583 # under the terms of the GNU General Public License version 2 only, as
3584 # published by the Free Software Foundation.  Oracle designates this
3585 # particular file as subject to the "Classpath" exception as provided
3586 # by Oracle in the LICENSE file that accompanied this code.
3587 #
3588 # This code is distributed in the hope that it will be useful, but WITHOUT
3589 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3590 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3591 # version 2 for more details (a copy is included in the LICENSE file that
3592 # accompanied this code).
3593 #
3594 # You should have received a copy of the GNU General Public License version
3595 # 2 along with this work; if not, write to the Free Software Foundation,
3596 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3597 #
3598 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3599 # or visit www.oracle.com if you need additional information or have any
3600 # questions.
3601 #
3602 
3603 
3604 
3605 
3606 
3607 # Helper function which possibly converts a path using DOS-style short mode.
3608 # If so, the updated path is stored in $new_path.
3609 # $1: The path to check
3610 
3611 
3612 # Helper function which possibly converts a path using DOS-style short mode.
3613 # If so, the updated path is stored in $new_path.
3614 # $1: The path to check
3615 
3616 
3617 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3618 # and could probably be heavily simplified. However, all changes in this
3619 # area tend to need lot of testing in different scenarios, and in lack of
3620 # proper unit testing, cleaning this up has not been deemed worth the effort
3621 # at the moment.
3622 
3623 
3624 
3625 
3626 
3627 
3628 
3629 
3630 
3631 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3632 
3633 
3634 
3635 
3636 # ... then the rest
3637 #
3638 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3639 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3640 #
3641 # This code is free software; you can redistribute it and/or modify it
3642 # under the terms of the GNU General Public License version 2 only, as
3643 # published by the Free Software Foundation.  Oracle designates this
3644 # particular file as subject to the "Classpath" exception as provided
3645 # by Oracle in the LICENSE file that accompanied this code.
3646 #
3647 # This code is distributed in the hope that it will be useful, but WITHOUT
3648 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3649 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3650 # version 2 for more details (a copy is included in the LICENSE file that
3651 # accompanied this code).
3652 #
3653 # You should have received a copy of the GNU General Public License version
3654 # 2 along with this work; if not, write to the Free Software Foundation,
3655 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3656 #
3657 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3658 # or visit www.oracle.com if you need additional information or have any
3659 # questions.
3660 #
3661 
3662 ########################################################################
3663 # This file handles detection of the Boot JDK. The Boot JDK detection
3664 # process has been developed as a response to solve a complex real-world
3665 # problem. Initially, it was simple, but it has grown as platform after
3666 # platform, idiosyncracy after idiosyncracy has been supported.
3667 #
3668 # The basic idea is this:
3669 # 1) You need an acceptable *) JDK to use as a Boot JDK
3670 # 2) There are several ways to locate a JDK, that are mostly platform
3671 #    dependent **)
3672 # 3) You can have multiple JDKs installed
3673 # 4) If possible, configure should try to dig out an acceptable JDK
3674 #    automatically, without having to resort to command-line options
3675 #
3676 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3677 #     javac) and not a JRE, etc.
3678 #
3679 # **) On Windows we typically use a well-known path.
3680 #     On MacOSX we typically use the tool java_home.
3681 #     On Linux we typically find javac in the $PATH, and then follow a
3682 #     chain of symlinks that often ends up in a real JDK.
3683 #
3684 # This leads to the code where we check in different ways to locate a
3685 # JDK, and if one is found, check if it is acceptable. If not, we print
3686 # our reasons for rejecting it (useful when debugging non-working
3687 # configure situations) and continue checking the next one.
3688 ########################################################################
3689 
3690 # Execute the check given as argument, and verify the result
3691 # If the Boot JDK was previously found, do nothing
3692 # $1 A command line (typically autoconf macro) to execute
3693 
3694 
3695 # Test: Is bootjdk explicitely set by command line arguments?
3696 
3697 
3698 # Test: Is $JAVA_HOME set?
3699 
3700 
3701 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3702 
3703 
3704 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3705 # $1: Argument to the java_home binary (optional)
3706 
3707 
3708 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3709 
3710 
3711 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3712 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3713 # $1 = Path to directory containing jdk installations.
3714 # $2 = String to append to the found JDK directory to get the proper JDK home
3715 
3716 
3717 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3718 # environmental variable as base for where to look.
3719 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3720 
3721 
3722 # Test: Is there a JDK installed in default, well-known locations?
3723 
3724 
3725 # Check that a command-line tool in the Boot JDK is correct
3726 # $1 = name of variable to assign
3727 # $2 = name of binary
3728 
3729 
3730 ###############################################################################
3731 #
3732 # We need a Boot JDK to bootstrap the build.
3733 #
3734 
3735 
3736 
3737 
3738 
3739 #
3740 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3741 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3742 #
3743 # This code is free software; you can redistribute it and/or modify it
3744 # under the terms of the GNU General Public License version 2 only, as
3745 # published by the Free Software Foundation.  Oracle designates this
3746 # particular file as subject to the "Classpath" exception as provided
3747 # by Oracle in the LICENSE file that accompanied this code.
3748 #
3749 # This code is distributed in the hope that it will be useful, but WITHOUT
3750 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3751 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3752 # version 2 for more details (a copy is included in the LICENSE file that
3753 # accompanied this code).
3754 #
3755 # You should have received a copy of the GNU General Public License version
3756 # 2 along with this work; if not, write to the Free Software Foundation,
3757 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3758 #
3759 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3760 # or visit www.oracle.com if you need additional information or have any
3761 # questions.
3762 #
3763 
3764 
3765 
3766 
3767 
3768 
3769 
3770 
3771 
3772 
3773 
3774 
3775 
3776 
3777 
3778 ################################################################################
3779 #
3780 # Optionally enable distributed compilation of native code using icecc/icecream
3781 #
3782 
3783 
3784 
3785 
3786 
3787 
3788 
3789 #
3790 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3791 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3792 #
3793 # This code is free software; you can redistribute it and/or modify it
3794 # under the terms of the GNU General Public License version 2 only, as
3795 # published by the Free Software Foundation.  Oracle designates this
3796 # particular file as subject to the "Classpath" exception as provided
3797 # by Oracle in the LICENSE file that accompanied this code.
3798 #
3799 # This code is distributed in the hope that it will be useful, but WITHOUT
3800 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3801 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3802 # version 2 for more details (a copy is included in the LICENSE file that
3803 # accompanied this code).
3804 #
3805 # You should have received a copy of the GNU General Public License version
3806 # 2 along with this work; if not, write to the Free Software Foundation,
3807 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3808 #
3809 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3810 # or visit www.oracle.com if you need additional information or have any
3811 # questions.
3812 #
3813 
3814 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
3815 # corresponding configure arguments instead
3816 
3817 
3818 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
3819 # that configure can use them while detecting compilers.
3820 # TOOLCHAIN_TYPE is available here.
3821 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
3822 
3823 
3824 
3825 
3826 
3827 
3828 # Documentation on common flags used for solstudio in HIGHEST.
3829 #
3830 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3831 #          done with care, there are some assumptions below that need to
3832 #          be understood about the use of pointers, and IEEE behavior.
3833 #
3834 # -fns: Use non-standard floating point mode (not IEEE 754)
3835 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3836 # -fsingle: Use single precision floating point with 'float'
3837 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3838 #   (Source with excessing pointer casting and data access with mixed
3839 #    pointer types are not recommended)
3840 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3841 #   (If you expect perfect errno behavior, do not use this)
3842 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3843 # -xrestrict: Pointer parameters to functions do not overlap
3844 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3845 #    If you pass in multiple pointers to the same data, do not use this)
3846 # -xlibmil: Inline some library routines
3847 #   (If you expect perfect errno behavior, do not use this)
3848 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3849 #   (If you expect perfect errno behavior, do not use this)
3850 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3851 
3852     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3853     # Bug?
3854     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3855     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3856     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3857     #fi
3858 
3859 
3860 
3861 
3862 
3863 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3864 #                                   [RUN-IF-FALSE])
3865 # ------------------------------------------------------------
3866 # Check that the c and c++ compilers support an argument
3867 
3868 
3869 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3870 #                                    [RUN-IF-FALSE])
3871 # ------------------------------------------------------------
3872 # Check that the linker support an argument
3873 
3874 
3875 
3876 
3877 #
3878 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3879 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3880 #
3881 # This code is free software; you can redistribute it and/or modify it
3882 # under the terms of the GNU General Public License version 2 only, as
3883 # published by the Free Software Foundation.  Oracle designates this
3884 # particular file as subject to the "Classpath" exception as provided
3885 # by Oracle in the LICENSE file that accompanied this code.
3886 #
3887 # This code is distributed in the hope that it will be useful, but WITHOUT
3888 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3889 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3890 # version 2 for more details (a copy is included in the LICENSE file that
3891 # accompanied this code).
3892 #
3893 # You should have received a copy of the GNU General Public License version
3894 # 2 along with this work; if not, write to the Free Software Foundation,
3895 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3896 #
3897 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3898 # or visit www.oracle.com if you need additional information or have any
3899 # questions.
3900 #
3901 
3902 
3903 
3904 
3905 
3906 cygwin_help() {
3907   case $1 in
3908     unzip)
3909       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3910       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3911       ;;
3912     zip)
3913       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3914       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3915       ;;
3916     make)
3917       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3918       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3919       ;;
3920     freetype)
3921       HELP_MSG="
3922 The freetype library can now be build during the configure process.
3923 Download the freetype sources and unpack them into an arbitrary directory:
3924 
3925 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3926 tar -xzf freetype-2.5.3.tar.gz
3927 
3928 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3929 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3930 builds or into '<freetype_src>/lib32' for 32-bit builds.
3931 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3932 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3933       ;;
3934   esac
3935 }
3936 
3937 msys_help() {
3938   PKGHANDLER_COMMAND=""
3939 }
3940 
3941 apt_help() {
3942   case $1 in
3943     reduced)
3944       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
3945     devkit)
3946       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3947     openjdk)
3948       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3949     alsa)
3950       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3951     cups)
3952       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3953     freetype)
3954       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3955     ffi)
3956       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
3957     x11)
3958       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3959     ccache)
3960       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3961   esac
3962 }
3963 
3964 yum_help() {
3965   case $1 in
3966     devkit)
3967       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3968     openjdk)
3969       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3970     alsa)
3971       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3972     cups)
3973       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3974     freetype)
3975       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3976     x11)
3977       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
3978     ccache)
3979       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3980   esac
3981 }
3982 
3983 port_help() {
3984   PKGHANDLER_COMMAND=""
3985 }
3986 
3987 pkgutil_help() {
3988   PKGHANDLER_COMMAND=""
3989 }
3990 
3991 pkgadd_help() {
3992   PKGHANDLER_COMMAND=""
3993 }
3994 
3995 # This function will check if we're called from the "configure" wrapper while
3996 # printing --help. If so, we will print out additional information that can
3997 # only be extracted within the autoconf script, and then exit. This must be
3998 # called at the very beginning in configure.ac.
3999 
4000 
4001 
4002 
4003 
4004 
4005 #
4006 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4007 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4008 #
4009 # This code is free software; you can redistribute it and/or modify it
4010 # under the terms of the GNU General Public License version 2 only, as
4011 # published by the Free Software Foundation.  Oracle designates this
4012 # particular file as subject to the "Classpath" exception as provided
4013 # by Oracle in the LICENSE file that accompanied this code.
4014 #
4015 # This code is distributed in the hope that it will be useful, but WITHOUT
4016 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4017 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4018 # version 2 for more details (a copy is included in the LICENSE file that
4019 # accompanied this code).
4020 #
4021 # You should have received a copy of the GNU General Public License version
4022 # 2 along with this work; if not, write to the Free Software Foundation,
4023 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4024 #
4025 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4026 # or visit www.oracle.com if you need additional information or have any
4027 # questions.
4028 #
4029 
4030 
4031 
4032 
4033 
4034 
4035 
4036 
4037 
4038 
4039 ###############################################################################
4040 #
4041 # Should we build only OpenJDK even if closed sources are present?
4042 #
4043 
4044 
4045 
4046 
4047 
4048 
4049 ###############################################################################
4050 #
4051 # Enable or disable the elliptic curve crypto implementation
4052 #
4053 
4054 
4055 
4056 
4057 
4058 ################################################################################
4059 #
4060 # Gcov coverage data for hotspot
4061 #
4062 
4063 
4064 ################################################################################
4065 #
4066 # Static build support.  When enabled will generate static
4067 # libraries instead of shared libraries for all JDK libs.
4068 #
4069 
4070 
4071 
4072 
4073 #
4074 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4075 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4076 #
4077 # This code is free software; you can redistribute it and/or modify it
4078 # under the terms of the GNU General Public License version 2 only, as
4079 # published by the Free Software Foundation.  Oracle designates this
4080 # particular file as subject to the "Classpath" exception as provided
4081 # by Oracle in the LICENSE file that accompanied this code.
4082 #
4083 # This code is distributed in the hope that it will be useful, but WITHOUT
4084 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4085 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4086 # version 2 for more details (a copy is included in the LICENSE file that
4087 # accompanied this code).
4088 #
4089 # You should have received a copy of the GNU General Public License version
4090 # 2 along with this work; if not, write to the Free Software Foundation,
4091 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4092 #
4093 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4094 # or visit www.oracle.com if you need additional information or have any
4095 # questions.
4096 #
4097 
4098 ###############################################################################
4099 #
4100 # Setup version numbers
4101 #
4102 
4103 # Verify that a given string represents a valid version number, and assign it
4104 # to a variable.
4105 
4106 # Argument 1: the variable to assign to
4107 # Argument 2: the value given by the user
4108 
4109 
4110 
4111 
4112 #
4113 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4114 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4115 #
4116 # This code is free software; you can redistribute it and/or modify it
4117 # under the terms of the GNU General Public License version 2 only, as
4118 # published by the Free Software Foundation.  Oracle designates this
4119 # particular file as subject to the "Classpath" exception as provided
4120 # by Oracle in the LICENSE file that accompanied this code.
4121 #
4122 # This code is distributed in the hope that it will be useful, but WITHOUT
4123 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4124 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4125 # version 2 for more details (a copy is included in the LICENSE file that
4126 # accompanied this code).
4127 #
4128 # You should have received a copy of the GNU General Public License version
4129 # 2 along with this work; if not, write to the Free Software Foundation,
4130 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4131 #
4132 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4133 # or visit www.oracle.com if you need additional information or have any
4134 # questions.
4135 #
4136 
4137 # Major library component reside in separate files.
4138 #
4139 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4140 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4141 #
4142 # This code is free software; you can redistribute it and/or modify it
4143 # under the terms of the GNU General Public License version 2 only, as
4144 # published by the Free Software Foundation.  Oracle designates this
4145 # particular file as subject to the "Classpath" exception as provided
4146 # by Oracle in the LICENSE file that accompanied this code.
4147 #
4148 # This code is distributed in the hope that it will be useful, but WITHOUT
4149 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4150 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4151 # version 2 for more details (a copy is included in the LICENSE file that
4152 # accompanied this code).
4153 #
4154 # You should have received a copy of the GNU General Public License version
4155 # 2 along with this work; if not, write to the Free Software Foundation,
4156 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4157 #
4158 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4159 # or visit www.oracle.com if you need additional information or have any
4160 # questions.
4161 #
4162 
4163 ################################################################################
4164 # Setup alsa (Advanced Linux Sound Architecture)
4165 ################################################################################
4166 
4167 
4168 #
4169 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4170 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4171 #
4172 # This code is free software; you can redistribute it and/or modify it
4173 # under the terms of the GNU General Public License version 2 only, as
4174 # published by the Free Software Foundation.  Oracle designates this
4175 # particular file as subject to the "Classpath" exception as provided
4176 # by Oracle in the LICENSE file that accompanied this code.
4177 #
4178 # This code is distributed in the hope that it will be useful, but WITHOUT
4179 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4180 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4181 # version 2 for more details (a copy is included in the LICENSE file that
4182 # accompanied this code).
4183 #
4184 # You should have received a copy of the GNU General Public License version
4185 # 2 along with this work; if not, write to the Free Software Foundation,
4186 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4187 #
4188 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4189 # or visit www.oracle.com if you need additional information or have any
4190 # questions.
4191 #
4192 
4193 ################################################################################
4194 # Setup bundled libraries.
4195 #
4196 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4197 # OpenJDK repository. Default is to use these libraries as bundled, but they
4198 # might be replaced by en external version by the user.
4199 ################################################################################
4200 
4201 
4202 ################################################################################
4203 # Setup libjpeg
4204 ################################################################################
4205 
4206 
4207 ################################################################################
4208 # Setup giflib
4209 ################################################################################
4210 
4211 
4212 ################################################################################
4213 # Setup libpng
4214 ################################################################################
4215 
4216 
4217 ################################################################################
4218 # Setup zlib
4219 ################################################################################
4220 
4221 
4222 ################################################################################
4223 # Setup lcms (Little CMS)
4224 ################################################################################
4225 
4226 
4227 #
4228 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4229 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4230 #
4231 # This code is free software; you can redistribute it and/or modify it
4232 # under the terms of the GNU General Public License version 2 only, as
4233 # published by the Free Software Foundation.  Oracle designates this
4234 # particular file as subject to the "Classpath" exception as provided
4235 # by Oracle in the LICENSE file that accompanied this code.
4236 #
4237 # This code is distributed in the hope that it will be useful, but WITHOUT
4238 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4239 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4240 # version 2 for more details (a copy is included in the LICENSE file that
4241 # accompanied this code).
4242 #
4243 # You should have received a copy of the GNU General Public License version
4244 # 2 along with this work; if not, write to the Free Software Foundation,
4245 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4246 #
4247 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4248 # or visit www.oracle.com if you need additional information or have any
4249 # questions.
4250 #
4251 
4252 ################################################################################
4253 # Setup cups (Common Unix Printing System)
4254 ################################################################################
4255 
4256 
4257 #
4258 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4259 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4260 #
4261 # This code is free software; you can redistribute it and/or modify it
4262 # under the terms of the GNU General Public License version 2 only, as
4263 # published by the Free Software Foundation.  Oracle designates this
4264 # particular file as subject to the "Classpath" exception as provided
4265 # by Oracle in the LICENSE file that accompanied this code.
4266 #
4267 # This code is distributed in the hope that it will be useful, but WITHOUT
4268 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4269 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4270 # version 2 for more details (a copy is included in the LICENSE file that
4271 # accompanied this code).
4272 #
4273 # You should have received a copy of the GNU General Public License version
4274 # 2 along with this work; if not, write to the Free Software Foundation,
4275 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4276 #
4277 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4278 # or visit www.oracle.com if you need additional information or have any
4279 # questions.
4280 #
4281 
4282 ################################################################################
4283 # Setup libffi (Foreign Function Interface)
4284 ################################################################################
4285 
4286 
4287 #
4288 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4289 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4290 #
4291 # This code is free software; you can redistribute it and/or modify it
4292 # under the terms of the GNU General Public License version 2 only, as
4293 # published by the Free Software Foundation.  Oracle designates this
4294 # particular file as subject to the "Classpath" exception as provided
4295 # by Oracle in the LICENSE file that accompanied this code.
4296 #
4297 # This code is distributed in the hope that it will be useful, but WITHOUT
4298 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4299 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4300 # version 2 for more details (a copy is included in the LICENSE file that
4301 # accompanied this code).
4302 #
4303 # You should have received a copy of the GNU General Public License version
4304 # 2 along with this work; if not, write to the Free Software Foundation,
4305 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4306 #
4307 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4308 # or visit www.oracle.com if you need additional information or have any
4309 # questions.
4310 #
4311 
4312 ################################################################################
4313 # Build the freetype lib from source
4314 ################################################################################
4315 
4316 
4317 ################################################################################
4318 # Check if a potential freeype library match is correct and usable
4319 ################################################################################
4320 
4321 
4322 ################################################################################
4323 # Setup freetype (The FreeType2 font rendering library)
4324 ################################################################################
4325 
4326 
4327 #
4328 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4329 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4330 #
4331 # This code is free software; you can redistribute it and/or modify it
4332 # under the terms of the GNU General Public License version 2 only, as
4333 # published by the Free Software Foundation.  Oracle designates this
4334 # particular file as subject to the "Classpath" exception as provided
4335 # by Oracle in the LICENSE file that accompanied this code.
4336 #
4337 # This code is distributed in the hope that it will be useful, but WITHOUT
4338 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4339 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4340 # version 2 for more details (a copy is included in the LICENSE file that
4341 # accompanied this code).
4342 #
4343 # You should have received a copy of the GNU General Public License version
4344 # 2 along with this work; if not, write to the Free Software Foundation,
4345 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4346 #
4347 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4348 # or visit www.oracle.com if you need additional information or have any
4349 # questions.
4350 #
4351 
4352 ################################################################################
4353 # Setup the standard C/C++ runtime libraries.
4354 #
4355 # Most importantly, determine if stdc++ should be linked statically or
4356 # dynamically.
4357 ################################################################################
4358 
4359 
4360 #
4361 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4362 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4363 #
4364 # This code is free software; you can redistribute it and/or modify it
4365 # under the terms of the GNU General Public License version 2 only, as
4366 # published by the Free Software Foundation.  Oracle designates this
4367 # particular file as subject to the "Classpath" exception as provided
4368 # by Oracle in the LICENSE file that accompanied this code.
4369 #
4370 # This code is distributed in the hope that it will be useful, but WITHOUT
4371 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4372 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4373 # version 2 for more details (a copy is included in the LICENSE file that
4374 # accompanied this code).
4375 #
4376 # You should have received a copy of the GNU General Public License version
4377 # 2 along with this work; if not, write to the Free Software Foundation,
4378 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4379 #
4380 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4381 # or visit www.oracle.com if you need additional information or have any
4382 # questions.
4383 #
4384 
4385 ################################################################################
4386 # Setup X11 Windows system
4387 ################################################################################
4388 
4389 
4390 
4391 ################################################################################
4392 # Determine which libraries are needed for this configuration
4393 ################################################################################
4394 
4395 
4396 ################################################################################
4397 # Parse library options, and setup needed libraries
4398 ################################################################################
4399 
4400 
4401 ################################################################################
4402 # Setup llvm (Low-Level VM)
4403 ################################################################################
4404 
4405 
4406 ################################################################################
4407 # Setup various libraries, typically small system libraries
4408 ################################################################################
4409 
4410 
4411 #
4412 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4413 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4414 #
4415 # This code is free software; you can redistribute it and/or modify it
4416 # under the terms of the GNU General Public License version 2 only, as
4417 # published by the Free Software Foundation.  Oracle designates this
4418 # particular file as subject to the "Classpath" exception as provided
4419 # by Oracle in the LICENSE file that accompanied this code.
4420 #
4421 # This code is distributed in the hope that it will be useful, but WITHOUT
4422 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4423 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4424 # version 2 for more details (a copy is included in the LICENSE file that
4425 # accompanied this code).
4426 #
4427 # You should have received a copy of the GNU General Public License version
4428 # 2 along with this work; if not, write to the Free Software Foundation,
4429 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4430 #
4431 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4432 # or visit www.oracle.com if you need additional information or have any
4433 # questions.
4434 #
4435 
4436 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4437 # Converts autoconf style CPU name to OpenJDK style, into
4438 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4439 
4440 
4441 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4442 # Converts autoconf style OS name to OpenJDK style, into
4443 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4444 
4445 
4446 # Expects $host_os $host_cpu $build_os and $build_cpu
4447 # and $with_target_bits to have been setup!
4448 #
4449 # Translate the standard triplet(quadruplet) definition
4450 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4451 # OPENJDK_BUILD_OS, etc.
4452 
4453 
4454 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4455 # accordingly. Must be done after setting up build and target system, but before
4456 # doing anything else with these values.
4457 
4458 
4459 # Setup the legacy variables, for controlling the old makefiles.
4460 #
4461 
4462 
4463 
4464 
4465 #%%% Build and target systems %%%
4466 
4467 
4468 
4469 
4470 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4471 # Add -mX to various FLAGS variables.
4472 
4473 
4474 
4475 
4476 
4477 
4478 #
4479 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4480 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4481 #
4482 # This code is free software; you can redistribute it and/or modify it
4483 # under the terms of the GNU General Public License version 2 only, as
4484 # published by the Free Software Foundation.  Oracle designates this
4485 # particular file as subject to the "Classpath" exception as provided
4486 # by Oracle in the LICENSE file that accompanied this code.
4487 #
4488 # This code is distributed in the hope that it will be useful, but WITHOUT
4489 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4490 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4491 # version 2 for more details (a copy is included in the LICENSE file that
4492 # accompanied this code).
4493 #
4494 # You should have received a copy of the GNU General Public License version
4495 # 2 along with this work; if not, write to the Free Software Foundation,
4496 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4497 #
4498 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4499 # or visit www.oracle.com if you need additional information or have any
4500 # questions.
4501 #
4502 
4503 
4504 
4505 
4506 
4507 
4508 
4509 #
4510 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4511 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4512 #
4513 # This code is free software; you can redistribute it and/or modify it
4514 # under the terms of the GNU General Public License version 2 only, as
4515 # published by the Free Software Foundation.  Oracle designates this
4516 # particular file as subject to the "Classpath" exception as provided
4517 # by Oracle in the LICENSE file that accompanied this code.
4518 #
4519 # This code is distributed in the hope that it will be useful, but WITHOUT
4520 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4521 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4522 # version 2 for more details (a copy is included in the LICENSE file that
4523 # accompanied this code).
4524 #
4525 # You should have received a copy of the GNU General Public License version
4526 # 2 along with this work; if not, write to the Free Software Foundation,
4527 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4528 #
4529 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4530 # or visit www.oracle.com if you need additional information or have any
4531 # questions.
4532 #
4533 
4534 ########################################################################
4535 # This file is responsible for detecting, verifying and setting up the
4536 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4537 # proper paths to the binaries, but it will not setup any flags.
4538 #
4539 # The binaries used is determined by the toolchain type, which is the family of
4540 # compilers and related tools that are used.
4541 ########################################################################
4542 
4543 
4544 # All valid toolchains, regardless of platform (used by help.m4)
4545 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4546 
4547 # These toolchains are valid on different platforms
4548 VALID_TOOLCHAINS_linux="gcc clang"
4549 VALID_TOOLCHAINS_solaris="solstudio"
4550 VALID_TOOLCHAINS_macosx="gcc clang"
4551 VALID_TOOLCHAINS_aix="xlc"
4552 VALID_TOOLCHAINS_windows="microsoft"
4553 
4554 # Toolchain descriptions
4555 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4556 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4557 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4558 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4559 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4560 
4561 # Setup a number of variables describing how native output files are
4562 # named on this platform/toolchain.
4563 
4564 
4565 # Determine which toolchain type to use, and make sure it is valid for this
4566 # platform. Setup various information about the selected toolchain.
4567 
4568 
4569 # Before we start detecting the toolchain executables, we might need some
4570 # special setup, e.g. additional paths etc.
4571 
4572 
4573 # Restore path, etc
4574 
4575 
4576 # Check if a compiler is of the toolchain type we expect, and save the version
4577 # information from it. If the compiler does not match the expected type,
4578 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4579 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4580 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4581 #
4582 # $1 = compiler to test (CC or CXX)
4583 # $2 = human readable name of compiler (C or C++)
4584 
4585 
4586 # Try to locate the given C or C++ compiler in the path, or otherwise.
4587 #
4588 # $1 = compiler to test (CC or CXX)
4589 # $2 = human readable name of compiler (C or C++)
4590 # $3 = list of compiler names to search for
4591 
4592 
4593 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4594 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4595 # archiver (AR). Verify that the compilers are correct according to the
4596 # toolchain type.
4597 
4598 
4599 # Setup additional tools that is considered a part of the toolchain, but not the
4600 # core part. Many of these are highly platform-specific and do not exist,
4601 # and/or are not needed on all platforms.
4602 
4603 
4604 # Setup the build tools (i.e, the compiler and linker used to build programs
4605 # that should be run on the build platform, not the target platform, as a build
4606 # helper). Since the non-cross-compile case uses the normal, target compilers
4607 # for this, we can only do this after these have been setup.
4608 
4609 
4610 # Setup legacy variables that are still needed as alternative ways to refer to
4611 # parts of the toolchain.
4612 
4613 
4614 # Do some additional checks on the detected tools.
4615 
4616 
4617 # Setup the JTReg Regression Test Harness.
4618 
4619 
4620 #
4621 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4622 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4623 #
4624 # This code is free software; you can redistribute it and/or modify it
4625 # under the terms of the GNU General Public License version 2 only, as
4626 # published by the Free Software Foundation.  Oracle designates this
4627 # particular file as subject to the "Classpath" exception as provided
4628 # by Oracle in the LICENSE file that accompanied this code.
4629 #
4630 # This code is distributed in the hope that it will be useful, but WITHOUT
4631 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4632 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4633 # version 2 for more details (a copy is included in the LICENSE file that
4634 # accompanied this code).
4635 #
4636 # You should have received a copy of the GNU General Public License version
4637 # 2 along with this work; if not, write to the Free Software Foundation,
4638 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4639 #
4640 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4641 # or visit www.oracle.com if you need additional information or have any
4642 # questions.
4643 #
4644 
4645 ################################################################################
4646 # The order of these defines the priority by which we try to find them.
4647 VALID_VS_VERSIONS="2013 2012 2010"
4648 
4649 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4650 VS_VERSION_INTERNAL_2010=100
4651 VS_MSVCR_2010=msvcr100.dll
4652 # We don't use msvcp on Visual Studio 2010
4653 #VS_MSVCP_2010=msvcp100.dll
4654 VS_ENVVAR_2010="VS100COMNTOOLS"
4655 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4656 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4657 VS_VS_PLATFORM_NAME_2010="v100"
4658 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4659 
4660 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4661 VS_VERSION_INTERNAL_2012=110
4662 VS_MSVCR_2012=msvcr110.dll
4663 VS_MSVCP_2012=msvcp110.dll
4664 VS_ENVVAR_2012="VS110COMNTOOLS"
4665 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4666 VS_SDK_INSTALLDIR_2012=
4667 VS_VS_PLATFORM_NAME_2012="v110"
4668 VS_SDK_PLATFORM_NAME_2012=
4669 
4670 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4671 VS_VERSION_INTERNAL_2013=120
4672 VS_MSVCR_2013=msvcr120.dll
4673 VS_MSVCP_2013=msvcp120.dll
4674 VS_ENVVAR_2013="VS120COMNTOOLS"
4675 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4676 VS_SDK_INSTALLDIR_2013=
4677 VS_VS_PLATFORM_NAME_2013="v120"
4678 VS_SDK_PLATFORM_NAME_2013=
4679 
4680 ################################################################################
4681 
4682 
4683 
4684 ################################################################################
4685 
4686 
4687 
4688 ################################################################################
4689 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4690 # build environment and assigns it to VS_ENV_CMD
4691 
4692 
4693 ################################################################################
4694 
4695 
4696 
4697 ################################################################################
4698 # Check if the VS env variables were setup prior to running configure.
4699 # If not, then find vcvarsall.bat and run it automatically, and integrate
4700 # the set env variables into the spec file.
4701 
4702 
4703 
4704 
4705 
4706 
4707 
4708 
4709 
4710 
4711 
4712 
4713 
4714 
4715 # This line needs to be here, verbatim, after all includes and the dummy hook
4716 # definitions. It is replaced with custom functionality when building
4717 # custom sources.
4718 #CUSTOM_AUTOCONF_INCLUDE
4719 
4720 # Do not change or remove the following line, it is needed for consistency checks:
4721 DATE_WHEN_GENERATED=1449552417
4722 
4723 ###############################################################################
4724 #
4725 # Initialization / Boot-strapping
4726 #
4727 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4728 # thus it jumps back and forth, each time gaining something needed later on.
4729 #
4730 ###############################################################################
4731 
4732 # If we are requested to print additional help, do that and then exit.
4733 # This must be the very first call.
4734 
4735   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4736     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4737     $PRINTF "Which are valid to use depends on the build platform.\n"
4738     for toolchain in $VALID_TOOLCHAINS_all; do
4739       # Use indirect variable referencing
4740       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4741       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4742       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4743     done
4744 
4745     # And now exit directly
4746     exit 0
4747   fi
4748 
4749 
4750 # Basic initialization that must happen first of all in the normal process.
4751 
4752   # Save the original command line. This is passed to us by the wrapper configure script.
4753 
4754   # Save the path variable before it gets changed
4755   ORIGINAL_PATH="$PATH"
4756 
4757   DATE_WHEN_CONFIGURED=`LANG=C date`
4758 
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4760 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4761   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4762 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4763 
4764 
4765   # Start with tools that do not need have cross compilation support
4766   # and can be expected to be found in the default PATH. These tools are
4767   # used by configure.
4768 
4769   # First are all the simple required tools.
4770 
4771 
4772 
4773   # Publish this variable in the help.
4774 
4775 
4776   if [ -z "${BASENAME+x}" ]; then
4777     # The variable is not set by user, try to locate tool using the code snippet
4778     for ac_prog in basename
4779 do
4780   # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_path_BASENAME+:} false; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787   case $BASENAME in
4788   [\\/]* | ?:[\\/]*)
4789   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4790   ;;
4791   *)
4792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797     for ac_exec_ext in '' $ac_executable_extensions; do
4798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801     break 2
4802   fi
4803 done
4804   done
4805 IFS=$as_save_IFS
4806 
4807   ;;
4808 esac
4809 fi
4810 BASENAME=$ac_cv_path_BASENAME
4811 if test -n "$BASENAME"; then
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4813 $as_echo "$BASENAME" >&6; }
4814 else
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4817 fi
4818 
4819 
4820   test -n "$BASENAME" && break
4821 done
4822 
4823   else
4824     # The variable is set, but is it from the command line or the environment?
4825 
4826     # Try to remove the string !BASENAME! from our list.
4827     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4828     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4829       # If it failed, the variable was not from the command line. Ignore it,
4830       # but warn the user (except for BASH, which is always set by the calling BASH).
4831       if test "xBASENAME" != xBASH; then
4832         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4833 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4834       fi
4835       # Try to locate tool using the code snippet
4836       for ac_prog in basename
4837 do
4838   # Extract the first word of "$ac_prog", so it can be a program name with args.
4839 set dummy $ac_prog; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_path_BASENAME+:} false; then :
4843   $as_echo_n "(cached) " >&6
4844 else
4845   case $BASENAME in
4846   [\\/]* | ?:[\\/]*)
4847   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4848   ;;
4849   *)
4850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855     for ac_exec_ext in '' $ac_executable_extensions; do
4856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862   done
4863 IFS=$as_save_IFS
4864 
4865   ;;
4866 esac
4867 fi
4868 BASENAME=$ac_cv_path_BASENAME
4869 if test -n "$BASENAME"; then
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4871 $as_echo "$BASENAME" >&6; }
4872 else
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4875 fi
4876 
4877 
4878   test -n "$BASENAME" && break
4879 done
4880 
4881     else
4882       # If it succeeded, then it was overridden by the user. We will use it
4883       # for the tool.
4884 
4885       # First remove it from the list of overridden variables, so we can test
4886       # for unknown variables in the end.
4887       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4888 
4889       # Check if we try to supply an empty value
4890       if test "x$BASENAME" = x; then
4891         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
4892 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
4893         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4894 $as_echo_n "checking for BASENAME... " >&6; }
4895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4896 $as_echo "disabled" >&6; }
4897       else
4898         # Check if the provided tool contains a complete path.
4899         tool_specified="$BASENAME"
4900         tool_basename="${tool_specified##*/}"
4901         if test "x$tool_basename" = "x$tool_specified"; then
4902           # A command without a complete path is provided, search $PATH.
4903           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4904 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4905           # Extract the first word of "$tool_basename", so it can be a program name with args.
4906 set dummy $tool_basename; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if ${ac_cv_path_BASENAME+:} false; then :
4910   $as_echo_n "(cached) " >&6
4911 else
4912   case $BASENAME in
4913   [\\/]* | ?:[\\/]*)
4914   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4915   ;;
4916   *)
4917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920   IFS=$as_save_IFS
4921   test -z "$as_dir" && as_dir=.
4922     for ac_exec_ext in '' $ac_executable_extensions; do
4923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4924     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926     break 2
4927   fi
4928 done
4929   done
4930 IFS=$as_save_IFS
4931 
4932   ;;
4933 esac
4934 fi
4935 BASENAME=$ac_cv_path_BASENAME
4936 if test -n "$BASENAME"; then
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4938 $as_echo "$BASENAME" >&6; }
4939 else
4940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4942 fi
4943 
4944 
4945           if test "x$BASENAME" = x; then
4946             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4947           fi
4948         else
4949           # Otherwise we believe it is a complete path. Use it as it is.
4950           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4951 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4952           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4953 $as_echo_n "checking for BASENAME... " >&6; }
4954           if test ! -x "$tool_specified"; then
4955             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4956 $as_echo "not found" >&6; }
4957             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4958           fi
4959           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4960 $as_echo "$tool_specified" >&6; }
4961         fi
4962       fi
4963     fi
4964 
4965   fi
4966 
4967 
4968 
4969   if test "x$BASENAME" = x; then
4970     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4971   fi
4972 
4973 
4974 
4975 
4976 
4977   # Publish this variable in the help.
4978 
4979 
4980   if [ -z "${BASH+x}" ]; then
4981     # The variable is not set by user, try to locate tool using the code snippet
4982     for ac_prog in bash
4983 do
4984   # Extract the first word of "$ac_prog", so it can be a program name with args.
4985 set dummy $ac_prog; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_path_BASH+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   case $BASH in
4992   [\\/]* | ?:[\\/]*)
4993   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4994   ;;
4995   *)
4996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001     for ac_exec_ext in '' $ac_executable_extensions; do
5002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005     break 2
5006   fi
5007 done
5008   done
5009 IFS=$as_save_IFS
5010 
5011   ;;
5012 esac
5013 fi
5014 BASH=$ac_cv_path_BASH
5015 if test -n "$BASH"; then
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5017 $as_echo "$BASH" >&6; }
5018 else
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5021 fi
5022 
5023 
5024   test -n "$BASH" && break
5025 done
5026 
5027   else
5028     # The variable is set, but is it from the command line or the environment?
5029 
5030     # Try to remove the string !BASH! from our list.
5031     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5032     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5033       # If it failed, the variable was not from the command line. Ignore it,
5034       # but warn the user (except for BASH, which is always set by the calling BASH).
5035       if test "xBASH" != xBASH; then
5036         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5037 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5038       fi
5039       # Try to locate tool using the code snippet
5040       for ac_prog in bash
5041 do
5042   # Extract the first word of "$ac_prog", so it can be a program name with args.
5043 set dummy $ac_prog; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_path_BASH+:} false; then :
5047   $as_echo_n "(cached) " >&6
5048 else
5049   case $BASH in
5050   [\\/]* | ?:[\\/]*)
5051   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5052   ;;
5053   *)
5054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057   IFS=$as_save_IFS
5058   test -z "$as_dir" && as_dir=.
5059     for ac_exec_ext in '' $ac_executable_extensions; do
5060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063     break 2
5064   fi
5065 done
5066   done
5067 IFS=$as_save_IFS
5068 
5069   ;;
5070 esac
5071 fi
5072 BASH=$ac_cv_path_BASH
5073 if test -n "$BASH"; then
5074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5075 $as_echo "$BASH" >&6; }
5076 else
5077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5079 fi
5080 
5081 
5082   test -n "$BASH" && break
5083 done
5084 
5085     else
5086       # If it succeeded, then it was overridden by the user. We will use it
5087       # for the tool.
5088 
5089       # First remove it from the list of overridden variables, so we can test
5090       # for unknown variables in the end.
5091       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5092 
5093       # Check if we try to supply an empty value
5094       if test "x$BASH" = x; then
5095         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5096 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5098 $as_echo_n "checking for BASH... " >&6; }
5099         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5100 $as_echo "disabled" >&6; }
5101       else
5102         # Check if the provided tool contains a complete path.
5103         tool_specified="$BASH"
5104         tool_basename="${tool_specified##*/}"
5105         if test "x$tool_basename" = "x$tool_specified"; then
5106           # A command without a complete path is provided, search $PATH.
5107           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5108 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5109           # Extract the first word of "$tool_basename", so it can be a program name with args.
5110 set dummy $tool_basename; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_path_BASH+:} false; then :
5114   $as_echo_n "(cached) " >&6
5115 else
5116   case $BASH in
5117   [\\/]* | ?:[\\/]*)
5118   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5119   ;;
5120   *)
5121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126     for ac_exec_ext in '' $ac_executable_extensions; do
5127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130     break 2
5131   fi
5132 done
5133   done
5134 IFS=$as_save_IFS
5135 
5136   ;;
5137 esac
5138 fi
5139 BASH=$ac_cv_path_BASH
5140 if test -n "$BASH"; then
5141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5142 $as_echo "$BASH" >&6; }
5143 else
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147 
5148 
5149           if test "x$BASH" = x; then
5150             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5151           fi
5152         else
5153           # Otherwise we believe it is a complete path. Use it as it is.
5154           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5155 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5156           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5157 $as_echo_n "checking for BASH... " >&6; }
5158           if test ! -x "$tool_specified"; then
5159             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5160 $as_echo "not found" >&6; }
5161             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5162           fi
5163           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5164 $as_echo "$tool_specified" >&6; }
5165         fi
5166       fi
5167     fi
5168 
5169   fi
5170 
5171 
5172 
5173   if test "x$BASH" = x; then
5174     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5175   fi
5176 
5177 
5178 
5179 
5180 
5181   # Publish this variable in the help.
5182 
5183 
5184   if [ -z "${CAT+x}" ]; then
5185     # The variable is not set by user, try to locate tool using the code snippet
5186     for ac_prog in cat
5187 do
5188   # Extract the first word of "$ac_prog", so it can be a program name with args.
5189 set dummy $ac_prog; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if ${ac_cv_path_CAT+:} false; then :
5193   $as_echo_n "(cached) " >&6
5194 else
5195   case $CAT in
5196   [\\/]* | ?:[\\/]*)
5197   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5198   ;;
5199   *)
5200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203   IFS=$as_save_IFS
5204   test -z "$as_dir" && as_dir=.
5205     for ac_exec_ext in '' $ac_executable_extensions; do
5206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209     break 2
5210   fi
5211 done
5212   done
5213 IFS=$as_save_IFS
5214 
5215   ;;
5216 esac
5217 fi
5218 CAT=$ac_cv_path_CAT
5219 if test -n "$CAT"; then
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5221 $as_echo "$CAT" >&6; }
5222 else
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226 
5227 
5228   test -n "$CAT" && break
5229 done
5230 
5231   else
5232     # The variable is set, but is it from the command line or the environment?
5233 
5234     # Try to remove the string !CAT! from our list.
5235     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5236     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5237       # If it failed, the variable was not from the command line. Ignore it,
5238       # but warn the user (except for BASH, which is always set by the calling BASH).
5239       if test "xCAT" != xBASH; then
5240         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5241 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5242       fi
5243       # Try to locate tool using the code snippet
5244       for ac_prog in cat
5245 do
5246   # Extract the first word of "$ac_prog", so it can be a program name with args.
5247 set dummy $ac_prog; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_path_CAT+:} false; then :
5251   $as_echo_n "(cached) " >&6
5252 else
5253   case $CAT in
5254   [\\/]* | ?:[\\/]*)
5255   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5256   ;;
5257   *)
5258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261   IFS=$as_save_IFS
5262   test -z "$as_dir" && as_dir=.
5263     for ac_exec_ext in '' $ac_executable_extensions; do
5264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267     break 2
5268   fi
5269 done
5270   done
5271 IFS=$as_save_IFS
5272 
5273   ;;
5274 esac
5275 fi
5276 CAT=$ac_cv_path_CAT
5277 if test -n "$CAT"; then
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5279 $as_echo "$CAT" >&6; }
5280 else
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284 
5285 
5286   test -n "$CAT" && break
5287 done
5288 
5289     else
5290       # If it succeeded, then it was overridden by the user. We will use it
5291       # for the tool.
5292 
5293       # First remove it from the list of overridden variables, so we can test
5294       # for unknown variables in the end.
5295       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5296 
5297       # Check if we try to supply an empty value
5298       if test "x$CAT" = x; then
5299         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5300 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5301         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5302 $as_echo_n "checking for CAT... " >&6; }
5303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5304 $as_echo "disabled" >&6; }
5305       else
5306         # Check if the provided tool contains a complete path.
5307         tool_specified="$CAT"
5308         tool_basename="${tool_specified##*/}"
5309         if test "x$tool_basename" = "x$tool_specified"; then
5310           # A command without a complete path is provided, search $PATH.
5311           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5312 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5313           # Extract the first word of "$tool_basename", so it can be a program name with args.
5314 set dummy $tool_basename; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_path_CAT+:} false; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   case $CAT in
5321   [\\/]* | ?:[\\/]*)
5322   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5323   ;;
5324   *)
5325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328   IFS=$as_save_IFS
5329   test -z "$as_dir" && as_dir=.
5330     for ac_exec_ext in '' $ac_executable_extensions; do
5331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334     break 2
5335   fi
5336 done
5337   done
5338 IFS=$as_save_IFS
5339 
5340   ;;
5341 esac
5342 fi
5343 CAT=$ac_cv_path_CAT
5344 if test -n "$CAT"; then
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5346 $as_echo "$CAT" >&6; }
5347 else
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5350 fi
5351 
5352 
5353           if test "x$CAT" = x; then
5354             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5355           fi
5356         else
5357           # Otherwise we believe it is a complete path. Use it as it is.
5358           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5359 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5360           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5361 $as_echo_n "checking for CAT... " >&6; }
5362           if test ! -x "$tool_specified"; then
5363             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5364 $as_echo "not found" >&6; }
5365             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5366           fi
5367           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5368 $as_echo "$tool_specified" >&6; }
5369         fi
5370       fi
5371     fi
5372 
5373   fi
5374 
5375 
5376 
5377   if test "x$CAT" = x; then
5378     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5379   fi
5380 
5381 
5382 
5383 
5384 
5385   # Publish this variable in the help.
5386 
5387 
5388   if [ -z "${CHMOD+x}" ]; then
5389     # The variable is not set by user, try to locate tool using the code snippet
5390     for ac_prog in chmod
5391 do
5392   # Extract the first word of "$ac_prog", so it can be a program name with args.
5393 set dummy $ac_prog; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_path_CHMOD+:} false; then :
5397   $as_echo_n "(cached) " >&6
5398 else
5399   case $CHMOD in
5400   [\\/]* | ?:[\\/]*)
5401   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5402   ;;
5403   *)
5404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409     for ac_exec_ext in '' $ac_executable_extensions; do
5410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416   done
5417 IFS=$as_save_IFS
5418 
5419   ;;
5420 esac
5421 fi
5422 CHMOD=$ac_cv_path_CHMOD
5423 if test -n "$CHMOD"; then
5424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5425 $as_echo "$CHMOD" >&6; }
5426 else
5427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5429 fi
5430 
5431 
5432   test -n "$CHMOD" && break
5433 done
5434 
5435   else
5436     # The variable is set, but is it from the command line or the environment?
5437 
5438     # Try to remove the string !CHMOD! from our list.
5439     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5440     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5441       # If it failed, the variable was not from the command line. Ignore it,
5442       # but warn the user (except for BASH, which is always set by the calling BASH).
5443       if test "xCHMOD" != xBASH; then
5444         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5445 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5446       fi
5447       # Try to locate tool using the code snippet
5448       for ac_prog in chmod
5449 do
5450   # Extract the first word of "$ac_prog", so it can be a program name with args.
5451 set dummy $ac_prog; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_path_CHMOD+:} false; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   case $CHMOD in
5458   [\\/]* | ?:[\\/]*)
5459   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5460   ;;
5461   *)
5462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467     for ac_exec_ext in '' $ac_executable_extensions; do
5468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471     break 2
5472   fi
5473 done
5474   done
5475 IFS=$as_save_IFS
5476 
5477   ;;
5478 esac
5479 fi
5480 CHMOD=$ac_cv_path_CHMOD
5481 if test -n "$CHMOD"; then
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5483 $as_echo "$CHMOD" >&6; }
5484 else
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488 
5489 
5490   test -n "$CHMOD" && break
5491 done
5492 
5493     else
5494       # If it succeeded, then it was overridden by the user. We will use it
5495       # for the tool.
5496 
5497       # First remove it from the list of overridden variables, so we can test
5498       # for unknown variables in the end.
5499       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5500 
5501       # Check if we try to supply an empty value
5502       if test "x$CHMOD" = x; then
5503         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5504 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5505         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5506 $as_echo_n "checking for CHMOD... " >&6; }
5507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5508 $as_echo "disabled" >&6; }
5509       else
5510         # Check if the provided tool contains a complete path.
5511         tool_specified="$CHMOD"
5512         tool_basename="${tool_specified##*/}"
5513         if test "x$tool_basename" = "x$tool_specified"; then
5514           # A command without a complete path is provided, search $PATH.
5515           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5516 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5517           # Extract the first word of "$tool_basename", so it can be a program name with args.
5518 set dummy $tool_basename; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_path_CHMOD+:} false; then :
5522   $as_echo_n "(cached) " >&6
5523 else
5524   case $CHMOD in
5525   [\\/]* | ?:[\\/]*)
5526   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5527   ;;
5528   *)
5529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534     for ac_exec_ext in '' $ac_executable_extensions; do
5535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541   done
5542 IFS=$as_save_IFS
5543 
5544   ;;
5545 esac
5546 fi
5547 CHMOD=$ac_cv_path_CHMOD
5548 if test -n "$CHMOD"; then
5549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5550 $as_echo "$CHMOD" >&6; }
5551 else
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5554 fi
5555 
5556 
5557           if test "x$CHMOD" = x; then
5558             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5559           fi
5560         else
5561           # Otherwise we believe it is a complete path. Use it as it is.
5562           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5563 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5564           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5565 $as_echo_n "checking for CHMOD... " >&6; }
5566           if test ! -x "$tool_specified"; then
5567             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5568 $as_echo "not found" >&6; }
5569             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5570           fi
5571           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5572 $as_echo "$tool_specified" >&6; }
5573         fi
5574       fi
5575     fi
5576 
5577   fi
5578 
5579 
5580 
5581   if test "x$CHMOD" = x; then
5582     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5583   fi
5584 
5585 
5586 
5587 
5588 
5589   # Publish this variable in the help.
5590 
5591 
5592   if [ -z "${CMP+x}" ]; then
5593     # The variable is not set by user, try to locate tool using the code snippet
5594     for ac_prog in cmp
5595 do
5596   # Extract the first word of "$ac_prog", so it can be a program name with args.
5597 set dummy $ac_prog; ac_word=$2
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if ${ac_cv_path_CMP+:} false; then :
5601   $as_echo_n "(cached) " >&6
5602 else
5603   case $CMP in
5604   [\\/]* | ?:[\\/]*)
5605   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5606   ;;
5607   *)
5608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611   IFS=$as_save_IFS
5612   test -z "$as_dir" && as_dir=.
5613     for ac_exec_ext in '' $ac_executable_extensions; do
5614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617     break 2
5618   fi
5619 done
5620   done
5621 IFS=$as_save_IFS
5622 
5623   ;;
5624 esac
5625 fi
5626 CMP=$ac_cv_path_CMP
5627 if test -n "$CMP"; then
5628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5629 $as_echo "$CMP" >&6; }
5630 else
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634 
5635 
5636   test -n "$CMP" && break
5637 done
5638 
5639   else
5640     # The variable is set, but is it from the command line or the environment?
5641 
5642     # Try to remove the string !CMP! from our list.
5643     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5644     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5645       # If it failed, the variable was not from the command line. Ignore it,
5646       # but warn the user (except for BASH, which is always set by the calling BASH).
5647       if test "xCMP" != xBASH; then
5648         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5649 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5650       fi
5651       # Try to locate tool using the code snippet
5652       for ac_prog in cmp
5653 do
5654   # Extract the first word of "$ac_prog", so it can be a program name with args.
5655 set dummy $ac_prog; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if ${ac_cv_path_CMP+:} false; then :
5659   $as_echo_n "(cached) " >&6
5660 else
5661   case $CMP in
5662   [\\/]* | ?:[\\/]*)
5663   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5664   ;;
5665   *)
5666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669   IFS=$as_save_IFS
5670   test -z "$as_dir" && as_dir=.
5671     for ac_exec_ext in '' $ac_executable_extensions; do
5672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675     break 2
5676   fi
5677 done
5678   done
5679 IFS=$as_save_IFS
5680 
5681   ;;
5682 esac
5683 fi
5684 CMP=$ac_cv_path_CMP
5685 if test -n "$CMP"; then
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5687 $as_echo "$CMP" >&6; }
5688 else
5689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691 fi
5692 
5693 
5694   test -n "$CMP" && break
5695 done
5696 
5697     else
5698       # If it succeeded, then it was overridden by the user. We will use it
5699       # for the tool.
5700 
5701       # First remove it from the list of overridden variables, so we can test
5702       # for unknown variables in the end.
5703       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5704 
5705       # Check if we try to supply an empty value
5706       if test "x$CMP" = x; then
5707         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
5708 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
5709         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5710 $as_echo_n "checking for CMP... " >&6; }
5711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5712 $as_echo "disabled" >&6; }
5713       else
5714         # Check if the provided tool contains a complete path.
5715         tool_specified="$CMP"
5716         tool_basename="${tool_specified##*/}"
5717         if test "x$tool_basename" = "x$tool_specified"; then
5718           # A command without a complete path is provided, search $PATH.
5719           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5720 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5721           # Extract the first word of "$tool_basename", so it can be a program name with args.
5722 set dummy $tool_basename; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if ${ac_cv_path_CMP+:} false; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728   case $CMP in
5729   [\\/]* | ?:[\\/]*)
5730   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5731   ;;
5732   *)
5733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736   IFS=$as_save_IFS
5737   test -z "$as_dir" && as_dir=.
5738     for ac_exec_ext in '' $ac_executable_extensions; do
5739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742     break 2
5743   fi
5744 done
5745   done
5746 IFS=$as_save_IFS
5747 
5748   ;;
5749 esac
5750 fi
5751 CMP=$ac_cv_path_CMP
5752 if test -n "$CMP"; then
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5754 $as_echo "$CMP" >&6; }
5755 else
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759 
5760 
5761           if test "x$CMP" = x; then
5762             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5763           fi
5764         else
5765           # Otherwise we believe it is a complete path. Use it as it is.
5766           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5767 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5768           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5769 $as_echo_n "checking for CMP... " >&6; }
5770           if test ! -x "$tool_specified"; then
5771             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5772 $as_echo "not found" >&6; }
5773             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5774           fi
5775           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5776 $as_echo "$tool_specified" >&6; }
5777         fi
5778       fi
5779     fi
5780 
5781   fi
5782 
5783 
5784 
5785   if test "x$CMP" = x; then
5786     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5787   fi
5788 
5789 
5790 
5791 
5792 
5793   # Publish this variable in the help.
5794 
5795 
5796   if [ -z "${COMM+x}" ]; then
5797     # The variable is not set by user, try to locate tool using the code snippet
5798     for ac_prog in comm
5799 do
5800   # Extract the first word of "$ac_prog", so it can be a program name with args.
5801 set dummy $ac_prog; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_path_COMM+:} false; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   case $COMM in
5808   [\\/]* | ?:[\\/]*)
5809   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5810   ;;
5811   *)
5812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815   IFS=$as_save_IFS
5816   test -z "$as_dir" && as_dir=.
5817     for ac_exec_ext in '' $ac_executable_extensions; do
5818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821     break 2
5822   fi
5823 done
5824   done
5825 IFS=$as_save_IFS
5826 
5827   ;;
5828 esac
5829 fi
5830 COMM=$ac_cv_path_COMM
5831 if test -n "$COMM"; then
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5833 $as_echo "$COMM" >&6; }
5834 else
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 fi
5838 
5839 
5840   test -n "$COMM" && break
5841 done
5842 
5843   else
5844     # The variable is set, but is it from the command line or the environment?
5845 
5846     # Try to remove the string !COMM! from our list.
5847     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5848     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5849       # If it failed, the variable was not from the command line. Ignore it,
5850       # but warn the user (except for BASH, which is always set by the calling BASH).
5851       if test "xCOMM" != xBASH; then
5852         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5853 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5854       fi
5855       # Try to locate tool using the code snippet
5856       for ac_prog in comm
5857 do
5858   # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_path_COMM+:} false; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   case $COMM in
5866   [\\/]* | ?:[\\/]*)
5867   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5868   ;;
5869   *)
5870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875     for ac_exec_ext in '' $ac_executable_extensions; do
5876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882   done
5883 IFS=$as_save_IFS
5884 
5885   ;;
5886 esac
5887 fi
5888 COMM=$ac_cv_path_COMM
5889 if test -n "$COMM"; then
5890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5891 $as_echo "$COMM" >&6; }
5892 else
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5895 fi
5896 
5897 
5898   test -n "$COMM" && break
5899 done
5900 
5901     else
5902       # If it succeeded, then it was overridden by the user. We will use it
5903       # for the tool.
5904 
5905       # First remove it from the list of overridden variables, so we can test
5906       # for unknown variables in the end.
5907       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5908 
5909       # Check if we try to supply an empty value
5910       if test "x$COMM" = x; then
5911         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
5912 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
5913         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5914 $as_echo_n "checking for COMM... " >&6; }
5915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5916 $as_echo "disabled" >&6; }
5917       else
5918         # Check if the provided tool contains a complete path.
5919         tool_specified="$COMM"
5920         tool_basename="${tool_specified##*/}"
5921         if test "x$tool_basename" = "x$tool_specified"; then
5922           # A command without a complete path is provided, search $PATH.
5923           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5924 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5925           # Extract the first word of "$tool_basename", so it can be a program name with args.
5926 set dummy $tool_basename; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_path_COMM+:} false; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   case $COMM in
5933   [\\/]* | ?:[\\/]*)
5934   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5935   ;;
5936   *)
5937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942     for ac_exec_ext in '' $ac_executable_extensions; do
5943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949   done
5950 IFS=$as_save_IFS
5951 
5952   ;;
5953 esac
5954 fi
5955 COMM=$ac_cv_path_COMM
5956 if test -n "$COMM"; then
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5958 $as_echo "$COMM" >&6; }
5959 else
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 $as_echo "no" >&6; }
5962 fi
5963 
5964 
5965           if test "x$COMM" = x; then
5966             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5967           fi
5968         else
5969           # Otherwise we believe it is a complete path. Use it as it is.
5970           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5971 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5972           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5973 $as_echo_n "checking for COMM... " >&6; }
5974           if test ! -x "$tool_specified"; then
5975             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5976 $as_echo "not found" >&6; }
5977             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5978           fi
5979           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5980 $as_echo "$tool_specified" >&6; }
5981         fi
5982       fi
5983     fi
5984 
5985   fi
5986 
5987 
5988 
5989   if test "x$COMM" = x; then
5990     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5991   fi
5992 
5993 
5994 
5995 
5996 
5997   # Publish this variable in the help.
5998 
5999 
6000   if [ -z "${CP+x}" ]; then
6001     # The variable is not set by user, try to locate tool using the code snippet
6002     for ac_prog in cp
6003 do
6004   # Extract the first word of "$ac_prog", so it can be a program name with args.
6005 set dummy $ac_prog; ac_word=$2
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 $as_echo_n "checking for $ac_word... " >&6; }
6008 if ${ac_cv_path_CP+:} false; then :
6009   $as_echo_n "(cached) " >&6
6010 else
6011   case $CP in
6012   [\\/]* | ?:[\\/]*)
6013   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6014   ;;
6015   *)
6016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019   IFS=$as_save_IFS
6020   test -z "$as_dir" && as_dir=.
6021     for ac_exec_ext in '' $ac_executable_extensions; do
6022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025     break 2
6026   fi
6027 done
6028   done
6029 IFS=$as_save_IFS
6030 
6031   ;;
6032 esac
6033 fi
6034 CP=$ac_cv_path_CP
6035 if test -n "$CP"; then
6036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6037 $as_echo "$CP" >&6; }
6038 else
6039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040 $as_echo "no" >&6; }
6041 fi
6042 
6043 
6044   test -n "$CP" && break
6045 done
6046 
6047   else
6048     # The variable is set, but is it from the command line or the environment?
6049 
6050     # Try to remove the string !CP! from our list.
6051     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6052     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6053       # If it failed, the variable was not from the command line. Ignore it,
6054       # but warn the user (except for BASH, which is always set by the calling BASH).
6055       if test "xCP" != xBASH; then
6056         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6057 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6058       fi
6059       # Try to locate tool using the code snippet
6060       for ac_prog in cp
6061 do
6062   # Extract the first word of "$ac_prog", so it can be a program name with args.
6063 set dummy $ac_prog; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_path_CP+:} false; then :
6067   $as_echo_n "(cached) " >&6
6068 else
6069   case $CP in
6070   [\\/]* | ?:[\\/]*)
6071   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6072   ;;
6073   *)
6074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079     for ac_exec_ext in '' $ac_executable_extensions; do
6080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086   done
6087 IFS=$as_save_IFS
6088 
6089   ;;
6090 esac
6091 fi
6092 CP=$ac_cv_path_CP
6093 if test -n "$CP"; then
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6095 $as_echo "$CP" >&6; }
6096 else
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100 
6101 
6102   test -n "$CP" && break
6103 done
6104 
6105     else
6106       # If it succeeded, then it was overridden by the user. We will use it
6107       # for the tool.
6108 
6109       # First remove it from the list of overridden variables, so we can test
6110       # for unknown variables in the end.
6111       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6112 
6113       # Check if we try to supply an empty value
6114       if test "x$CP" = x; then
6115         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6116 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6117         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6118 $as_echo_n "checking for CP... " >&6; }
6119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6120 $as_echo "disabled" >&6; }
6121       else
6122         # Check if the provided tool contains a complete path.
6123         tool_specified="$CP"
6124         tool_basename="${tool_specified##*/}"
6125         if test "x$tool_basename" = "x$tool_specified"; then
6126           # A command without a complete path is provided, search $PATH.
6127           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6128 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6129           # Extract the first word of "$tool_basename", so it can be a program name with args.
6130 set dummy $tool_basename; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if ${ac_cv_path_CP+:} false; then :
6134   $as_echo_n "(cached) " >&6
6135 else
6136   case $CP in
6137   [\\/]* | ?:[\\/]*)
6138   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6139   ;;
6140   *)
6141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144   IFS=$as_save_IFS
6145   test -z "$as_dir" && as_dir=.
6146     for ac_exec_ext in '' $ac_executable_extensions; do
6147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150     break 2
6151   fi
6152 done
6153   done
6154 IFS=$as_save_IFS
6155 
6156   ;;
6157 esac
6158 fi
6159 CP=$ac_cv_path_CP
6160 if test -n "$CP"; then
6161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6162 $as_echo "$CP" >&6; }
6163 else
6164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6166 fi
6167 
6168 
6169           if test "x$CP" = x; then
6170             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6171           fi
6172         else
6173           # Otherwise we believe it is a complete path. Use it as it is.
6174           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6175 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6176           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6177 $as_echo_n "checking for CP... " >&6; }
6178           if test ! -x "$tool_specified"; then
6179             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6180 $as_echo "not found" >&6; }
6181             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6182           fi
6183           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6184 $as_echo "$tool_specified" >&6; }
6185         fi
6186       fi
6187     fi
6188 
6189   fi
6190 
6191 
6192 
6193   if test "x$CP" = x; then
6194     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6195   fi
6196 
6197 
6198 
6199 
6200 
6201   # Publish this variable in the help.
6202 
6203 
6204   if [ -z "${CUT+x}" ]; then
6205     # The variable is not set by user, try to locate tool using the code snippet
6206     for ac_prog in cut
6207 do
6208   # Extract the first word of "$ac_prog", so it can be a program name with args.
6209 set dummy $ac_prog; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if ${ac_cv_path_CUT+:} false; then :
6213   $as_echo_n "(cached) " >&6
6214 else
6215   case $CUT in
6216   [\\/]* | ?:[\\/]*)
6217   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6218   ;;
6219   *)
6220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225     for ac_exec_ext in '' $ac_executable_extensions; do
6226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232   done
6233 IFS=$as_save_IFS
6234 
6235   ;;
6236 esac
6237 fi
6238 CUT=$ac_cv_path_CUT
6239 if test -n "$CUT"; then
6240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6241 $as_echo "$CUT" >&6; }
6242 else
6243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244 $as_echo "no" >&6; }
6245 fi
6246 
6247 
6248   test -n "$CUT" && break
6249 done
6250 
6251   else
6252     # The variable is set, but is it from the command line or the environment?
6253 
6254     # Try to remove the string !CUT! from our list.
6255     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6256     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6257       # If it failed, the variable was not from the command line. Ignore it,
6258       # but warn the user (except for BASH, which is always set by the calling BASH).
6259       if test "xCUT" != xBASH; then
6260         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6261 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6262       fi
6263       # Try to locate tool using the code snippet
6264       for ac_prog in cut
6265 do
6266   # Extract the first word of "$ac_prog", so it can be a program name with args.
6267 set dummy $ac_prog; ac_word=$2
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269 $as_echo_n "checking for $ac_word... " >&6; }
6270 if ${ac_cv_path_CUT+:} false; then :
6271   $as_echo_n "(cached) " >&6
6272 else
6273   case $CUT in
6274   [\\/]* | ?:[\\/]*)
6275   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6276   ;;
6277   *)
6278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6280 do
6281   IFS=$as_save_IFS
6282   test -z "$as_dir" && as_dir=.
6283     for ac_exec_ext in '' $ac_executable_extensions; do
6284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6285     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287     break 2
6288   fi
6289 done
6290   done
6291 IFS=$as_save_IFS
6292 
6293   ;;
6294 esac
6295 fi
6296 CUT=$ac_cv_path_CUT
6297 if test -n "$CUT"; then
6298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6299 $as_echo "$CUT" >&6; }
6300 else
6301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6303 fi
6304 
6305 
6306   test -n "$CUT" && break
6307 done
6308 
6309     else
6310       # If it succeeded, then it was overridden by the user. We will use it
6311       # for the tool.
6312 
6313       # First remove it from the list of overridden variables, so we can test
6314       # for unknown variables in the end.
6315       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6316 
6317       # Check if we try to supply an empty value
6318       if test "x$CUT" = x; then
6319         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6320 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6321         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6322 $as_echo_n "checking for CUT... " >&6; }
6323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6324 $as_echo "disabled" >&6; }
6325       else
6326         # Check if the provided tool contains a complete path.
6327         tool_specified="$CUT"
6328         tool_basename="${tool_specified##*/}"
6329         if test "x$tool_basename" = "x$tool_specified"; then
6330           # A command without a complete path is provided, search $PATH.
6331           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6332 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6333           # Extract the first word of "$tool_basename", so it can be a program name with args.
6334 set dummy $tool_basename; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if ${ac_cv_path_CUT+:} false; then :
6338   $as_echo_n "(cached) " >&6
6339 else
6340   case $CUT in
6341   [\\/]* | ?:[\\/]*)
6342   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6343   ;;
6344   *)
6345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350     for ac_exec_ext in '' $ac_executable_extensions; do
6351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354     break 2
6355   fi
6356 done
6357   done
6358 IFS=$as_save_IFS
6359 
6360   ;;
6361 esac
6362 fi
6363 CUT=$ac_cv_path_CUT
6364 if test -n "$CUT"; then
6365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6366 $as_echo "$CUT" >&6; }
6367 else
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371 
6372 
6373           if test "x$CUT" = x; then
6374             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6375           fi
6376         else
6377           # Otherwise we believe it is a complete path. Use it as it is.
6378           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6379 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6380           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6381 $as_echo_n "checking for CUT... " >&6; }
6382           if test ! -x "$tool_specified"; then
6383             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6384 $as_echo "not found" >&6; }
6385             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6386           fi
6387           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6388 $as_echo "$tool_specified" >&6; }
6389         fi
6390       fi
6391     fi
6392 
6393   fi
6394 
6395 
6396 
6397   if test "x$CUT" = x; then
6398     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6399   fi
6400 
6401 
6402 
6403 
6404 
6405   # Publish this variable in the help.
6406 
6407 
6408   if [ -z "${DATE+x}" ]; then
6409     # The variable is not set by user, try to locate tool using the code snippet
6410     for ac_prog in date
6411 do
6412   # Extract the first word of "$ac_prog", so it can be a program name with args.
6413 set dummy $ac_prog; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_path_DATE+:} false; then :
6417   $as_echo_n "(cached) " >&6
6418 else
6419   case $DATE in
6420   [\\/]* | ?:[\\/]*)
6421   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6422   ;;
6423   *)
6424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427   IFS=$as_save_IFS
6428   test -z "$as_dir" && as_dir=.
6429     for ac_exec_ext in '' $ac_executable_extensions; do
6430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433     break 2
6434   fi
6435 done
6436   done
6437 IFS=$as_save_IFS
6438 
6439   ;;
6440 esac
6441 fi
6442 DATE=$ac_cv_path_DATE
6443 if test -n "$DATE"; then
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6445 $as_echo "$DATE" >&6; }
6446 else
6447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450 
6451 
6452   test -n "$DATE" && break
6453 done
6454 
6455   else
6456     # The variable is set, but is it from the command line or the environment?
6457 
6458     # Try to remove the string !DATE! from our list.
6459     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6460     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6461       # If it failed, the variable was not from the command line. Ignore it,
6462       # but warn the user (except for BASH, which is always set by the calling BASH).
6463       if test "xDATE" != xBASH; then
6464         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6465 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6466       fi
6467       # Try to locate tool using the code snippet
6468       for ac_prog in date
6469 do
6470   # Extract the first word of "$ac_prog", so it can be a program name with args.
6471 set dummy $ac_prog; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if ${ac_cv_path_DATE+:} false; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477   case $DATE in
6478   [\\/]* | ?:[\\/]*)
6479   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6480   ;;
6481   *)
6482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485   IFS=$as_save_IFS
6486   test -z "$as_dir" && as_dir=.
6487     for ac_exec_ext in '' $ac_executable_extensions; do
6488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491     break 2
6492   fi
6493 done
6494   done
6495 IFS=$as_save_IFS
6496 
6497   ;;
6498 esac
6499 fi
6500 DATE=$ac_cv_path_DATE
6501 if test -n "$DATE"; then
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6503 $as_echo "$DATE" >&6; }
6504 else
6505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 $as_echo "no" >&6; }
6507 fi
6508 
6509 
6510   test -n "$DATE" && break
6511 done
6512 
6513     else
6514       # If it succeeded, then it was overridden by the user. We will use it
6515       # for the tool.
6516 
6517       # First remove it from the list of overridden variables, so we can test
6518       # for unknown variables in the end.
6519       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6520 
6521       # Check if we try to supply an empty value
6522       if test "x$DATE" = x; then
6523         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6524 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6525         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6526 $as_echo_n "checking for DATE... " >&6; }
6527         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6528 $as_echo "disabled" >&6; }
6529       else
6530         # Check if the provided tool contains a complete path.
6531         tool_specified="$DATE"
6532         tool_basename="${tool_specified##*/}"
6533         if test "x$tool_basename" = "x$tool_specified"; then
6534           # A command without a complete path is provided, search $PATH.
6535           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6536 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6537           # Extract the first word of "$tool_basename", so it can be a program name with args.
6538 set dummy $tool_basename; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if ${ac_cv_path_DATE+:} false; then :
6542   $as_echo_n "(cached) " >&6
6543 else
6544   case $DATE in
6545   [\\/]* | ?:[\\/]*)
6546   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6547   ;;
6548   *)
6549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552   IFS=$as_save_IFS
6553   test -z "$as_dir" && as_dir=.
6554     for ac_exec_ext in '' $ac_executable_extensions; do
6555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6556     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558     break 2
6559   fi
6560 done
6561   done
6562 IFS=$as_save_IFS
6563 
6564   ;;
6565 esac
6566 fi
6567 DATE=$ac_cv_path_DATE
6568 if test -n "$DATE"; then
6569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6570 $as_echo "$DATE" >&6; }
6571 else
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6574 fi
6575 
6576 
6577           if test "x$DATE" = x; then
6578             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6579           fi
6580         else
6581           # Otherwise we believe it is a complete path. Use it as it is.
6582           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6583 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6584           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6585 $as_echo_n "checking for DATE... " >&6; }
6586           if test ! -x "$tool_specified"; then
6587             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6588 $as_echo "not found" >&6; }
6589             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6590           fi
6591           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6592 $as_echo "$tool_specified" >&6; }
6593         fi
6594       fi
6595     fi
6596 
6597   fi
6598 
6599 
6600 
6601   if test "x$DATE" = x; then
6602     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6603   fi
6604 
6605 
6606 
6607 
6608 
6609   # Publish this variable in the help.
6610 
6611 
6612   if [ -z "${DIFF+x}" ]; then
6613     # The variable is not set by user, try to locate tool using the code snippet
6614     for ac_prog in gdiff diff
6615 do
6616   # Extract the first word of "$ac_prog", so it can be a program name with args.
6617 set dummy $ac_prog; ac_word=$2
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if ${ac_cv_path_DIFF+:} false; then :
6621   $as_echo_n "(cached) " >&6
6622 else
6623   case $DIFF in
6624   [\\/]* | ?:[\\/]*)
6625   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6626   ;;
6627   *)
6628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633     for ac_exec_ext in '' $ac_executable_extensions; do
6634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637     break 2
6638   fi
6639 done
6640   done
6641 IFS=$as_save_IFS
6642 
6643   ;;
6644 esac
6645 fi
6646 DIFF=$ac_cv_path_DIFF
6647 if test -n "$DIFF"; then
6648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6649 $as_echo "$DIFF" >&6; }
6650 else
6651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652 $as_echo "no" >&6; }
6653 fi
6654 
6655 
6656   test -n "$DIFF" && break
6657 done
6658 
6659   else
6660     # The variable is set, but is it from the command line or the environment?
6661 
6662     # Try to remove the string !DIFF! from our list.
6663     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6664     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6665       # If it failed, the variable was not from the command line. Ignore it,
6666       # but warn the user (except for BASH, which is always set by the calling BASH).
6667       if test "xDIFF" != xBASH; then
6668         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6669 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6670       fi
6671       # Try to locate tool using the code snippet
6672       for ac_prog in gdiff diff
6673 do
6674   # Extract the first word of "$ac_prog", so it can be a program name with args.
6675 set dummy $ac_prog; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if ${ac_cv_path_DIFF+:} false; then :
6679   $as_echo_n "(cached) " >&6
6680 else
6681   case $DIFF in
6682   [\\/]* | ?:[\\/]*)
6683   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6684   ;;
6685   *)
6686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691     for ac_exec_ext in '' $ac_executable_extensions; do
6692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695     break 2
6696   fi
6697 done
6698   done
6699 IFS=$as_save_IFS
6700 
6701   ;;
6702 esac
6703 fi
6704 DIFF=$ac_cv_path_DIFF
6705 if test -n "$DIFF"; then
6706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6707 $as_echo "$DIFF" >&6; }
6708 else
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6711 fi
6712 
6713 
6714   test -n "$DIFF" && break
6715 done
6716 
6717     else
6718       # If it succeeded, then it was overridden by the user. We will use it
6719       # for the tool.
6720 
6721       # First remove it from the list of overridden variables, so we can test
6722       # for unknown variables in the end.
6723       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6724 
6725       # Check if we try to supply an empty value
6726       if test "x$DIFF" = x; then
6727         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
6728 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
6729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6730 $as_echo_n "checking for DIFF... " >&6; }
6731         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6732 $as_echo "disabled" >&6; }
6733       else
6734         # Check if the provided tool contains a complete path.
6735         tool_specified="$DIFF"
6736         tool_basename="${tool_specified##*/}"
6737         if test "x$tool_basename" = "x$tool_specified"; then
6738           # A command without a complete path is provided, search $PATH.
6739           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6740 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6741           # Extract the first word of "$tool_basename", so it can be a program name with args.
6742 set dummy $tool_basename; ac_word=$2
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 $as_echo_n "checking for $ac_word... " >&6; }
6745 if ${ac_cv_path_DIFF+:} false; then :
6746   $as_echo_n "(cached) " >&6
6747 else
6748   case $DIFF in
6749   [\\/]* | ?:[\\/]*)
6750   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6751   ;;
6752   *)
6753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756   IFS=$as_save_IFS
6757   test -z "$as_dir" && as_dir=.
6758     for ac_exec_ext in '' $ac_executable_extensions; do
6759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6760     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762     break 2
6763   fi
6764 done
6765   done
6766 IFS=$as_save_IFS
6767 
6768   ;;
6769 esac
6770 fi
6771 DIFF=$ac_cv_path_DIFF
6772 if test -n "$DIFF"; then
6773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6774 $as_echo "$DIFF" >&6; }
6775 else
6776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6778 fi
6779 
6780 
6781           if test "x$DIFF" = x; then
6782             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6783           fi
6784         else
6785           # Otherwise we believe it is a complete path. Use it as it is.
6786           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6787 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6788           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6789 $as_echo_n "checking for DIFF... " >&6; }
6790           if test ! -x "$tool_specified"; then
6791             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6792 $as_echo "not found" >&6; }
6793             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6794           fi
6795           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6796 $as_echo "$tool_specified" >&6; }
6797         fi
6798       fi
6799     fi
6800 
6801   fi
6802 
6803 
6804 
6805   if test "x$DIFF" = x; then
6806     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6807   fi
6808 
6809 
6810 
6811 
6812 
6813   # Publish this variable in the help.
6814 
6815 
6816   if [ -z "${DIRNAME+x}" ]; then
6817     # The variable is not set by user, try to locate tool using the code snippet
6818     for ac_prog in dirname
6819 do
6820   # Extract the first word of "$ac_prog", so it can be a program name with args.
6821 set dummy $ac_prog; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if ${ac_cv_path_DIRNAME+:} false; then :
6825   $as_echo_n "(cached) " >&6
6826 else
6827   case $DIRNAME in
6828   [\\/]* | ?:[\\/]*)
6829   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6830   ;;
6831   *)
6832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837     for ac_exec_ext in '' $ac_executable_extensions; do
6838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844   done
6845 IFS=$as_save_IFS
6846 
6847   ;;
6848 esac
6849 fi
6850 DIRNAME=$ac_cv_path_DIRNAME
6851 if test -n "$DIRNAME"; then
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6853 $as_echo "$DIRNAME" >&6; }
6854 else
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858 
6859 
6860   test -n "$DIRNAME" && break
6861 done
6862 
6863   else
6864     # The variable is set, but is it from the command line or the environment?
6865 
6866     # Try to remove the string !DIRNAME! from our list.
6867     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6868     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6869       # If it failed, the variable was not from the command line. Ignore it,
6870       # but warn the user (except for BASH, which is always set by the calling BASH).
6871       if test "xDIRNAME" != xBASH; then
6872         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6873 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6874       fi
6875       # Try to locate tool using the code snippet
6876       for ac_prog in dirname
6877 do
6878   # Extract the first word of "$ac_prog", so it can be a program name with args.
6879 set dummy $ac_prog; ac_word=$2
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if ${ac_cv_path_DIRNAME+:} false; then :
6883   $as_echo_n "(cached) " >&6
6884 else
6885   case $DIRNAME in
6886   [\\/]* | ?:[\\/]*)
6887   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6888   ;;
6889   *)
6890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893   IFS=$as_save_IFS
6894   test -z "$as_dir" && as_dir=.
6895     for ac_exec_ext in '' $ac_executable_extensions; do
6896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899     break 2
6900   fi
6901 done
6902   done
6903 IFS=$as_save_IFS
6904 
6905   ;;
6906 esac
6907 fi
6908 DIRNAME=$ac_cv_path_DIRNAME
6909 if test -n "$DIRNAME"; then
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6911 $as_echo "$DIRNAME" >&6; }
6912 else
6913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6915 fi
6916 
6917 
6918   test -n "$DIRNAME" && break
6919 done
6920 
6921     else
6922       # If it succeeded, then it was overridden by the user. We will use it
6923       # for the tool.
6924 
6925       # First remove it from the list of overridden variables, so we can test
6926       # for unknown variables in the end.
6927       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6928 
6929       # Check if we try to supply an empty value
6930       if test "x$DIRNAME" = x; then
6931         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
6932 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
6933         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6934 $as_echo_n "checking for DIRNAME... " >&6; }
6935         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6936 $as_echo "disabled" >&6; }
6937       else
6938         # Check if the provided tool contains a complete path.
6939         tool_specified="$DIRNAME"
6940         tool_basename="${tool_specified##*/}"
6941         if test "x$tool_basename" = "x$tool_specified"; then
6942           # A command without a complete path is provided, search $PATH.
6943           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6944 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6945           # Extract the first word of "$tool_basename", so it can be a program name with args.
6946 set dummy $tool_basename; ac_word=$2
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if ${ac_cv_path_DIRNAME+:} false; then :
6950   $as_echo_n "(cached) " >&6
6951 else
6952   case $DIRNAME in
6953   [\\/]* | ?:[\\/]*)
6954   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6955   ;;
6956   *)
6957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960   IFS=$as_save_IFS
6961   test -z "$as_dir" && as_dir=.
6962     for ac_exec_ext in '' $ac_executable_extensions; do
6963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966     break 2
6967   fi
6968 done
6969   done
6970 IFS=$as_save_IFS
6971 
6972   ;;
6973 esac
6974 fi
6975 DIRNAME=$ac_cv_path_DIRNAME
6976 if test -n "$DIRNAME"; then
6977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6978 $as_echo "$DIRNAME" >&6; }
6979 else
6980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6982 fi
6983 
6984 
6985           if test "x$DIRNAME" = x; then
6986             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6987           fi
6988         else
6989           # Otherwise we believe it is a complete path. Use it as it is.
6990           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6991 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6992           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6993 $as_echo_n "checking for DIRNAME... " >&6; }
6994           if test ! -x "$tool_specified"; then
6995             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6996 $as_echo "not found" >&6; }
6997             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6998           fi
6999           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7000 $as_echo "$tool_specified" >&6; }
7001         fi
7002       fi
7003     fi
7004 
7005   fi
7006 
7007 
7008 
7009   if test "x$DIRNAME" = x; then
7010     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7011   fi
7012 
7013 
7014 
7015 
7016 
7017   # Publish this variable in the help.
7018 
7019 
7020   if [ -z "${ECHO+x}" ]; then
7021     # The variable is not set by user, try to locate tool using the code snippet
7022     for ac_prog in echo
7023 do
7024   # Extract the first word of "$ac_prog", so it can be a program name with args.
7025 set dummy $ac_prog; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_path_ECHO+:} false; then :
7029   $as_echo_n "(cached) " >&6
7030 else
7031   case $ECHO in
7032   [\\/]* | ?:[\\/]*)
7033   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7034   ;;
7035   *)
7036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039   IFS=$as_save_IFS
7040   test -z "$as_dir" && as_dir=.
7041     for ac_exec_ext in '' $ac_executable_extensions; do
7042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045     break 2
7046   fi
7047 done
7048   done
7049 IFS=$as_save_IFS
7050 
7051   ;;
7052 esac
7053 fi
7054 ECHO=$ac_cv_path_ECHO
7055 if test -n "$ECHO"; then
7056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7057 $as_echo "$ECHO" >&6; }
7058 else
7059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7061 fi
7062 
7063 
7064   test -n "$ECHO" && break
7065 done
7066 
7067   else
7068     # The variable is set, but is it from the command line or the environment?
7069 
7070     # Try to remove the string !ECHO! from our list.
7071     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7072     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7073       # If it failed, the variable was not from the command line. Ignore it,
7074       # but warn the user (except for BASH, which is always set by the calling BASH).
7075       if test "xECHO" != xBASH; then
7076         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7077 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7078       fi
7079       # Try to locate tool using the code snippet
7080       for ac_prog in echo
7081 do
7082   # Extract the first word of "$ac_prog", so it can be a program name with args.
7083 set dummy $ac_prog; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if ${ac_cv_path_ECHO+:} false; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089   case $ECHO in
7090   [\\/]* | ?:[\\/]*)
7091   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7092   ;;
7093   *)
7094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097   IFS=$as_save_IFS
7098   test -z "$as_dir" && as_dir=.
7099     for ac_exec_ext in '' $ac_executable_extensions; do
7100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103     break 2
7104   fi
7105 done
7106   done
7107 IFS=$as_save_IFS
7108 
7109   ;;
7110 esac
7111 fi
7112 ECHO=$ac_cv_path_ECHO
7113 if test -n "$ECHO"; then
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7115 $as_echo "$ECHO" >&6; }
7116 else
7117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 $as_echo "no" >&6; }
7119 fi
7120 
7121 
7122   test -n "$ECHO" && break
7123 done
7124 
7125     else
7126       # If it succeeded, then it was overridden by the user. We will use it
7127       # for the tool.
7128 
7129       # First remove it from the list of overridden variables, so we can test
7130       # for unknown variables in the end.
7131       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7132 
7133       # Check if we try to supply an empty value
7134       if test "x$ECHO" = x; then
7135         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7136 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7137         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7138 $as_echo_n "checking for ECHO... " >&6; }
7139         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7140 $as_echo "disabled" >&6; }
7141       else
7142         # Check if the provided tool contains a complete path.
7143         tool_specified="$ECHO"
7144         tool_basename="${tool_specified##*/}"
7145         if test "x$tool_basename" = "x$tool_specified"; then
7146           # A command without a complete path is provided, search $PATH.
7147           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7148 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7149           # Extract the first word of "$tool_basename", so it can be a program name with args.
7150 set dummy $tool_basename; ac_word=$2
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152 $as_echo_n "checking for $ac_word... " >&6; }
7153 if ${ac_cv_path_ECHO+:} false; then :
7154   $as_echo_n "(cached) " >&6
7155 else
7156   case $ECHO in
7157   [\\/]* | ?:[\\/]*)
7158   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7159   ;;
7160   *)
7161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166     for ac_exec_ext in '' $ac_executable_extensions; do
7167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170     break 2
7171   fi
7172 done
7173   done
7174 IFS=$as_save_IFS
7175 
7176   ;;
7177 esac
7178 fi
7179 ECHO=$ac_cv_path_ECHO
7180 if test -n "$ECHO"; then
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7182 $as_echo "$ECHO" >&6; }
7183 else
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7186 fi
7187 
7188 
7189           if test "x$ECHO" = x; then
7190             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7191           fi
7192         else
7193           # Otherwise we believe it is a complete path. Use it as it is.
7194           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7195 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7196           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7197 $as_echo_n "checking for ECHO... " >&6; }
7198           if test ! -x "$tool_specified"; then
7199             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7200 $as_echo "not found" >&6; }
7201             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7202           fi
7203           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7204 $as_echo "$tool_specified" >&6; }
7205         fi
7206       fi
7207     fi
7208 
7209   fi
7210 
7211 
7212 
7213   if test "x$ECHO" = x; then
7214     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7215   fi
7216 
7217 
7218 
7219 
7220 
7221   # Publish this variable in the help.
7222 
7223 
7224   if [ -z "${EXPR+x}" ]; then
7225     # The variable is not set by user, try to locate tool using the code snippet
7226     for ac_prog in expr
7227 do
7228   # Extract the first word of "$ac_prog", so it can be a program name with args.
7229 set dummy $ac_prog; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_path_EXPR+:} false; then :
7233   $as_echo_n "(cached) " >&6
7234 else
7235   case $EXPR in
7236   [\\/]* | ?:[\\/]*)
7237   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7238   ;;
7239   *)
7240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243   IFS=$as_save_IFS
7244   test -z "$as_dir" && as_dir=.
7245     for ac_exec_ext in '' $ac_executable_extensions; do
7246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7247     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249     break 2
7250   fi
7251 done
7252   done
7253 IFS=$as_save_IFS
7254 
7255   ;;
7256 esac
7257 fi
7258 EXPR=$ac_cv_path_EXPR
7259 if test -n "$EXPR"; then
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7261 $as_echo "$EXPR" >&6; }
7262 else
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7265 fi
7266 
7267 
7268   test -n "$EXPR" && break
7269 done
7270 
7271   else
7272     # The variable is set, but is it from the command line or the environment?
7273 
7274     # Try to remove the string !EXPR! from our list.
7275     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7276     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7277       # If it failed, the variable was not from the command line. Ignore it,
7278       # but warn the user (except for BASH, which is always set by the calling BASH).
7279       if test "xEXPR" != xBASH; then
7280         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7281 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7282       fi
7283       # Try to locate tool using the code snippet
7284       for ac_prog in expr
7285 do
7286   # Extract the first word of "$ac_prog", so it can be a program name with args.
7287 set dummy $ac_prog; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if ${ac_cv_path_EXPR+:} false; then :
7291   $as_echo_n "(cached) " >&6
7292 else
7293   case $EXPR in
7294   [\\/]* | ?:[\\/]*)
7295   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7296   ;;
7297   *)
7298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303     for ac_exec_ext in '' $ac_executable_extensions; do
7304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310   done
7311 IFS=$as_save_IFS
7312 
7313   ;;
7314 esac
7315 fi
7316 EXPR=$ac_cv_path_EXPR
7317 if test -n "$EXPR"; then
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7319 $as_echo "$EXPR" >&6; }
7320 else
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324 
7325 
7326   test -n "$EXPR" && break
7327 done
7328 
7329     else
7330       # If it succeeded, then it was overridden by the user. We will use it
7331       # for the tool.
7332 
7333       # First remove it from the list of overridden variables, so we can test
7334       # for unknown variables in the end.
7335       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7336 
7337       # Check if we try to supply an empty value
7338       if test "x$EXPR" = x; then
7339         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7340 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7341         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7342 $as_echo_n "checking for EXPR... " >&6; }
7343         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7344 $as_echo "disabled" >&6; }
7345       else
7346         # Check if the provided tool contains a complete path.
7347         tool_specified="$EXPR"
7348         tool_basename="${tool_specified##*/}"
7349         if test "x$tool_basename" = "x$tool_specified"; then
7350           # A command without a complete path is provided, search $PATH.
7351           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7352 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7353           # Extract the first word of "$tool_basename", so it can be a program name with args.
7354 set dummy $tool_basename; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_path_EXPR+:} false; then :
7358   $as_echo_n "(cached) " >&6
7359 else
7360   case $EXPR in
7361   [\\/]* | ?:[\\/]*)
7362   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7363   ;;
7364   *)
7365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368   IFS=$as_save_IFS
7369   test -z "$as_dir" && as_dir=.
7370     for ac_exec_ext in '' $ac_executable_extensions; do
7371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374     break 2
7375   fi
7376 done
7377   done
7378 IFS=$as_save_IFS
7379 
7380   ;;
7381 esac
7382 fi
7383 EXPR=$ac_cv_path_EXPR
7384 if test -n "$EXPR"; then
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7386 $as_echo "$EXPR" >&6; }
7387 else
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7390 fi
7391 
7392 
7393           if test "x$EXPR" = x; then
7394             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7395           fi
7396         else
7397           # Otherwise we believe it is a complete path. Use it as it is.
7398           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7399 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7400           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7401 $as_echo_n "checking for EXPR... " >&6; }
7402           if test ! -x "$tool_specified"; then
7403             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7404 $as_echo "not found" >&6; }
7405             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7406           fi
7407           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7408 $as_echo "$tool_specified" >&6; }
7409         fi
7410       fi
7411     fi
7412 
7413   fi
7414 
7415 
7416 
7417   if test "x$EXPR" = x; then
7418     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7419   fi
7420 
7421 
7422 
7423 
7424 
7425   # Publish this variable in the help.
7426 
7427 
7428   if [ -z "${FILE+x}" ]; then
7429     # The variable is not set by user, try to locate tool using the code snippet
7430     for ac_prog in file
7431 do
7432   # Extract the first word of "$ac_prog", so it can be a program name with args.
7433 set dummy $ac_prog; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_path_FILE+:} false; then :
7437   $as_echo_n "(cached) " >&6
7438 else
7439   case $FILE in
7440   [\\/]* | ?:[\\/]*)
7441   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7442   ;;
7443   *)
7444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449     for ac_exec_ext in '' $ac_executable_extensions; do
7450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456   done
7457 IFS=$as_save_IFS
7458 
7459   ;;
7460 esac
7461 fi
7462 FILE=$ac_cv_path_FILE
7463 if test -n "$FILE"; then
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7465 $as_echo "$FILE" >&6; }
7466 else
7467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7469 fi
7470 
7471 
7472   test -n "$FILE" && break
7473 done
7474 
7475   else
7476     # The variable is set, but is it from the command line or the environment?
7477 
7478     # Try to remove the string !FILE! from our list.
7479     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7480     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7481       # If it failed, the variable was not from the command line. Ignore it,
7482       # but warn the user (except for BASH, which is always set by the calling BASH).
7483       if test "xFILE" != xBASH; then
7484         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7485 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7486       fi
7487       # Try to locate tool using the code snippet
7488       for ac_prog in file
7489 do
7490   # Extract the first word of "$ac_prog", so it can be a program name with args.
7491 set dummy $ac_prog; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_path_FILE+:} false; then :
7495   $as_echo_n "(cached) " >&6
7496 else
7497   case $FILE in
7498   [\\/]* | ?:[\\/]*)
7499   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7500   ;;
7501   *)
7502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507     for ac_exec_ext in '' $ac_executable_extensions; do
7508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514   done
7515 IFS=$as_save_IFS
7516 
7517   ;;
7518 esac
7519 fi
7520 FILE=$ac_cv_path_FILE
7521 if test -n "$FILE"; then
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7523 $as_echo "$FILE" >&6; }
7524 else
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528 
7529 
7530   test -n "$FILE" && break
7531 done
7532 
7533     else
7534       # If it succeeded, then it was overridden by the user. We will use it
7535       # for the tool.
7536 
7537       # First remove it from the list of overridden variables, so we can test
7538       # for unknown variables in the end.
7539       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7540 
7541       # Check if we try to supply an empty value
7542       if test "x$FILE" = x; then
7543         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7544 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7545         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7546 $as_echo_n "checking for FILE... " >&6; }
7547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7548 $as_echo "disabled" >&6; }
7549       else
7550         # Check if the provided tool contains a complete path.
7551         tool_specified="$FILE"
7552         tool_basename="${tool_specified##*/}"
7553         if test "x$tool_basename" = "x$tool_specified"; then
7554           # A command without a complete path is provided, search $PATH.
7555           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7556 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7557           # Extract the first word of "$tool_basename", so it can be a program name with args.
7558 set dummy $tool_basename; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if ${ac_cv_path_FILE+:} false; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564   case $FILE in
7565   [\\/]* | ?:[\\/]*)
7566   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7567   ;;
7568   *)
7569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7571 do
7572   IFS=$as_save_IFS
7573   test -z "$as_dir" && as_dir=.
7574     for ac_exec_ext in '' $ac_executable_extensions; do
7575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7576     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578     break 2
7579   fi
7580 done
7581   done
7582 IFS=$as_save_IFS
7583 
7584   ;;
7585 esac
7586 fi
7587 FILE=$ac_cv_path_FILE
7588 if test -n "$FILE"; then
7589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7590 $as_echo "$FILE" >&6; }
7591 else
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7594 fi
7595 
7596 
7597           if test "x$FILE" = x; then
7598             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7599           fi
7600         else
7601           # Otherwise we believe it is a complete path. Use it as it is.
7602           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7603 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7604           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7605 $as_echo_n "checking for FILE... " >&6; }
7606           if test ! -x "$tool_specified"; then
7607             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7608 $as_echo "not found" >&6; }
7609             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7610           fi
7611           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7612 $as_echo "$tool_specified" >&6; }
7613         fi
7614       fi
7615     fi
7616 
7617   fi
7618 
7619 
7620 
7621   if test "x$FILE" = x; then
7622     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7623   fi
7624 
7625 
7626 
7627 
7628 
7629   # Publish this variable in the help.
7630 
7631 
7632   if [ -z "${FIND+x}" ]; then
7633     # The variable is not set by user, try to locate tool using the code snippet
7634     for ac_prog in find
7635 do
7636   # Extract the first word of "$ac_prog", so it can be a program name with args.
7637 set dummy $ac_prog; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_path_FIND+:} false; then :
7641   $as_echo_n "(cached) " >&6
7642 else
7643   case $FIND in
7644   [\\/]* | ?:[\\/]*)
7645   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7646   ;;
7647   *)
7648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7650 do
7651   IFS=$as_save_IFS
7652   test -z "$as_dir" && as_dir=.
7653     for ac_exec_ext in '' $ac_executable_extensions; do
7654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7655     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657     break 2
7658   fi
7659 done
7660   done
7661 IFS=$as_save_IFS
7662 
7663   ;;
7664 esac
7665 fi
7666 FIND=$ac_cv_path_FIND
7667 if test -n "$FIND"; then
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7669 $as_echo "$FIND" >&6; }
7670 else
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673 fi
7674 
7675 
7676   test -n "$FIND" && break
7677 done
7678 
7679   else
7680     # The variable is set, but is it from the command line or the environment?
7681 
7682     # Try to remove the string !FIND! from our list.
7683     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7684     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7685       # If it failed, the variable was not from the command line. Ignore it,
7686       # but warn the user (except for BASH, which is always set by the calling BASH).
7687       if test "xFIND" != xBASH; then
7688         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7689 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7690       fi
7691       # Try to locate tool using the code snippet
7692       for ac_prog in find
7693 do
7694   # Extract the first word of "$ac_prog", so it can be a program name with args.
7695 set dummy $ac_prog; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if ${ac_cv_path_FIND+:} false; then :
7699   $as_echo_n "(cached) " >&6
7700 else
7701   case $FIND in
7702   [\\/]* | ?:[\\/]*)
7703   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7704   ;;
7705   *)
7706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709   IFS=$as_save_IFS
7710   test -z "$as_dir" && as_dir=.
7711     for ac_exec_ext in '' $ac_executable_extensions; do
7712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715     break 2
7716   fi
7717 done
7718   done
7719 IFS=$as_save_IFS
7720 
7721   ;;
7722 esac
7723 fi
7724 FIND=$ac_cv_path_FIND
7725 if test -n "$FIND"; then
7726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7727 $as_echo "$FIND" >&6; }
7728 else
7729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7731 fi
7732 
7733 
7734   test -n "$FIND" && break
7735 done
7736 
7737     else
7738       # If it succeeded, then it was overridden by the user. We will use it
7739       # for the tool.
7740 
7741       # First remove it from the list of overridden variables, so we can test
7742       # for unknown variables in the end.
7743       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7744 
7745       # Check if we try to supply an empty value
7746       if test "x$FIND" = x; then
7747         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
7748 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
7749         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7750 $as_echo_n "checking for FIND... " >&6; }
7751         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7752 $as_echo "disabled" >&6; }
7753       else
7754         # Check if the provided tool contains a complete path.
7755         tool_specified="$FIND"
7756         tool_basename="${tool_specified##*/}"
7757         if test "x$tool_basename" = "x$tool_specified"; then
7758           # A command without a complete path is provided, search $PATH.
7759           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7760 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7761           # Extract the first word of "$tool_basename", so it can be a program name with args.
7762 set dummy $tool_basename; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if ${ac_cv_path_FIND+:} false; then :
7766   $as_echo_n "(cached) " >&6
7767 else
7768   case $FIND in
7769   [\\/]* | ?:[\\/]*)
7770   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7771   ;;
7772   *)
7773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776   IFS=$as_save_IFS
7777   test -z "$as_dir" && as_dir=.
7778     for ac_exec_ext in '' $ac_executable_extensions; do
7779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782     break 2
7783   fi
7784 done
7785   done
7786 IFS=$as_save_IFS
7787 
7788   ;;
7789 esac
7790 fi
7791 FIND=$ac_cv_path_FIND
7792 if test -n "$FIND"; then
7793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7794 $as_echo "$FIND" >&6; }
7795 else
7796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 fi
7799 
7800 
7801           if test "x$FIND" = x; then
7802             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7803           fi
7804         else
7805           # Otherwise we believe it is a complete path. Use it as it is.
7806           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7807 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7808           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7809 $as_echo_n "checking for FIND... " >&6; }
7810           if test ! -x "$tool_specified"; then
7811             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7812 $as_echo "not found" >&6; }
7813             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7814           fi
7815           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7816 $as_echo "$tool_specified" >&6; }
7817         fi
7818       fi
7819     fi
7820 
7821   fi
7822 
7823 
7824 
7825   if test "x$FIND" = x; then
7826     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7827   fi
7828 
7829 
7830 
7831 
7832 
7833   # Publish this variable in the help.
7834 
7835 
7836   if [ -z "${HEAD+x}" ]; then
7837     # The variable is not set by user, try to locate tool using the code snippet
7838     for ac_prog in head
7839 do
7840   # Extract the first word of "$ac_prog", so it can be a program name with args.
7841 set dummy $ac_prog; ac_word=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if ${ac_cv_path_HEAD+:} false; then :
7845   $as_echo_n "(cached) " >&6
7846 else
7847   case $HEAD in
7848   [\\/]* | ?:[\\/]*)
7849   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7850   ;;
7851   *)
7852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7854 do
7855   IFS=$as_save_IFS
7856   test -z "$as_dir" && as_dir=.
7857     for ac_exec_ext in '' $ac_executable_extensions; do
7858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7859     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861     break 2
7862   fi
7863 done
7864   done
7865 IFS=$as_save_IFS
7866 
7867   ;;
7868 esac
7869 fi
7870 HEAD=$ac_cv_path_HEAD
7871 if test -n "$HEAD"; then
7872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7873 $as_echo "$HEAD" >&6; }
7874 else
7875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7877 fi
7878 
7879 
7880   test -n "$HEAD" && break
7881 done
7882 
7883   else
7884     # The variable is set, but is it from the command line or the environment?
7885 
7886     # Try to remove the string !HEAD! from our list.
7887     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7888     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7889       # If it failed, the variable was not from the command line. Ignore it,
7890       # but warn the user (except for BASH, which is always set by the calling BASH).
7891       if test "xHEAD" != xBASH; then
7892         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7893 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7894       fi
7895       # Try to locate tool using the code snippet
7896       for ac_prog in head
7897 do
7898   # Extract the first word of "$ac_prog", so it can be a program name with args.
7899 set dummy $ac_prog; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if ${ac_cv_path_HEAD+:} false; then :
7903   $as_echo_n "(cached) " >&6
7904 else
7905   case $HEAD in
7906   [\\/]* | ?:[\\/]*)
7907   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7908   ;;
7909   *)
7910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913   IFS=$as_save_IFS
7914   test -z "$as_dir" && as_dir=.
7915     for ac_exec_ext in '' $ac_executable_extensions; do
7916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919     break 2
7920   fi
7921 done
7922   done
7923 IFS=$as_save_IFS
7924 
7925   ;;
7926 esac
7927 fi
7928 HEAD=$ac_cv_path_HEAD
7929 if test -n "$HEAD"; then
7930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7931 $as_echo "$HEAD" >&6; }
7932 else
7933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7935 fi
7936 
7937 
7938   test -n "$HEAD" && break
7939 done
7940 
7941     else
7942       # If it succeeded, then it was overridden by the user. We will use it
7943       # for the tool.
7944 
7945       # First remove it from the list of overridden variables, so we can test
7946       # for unknown variables in the end.
7947       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7948 
7949       # Check if we try to supply an empty value
7950       if test "x$HEAD" = x; then
7951         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
7952 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
7953         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7954 $as_echo_n "checking for HEAD... " >&6; }
7955         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7956 $as_echo "disabled" >&6; }
7957       else
7958         # Check if the provided tool contains a complete path.
7959         tool_specified="$HEAD"
7960         tool_basename="${tool_specified##*/}"
7961         if test "x$tool_basename" = "x$tool_specified"; then
7962           # A command without a complete path is provided, search $PATH.
7963           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7964 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7965           # Extract the first word of "$tool_basename", so it can be a program name with args.
7966 set dummy $tool_basename; ac_word=$2
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 $as_echo_n "checking for $ac_word... " >&6; }
7969 if ${ac_cv_path_HEAD+:} false; then :
7970   $as_echo_n "(cached) " >&6
7971 else
7972   case $HEAD in
7973   [\\/]* | ?:[\\/]*)
7974   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7975   ;;
7976   *)
7977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7979 do
7980   IFS=$as_save_IFS
7981   test -z "$as_dir" && as_dir=.
7982     for ac_exec_ext in '' $ac_executable_extensions; do
7983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986     break 2
7987   fi
7988 done
7989   done
7990 IFS=$as_save_IFS
7991 
7992   ;;
7993 esac
7994 fi
7995 HEAD=$ac_cv_path_HEAD
7996 if test -n "$HEAD"; then
7997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7998 $as_echo "$HEAD" >&6; }
7999 else
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8002 fi
8003 
8004 
8005           if test "x$HEAD" = x; then
8006             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8007           fi
8008         else
8009           # Otherwise we believe it is a complete path. Use it as it is.
8010           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8011 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8012           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8013 $as_echo_n "checking for HEAD... " >&6; }
8014           if test ! -x "$tool_specified"; then
8015             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8016 $as_echo "not found" >&6; }
8017             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8018           fi
8019           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8020 $as_echo "$tool_specified" >&6; }
8021         fi
8022       fi
8023     fi
8024 
8025   fi
8026 
8027 
8028 
8029   if test "x$HEAD" = x; then
8030     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8031   fi
8032 
8033 
8034 
8035 
8036 
8037   # Publish this variable in the help.
8038 
8039 
8040   if [ -z "${LN+x}" ]; then
8041     # The variable is not set by user, try to locate tool using the code snippet
8042     for ac_prog in ln
8043 do
8044   # Extract the first word of "$ac_prog", so it can be a program name with args.
8045 set dummy $ac_prog; ac_word=$2
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047 $as_echo_n "checking for $ac_word... " >&6; }
8048 if ${ac_cv_path_LN+:} false; then :
8049   $as_echo_n "(cached) " >&6
8050 else
8051   case $LN in
8052   [\\/]* | ?:[\\/]*)
8053   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8054   ;;
8055   *)
8056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8058 do
8059   IFS=$as_save_IFS
8060   test -z "$as_dir" && as_dir=.
8061     for ac_exec_ext in '' $ac_executable_extensions; do
8062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065     break 2
8066   fi
8067 done
8068   done
8069 IFS=$as_save_IFS
8070 
8071   ;;
8072 esac
8073 fi
8074 LN=$ac_cv_path_LN
8075 if test -n "$LN"; then
8076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8077 $as_echo "$LN" >&6; }
8078 else
8079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080 $as_echo "no" >&6; }
8081 fi
8082 
8083 
8084   test -n "$LN" && break
8085 done
8086 
8087   else
8088     # The variable is set, but is it from the command line or the environment?
8089 
8090     # Try to remove the string !LN! from our list.
8091     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8092     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8093       # If it failed, the variable was not from the command line. Ignore it,
8094       # but warn the user (except for BASH, which is always set by the calling BASH).
8095       if test "xLN" != xBASH; then
8096         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8097 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8098       fi
8099       # Try to locate tool using the code snippet
8100       for ac_prog in ln
8101 do
8102   # Extract the first word of "$ac_prog", so it can be a program name with args.
8103 set dummy $ac_prog; ac_word=$2
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8105 $as_echo_n "checking for $ac_word... " >&6; }
8106 if ${ac_cv_path_LN+:} false; then :
8107   $as_echo_n "(cached) " >&6
8108 else
8109   case $LN in
8110   [\\/]* | ?:[\\/]*)
8111   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8112   ;;
8113   *)
8114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8116 do
8117   IFS=$as_save_IFS
8118   test -z "$as_dir" && as_dir=.
8119     for ac_exec_ext in '' $ac_executable_extensions; do
8120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123     break 2
8124   fi
8125 done
8126   done
8127 IFS=$as_save_IFS
8128 
8129   ;;
8130 esac
8131 fi
8132 LN=$ac_cv_path_LN
8133 if test -n "$LN"; then
8134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8135 $as_echo "$LN" >&6; }
8136 else
8137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }
8139 fi
8140 
8141 
8142   test -n "$LN" && break
8143 done
8144 
8145     else
8146       # If it succeeded, then it was overridden by the user. We will use it
8147       # for the tool.
8148 
8149       # First remove it from the list of overridden variables, so we can test
8150       # for unknown variables in the end.
8151       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8152 
8153       # Check if we try to supply an empty value
8154       if test "x$LN" = x; then
8155         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8156 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8157         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8158 $as_echo_n "checking for LN... " >&6; }
8159         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8160 $as_echo "disabled" >&6; }
8161       else
8162         # Check if the provided tool contains a complete path.
8163         tool_specified="$LN"
8164         tool_basename="${tool_specified##*/}"
8165         if test "x$tool_basename" = "x$tool_specified"; then
8166           # A command without a complete path is provided, search $PATH.
8167           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8168 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8169           # Extract the first word of "$tool_basename", so it can be a program name with args.
8170 set dummy $tool_basename; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_path_LN+:} false; then :
8174   $as_echo_n "(cached) " >&6
8175 else
8176   case $LN in
8177   [\\/]* | ?:[\\/]*)
8178   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8179   ;;
8180   *)
8181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184   IFS=$as_save_IFS
8185   test -z "$as_dir" && as_dir=.
8186     for ac_exec_ext in '' $ac_executable_extensions; do
8187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190     break 2
8191   fi
8192 done
8193   done
8194 IFS=$as_save_IFS
8195 
8196   ;;
8197 esac
8198 fi
8199 LN=$ac_cv_path_LN
8200 if test -n "$LN"; then
8201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8202 $as_echo "$LN" >&6; }
8203 else
8204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8206 fi
8207 
8208 
8209           if test "x$LN" = x; then
8210             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8211           fi
8212         else
8213           # Otherwise we believe it is a complete path. Use it as it is.
8214           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8215 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8216           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8217 $as_echo_n "checking for LN... " >&6; }
8218           if test ! -x "$tool_specified"; then
8219             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8220 $as_echo "not found" >&6; }
8221             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8222           fi
8223           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8224 $as_echo "$tool_specified" >&6; }
8225         fi
8226       fi
8227     fi
8228 
8229   fi
8230 
8231 
8232 
8233   if test "x$LN" = x; then
8234     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8235   fi
8236 
8237 
8238 
8239 
8240 
8241   # Publish this variable in the help.
8242 
8243 
8244   if [ -z "${LS+x}" ]; then
8245     # The variable is not set by user, try to locate tool using the code snippet
8246     for ac_prog in ls
8247 do
8248   # Extract the first word of "$ac_prog", so it can be a program name with args.
8249 set dummy $ac_prog; ac_word=$2
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8251 $as_echo_n "checking for $ac_word... " >&6; }
8252 if ${ac_cv_path_LS+:} false; then :
8253   $as_echo_n "(cached) " >&6
8254 else
8255   case $LS in
8256   [\\/]* | ?:[\\/]*)
8257   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8258   ;;
8259   *)
8260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $PATH
8262 do
8263   IFS=$as_save_IFS
8264   test -z "$as_dir" && as_dir=.
8265     for ac_exec_ext in '' $ac_executable_extensions; do
8266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8267     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269     break 2
8270   fi
8271 done
8272   done
8273 IFS=$as_save_IFS
8274 
8275   ;;
8276 esac
8277 fi
8278 LS=$ac_cv_path_LS
8279 if test -n "$LS"; then
8280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8281 $as_echo "$LS" >&6; }
8282 else
8283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8285 fi
8286 
8287 
8288   test -n "$LS" && break
8289 done
8290 
8291   else
8292     # The variable is set, but is it from the command line or the environment?
8293 
8294     # Try to remove the string !LS! from our list.
8295     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8296     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8297       # If it failed, the variable was not from the command line. Ignore it,
8298       # but warn the user (except for BASH, which is always set by the calling BASH).
8299       if test "xLS" != xBASH; then
8300         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8301 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8302       fi
8303       # Try to locate tool using the code snippet
8304       for ac_prog in ls
8305 do
8306   # Extract the first word of "$ac_prog", so it can be a program name with args.
8307 set dummy $ac_prog; ac_word=$2
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309 $as_echo_n "checking for $ac_word... " >&6; }
8310 if ${ac_cv_path_LS+:} false; then :
8311   $as_echo_n "(cached) " >&6
8312 else
8313   case $LS in
8314   [\\/]* | ?:[\\/]*)
8315   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8316   ;;
8317   *)
8318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321   IFS=$as_save_IFS
8322   test -z "$as_dir" && as_dir=.
8323     for ac_exec_ext in '' $ac_executable_extensions; do
8324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327     break 2
8328   fi
8329 done
8330   done
8331 IFS=$as_save_IFS
8332 
8333   ;;
8334 esac
8335 fi
8336 LS=$ac_cv_path_LS
8337 if test -n "$LS"; then
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8339 $as_echo "$LS" >&6; }
8340 else
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8343 fi
8344 
8345 
8346   test -n "$LS" && break
8347 done
8348 
8349     else
8350       # If it succeeded, then it was overridden by the user. We will use it
8351       # for the tool.
8352 
8353       # First remove it from the list of overridden variables, so we can test
8354       # for unknown variables in the end.
8355       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8356 
8357       # Check if we try to supply an empty value
8358       if test "x$LS" = x; then
8359         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
8360 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
8361         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8362 $as_echo_n "checking for LS... " >&6; }
8363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8364 $as_echo "disabled" >&6; }
8365       else
8366         # Check if the provided tool contains a complete path.
8367         tool_specified="$LS"
8368         tool_basename="${tool_specified##*/}"
8369         if test "x$tool_basename" = "x$tool_specified"; then
8370           # A command without a complete path is provided, search $PATH.
8371           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8372 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8373           # Extract the first word of "$tool_basename", so it can be a program name with args.
8374 set dummy $tool_basename; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_path_LS+:} false; then :
8378   $as_echo_n "(cached) " >&6
8379 else
8380   case $LS in
8381   [\\/]* | ?:[\\/]*)
8382   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8383   ;;
8384   *)
8385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 for as_dir in $PATH
8387 do
8388   IFS=$as_save_IFS
8389   test -z "$as_dir" && as_dir=.
8390     for ac_exec_ext in '' $ac_executable_extensions; do
8391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8392     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394     break 2
8395   fi
8396 done
8397   done
8398 IFS=$as_save_IFS
8399 
8400   ;;
8401 esac
8402 fi
8403 LS=$ac_cv_path_LS
8404 if test -n "$LS"; then
8405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8406 $as_echo "$LS" >&6; }
8407 else
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8410 fi
8411 
8412 
8413           if test "x$LS" = x; then
8414             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8415           fi
8416         else
8417           # Otherwise we believe it is a complete path. Use it as it is.
8418           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8419 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8420           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8421 $as_echo_n "checking for LS... " >&6; }
8422           if test ! -x "$tool_specified"; then
8423             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8424 $as_echo "not found" >&6; }
8425             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8426           fi
8427           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8428 $as_echo "$tool_specified" >&6; }
8429         fi
8430       fi
8431     fi
8432 
8433   fi
8434 
8435 
8436 
8437   if test "x$LS" = x; then
8438     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8439   fi
8440 
8441 
8442 
8443 
8444 
8445   # Publish this variable in the help.
8446 
8447 
8448   if [ -z "${MKDIR+x}" ]; then
8449     # The variable is not set by user, try to locate tool using the code snippet
8450     for ac_prog in mkdir
8451 do
8452   # Extract the first word of "$ac_prog", so it can be a program name with args.
8453 set dummy $ac_prog; ac_word=$2
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8455 $as_echo_n "checking for $ac_word... " >&6; }
8456 if ${ac_cv_path_MKDIR+:} false; then :
8457   $as_echo_n "(cached) " >&6
8458 else
8459   case $MKDIR in
8460   [\\/]* | ?:[\\/]*)
8461   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8462   ;;
8463   *)
8464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 for as_dir in $PATH
8466 do
8467   IFS=$as_save_IFS
8468   test -z "$as_dir" && as_dir=.
8469     for ac_exec_ext in '' $ac_executable_extensions; do
8470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8471     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473     break 2
8474   fi
8475 done
8476   done
8477 IFS=$as_save_IFS
8478 
8479   ;;
8480 esac
8481 fi
8482 MKDIR=$ac_cv_path_MKDIR
8483 if test -n "$MKDIR"; then
8484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8485 $as_echo "$MKDIR" >&6; }
8486 else
8487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8489 fi
8490 
8491 
8492   test -n "$MKDIR" && break
8493 done
8494 
8495   else
8496     # The variable is set, but is it from the command line or the environment?
8497 
8498     # Try to remove the string !MKDIR! from our list.
8499     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8500     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8501       # If it failed, the variable was not from the command line. Ignore it,
8502       # but warn the user (except for BASH, which is always set by the calling BASH).
8503       if test "xMKDIR" != xBASH; then
8504         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8505 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8506       fi
8507       # Try to locate tool using the code snippet
8508       for ac_prog in mkdir
8509 do
8510   # Extract the first word of "$ac_prog", so it can be a program name with args.
8511 set dummy $ac_prog; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if ${ac_cv_path_MKDIR+:} false; then :
8515   $as_echo_n "(cached) " >&6
8516 else
8517   case $MKDIR in
8518   [\\/]* | ?:[\\/]*)
8519   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8520   ;;
8521   *)
8522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525   IFS=$as_save_IFS
8526   test -z "$as_dir" && as_dir=.
8527     for ac_exec_ext in '' $ac_executable_extensions; do
8528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8529     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531     break 2
8532   fi
8533 done
8534   done
8535 IFS=$as_save_IFS
8536 
8537   ;;
8538 esac
8539 fi
8540 MKDIR=$ac_cv_path_MKDIR
8541 if test -n "$MKDIR"; then
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8543 $as_echo "$MKDIR" >&6; }
8544 else
8545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8547 fi
8548 
8549 
8550   test -n "$MKDIR" && break
8551 done
8552 
8553     else
8554       # If it succeeded, then it was overridden by the user. We will use it
8555       # for the tool.
8556 
8557       # First remove it from the list of overridden variables, so we can test
8558       # for unknown variables in the end.
8559       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8560 
8561       # Check if we try to supply an empty value
8562       if test "x$MKDIR" = x; then
8563         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
8564 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
8565         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8566 $as_echo_n "checking for MKDIR... " >&6; }
8567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8568 $as_echo "disabled" >&6; }
8569       else
8570         # Check if the provided tool contains a complete path.
8571         tool_specified="$MKDIR"
8572         tool_basename="${tool_specified##*/}"
8573         if test "x$tool_basename" = "x$tool_specified"; then
8574           # A command without a complete path is provided, search $PATH.
8575           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8576 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8577           # Extract the first word of "$tool_basename", so it can be a program name with args.
8578 set dummy $tool_basename; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if ${ac_cv_path_MKDIR+:} false; then :
8582   $as_echo_n "(cached) " >&6
8583 else
8584   case $MKDIR in
8585   [\\/]* | ?:[\\/]*)
8586   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8587   ;;
8588   *)
8589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 for as_dir in $PATH
8591 do
8592   IFS=$as_save_IFS
8593   test -z "$as_dir" && as_dir=.
8594     for ac_exec_ext in '' $ac_executable_extensions; do
8595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8596     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8598     break 2
8599   fi
8600 done
8601   done
8602 IFS=$as_save_IFS
8603 
8604   ;;
8605 esac
8606 fi
8607 MKDIR=$ac_cv_path_MKDIR
8608 if test -n "$MKDIR"; then
8609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8610 $as_echo "$MKDIR" >&6; }
8611 else
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8614 fi
8615 
8616 
8617           if test "x$MKDIR" = x; then
8618             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8619           fi
8620         else
8621           # Otherwise we believe it is a complete path. Use it as it is.
8622           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8623 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8624           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8625 $as_echo_n "checking for MKDIR... " >&6; }
8626           if test ! -x "$tool_specified"; then
8627             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8628 $as_echo "not found" >&6; }
8629             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8630           fi
8631           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8632 $as_echo "$tool_specified" >&6; }
8633         fi
8634       fi
8635     fi
8636 
8637   fi
8638 
8639 
8640 
8641   if test "x$MKDIR" = x; then
8642     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8643   fi
8644 
8645 
8646 
8647 
8648 
8649   # Publish this variable in the help.
8650 
8651 
8652   if [ -z "${MKTEMP+x}" ]; then
8653     # The variable is not set by user, try to locate tool using the code snippet
8654     for ac_prog in mktemp
8655 do
8656   # Extract the first word of "$ac_prog", so it can be a program name with args.
8657 set dummy $ac_prog; ac_word=$2
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8659 $as_echo_n "checking for $ac_word... " >&6; }
8660 if ${ac_cv_path_MKTEMP+:} false; then :
8661   $as_echo_n "(cached) " >&6
8662 else
8663   case $MKTEMP in
8664   [\\/]* | ?:[\\/]*)
8665   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8666   ;;
8667   *)
8668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669 for as_dir in $PATH
8670 do
8671   IFS=$as_save_IFS
8672   test -z "$as_dir" && as_dir=.
8673     for ac_exec_ext in '' $ac_executable_extensions; do
8674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8675     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8677     break 2
8678   fi
8679 done
8680   done
8681 IFS=$as_save_IFS
8682 
8683   ;;
8684 esac
8685 fi
8686 MKTEMP=$ac_cv_path_MKTEMP
8687 if test -n "$MKTEMP"; then
8688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8689 $as_echo "$MKTEMP" >&6; }
8690 else
8691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8693 fi
8694 
8695 
8696   test -n "$MKTEMP" && break
8697 done
8698 
8699   else
8700     # The variable is set, but is it from the command line or the environment?
8701 
8702     # Try to remove the string !MKTEMP! from our list.
8703     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8704     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8705       # If it failed, the variable was not from the command line. Ignore it,
8706       # but warn the user (except for BASH, which is always set by the calling BASH).
8707       if test "xMKTEMP" != xBASH; then
8708         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8709 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8710       fi
8711       # Try to locate tool using the code snippet
8712       for ac_prog in mktemp
8713 do
8714   # Extract the first word of "$ac_prog", so it can be a program name with args.
8715 set dummy $ac_prog; ac_word=$2
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8717 $as_echo_n "checking for $ac_word... " >&6; }
8718 if ${ac_cv_path_MKTEMP+:} false; then :
8719   $as_echo_n "(cached) " >&6
8720 else
8721   case $MKTEMP in
8722   [\\/]* | ?:[\\/]*)
8723   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8724   ;;
8725   *)
8726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729   IFS=$as_save_IFS
8730   test -z "$as_dir" && as_dir=.
8731     for ac_exec_ext in '' $ac_executable_extensions; do
8732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8735     break 2
8736   fi
8737 done
8738   done
8739 IFS=$as_save_IFS
8740 
8741   ;;
8742 esac
8743 fi
8744 MKTEMP=$ac_cv_path_MKTEMP
8745 if test -n "$MKTEMP"; then
8746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8747 $as_echo "$MKTEMP" >&6; }
8748 else
8749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8750 $as_echo "no" >&6; }
8751 fi
8752 
8753 
8754   test -n "$MKTEMP" && break
8755 done
8756 
8757     else
8758       # If it succeeded, then it was overridden by the user. We will use it
8759       # for the tool.
8760 
8761       # First remove it from the list of overridden variables, so we can test
8762       # for unknown variables in the end.
8763       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8764 
8765       # Check if we try to supply an empty value
8766       if test "x$MKTEMP" = x; then
8767         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
8768 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
8769         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8770 $as_echo_n "checking for MKTEMP... " >&6; }
8771         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8772 $as_echo "disabled" >&6; }
8773       else
8774         # Check if the provided tool contains a complete path.
8775         tool_specified="$MKTEMP"
8776         tool_basename="${tool_specified##*/}"
8777         if test "x$tool_basename" = "x$tool_specified"; then
8778           # A command without a complete path is provided, search $PATH.
8779           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8780 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8781           # Extract the first word of "$tool_basename", so it can be a program name with args.
8782 set dummy $tool_basename; ac_word=$2
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784 $as_echo_n "checking for $ac_word... " >&6; }
8785 if ${ac_cv_path_MKTEMP+:} false; then :
8786   $as_echo_n "(cached) " >&6
8787 else
8788   case $MKTEMP in
8789   [\\/]* | ?:[\\/]*)
8790   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8791   ;;
8792   *)
8793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 for as_dir in $PATH
8795 do
8796   IFS=$as_save_IFS
8797   test -z "$as_dir" && as_dir=.
8798     for ac_exec_ext in '' $ac_executable_extensions; do
8799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8800     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8802     break 2
8803   fi
8804 done
8805   done
8806 IFS=$as_save_IFS
8807 
8808   ;;
8809 esac
8810 fi
8811 MKTEMP=$ac_cv_path_MKTEMP
8812 if test -n "$MKTEMP"; then
8813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8814 $as_echo "$MKTEMP" >&6; }
8815 else
8816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 $as_echo "no" >&6; }
8818 fi
8819 
8820 
8821           if test "x$MKTEMP" = x; then
8822             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8823           fi
8824         else
8825           # Otherwise we believe it is a complete path. Use it as it is.
8826           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8827 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8828           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8829 $as_echo_n "checking for MKTEMP... " >&6; }
8830           if test ! -x "$tool_specified"; then
8831             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8832 $as_echo "not found" >&6; }
8833             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8834           fi
8835           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8836 $as_echo "$tool_specified" >&6; }
8837         fi
8838       fi
8839     fi
8840 
8841   fi
8842 
8843 
8844 
8845   if test "x$MKTEMP" = x; then
8846     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8847   fi
8848 
8849 
8850 
8851 
8852 
8853   # Publish this variable in the help.
8854 
8855 
8856   if [ -z "${MV+x}" ]; then
8857     # The variable is not set by user, try to locate tool using the code snippet
8858     for ac_prog in mv
8859 do
8860   # Extract the first word of "$ac_prog", so it can be a program name with args.
8861 set dummy $ac_prog; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if ${ac_cv_path_MV+:} false; then :
8865   $as_echo_n "(cached) " >&6
8866 else
8867   case $MV in
8868   [\\/]* | ?:[\\/]*)
8869   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8870   ;;
8871   *)
8872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 for as_dir in $PATH
8874 do
8875   IFS=$as_save_IFS
8876   test -z "$as_dir" && as_dir=.
8877     for ac_exec_ext in '' $ac_executable_extensions; do
8878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8879     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881     break 2
8882   fi
8883 done
8884   done
8885 IFS=$as_save_IFS
8886 
8887   ;;
8888 esac
8889 fi
8890 MV=$ac_cv_path_MV
8891 if test -n "$MV"; then
8892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8893 $as_echo "$MV" >&6; }
8894 else
8895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8897 fi
8898 
8899 
8900   test -n "$MV" && break
8901 done
8902 
8903   else
8904     # The variable is set, but is it from the command line or the environment?
8905 
8906     # Try to remove the string !MV! from our list.
8907     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8908     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8909       # If it failed, the variable was not from the command line. Ignore it,
8910       # but warn the user (except for BASH, which is always set by the calling BASH).
8911       if test "xMV" != xBASH; then
8912         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8913 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8914       fi
8915       # Try to locate tool using the code snippet
8916       for ac_prog in mv
8917 do
8918   # Extract the first word of "$ac_prog", so it can be a program name with args.
8919 set dummy $ac_prog; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if ${ac_cv_path_MV+:} false; then :
8923   $as_echo_n "(cached) " >&6
8924 else
8925   case $MV in
8926   [\\/]* | ?:[\\/]*)
8927   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8928   ;;
8929   *)
8930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931 for as_dir in $PATH
8932 do
8933   IFS=$as_save_IFS
8934   test -z "$as_dir" && as_dir=.
8935     for ac_exec_ext in '' $ac_executable_extensions; do
8936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8937     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939     break 2
8940   fi
8941 done
8942   done
8943 IFS=$as_save_IFS
8944 
8945   ;;
8946 esac
8947 fi
8948 MV=$ac_cv_path_MV
8949 if test -n "$MV"; then
8950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8951 $as_echo "$MV" >&6; }
8952 else
8953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 $as_echo "no" >&6; }
8955 fi
8956 
8957 
8958   test -n "$MV" && break
8959 done
8960 
8961     else
8962       # If it succeeded, then it was overridden by the user. We will use it
8963       # for the tool.
8964 
8965       # First remove it from the list of overridden variables, so we can test
8966       # for unknown variables in the end.
8967       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8968 
8969       # Check if we try to supply an empty value
8970       if test "x$MV" = x; then
8971         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
8972 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
8973         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8974 $as_echo_n "checking for MV... " >&6; }
8975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8976 $as_echo "disabled" >&6; }
8977       else
8978         # Check if the provided tool contains a complete path.
8979         tool_specified="$MV"
8980         tool_basename="${tool_specified##*/}"
8981         if test "x$tool_basename" = "x$tool_specified"; then
8982           # A command without a complete path is provided, search $PATH.
8983           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8984 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8985           # Extract the first word of "$tool_basename", so it can be a program name with args.
8986 set dummy $tool_basename; ac_word=$2
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8988 $as_echo_n "checking for $ac_word... " >&6; }
8989 if ${ac_cv_path_MV+:} false; then :
8990   $as_echo_n "(cached) " >&6
8991 else
8992   case $MV in
8993   [\\/]* | ?:[\\/]*)
8994   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8995   ;;
8996   *)
8997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 for as_dir in $PATH
8999 do
9000   IFS=$as_save_IFS
9001   test -z "$as_dir" && as_dir=.
9002     for ac_exec_ext in '' $ac_executable_extensions; do
9003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006     break 2
9007   fi
9008 done
9009   done
9010 IFS=$as_save_IFS
9011 
9012   ;;
9013 esac
9014 fi
9015 MV=$ac_cv_path_MV
9016 if test -n "$MV"; then
9017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9018 $as_echo "$MV" >&6; }
9019 else
9020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9022 fi
9023 
9024 
9025           if test "x$MV" = x; then
9026             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9027           fi
9028         else
9029           # Otherwise we believe it is a complete path. Use it as it is.
9030           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9031 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9032           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9033 $as_echo_n "checking for MV... " >&6; }
9034           if test ! -x "$tool_specified"; then
9035             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9036 $as_echo "not found" >&6; }
9037             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9038           fi
9039           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9040 $as_echo "$tool_specified" >&6; }
9041         fi
9042       fi
9043     fi
9044 
9045   fi
9046 
9047 
9048 
9049   if test "x$MV" = x; then
9050     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9051   fi
9052 
9053 
9054 
9055 
9056 
9057   # Publish this variable in the help.
9058 
9059 
9060   if [ -z "${NAWK+x}" ]; then
9061     # The variable is not set by user, try to locate tool using the code snippet
9062     for ac_prog in nawk gawk awk
9063 do
9064   # Extract the first word of "$ac_prog", so it can be a program name with args.
9065 set dummy $ac_prog; ac_word=$2
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067 $as_echo_n "checking for $ac_word... " >&6; }
9068 if ${ac_cv_path_NAWK+:} false; then :
9069   $as_echo_n "(cached) " >&6
9070 else
9071   case $NAWK in
9072   [\\/]* | ?:[\\/]*)
9073   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9074   ;;
9075   *)
9076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 for as_dir in $PATH
9078 do
9079   IFS=$as_save_IFS
9080   test -z "$as_dir" && as_dir=.
9081     for ac_exec_ext in '' $ac_executable_extensions; do
9082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9083     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085     break 2
9086   fi
9087 done
9088   done
9089 IFS=$as_save_IFS
9090 
9091   ;;
9092 esac
9093 fi
9094 NAWK=$ac_cv_path_NAWK
9095 if test -n "$NAWK"; then
9096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9097 $as_echo "$NAWK" >&6; }
9098 else
9099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9101 fi
9102 
9103 
9104   test -n "$NAWK" && break
9105 done
9106 
9107   else
9108     # The variable is set, but is it from the command line or the environment?
9109 
9110     # Try to remove the string !NAWK! from our list.
9111     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9112     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9113       # If it failed, the variable was not from the command line. Ignore it,
9114       # but warn the user (except for BASH, which is always set by the calling BASH).
9115       if test "xNAWK" != xBASH; then
9116         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9117 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9118       fi
9119       # Try to locate tool using the code snippet
9120       for ac_prog in nawk gawk awk
9121 do
9122   # Extract the first word of "$ac_prog", so it can be a program name with args.
9123 set dummy $ac_prog; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if ${ac_cv_path_NAWK+:} false; then :
9127   $as_echo_n "(cached) " >&6
9128 else
9129   case $NAWK in
9130   [\\/]* | ?:[\\/]*)
9131   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9132   ;;
9133   *)
9134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135 for as_dir in $PATH
9136 do
9137   IFS=$as_save_IFS
9138   test -z "$as_dir" && as_dir=.
9139     for ac_exec_ext in '' $ac_executable_extensions; do
9140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9141     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9143     break 2
9144   fi
9145 done
9146   done
9147 IFS=$as_save_IFS
9148 
9149   ;;
9150 esac
9151 fi
9152 NAWK=$ac_cv_path_NAWK
9153 if test -n "$NAWK"; then
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9155 $as_echo "$NAWK" >&6; }
9156 else
9157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 $as_echo "no" >&6; }
9159 fi
9160 
9161 
9162   test -n "$NAWK" && break
9163 done
9164 
9165     else
9166       # If it succeeded, then it was overridden by the user. We will use it
9167       # for the tool.
9168 
9169       # First remove it from the list of overridden variables, so we can test
9170       # for unknown variables in the end.
9171       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9172 
9173       # Check if we try to supply an empty value
9174       if test "x$NAWK" = x; then
9175         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9176 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9178 $as_echo_n "checking for NAWK... " >&6; }
9179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9180 $as_echo "disabled" >&6; }
9181       else
9182         # Check if the provided tool contains a complete path.
9183         tool_specified="$NAWK"
9184         tool_basename="${tool_specified##*/}"
9185         if test "x$tool_basename" = "x$tool_specified"; then
9186           # A command without a complete path is provided, search $PATH.
9187           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9188 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9189           # Extract the first word of "$tool_basename", so it can be a program name with args.
9190 set dummy $tool_basename; ac_word=$2
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9192 $as_echo_n "checking for $ac_word... " >&6; }
9193 if ${ac_cv_path_NAWK+:} false; then :
9194   $as_echo_n "(cached) " >&6
9195 else
9196   case $NAWK in
9197   [\\/]* | ?:[\\/]*)
9198   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9199   ;;
9200   *)
9201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202 for as_dir in $PATH
9203 do
9204   IFS=$as_save_IFS
9205   test -z "$as_dir" && as_dir=.
9206     for ac_exec_ext in '' $ac_executable_extensions; do
9207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9208     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9210     break 2
9211   fi
9212 done
9213   done
9214 IFS=$as_save_IFS
9215 
9216   ;;
9217 esac
9218 fi
9219 NAWK=$ac_cv_path_NAWK
9220 if test -n "$NAWK"; then
9221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9222 $as_echo "$NAWK" >&6; }
9223 else
9224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225 $as_echo "no" >&6; }
9226 fi
9227 
9228 
9229           if test "x$NAWK" = x; then
9230             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9231           fi
9232         else
9233           # Otherwise we believe it is a complete path. Use it as it is.
9234           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
9235 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
9236           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9237 $as_echo_n "checking for NAWK... " >&6; }
9238           if test ! -x "$tool_specified"; then
9239             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9240 $as_echo "not found" >&6; }
9241             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9242           fi
9243           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9244 $as_echo "$tool_specified" >&6; }
9245         fi
9246       fi
9247     fi
9248 
9249   fi
9250 
9251 
9252 
9253   if test "x$NAWK" = x; then
9254     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9255   fi
9256 
9257 
9258 
9259 
9260 
9261   # Publish this variable in the help.
9262 
9263 
9264   if [ -z "${PRINTF+x}" ]; then
9265     # The variable is not set by user, try to locate tool using the code snippet
9266     for ac_prog in printf
9267 do
9268   # Extract the first word of "$ac_prog", so it can be a program name with args.
9269 set dummy $ac_prog; ac_word=$2
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271 $as_echo_n "checking for $ac_word... " >&6; }
9272 if ${ac_cv_path_PRINTF+:} false; then :
9273   $as_echo_n "(cached) " >&6
9274 else
9275   case $PRINTF in
9276   [\\/]* | ?:[\\/]*)
9277   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9278   ;;
9279   *)
9280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 for as_dir in $PATH
9282 do
9283   IFS=$as_save_IFS
9284   test -z "$as_dir" && as_dir=.
9285     for ac_exec_ext in '' $ac_executable_extensions; do
9286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9287     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9289     break 2
9290   fi
9291 done
9292   done
9293 IFS=$as_save_IFS
9294 
9295   ;;
9296 esac
9297 fi
9298 PRINTF=$ac_cv_path_PRINTF
9299 if test -n "$PRINTF"; then
9300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9301 $as_echo "$PRINTF" >&6; }
9302 else
9303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304 $as_echo "no" >&6; }
9305 fi
9306 
9307 
9308   test -n "$PRINTF" && break
9309 done
9310 
9311   else
9312     # The variable is set, but is it from the command line or the environment?
9313 
9314     # Try to remove the string !PRINTF! from our list.
9315     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9316     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9317       # If it failed, the variable was not from the command line. Ignore it,
9318       # but warn the user (except for BASH, which is always set by the calling BASH).
9319       if test "xPRINTF" != xBASH; then
9320         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9321 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9322       fi
9323       # Try to locate tool using the code snippet
9324       for ac_prog in printf
9325 do
9326   # Extract the first word of "$ac_prog", so it can be a program name with args.
9327 set dummy $ac_prog; ac_word=$2
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329 $as_echo_n "checking for $ac_word... " >&6; }
9330 if ${ac_cv_path_PRINTF+:} false; then :
9331   $as_echo_n "(cached) " >&6
9332 else
9333   case $PRINTF in
9334   [\\/]* | ?:[\\/]*)
9335   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9336   ;;
9337   *)
9338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339 for as_dir in $PATH
9340 do
9341   IFS=$as_save_IFS
9342   test -z "$as_dir" && as_dir=.
9343     for ac_exec_ext in '' $ac_executable_extensions; do
9344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9345     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9347     break 2
9348   fi
9349 done
9350   done
9351 IFS=$as_save_IFS
9352 
9353   ;;
9354 esac
9355 fi
9356 PRINTF=$ac_cv_path_PRINTF
9357 if test -n "$PRINTF"; then
9358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9359 $as_echo "$PRINTF" >&6; }
9360 else
9361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; }
9363 fi
9364 
9365 
9366   test -n "$PRINTF" && break
9367 done
9368 
9369     else
9370       # If it succeeded, then it was overridden by the user. We will use it
9371       # for the tool.
9372 
9373       # First remove it from the list of overridden variables, so we can test
9374       # for unknown variables in the end.
9375       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9376 
9377       # Check if we try to supply an empty value
9378       if test "x$PRINTF" = x; then
9379         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
9380 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
9381         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9382 $as_echo_n "checking for PRINTF... " >&6; }
9383         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9384 $as_echo "disabled" >&6; }
9385       else
9386         # Check if the provided tool contains a complete path.
9387         tool_specified="$PRINTF"
9388         tool_basename="${tool_specified##*/}"
9389         if test "x$tool_basename" = "x$tool_specified"; then
9390           # A command without a complete path is provided, search $PATH.
9391           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9392 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9393           # Extract the first word of "$tool_basename", so it can be a program name with args.
9394 set dummy $tool_basename; ac_word=$2
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9396 $as_echo_n "checking for $ac_word... " >&6; }
9397 if ${ac_cv_path_PRINTF+:} false; then :
9398   $as_echo_n "(cached) " >&6
9399 else
9400   case $PRINTF in
9401   [\\/]* | ?:[\\/]*)
9402   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9403   ;;
9404   *)
9405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 for as_dir in $PATH
9407 do
9408   IFS=$as_save_IFS
9409   test -z "$as_dir" && as_dir=.
9410     for ac_exec_ext in '' $ac_executable_extensions; do
9411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9412     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9414     break 2
9415   fi
9416 done
9417   done
9418 IFS=$as_save_IFS
9419 
9420   ;;
9421 esac
9422 fi
9423 PRINTF=$ac_cv_path_PRINTF
9424 if test -n "$PRINTF"; then
9425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9426 $as_echo "$PRINTF" >&6; }
9427 else
9428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9429 $as_echo "no" >&6; }
9430 fi
9431 
9432 
9433           if test "x$PRINTF" = x; then
9434             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9435           fi
9436         else
9437           # Otherwise we believe it is a complete path. Use it as it is.
9438           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9439 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9440           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9441 $as_echo_n "checking for PRINTF... " >&6; }
9442           if test ! -x "$tool_specified"; then
9443             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9444 $as_echo "not found" >&6; }
9445             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9446           fi
9447           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9448 $as_echo "$tool_specified" >&6; }
9449         fi
9450       fi
9451     fi
9452 
9453   fi
9454 
9455 
9456 
9457   if test "x$PRINTF" = x; then
9458     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9459   fi
9460 
9461 
9462 
9463 
9464 
9465   # Publish this variable in the help.
9466 
9467 
9468   if [ -z "${RM+x}" ]; then
9469     # The variable is not set by user, try to locate tool using the code snippet
9470     for ac_prog in rm
9471 do
9472   # Extract the first word of "$ac_prog", so it can be a program name with args.
9473 set dummy $ac_prog; ac_word=$2
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9475 $as_echo_n "checking for $ac_word... " >&6; }
9476 if ${ac_cv_path_RM+:} false; then :
9477   $as_echo_n "(cached) " >&6
9478 else
9479   case $RM in
9480   [\\/]* | ?:[\\/]*)
9481   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9482   ;;
9483   *)
9484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485 for as_dir in $PATH
9486 do
9487   IFS=$as_save_IFS
9488   test -z "$as_dir" && as_dir=.
9489     for ac_exec_ext in '' $ac_executable_extensions; do
9490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9491     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493     break 2
9494   fi
9495 done
9496   done
9497 IFS=$as_save_IFS
9498 
9499   ;;
9500 esac
9501 fi
9502 RM=$ac_cv_path_RM
9503 if test -n "$RM"; then
9504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9505 $as_echo "$RM" >&6; }
9506 else
9507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508 $as_echo "no" >&6; }
9509 fi
9510 
9511 
9512   test -n "$RM" && break
9513 done
9514 
9515   else
9516     # The variable is set, but is it from the command line or the environment?
9517 
9518     # Try to remove the string !RM! from our list.
9519     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9520     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9521       # If it failed, the variable was not from the command line. Ignore it,
9522       # but warn the user (except for BASH, which is always set by the calling BASH).
9523       if test "xRM" != xBASH; then
9524         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9525 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9526       fi
9527       # Try to locate tool using the code snippet
9528       for ac_prog in rm
9529 do
9530   # Extract the first word of "$ac_prog", so it can be a program name with args.
9531 set dummy $ac_prog; ac_word=$2
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533 $as_echo_n "checking for $ac_word... " >&6; }
9534 if ${ac_cv_path_RM+:} false; then :
9535   $as_echo_n "(cached) " >&6
9536 else
9537   case $RM in
9538   [\\/]* | ?:[\\/]*)
9539   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9540   ;;
9541   *)
9542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543 for as_dir in $PATH
9544 do
9545   IFS=$as_save_IFS
9546   test -z "$as_dir" && as_dir=.
9547     for ac_exec_ext in '' $ac_executable_extensions; do
9548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9549     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9551     break 2
9552   fi
9553 done
9554   done
9555 IFS=$as_save_IFS
9556 
9557   ;;
9558 esac
9559 fi
9560 RM=$ac_cv_path_RM
9561 if test -n "$RM"; then
9562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9563 $as_echo "$RM" >&6; }
9564 else
9565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566 $as_echo "no" >&6; }
9567 fi
9568 
9569 
9570   test -n "$RM" && break
9571 done
9572 
9573     else
9574       # If it succeeded, then it was overridden by the user. We will use it
9575       # for the tool.
9576 
9577       # First remove it from the list of overridden variables, so we can test
9578       # for unknown variables in the end.
9579       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9580 
9581       # Check if we try to supply an empty value
9582       if test "x$RM" = x; then
9583         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
9584 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
9585         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9586 $as_echo_n "checking for RM... " >&6; }
9587         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9588 $as_echo "disabled" >&6; }
9589       else
9590         # Check if the provided tool contains a complete path.
9591         tool_specified="$RM"
9592         tool_basename="${tool_specified##*/}"
9593         if test "x$tool_basename" = "x$tool_specified"; then
9594           # A command without a complete path is provided, search $PATH.
9595           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9596 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9597           # Extract the first word of "$tool_basename", so it can be a program name with args.
9598 set dummy $tool_basename; ac_word=$2
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9600 $as_echo_n "checking for $ac_word... " >&6; }
9601 if ${ac_cv_path_RM+:} false; then :
9602   $as_echo_n "(cached) " >&6
9603 else
9604   case $RM in
9605   [\\/]* | ?:[\\/]*)
9606   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9607   ;;
9608   *)
9609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 for as_dir in $PATH
9611 do
9612   IFS=$as_save_IFS
9613   test -z "$as_dir" && as_dir=.
9614     for ac_exec_ext in '' $ac_executable_extensions; do
9615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9616     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9618     break 2
9619   fi
9620 done
9621   done
9622 IFS=$as_save_IFS
9623 
9624   ;;
9625 esac
9626 fi
9627 RM=$ac_cv_path_RM
9628 if test -n "$RM"; then
9629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9630 $as_echo "$RM" >&6; }
9631 else
9632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9634 fi
9635 
9636 
9637           if test "x$RM" = x; then
9638             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9639           fi
9640         else
9641           # Otherwise we believe it is a complete path. Use it as it is.
9642           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9643 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9644           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9645 $as_echo_n "checking for RM... " >&6; }
9646           if test ! -x "$tool_specified"; then
9647             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9648 $as_echo "not found" >&6; }
9649             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9650           fi
9651           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9652 $as_echo "$tool_specified" >&6; }
9653         fi
9654       fi
9655     fi
9656 
9657   fi
9658 
9659 
9660 
9661   if test "x$RM" = x; then
9662     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9663   fi
9664 
9665 
9666 
9667 
9668 
9669   # Publish this variable in the help.
9670 
9671 
9672   if [ -z "${RMDIR+x}" ]; then
9673     # The variable is not set by user, try to locate tool using the code snippet
9674     for ac_prog in rmdir
9675 do
9676   # Extract the first word of "$ac_prog", so it can be a program name with args.
9677 set dummy $ac_prog; ac_word=$2
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if ${ac_cv_path_RMDIR+:} false; then :
9681   $as_echo_n "(cached) " >&6
9682 else
9683   case $RMDIR in
9684   [\\/]* | ?:[\\/]*)
9685   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9686   ;;
9687   *)
9688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 for as_dir in $PATH
9690 do
9691   IFS=$as_save_IFS
9692   test -z "$as_dir" && as_dir=.
9693     for ac_exec_ext in '' $ac_executable_extensions; do
9694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9695     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9697     break 2
9698   fi
9699 done
9700   done
9701 IFS=$as_save_IFS
9702 
9703   ;;
9704 esac
9705 fi
9706 RMDIR=$ac_cv_path_RMDIR
9707 if test -n "$RMDIR"; then
9708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9709 $as_echo "$RMDIR" >&6; }
9710 else
9711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712 $as_echo "no" >&6; }
9713 fi
9714 
9715 
9716   test -n "$RMDIR" && break
9717 done
9718 
9719   else
9720     # The variable is set, but is it from the command line or the environment?
9721 
9722     # Try to remove the string !RMDIR! from our list.
9723     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
9724     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9725       # If it failed, the variable was not from the command line. Ignore it,
9726       # but warn the user (except for BASH, which is always set by the calling BASH).
9727       if test "xRMDIR" != xBASH; then
9728         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
9729 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
9730       fi
9731       # Try to locate tool using the code snippet
9732       for ac_prog in rmdir
9733 do
9734   # Extract the first word of "$ac_prog", so it can be a program name with args.
9735 set dummy $ac_prog; ac_word=$2
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9737 $as_echo_n "checking for $ac_word... " >&6; }
9738 if ${ac_cv_path_RMDIR+:} false; then :
9739   $as_echo_n "(cached) " >&6
9740 else
9741   case $RMDIR in
9742   [\\/]* | ?:[\\/]*)
9743   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9744   ;;
9745   *)
9746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747 for as_dir in $PATH
9748 do
9749   IFS=$as_save_IFS
9750   test -z "$as_dir" && as_dir=.
9751     for ac_exec_ext in '' $ac_executable_extensions; do
9752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9753     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9755     break 2
9756   fi
9757 done
9758   done
9759 IFS=$as_save_IFS
9760 
9761   ;;
9762 esac
9763 fi
9764 RMDIR=$ac_cv_path_RMDIR
9765 if test -n "$RMDIR"; then
9766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9767 $as_echo "$RMDIR" >&6; }
9768 else
9769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9770 $as_echo "no" >&6; }
9771 fi
9772 
9773 
9774   test -n "$RMDIR" && break
9775 done
9776 
9777     else
9778       # If it succeeded, then it was overridden by the user. We will use it
9779       # for the tool.
9780 
9781       # First remove it from the list of overridden variables, so we can test
9782       # for unknown variables in the end.
9783       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9784 
9785       # Check if we try to supply an empty value
9786       if test "x$RMDIR" = x; then
9787         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
9788 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
9789         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9790 $as_echo_n "checking for RMDIR... " >&6; }
9791         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9792 $as_echo "disabled" >&6; }
9793       else
9794         # Check if the provided tool contains a complete path.
9795         tool_specified="$RMDIR"
9796         tool_basename="${tool_specified##*/}"
9797         if test "x$tool_basename" = "x$tool_specified"; then
9798           # A command without a complete path is provided, search $PATH.
9799           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
9800 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
9801           # Extract the first word of "$tool_basename", so it can be a program name with args.
9802 set dummy $tool_basename; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if ${ac_cv_path_RMDIR+:} false; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   case $RMDIR in
9809   [\\/]* | ?:[\\/]*)
9810   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9811   ;;
9812   *)
9813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH
9815 do
9816   IFS=$as_save_IFS
9817   test -z "$as_dir" && as_dir=.
9818     for ac_exec_ext in '' $ac_executable_extensions; do
9819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9820     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822     break 2
9823   fi
9824 done
9825   done
9826 IFS=$as_save_IFS
9827 
9828   ;;
9829 esac
9830 fi
9831 RMDIR=$ac_cv_path_RMDIR
9832 if test -n "$RMDIR"; then
9833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9834 $as_echo "$RMDIR" >&6; }
9835 else
9836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9838 fi
9839 
9840 
9841           if test "x$RMDIR" = x; then
9842             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9843           fi
9844         else
9845           # Otherwise we believe it is a complete path. Use it as it is.
9846           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
9847 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
9848           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9849 $as_echo_n "checking for RMDIR... " >&6; }
9850           if test ! -x "$tool_specified"; then
9851             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9852 $as_echo "not found" >&6; }
9853             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9854           fi
9855           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9856 $as_echo "$tool_specified" >&6; }
9857         fi
9858       fi
9859     fi
9860 
9861   fi
9862 
9863 
9864 
9865   if test "x$RMDIR" = x; then
9866     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
9867   fi
9868 
9869 
9870 
9871 
9872 
9873   # Publish this variable in the help.
9874 
9875 
9876   if [ -z "${SH+x}" ]; then
9877     # The variable is not set by user, try to locate tool using the code snippet
9878     for ac_prog in sh
9879 do
9880   # Extract the first word of "$ac_prog", so it can be a program name with args.
9881 set dummy $ac_prog; ac_word=$2
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883 $as_echo_n "checking for $ac_word... " >&6; }
9884 if ${ac_cv_path_SH+:} false; then :
9885   $as_echo_n "(cached) " >&6
9886 else
9887   case $SH in
9888   [\\/]* | ?:[\\/]*)
9889   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9890   ;;
9891   *)
9892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 for as_dir in $PATH
9894 do
9895   IFS=$as_save_IFS
9896   test -z "$as_dir" && as_dir=.
9897     for ac_exec_ext in '' $ac_executable_extensions; do
9898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9899     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9901     break 2
9902   fi
9903 done
9904   done
9905 IFS=$as_save_IFS
9906 
9907   ;;
9908 esac
9909 fi
9910 SH=$ac_cv_path_SH
9911 if test -n "$SH"; then
9912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9913 $as_echo "$SH" >&6; }
9914 else
9915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916 $as_echo "no" >&6; }
9917 fi
9918 
9919 
9920   test -n "$SH" && break
9921 done
9922 
9923   else
9924     # The variable is set, but is it from the command line or the environment?
9925 
9926     # Try to remove the string !SH! from our list.
9927     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9928     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9929       # If it failed, the variable was not from the command line. Ignore it,
9930       # but warn the user (except for BASH, which is always set by the calling BASH).
9931       if test "xSH" != xBASH; then
9932         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9933 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9934       fi
9935       # Try to locate tool using the code snippet
9936       for ac_prog in sh
9937 do
9938   # Extract the first word of "$ac_prog", so it can be a program name with args.
9939 set dummy $ac_prog; ac_word=$2
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9941 $as_echo_n "checking for $ac_word... " >&6; }
9942 if ${ac_cv_path_SH+:} false; then :
9943   $as_echo_n "(cached) " >&6
9944 else
9945   case $SH in
9946   [\\/]* | ?:[\\/]*)
9947   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9948   ;;
9949   *)
9950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 for as_dir in $PATH
9952 do
9953   IFS=$as_save_IFS
9954   test -z "$as_dir" && as_dir=.
9955     for ac_exec_ext in '' $ac_executable_extensions; do
9956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9957     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9959     break 2
9960   fi
9961 done
9962   done
9963 IFS=$as_save_IFS
9964 
9965   ;;
9966 esac
9967 fi
9968 SH=$ac_cv_path_SH
9969 if test -n "$SH"; then
9970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9971 $as_echo "$SH" >&6; }
9972 else
9973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974 $as_echo "no" >&6; }
9975 fi
9976 
9977 
9978   test -n "$SH" && break
9979 done
9980 
9981     else
9982       # If it succeeded, then it was overridden by the user. We will use it
9983       # for the tool.
9984 
9985       # First remove it from the list of overridden variables, so we can test
9986       # for unknown variables in the end.
9987       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9988 
9989       # Check if we try to supply an empty value
9990       if test "x$SH" = x; then
9991         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
9992 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
9993         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9994 $as_echo_n "checking for SH... " >&6; }
9995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9996 $as_echo "disabled" >&6; }
9997       else
9998         # Check if the provided tool contains a complete path.
9999         tool_specified="$SH"
10000         tool_basename="${tool_specified##*/}"
10001         if test "x$tool_basename" = "x$tool_specified"; then
10002           # A command without a complete path is provided, search $PATH.
10003           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10004 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10005           # Extract the first word of "$tool_basename", so it can be a program name with args.
10006 set dummy $tool_basename; ac_word=$2
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10008 $as_echo_n "checking for $ac_word... " >&6; }
10009 if ${ac_cv_path_SH+:} false; then :
10010   $as_echo_n "(cached) " >&6
10011 else
10012   case $SH in
10013   [\\/]* | ?:[\\/]*)
10014   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10015   ;;
10016   *)
10017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018 for as_dir in $PATH
10019 do
10020   IFS=$as_save_IFS
10021   test -z "$as_dir" && as_dir=.
10022     for ac_exec_ext in '' $ac_executable_extensions; do
10023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10024     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10026     break 2
10027   fi
10028 done
10029   done
10030 IFS=$as_save_IFS
10031 
10032   ;;
10033 esac
10034 fi
10035 SH=$ac_cv_path_SH
10036 if test -n "$SH"; then
10037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10038 $as_echo "$SH" >&6; }
10039 else
10040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10042 fi
10043 
10044 
10045           if test "x$SH" = x; then
10046             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10047           fi
10048         else
10049           # Otherwise we believe it is a complete path. Use it as it is.
10050           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10051 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10052           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10053 $as_echo_n "checking for SH... " >&6; }
10054           if test ! -x "$tool_specified"; then
10055             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10056 $as_echo "not found" >&6; }
10057             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10058           fi
10059           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10060 $as_echo "$tool_specified" >&6; }
10061         fi
10062       fi
10063     fi
10064 
10065   fi
10066 
10067 
10068 
10069   if test "x$SH" = x; then
10070     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10071   fi
10072 
10073 
10074 
10075 
10076 
10077   # Publish this variable in the help.
10078 
10079 
10080   if [ -z "${SORT+x}" ]; then
10081     # The variable is not set by user, try to locate tool using the code snippet
10082     for ac_prog in sort
10083 do
10084   # Extract the first word of "$ac_prog", so it can be a program name with args.
10085 set dummy $ac_prog; ac_word=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if ${ac_cv_path_SORT+:} false; then :
10089   $as_echo_n "(cached) " >&6
10090 else
10091   case $SORT in
10092   [\\/]* | ?:[\\/]*)
10093   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10094   ;;
10095   *)
10096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10098 do
10099   IFS=$as_save_IFS
10100   test -z "$as_dir" && as_dir=.
10101     for ac_exec_ext in '' $ac_executable_extensions; do
10102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10103     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105     break 2
10106   fi
10107 done
10108   done
10109 IFS=$as_save_IFS
10110 
10111   ;;
10112 esac
10113 fi
10114 SORT=$ac_cv_path_SORT
10115 if test -n "$SORT"; then
10116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10117 $as_echo "$SORT" >&6; }
10118 else
10119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10121 fi
10122 
10123 
10124   test -n "$SORT" && break
10125 done
10126 
10127   else
10128     # The variable is set, but is it from the command line or the environment?
10129 
10130     # Try to remove the string !SORT! from our list.
10131     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10132     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10133       # If it failed, the variable was not from the command line. Ignore it,
10134       # but warn the user (except for BASH, which is always set by the calling BASH).
10135       if test "xSORT" != xBASH; then
10136         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10137 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10138       fi
10139       # Try to locate tool using the code snippet
10140       for ac_prog in sort
10141 do
10142   # Extract the first word of "$ac_prog", so it can be a program name with args.
10143 set dummy $ac_prog; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if ${ac_cv_path_SORT+:} false; then :
10147   $as_echo_n "(cached) " >&6
10148 else
10149   case $SORT in
10150   [\\/]* | ?:[\\/]*)
10151   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10152   ;;
10153   *)
10154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10156 do
10157   IFS=$as_save_IFS
10158   test -z "$as_dir" && as_dir=.
10159     for ac_exec_ext in '' $ac_executable_extensions; do
10160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163     break 2
10164   fi
10165 done
10166   done
10167 IFS=$as_save_IFS
10168 
10169   ;;
10170 esac
10171 fi
10172 SORT=$ac_cv_path_SORT
10173 if test -n "$SORT"; then
10174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10175 $as_echo "$SORT" >&6; }
10176 else
10177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10179 fi
10180 
10181 
10182   test -n "$SORT" && break
10183 done
10184 
10185     else
10186       # If it succeeded, then it was overridden by the user. We will use it
10187       # for the tool.
10188 
10189       # First remove it from the list of overridden variables, so we can test
10190       # for unknown variables in the end.
10191       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10192 
10193       # Check if we try to supply an empty value
10194       if test "x$SORT" = x; then
10195         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10196 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10197         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10198 $as_echo_n "checking for SORT... " >&6; }
10199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10200 $as_echo "disabled" >&6; }
10201       else
10202         # Check if the provided tool contains a complete path.
10203         tool_specified="$SORT"
10204         tool_basename="${tool_specified##*/}"
10205         if test "x$tool_basename" = "x$tool_specified"; then
10206           # A command without a complete path is provided, search $PATH.
10207           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
10208 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
10209           # Extract the first word of "$tool_basename", so it can be a program name with args.
10210 set dummy $tool_basename; ac_word=$2
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10212 $as_echo_n "checking for $ac_word... " >&6; }
10213 if ${ac_cv_path_SORT+:} false; then :
10214   $as_echo_n "(cached) " >&6
10215 else
10216   case $SORT in
10217   [\\/]* | ?:[\\/]*)
10218   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10219   ;;
10220   *)
10221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222 for as_dir in $PATH
10223 do
10224   IFS=$as_save_IFS
10225   test -z "$as_dir" && as_dir=.
10226     for ac_exec_ext in '' $ac_executable_extensions; do
10227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10228     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10230     break 2
10231   fi
10232 done
10233   done
10234 IFS=$as_save_IFS
10235 
10236   ;;
10237 esac
10238 fi
10239 SORT=$ac_cv_path_SORT
10240 if test -n "$SORT"; then
10241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10242 $as_echo "$SORT" >&6; }
10243 else
10244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; }
10246 fi
10247 
10248 
10249           if test "x$SORT" = x; then
10250             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10251           fi
10252         else
10253           # Otherwise we believe it is a complete path. Use it as it is.
10254           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
10255 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
10256           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10257 $as_echo_n "checking for SORT... " >&6; }
10258           if test ! -x "$tool_specified"; then
10259             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10260 $as_echo "not found" >&6; }
10261             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
10262           fi
10263           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10264 $as_echo "$tool_specified" >&6; }
10265         fi
10266       fi
10267     fi
10268 
10269   fi
10270 
10271 
10272 
10273   if test "x$SORT" = x; then
10274     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
10275   fi
10276 
10277 
10278 
10279 
10280 
10281   # Publish this variable in the help.
10282 
10283 
10284   if [ -z "${TAIL+x}" ]; then
10285     # The variable is not set by user, try to locate tool using the code snippet
10286     for ac_prog in tail
10287 do
10288   # Extract the first word of "$ac_prog", so it can be a program name with args.
10289 set dummy $ac_prog; ac_word=$2
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291 $as_echo_n "checking for $ac_word... " >&6; }
10292 if ${ac_cv_path_TAIL+:} false; then :
10293   $as_echo_n "(cached) " >&6
10294 else
10295   case $TAIL in
10296   [\\/]* | ?:[\\/]*)
10297   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10298   ;;
10299   *)
10300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301 for as_dir in $PATH
10302 do
10303   IFS=$as_save_IFS
10304   test -z "$as_dir" && as_dir=.
10305     for ac_exec_ext in '' $ac_executable_extensions; do
10306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10307     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10309     break 2
10310   fi
10311 done
10312   done
10313 IFS=$as_save_IFS
10314 
10315   ;;
10316 esac
10317 fi
10318 TAIL=$ac_cv_path_TAIL
10319 if test -n "$TAIL"; then
10320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10321 $as_echo "$TAIL" >&6; }
10322 else
10323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324 $as_echo "no" >&6; }
10325 fi
10326 
10327 
10328   test -n "$TAIL" && break
10329 done
10330 
10331   else
10332     # The variable is set, but is it from the command line or the environment?
10333 
10334     # Try to remove the string !TAIL! from our list.
10335     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
10336     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10337       # If it failed, the variable was not from the command line. Ignore it,
10338       # but warn the user (except for BASH, which is always set by the calling BASH).
10339       if test "xTAIL" != xBASH; then
10340         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
10341 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
10342       fi
10343       # Try to locate tool using the code snippet
10344       for ac_prog in tail
10345 do
10346   # Extract the first word of "$ac_prog", so it can be a program name with args.
10347 set dummy $ac_prog; ac_word=$2
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349 $as_echo_n "checking for $ac_word... " >&6; }
10350 if ${ac_cv_path_TAIL+:} false; then :
10351   $as_echo_n "(cached) " >&6
10352 else
10353   case $TAIL in
10354   [\\/]* | ?:[\\/]*)
10355   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10356   ;;
10357   *)
10358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10360 do
10361   IFS=$as_save_IFS
10362   test -z "$as_dir" && as_dir=.
10363     for ac_exec_ext in '' $ac_executable_extensions; do
10364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10367     break 2
10368   fi
10369 done
10370   done
10371 IFS=$as_save_IFS
10372 
10373   ;;
10374 esac
10375 fi
10376 TAIL=$ac_cv_path_TAIL
10377 if test -n "$TAIL"; then
10378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10379 $as_echo "$TAIL" >&6; }
10380 else
10381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10382 $as_echo "no" >&6; }
10383 fi
10384 
10385 
10386   test -n "$TAIL" && break
10387 done
10388 
10389     else
10390       # If it succeeded, then it was overridden by the user. We will use it
10391       # for the tool.
10392 
10393       # First remove it from the list of overridden variables, so we can test
10394       # for unknown variables in the end.
10395       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10396 
10397       # Check if we try to supply an empty value
10398       if test "x$TAIL" = x; then
10399         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
10400 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
10401         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10402 $as_echo_n "checking for TAIL... " >&6; }
10403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10404 $as_echo "disabled" >&6; }
10405       else
10406         # Check if the provided tool contains a complete path.
10407         tool_specified="$TAIL"
10408         tool_basename="${tool_specified##*/}"
10409         if test "x$tool_basename" = "x$tool_specified"; then
10410           # A command without a complete path is provided, search $PATH.
10411           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
10412 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
10413           # Extract the first word of "$tool_basename", so it can be a program name with args.
10414 set dummy $tool_basename; ac_word=$2
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10416 $as_echo_n "checking for $ac_word... " >&6; }
10417 if ${ac_cv_path_TAIL+:} false; then :
10418   $as_echo_n "(cached) " >&6
10419 else
10420   case $TAIL in
10421   [\\/]* | ?:[\\/]*)
10422   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10423   ;;
10424   *)
10425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH
10427 do
10428   IFS=$as_save_IFS
10429   test -z "$as_dir" && as_dir=.
10430     for ac_exec_ext in '' $ac_executable_extensions; do
10431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10432     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10434     break 2
10435   fi
10436 done
10437   done
10438 IFS=$as_save_IFS
10439 
10440   ;;
10441 esac
10442 fi
10443 TAIL=$ac_cv_path_TAIL
10444 if test -n "$TAIL"; then
10445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10446 $as_echo "$TAIL" >&6; }
10447 else
10448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10450 fi
10451 
10452 
10453           if test "x$TAIL" = x; then
10454             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10455           fi
10456         else
10457           # Otherwise we believe it is a complete path. Use it as it is.
10458           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
10459 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
10460           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10461 $as_echo_n "checking for TAIL... " >&6; }
10462           if test ! -x "$tool_specified"; then
10463             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10464 $as_echo "not found" >&6; }
10465             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
10466           fi
10467           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10468 $as_echo "$tool_specified" >&6; }
10469         fi
10470       fi
10471     fi
10472 
10473   fi
10474 
10475 
10476 
10477   if test "x$TAIL" = x; then
10478     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
10479   fi
10480 
10481 
10482 
10483 
10484 
10485   # Publish this variable in the help.
10486 
10487 
10488   if [ -z "${TAR+x}" ]; then
10489     # The variable is not set by user, try to locate tool using the code snippet
10490     for ac_prog in tar
10491 do
10492   # Extract the first word of "$ac_prog", so it can be a program name with args.
10493 set dummy $ac_prog; ac_word=$2
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495 $as_echo_n "checking for $ac_word... " >&6; }
10496 if ${ac_cv_path_TAR+:} false; then :
10497   $as_echo_n "(cached) " >&6
10498 else
10499   case $TAR in
10500   [\\/]* | ?:[\\/]*)
10501   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10502   ;;
10503   *)
10504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10506 do
10507   IFS=$as_save_IFS
10508   test -z "$as_dir" && as_dir=.
10509     for ac_exec_ext in '' $ac_executable_extensions; do
10510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513     break 2
10514   fi
10515 done
10516   done
10517 IFS=$as_save_IFS
10518 
10519   ;;
10520 esac
10521 fi
10522 TAR=$ac_cv_path_TAR
10523 if test -n "$TAR"; then
10524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10525 $as_echo "$TAR" >&6; }
10526 else
10527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10529 fi
10530 
10531 
10532   test -n "$TAR" && break
10533 done
10534 
10535   else
10536     # The variable is set, but is it from the command line or the environment?
10537 
10538     # Try to remove the string !TAR! from our list.
10539     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10540     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10541       # If it failed, the variable was not from the command line. Ignore it,
10542       # but warn the user (except for BASH, which is always set by the calling BASH).
10543       if test "xTAR" != xBASH; then
10544         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10545 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10546       fi
10547       # Try to locate tool using the code snippet
10548       for ac_prog in tar
10549 do
10550   # Extract the first word of "$ac_prog", so it can be a program name with args.
10551 set dummy $ac_prog; ac_word=$2
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553 $as_echo_n "checking for $ac_word... " >&6; }
10554 if ${ac_cv_path_TAR+:} false; then :
10555   $as_echo_n "(cached) " >&6
10556 else
10557   case $TAR in
10558   [\\/]* | ?:[\\/]*)
10559   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10560   ;;
10561   *)
10562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563 for as_dir in $PATH
10564 do
10565   IFS=$as_save_IFS
10566   test -z "$as_dir" && as_dir=.
10567     for ac_exec_ext in '' $ac_executable_extensions; do
10568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10569     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571     break 2
10572   fi
10573 done
10574   done
10575 IFS=$as_save_IFS
10576 
10577   ;;
10578 esac
10579 fi
10580 TAR=$ac_cv_path_TAR
10581 if test -n "$TAR"; then
10582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10583 $as_echo "$TAR" >&6; }
10584 else
10585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10587 fi
10588 
10589 
10590   test -n "$TAR" && break
10591 done
10592 
10593     else
10594       # If it succeeded, then it was overridden by the user. We will use it
10595       # for the tool.
10596 
10597       # First remove it from the list of overridden variables, so we can test
10598       # for unknown variables in the end.
10599       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10600 
10601       # Check if we try to supply an empty value
10602       if test "x$TAR" = x; then
10603         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
10604 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
10605         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10606 $as_echo_n "checking for TAR... " >&6; }
10607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10608 $as_echo "disabled" >&6; }
10609       else
10610         # Check if the provided tool contains a complete path.
10611         tool_specified="$TAR"
10612         tool_basename="${tool_specified##*/}"
10613         if test "x$tool_basename" = "x$tool_specified"; then
10614           # A command without a complete path is provided, search $PATH.
10615           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10616 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10617           # Extract the first word of "$tool_basename", so it can be a program name with args.
10618 set dummy $tool_basename; ac_word=$2
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10620 $as_echo_n "checking for $ac_word... " >&6; }
10621 if ${ac_cv_path_TAR+:} false; then :
10622   $as_echo_n "(cached) " >&6
10623 else
10624   case $TAR in
10625   [\\/]* | ?:[\\/]*)
10626   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10627   ;;
10628   *)
10629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630 for as_dir in $PATH
10631 do
10632   IFS=$as_save_IFS
10633   test -z "$as_dir" && as_dir=.
10634     for ac_exec_ext in '' $ac_executable_extensions; do
10635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10636     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10638     break 2
10639   fi
10640 done
10641   done
10642 IFS=$as_save_IFS
10643 
10644   ;;
10645 esac
10646 fi
10647 TAR=$ac_cv_path_TAR
10648 if test -n "$TAR"; then
10649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10650 $as_echo "$TAR" >&6; }
10651 else
10652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653 $as_echo "no" >&6; }
10654 fi
10655 
10656 
10657           if test "x$TAR" = x; then
10658             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10659           fi
10660         else
10661           # Otherwise we believe it is a complete path. Use it as it is.
10662           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
10663 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
10664           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10665 $as_echo_n "checking for TAR... " >&6; }
10666           if test ! -x "$tool_specified"; then
10667             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10668 $as_echo "not found" >&6; }
10669             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
10670           fi
10671           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10672 $as_echo "$tool_specified" >&6; }
10673         fi
10674       fi
10675     fi
10676 
10677   fi
10678 
10679 
10680 
10681   if test "x$TAR" = x; then
10682     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
10683   fi
10684 
10685 
10686 
10687 
10688 
10689   # Publish this variable in the help.
10690 
10691 
10692   if [ -z "${TEE+x}" ]; then
10693     # The variable is not set by user, try to locate tool using the code snippet
10694     for ac_prog in tee
10695 do
10696   # Extract the first word of "$ac_prog", so it can be a program name with args.
10697 set dummy $ac_prog; ac_word=$2
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699 $as_echo_n "checking for $ac_word... " >&6; }
10700 if ${ac_cv_path_TEE+:} false; then :
10701   $as_echo_n "(cached) " >&6
10702 else
10703   case $TEE in
10704   [\\/]* | ?:[\\/]*)
10705   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10706   ;;
10707   *)
10708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709 for as_dir in $PATH
10710 do
10711   IFS=$as_save_IFS
10712   test -z "$as_dir" && as_dir=.
10713     for ac_exec_ext in '' $ac_executable_extensions; do
10714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10715     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10717     break 2
10718   fi
10719 done
10720   done
10721 IFS=$as_save_IFS
10722 
10723   ;;
10724 esac
10725 fi
10726 TEE=$ac_cv_path_TEE
10727 if test -n "$TEE"; then
10728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10729 $as_echo "$TEE" >&6; }
10730 else
10731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 $as_echo "no" >&6; }
10733 fi
10734 
10735 
10736   test -n "$TEE" && break
10737 done
10738 
10739   else
10740     # The variable is set, but is it from the command line or the environment?
10741 
10742     # Try to remove the string !TEE! from our list.
10743     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
10744     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10745       # If it failed, the variable was not from the command line. Ignore it,
10746       # but warn the user (except for BASH, which is always set by the calling BASH).
10747       if test "xTEE" != xBASH; then
10748         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
10749 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
10750       fi
10751       # Try to locate tool using the code snippet
10752       for ac_prog in tee
10753 do
10754   # Extract the first word of "$ac_prog", so it can be a program name with args.
10755 set dummy $ac_prog; ac_word=$2
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757 $as_echo_n "checking for $ac_word... " >&6; }
10758 if ${ac_cv_path_TEE+:} false; then :
10759   $as_echo_n "(cached) " >&6
10760 else
10761   case $TEE in
10762   [\\/]* | ?:[\\/]*)
10763   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10764   ;;
10765   *)
10766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767 for as_dir in $PATH
10768 do
10769   IFS=$as_save_IFS
10770   test -z "$as_dir" && as_dir=.
10771     for ac_exec_ext in '' $ac_executable_extensions; do
10772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10773     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10775     break 2
10776   fi
10777 done
10778   done
10779 IFS=$as_save_IFS
10780 
10781   ;;
10782 esac
10783 fi
10784 TEE=$ac_cv_path_TEE
10785 if test -n "$TEE"; then
10786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10787 $as_echo "$TEE" >&6; }
10788 else
10789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790 $as_echo "no" >&6; }
10791 fi
10792 
10793 
10794   test -n "$TEE" && break
10795 done
10796 
10797     else
10798       # If it succeeded, then it was overridden by the user. We will use it
10799       # for the tool.
10800 
10801       # First remove it from the list of overridden variables, so we can test
10802       # for unknown variables in the end.
10803       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10804 
10805       # Check if we try to supply an empty value
10806       if test "x$TEE" = x; then
10807         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
10808 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
10809         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10810 $as_echo_n "checking for TEE... " >&6; }
10811         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10812 $as_echo "disabled" >&6; }
10813       else
10814         # Check if the provided tool contains a complete path.
10815         tool_specified="$TEE"
10816         tool_basename="${tool_specified##*/}"
10817         if test "x$tool_basename" = "x$tool_specified"; then
10818           # A command without a complete path is provided, search $PATH.
10819           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10820 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10821           # Extract the first word of "$tool_basename", so it can be a program name with args.
10822 set dummy $tool_basename; ac_word=$2
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824 $as_echo_n "checking for $ac_word... " >&6; }
10825 if ${ac_cv_path_TEE+:} false; then :
10826   $as_echo_n "(cached) " >&6
10827 else
10828   case $TEE in
10829   [\\/]* | ?:[\\/]*)
10830   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10831   ;;
10832   *)
10833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10835 do
10836   IFS=$as_save_IFS
10837   test -z "$as_dir" && as_dir=.
10838     for ac_exec_ext in '' $ac_executable_extensions; do
10839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10840     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842     break 2
10843   fi
10844 done
10845   done
10846 IFS=$as_save_IFS
10847 
10848   ;;
10849 esac
10850 fi
10851 TEE=$ac_cv_path_TEE
10852 if test -n "$TEE"; then
10853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10854 $as_echo "$TEE" >&6; }
10855 else
10856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10857 $as_echo "no" >&6; }
10858 fi
10859 
10860 
10861           if test "x$TEE" = x; then
10862             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10863           fi
10864         else
10865           # Otherwise we believe it is a complete path. Use it as it is.
10866           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10867 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10868           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10869 $as_echo_n "checking for TEE... " >&6; }
10870           if test ! -x "$tool_specified"; then
10871             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10872 $as_echo "not found" >&6; }
10873             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10874           fi
10875           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10876 $as_echo "$tool_specified" >&6; }
10877         fi
10878       fi
10879     fi
10880 
10881   fi
10882 
10883 
10884 
10885   if test "x$TEE" = x; then
10886     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10887   fi
10888 
10889 
10890 
10891 
10892 
10893   # Publish this variable in the help.
10894 
10895 
10896   if [ -z "${TOUCH+x}" ]; then
10897     # The variable is not set by user, try to locate tool using the code snippet
10898     for ac_prog in touch
10899 do
10900   # Extract the first word of "$ac_prog", so it can be a program name with args.
10901 set dummy $ac_prog; ac_word=$2
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903 $as_echo_n "checking for $ac_word... " >&6; }
10904 if ${ac_cv_path_TOUCH+:} false; then :
10905   $as_echo_n "(cached) " >&6
10906 else
10907   case $TOUCH in
10908   [\\/]* | ?:[\\/]*)
10909   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10910   ;;
10911   *)
10912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10914 do
10915   IFS=$as_save_IFS
10916   test -z "$as_dir" && as_dir=.
10917     for ac_exec_ext in '' $ac_executable_extensions; do
10918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10919     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10921     break 2
10922   fi
10923 done
10924   done
10925 IFS=$as_save_IFS
10926 
10927   ;;
10928 esac
10929 fi
10930 TOUCH=$ac_cv_path_TOUCH
10931 if test -n "$TOUCH"; then
10932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10933 $as_echo "$TOUCH" >&6; }
10934 else
10935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10936 $as_echo "no" >&6; }
10937 fi
10938 
10939 
10940   test -n "$TOUCH" && break
10941 done
10942 
10943   else
10944     # The variable is set, but is it from the command line or the environment?
10945 
10946     # Try to remove the string !TOUCH! from our list.
10947     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10948     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10949       # If it failed, the variable was not from the command line. Ignore it,
10950       # but warn the user (except for BASH, which is always set by the calling BASH).
10951       if test "xTOUCH" != xBASH; then
10952         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10953 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10954       fi
10955       # Try to locate tool using the code snippet
10956       for ac_prog in touch
10957 do
10958   # Extract the first word of "$ac_prog", so it can be a program name with args.
10959 set dummy $ac_prog; ac_word=$2
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961 $as_echo_n "checking for $ac_word... " >&6; }
10962 if ${ac_cv_path_TOUCH+:} false; then :
10963   $as_echo_n "(cached) " >&6
10964 else
10965   case $TOUCH in
10966   [\\/]* | ?:[\\/]*)
10967   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10968   ;;
10969   *)
10970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10972 do
10973   IFS=$as_save_IFS
10974   test -z "$as_dir" && as_dir=.
10975     for ac_exec_ext in '' $ac_executable_extensions; do
10976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10977     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10979     break 2
10980   fi
10981 done
10982   done
10983 IFS=$as_save_IFS
10984 
10985   ;;
10986 esac
10987 fi
10988 TOUCH=$ac_cv_path_TOUCH
10989 if test -n "$TOUCH"; then
10990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10991 $as_echo "$TOUCH" >&6; }
10992 else
10993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 $as_echo "no" >&6; }
10995 fi
10996 
10997 
10998   test -n "$TOUCH" && break
10999 done
11000 
11001     else
11002       # If it succeeded, then it was overridden by the user. We will use it
11003       # for the tool.
11004 
11005       # First remove it from the list of overridden variables, so we can test
11006       # for unknown variables in the end.
11007       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11008 
11009       # Check if we try to supply an empty value
11010       if test "x$TOUCH" = x; then
11011         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11012 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11013         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11014 $as_echo_n "checking for TOUCH... " >&6; }
11015         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11016 $as_echo "disabled" >&6; }
11017       else
11018         # Check if the provided tool contains a complete path.
11019         tool_specified="$TOUCH"
11020         tool_basename="${tool_specified##*/}"
11021         if test "x$tool_basename" = "x$tool_specified"; then
11022           # A command without a complete path is provided, search $PATH.
11023           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11024 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11025           # Extract the first word of "$tool_basename", so it can be a program name with args.
11026 set dummy $tool_basename; ac_word=$2
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11028 $as_echo_n "checking for $ac_word... " >&6; }
11029 if ${ac_cv_path_TOUCH+:} false; then :
11030   $as_echo_n "(cached) " >&6
11031 else
11032   case $TOUCH in
11033   [\\/]* | ?:[\\/]*)
11034   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11035   ;;
11036   *)
11037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038 for as_dir in $PATH
11039 do
11040   IFS=$as_save_IFS
11041   test -z "$as_dir" && as_dir=.
11042     for ac_exec_ext in '' $ac_executable_extensions; do
11043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11044     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11046     break 2
11047   fi
11048 done
11049   done
11050 IFS=$as_save_IFS
11051 
11052   ;;
11053 esac
11054 fi
11055 TOUCH=$ac_cv_path_TOUCH
11056 if test -n "$TOUCH"; then
11057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11058 $as_echo "$TOUCH" >&6; }
11059 else
11060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061 $as_echo "no" >&6; }
11062 fi
11063 
11064 
11065           if test "x$TOUCH" = x; then
11066             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11067           fi
11068         else
11069           # Otherwise we believe it is a complete path. Use it as it is.
11070           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11071 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11072           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11073 $as_echo_n "checking for TOUCH... " >&6; }
11074           if test ! -x "$tool_specified"; then
11075             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11076 $as_echo "not found" >&6; }
11077             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11078           fi
11079           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11080 $as_echo "$tool_specified" >&6; }
11081         fi
11082       fi
11083     fi
11084 
11085   fi
11086 
11087 
11088 
11089   if test "x$TOUCH" = x; then
11090     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11091   fi
11092 
11093 
11094 
11095 
11096 
11097   # Publish this variable in the help.
11098 
11099 
11100   if [ -z "${TR+x}" ]; then
11101     # The variable is not set by user, try to locate tool using the code snippet
11102     for ac_prog in tr
11103 do
11104   # Extract the first word of "$ac_prog", so it can be a program name with args.
11105 set dummy $ac_prog; ac_word=$2
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107 $as_echo_n "checking for $ac_word... " >&6; }
11108 if ${ac_cv_path_TR+:} false; then :
11109   $as_echo_n "(cached) " >&6
11110 else
11111   case $TR in
11112   [\\/]* | ?:[\\/]*)
11113   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11114   ;;
11115   *)
11116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11118 do
11119   IFS=$as_save_IFS
11120   test -z "$as_dir" && as_dir=.
11121     for ac_exec_ext in '' $ac_executable_extensions; do
11122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11123     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125     break 2
11126   fi
11127 done
11128   done
11129 IFS=$as_save_IFS
11130 
11131   ;;
11132 esac
11133 fi
11134 TR=$ac_cv_path_TR
11135 if test -n "$TR"; then
11136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11137 $as_echo "$TR" >&6; }
11138 else
11139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140 $as_echo "no" >&6; }
11141 fi
11142 
11143 
11144   test -n "$TR" && break
11145 done
11146 
11147   else
11148     # The variable is set, but is it from the command line or the environment?
11149 
11150     # Try to remove the string !TR! from our list.
11151     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11152     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11153       # If it failed, the variable was not from the command line. Ignore it,
11154       # but warn the user (except for BASH, which is always set by the calling BASH).
11155       if test "xTR" != xBASH; then
11156         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11157 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11158       fi
11159       # Try to locate tool using the code snippet
11160       for ac_prog in tr
11161 do
11162   # Extract the first word of "$ac_prog", so it can be a program name with args.
11163 set dummy $ac_prog; ac_word=$2
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 $as_echo_n "checking for $ac_word... " >&6; }
11166 if ${ac_cv_path_TR+:} false; then :
11167   $as_echo_n "(cached) " >&6
11168 else
11169   case $TR in
11170   [\\/]* | ?:[\\/]*)
11171   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11172   ;;
11173   *)
11174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11176 do
11177   IFS=$as_save_IFS
11178   test -z "$as_dir" && as_dir=.
11179     for ac_exec_ext in '' $ac_executable_extensions; do
11180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11181     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183     break 2
11184   fi
11185 done
11186   done
11187 IFS=$as_save_IFS
11188 
11189   ;;
11190 esac
11191 fi
11192 TR=$ac_cv_path_TR
11193 if test -n "$TR"; then
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11195 $as_echo "$TR" >&6; }
11196 else
11197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11199 fi
11200 
11201 
11202   test -n "$TR" && break
11203 done
11204 
11205     else
11206       # If it succeeded, then it was overridden by the user. We will use it
11207       # for the tool.
11208 
11209       # First remove it from the list of overridden variables, so we can test
11210       # for unknown variables in the end.
11211       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11212 
11213       # Check if we try to supply an empty value
11214       if test "x$TR" = x; then
11215         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
11216 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
11217         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11218 $as_echo_n "checking for TR... " >&6; }
11219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11220 $as_echo "disabled" >&6; }
11221       else
11222         # Check if the provided tool contains a complete path.
11223         tool_specified="$TR"
11224         tool_basename="${tool_specified##*/}"
11225         if test "x$tool_basename" = "x$tool_specified"; then
11226           # A command without a complete path is provided, search $PATH.
11227           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
11228 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
11229           # Extract the first word of "$tool_basename", so it can be a program name with args.
11230 set dummy $tool_basename; ac_word=$2
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232 $as_echo_n "checking for $ac_word... " >&6; }
11233 if ${ac_cv_path_TR+:} false; then :
11234   $as_echo_n "(cached) " >&6
11235 else
11236   case $TR in
11237   [\\/]* | ?:[\\/]*)
11238   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11239   ;;
11240   *)
11241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH
11243 do
11244   IFS=$as_save_IFS
11245   test -z "$as_dir" && as_dir=.
11246     for ac_exec_ext in '' $ac_executable_extensions; do
11247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11248     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11250     break 2
11251   fi
11252 done
11253   done
11254 IFS=$as_save_IFS
11255 
11256   ;;
11257 esac
11258 fi
11259 TR=$ac_cv_path_TR
11260 if test -n "$TR"; then
11261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11262 $as_echo "$TR" >&6; }
11263 else
11264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; }
11266 fi
11267 
11268 
11269           if test "x$TR" = x; then
11270             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11271           fi
11272         else
11273           # Otherwise we believe it is a complete path. Use it as it is.
11274           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
11275 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
11276           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11277 $as_echo_n "checking for TR... " >&6; }
11278           if test ! -x "$tool_specified"; then
11279             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11280 $as_echo "not found" >&6; }
11281             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
11282           fi
11283           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11284 $as_echo "$tool_specified" >&6; }
11285         fi
11286       fi
11287     fi
11288 
11289   fi
11290 
11291 
11292 
11293   if test "x$TR" = x; then
11294     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
11295   fi
11296 
11297 
11298 
11299 
11300 
11301   # Publish this variable in the help.
11302 
11303 
11304   if [ -z "${UNAME+x}" ]; then
11305     # The variable is not set by user, try to locate tool using the code snippet
11306     for ac_prog in uname
11307 do
11308   # Extract the first word of "$ac_prog", so it can be a program name with args.
11309 set dummy $ac_prog; ac_word=$2
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311 $as_echo_n "checking for $ac_word... " >&6; }
11312 if ${ac_cv_path_UNAME+:} false; then :
11313   $as_echo_n "(cached) " >&6
11314 else
11315   case $UNAME in
11316   [\\/]* | ?:[\\/]*)
11317   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11318   ;;
11319   *)
11320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11322 do
11323   IFS=$as_save_IFS
11324   test -z "$as_dir" && as_dir=.
11325     for ac_exec_ext in '' $ac_executable_extensions; do
11326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11327     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11329     break 2
11330   fi
11331 done
11332   done
11333 IFS=$as_save_IFS
11334 
11335   ;;
11336 esac
11337 fi
11338 UNAME=$ac_cv_path_UNAME
11339 if test -n "$UNAME"; then
11340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11341 $as_echo "$UNAME" >&6; }
11342 else
11343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11345 fi
11346 
11347 
11348   test -n "$UNAME" && break
11349 done
11350 
11351   else
11352     # The variable is set, but is it from the command line or the environment?
11353 
11354     # Try to remove the string !UNAME! from our list.
11355     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
11356     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11357       # If it failed, the variable was not from the command line. Ignore it,
11358       # but warn the user (except for BASH, which is always set by the calling BASH).
11359       if test "xUNAME" != xBASH; then
11360         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
11361 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
11362       fi
11363       # Try to locate tool using the code snippet
11364       for ac_prog in uname
11365 do
11366   # Extract the first word of "$ac_prog", so it can be a program name with args.
11367 set dummy $ac_prog; ac_word=$2
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369 $as_echo_n "checking for $ac_word... " >&6; }
11370 if ${ac_cv_path_UNAME+:} false; then :
11371   $as_echo_n "(cached) " >&6
11372 else
11373   case $UNAME in
11374   [\\/]* | ?:[\\/]*)
11375   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11376   ;;
11377   *)
11378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379 for as_dir in $PATH
11380 do
11381   IFS=$as_save_IFS
11382   test -z "$as_dir" && as_dir=.
11383     for ac_exec_ext in '' $ac_executable_extensions; do
11384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11385     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11387     break 2
11388   fi
11389 done
11390   done
11391 IFS=$as_save_IFS
11392 
11393   ;;
11394 esac
11395 fi
11396 UNAME=$ac_cv_path_UNAME
11397 if test -n "$UNAME"; then
11398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11399 $as_echo "$UNAME" >&6; }
11400 else
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11403 fi
11404 
11405 
11406   test -n "$UNAME" && break
11407 done
11408 
11409     else
11410       # If it succeeded, then it was overridden by the user. We will use it
11411       # for the tool.
11412 
11413       # First remove it from the list of overridden variables, so we can test
11414       # for unknown variables in the end.
11415       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11416 
11417       # Check if we try to supply an empty value
11418       if test "x$UNAME" = x; then
11419         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
11420 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
11421         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11422 $as_echo_n "checking for UNAME... " >&6; }
11423         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11424 $as_echo "disabled" >&6; }
11425       else
11426         # Check if the provided tool contains a complete path.
11427         tool_specified="$UNAME"
11428         tool_basename="${tool_specified##*/}"
11429         if test "x$tool_basename" = "x$tool_specified"; then
11430           # A command without a complete path is provided, search $PATH.
11431           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
11432 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
11433           # Extract the first word of "$tool_basename", so it can be a program name with args.
11434 set dummy $tool_basename; ac_word=$2
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436 $as_echo_n "checking for $ac_word... " >&6; }
11437 if ${ac_cv_path_UNAME+:} false; then :
11438   $as_echo_n "(cached) " >&6
11439 else
11440   case $UNAME in
11441   [\\/]* | ?:[\\/]*)
11442   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11443   ;;
11444   *)
11445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in $PATH
11447 do
11448   IFS=$as_save_IFS
11449   test -z "$as_dir" && as_dir=.
11450     for ac_exec_ext in '' $ac_executable_extensions; do
11451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11452     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454     break 2
11455   fi
11456 done
11457   done
11458 IFS=$as_save_IFS
11459 
11460   ;;
11461 esac
11462 fi
11463 UNAME=$ac_cv_path_UNAME
11464 if test -n "$UNAME"; then
11465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11466 $as_echo "$UNAME" >&6; }
11467 else
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11470 fi
11471 
11472 
11473           if test "x$UNAME" = x; then
11474             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11475           fi
11476         else
11477           # Otherwise we believe it is a complete path. Use it as it is.
11478           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
11479 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
11480           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11481 $as_echo_n "checking for UNAME... " >&6; }
11482           if test ! -x "$tool_specified"; then
11483             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11484 $as_echo "not found" >&6; }
11485             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
11486           fi
11487           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11488 $as_echo "$tool_specified" >&6; }
11489         fi
11490       fi
11491     fi
11492 
11493   fi
11494 
11495 
11496 
11497   if test "x$UNAME" = x; then
11498     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
11499   fi
11500 
11501 
11502 
11503 
11504 
11505   # Publish this variable in the help.
11506 
11507 
11508   if [ -z "${UNIQ+x}" ]; then
11509     # The variable is not set by user, try to locate tool using the code snippet
11510     for ac_prog in uniq
11511 do
11512   # Extract the first word of "$ac_prog", so it can be a program name with args.
11513 set dummy $ac_prog; ac_word=$2
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515 $as_echo_n "checking for $ac_word... " >&6; }
11516 if ${ac_cv_path_UNIQ+:} false; then :
11517   $as_echo_n "(cached) " >&6
11518 else
11519   case $UNIQ in
11520   [\\/]* | ?:[\\/]*)
11521   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11522   ;;
11523   *)
11524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11526 do
11527   IFS=$as_save_IFS
11528   test -z "$as_dir" && as_dir=.
11529     for ac_exec_ext in '' $ac_executable_extensions; do
11530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533     break 2
11534   fi
11535 done
11536   done
11537 IFS=$as_save_IFS
11538 
11539   ;;
11540 esac
11541 fi
11542 UNIQ=$ac_cv_path_UNIQ
11543 if test -n "$UNIQ"; then
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11545 $as_echo "$UNIQ" >&6; }
11546 else
11547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11549 fi
11550 
11551 
11552   test -n "$UNIQ" && break
11553 done
11554 
11555   else
11556     # The variable is set, but is it from the command line or the environment?
11557 
11558     # Try to remove the string !UNIQ! from our list.
11559     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11560     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11561       # If it failed, the variable was not from the command line. Ignore it,
11562       # but warn the user (except for BASH, which is always set by the calling BASH).
11563       if test "xUNIQ" != xBASH; then
11564         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11565 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11566       fi
11567       # Try to locate tool using the code snippet
11568       for ac_prog in uniq
11569 do
11570   # Extract the first word of "$ac_prog", so it can be a program name with args.
11571 set dummy $ac_prog; ac_word=$2
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573 $as_echo_n "checking for $ac_word... " >&6; }
11574 if ${ac_cv_path_UNIQ+:} false; then :
11575   $as_echo_n "(cached) " >&6
11576 else
11577   case $UNIQ in
11578   [\\/]* | ?:[\\/]*)
11579   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11580   ;;
11581   *)
11582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH
11584 do
11585   IFS=$as_save_IFS
11586   test -z "$as_dir" && as_dir=.
11587     for ac_exec_ext in '' $ac_executable_extensions; do
11588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11589     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11591     break 2
11592   fi
11593 done
11594   done
11595 IFS=$as_save_IFS
11596 
11597   ;;
11598 esac
11599 fi
11600 UNIQ=$ac_cv_path_UNIQ
11601 if test -n "$UNIQ"; then
11602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11603 $as_echo "$UNIQ" >&6; }
11604 else
11605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11607 fi
11608 
11609 
11610   test -n "$UNIQ" && break
11611 done
11612 
11613     else
11614       # If it succeeded, then it was overridden by the user. We will use it
11615       # for the tool.
11616 
11617       # First remove it from the list of overridden variables, so we can test
11618       # for unknown variables in the end.
11619       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11620 
11621       # Check if we try to supply an empty value
11622       if test "x$UNIQ" = x; then
11623         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
11624 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
11625         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11626 $as_echo_n "checking for UNIQ... " >&6; }
11627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11628 $as_echo "disabled" >&6; }
11629       else
11630         # Check if the provided tool contains a complete path.
11631         tool_specified="$UNIQ"
11632         tool_basename="${tool_specified##*/}"
11633         if test "x$tool_basename" = "x$tool_specified"; then
11634           # A command without a complete path is provided, search $PATH.
11635           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
11636 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
11637           # Extract the first word of "$tool_basename", so it can be a program name with args.
11638 set dummy $tool_basename; ac_word=$2
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640 $as_echo_n "checking for $ac_word... " >&6; }
11641 if ${ac_cv_path_UNIQ+:} false; then :
11642   $as_echo_n "(cached) " >&6
11643 else
11644   case $UNIQ in
11645   [\\/]* | ?:[\\/]*)
11646   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11647   ;;
11648   *)
11649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
11651 do
11652   IFS=$as_save_IFS
11653   test -z "$as_dir" && as_dir=.
11654     for ac_exec_ext in '' $ac_executable_extensions; do
11655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11656     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11658     break 2
11659   fi
11660 done
11661   done
11662 IFS=$as_save_IFS
11663 
11664   ;;
11665 esac
11666 fi
11667 UNIQ=$ac_cv_path_UNIQ
11668 if test -n "$UNIQ"; then
11669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11670 $as_echo "$UNIQ" >&6; }
11671 else
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11674 fi
11675 
11676 
11677           if test "x$UNIQ" = x; then
11678             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11679           fi
11680         else
11681           # Otherwise we believe it is a complete path. Use it as it is.
11682           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
11683 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
11684           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11685 $as_echo_n "checking for UNIQ... " >&6; }
11686           if test ! -x "$tool_specified"; then
11687             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11688 $as_echo "not found" >&6; }
11689             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
11690           fi
11691           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11692 $as_echo "$tool_specified" >&6; }
11693         fi
11694       fi
11695     fi
11696 
11697   fi
11698 
11699 
11700 
11701   if test "x$UNIQ" = x; then
11702     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
11703   fi
11704 
11705 
11706 
11707 
11708 
11709   # Publish this variable in the help.
11710 
11711 
11712   if [ -z "${WC+x}" ]; then
11713     # The variable is not set by user, try to locate tool using the code snippet
11714     for ac_prog in wc
11715 do
11716   # Extract the first word of "$ac_prog", so it can be a program name with args.
11717 set dummy $ac_prog; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if ${ac_cv_path_WC+:} false; then :
11721   $as_echo_n "(cached) " >&6
11722 else
11723   case $WC in
11724   [\\/]* | ?:[\\/]*)
11725   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11726   ;;
11727   *)
11728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 for as_dir in $PATH
11730 do
11731   IFS=$as_save_IFS
11732   test -z "$as_dir" && as_dir=.
11733     for ac_exec_ext in '' $ac_executable_extensions; do
11734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11735     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737     break 2
11738   fi
11739 done
11740   done
11741 IFS=$as_save_IFS
11742 
11743   ;;
11744 esac
11745 fi
11746 WC=$ac_cv_path_WC
11747 if test -n "$WC"; then
11748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11749 $as_echo "$WC" >&6; }
11750 else
11751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11753 fi
11754 
11755 
11756   test -n "$WC" && break
11757 done
11758 
11759   else
11760     # The variable is set, but is it from the command line or the environment?
11761 
11762     # Try to remove the string !WC! from our list.
11763     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
11764     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11765       # If it failed, the variable was not from the command line. Ignore it,
11766       # but warn the user (except for BASH, which is always set by the calling BASH).
11767       if test "xWC" != xBASH; then
11768         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
11769 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
11770       fi
11771       # Try to locate tool using the code snippet
11772       for ac_prog in wc
11773 do
11774   # Extract the first word of "$ac_prog", so it can be a program name with args.
11775 set dummy $ac_prog; ac_word=$2
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11777 $as_echo_n "checking for $ac_word... " >&6; }
11778 if ${ac_cv_path_WC+:} false; then :
11779   $as_echo_n "(cached) " >&6
11780 else
11781   case $WC in
11782   [\\/]* | ?:[\\/]*)
11783   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11784   ;;
11785   *)
11786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787 for as_dir in $PATH
11788 do
11789   IFS=$as_save_IFS
11790   test -z "$as_dir" && as_dir=.
11791     for ac_exec_ext in '' $ac_executable_extensions; do
11792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11793     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11795     break 2
11796   fi
11797 done
11798   done
11799 IFS=$as_save_IFS
11800 
11801   ;;
11802 esac
11803 fi
11804 WC=$ac_cv_path_WC
11805 if test -n "$WC"; then
11806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11807 $as_echo "$WC" >&6; }
11808 else
11809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11811 fi
11812 
11813 
11814   test -n "$WC" && break
11815 done
11816 
11817     else
11818       # If it succeeded, then it was overridden by the user. We will use it
11819       # for the tool.
11820 
11821       # First remove it from the list of overridden variables, so we can test
11822       # for unknown variables in the end.
11823       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11824 
11825       # Check if we try to supply an empty value
11826       if test "x$WC" = x; then
11827         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
11828 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
11829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11830 $as_echo_n "checking for WC... " >&6; }
11831         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11832 $as_echo "disabled" >&6; }
11833       else
11834         # Check if the provided tool contains a complete path.
11835         tool_specified="$WC"
11836         tool_basename="${tool_specified##*/}"
11837         if test "x$tool_basename" = "x$tool_specified"; then
11838           # A command without a complete path is provided, search $PATH.
11839           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
11840 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
11841           # Extract the first word of "$tool_basename", so it can be a program name with args.
11842 set dummy $tool_basename; ac_word=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if ${ac_cv_path_WC+:} false; then :
11846   $as_echo_n "(cached) " >&6
11847 else
11848   case $WC in
11849   [\\/]* | ?:[\\/]*)
11850   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11851   ;;
11852   *)
11853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854 for as_dir in $PATH
11855 do
11856   IFS=$as_save_IFS
11857   test -z "$as_dir" && as_dir=.
11858     for ac_exec_ext in '' $ac_executable_extensions; do
11859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11860     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862     break 2
11863   fi
11864 done
11865   done
11866 IFS=$as_save_IFS
11867 
11868   ;;
11869 esac
11870 fi
11871 WC=$ac_cv_path_WC
11872 if test -n "$WC"; then
11873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11874 $as_echo "$WC" >&6; }
11875 else
11876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877 $as_echo "no" >&6; }
11878 fi
11879 
11880 
11881           if test "x$WC" = x; then
11882             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11883           fi
11884         else
11885           # Otherwise we believe it is a complete path. Use it as it is.
11886           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11887 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11888           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11889 $as_echo_n "checking for WC... " >&6; }
11890           if test ! -x "$tool_specified"; then
11891             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11892 $as_echo "not found" >&6; }
11893             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11894           fi
11895           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11896 $as_echo "$tool_specified" >&6; }
11897         fi
11898       fi
11899     fi
11900 
11901   fi
11902 
11903 
11904 
11905   if test "x$WC" = x; then
11906     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11907   fi
11908 
11909 
11910 
11911 
11912 
11913   # Publish this variable in the help.
11914 
11915 
11916   if [ -z "${WHICH+x}" ]; then
11917     # The variable is not set by user, try to locate tool using the code snippet
11918     for ac_prog in which
11919 do
11920   # Extract the first word of "$ac_prog", so it can be a program name with args.
11921 set dummy $ac_prog; ac_word=$2
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11923 $as_echo_n "checking for $ac_word... " >&6; }
11924 if ${ac_cv_path_WHICH+:} false; then :
11925   $as_echo_n "(cached) " >&6
11926 else
11927   case $WHICH in
11928   [\\/]* | ?:[\\/]*)
11929   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11930   ;;
11931   *)
11932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11934 do
11935   IFS=$as_save_IFS
11936   test -z "$as_dir" && as_dir=.
11937     for ac_exec_ext in '' $ac_executable_extensions; do
11938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11939     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941     break 2
11942   fi
11943 done
11944   done
11945 IFS=$as_save_IFS
11946 
11947   ;;
11948 esac
11949 fi
11950 WHICH=$ac_cv_path_WHICH
11951 if test -n "$WHICH"; then
11952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11953 $as_echo "$WHICH" >&6; }
11954 else
11955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; }
11957 fi
11958 
11959 
11960   test -n "$WHICH" && break
11961 done
11962 
11963   else
11964     # The variable is set, but is it from the command line or the environment?
11965 
11966     # Try to remove the string !WHICH! from our list.
11967     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11968     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11969       # If it failed, the variable was not from the command line. Ignore it,
11970       # but warn the user (except for BASH, which is always set by the calling BASH).
11971       if test "xWHICH" != xBASH; then
11972         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11973 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11974       fi
11975       # Try to locate tool using the code snippet
11976       for ac_prog in which
11977 do
11978   # Extract the first word of "$ac_prog", so it can be a program name with args.
11979 set dummy $ac_prog; ac_word=$2
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11981 $as_echo_n "checking for $ac_word... " >&6; }
11982 if ${ac_cv_path_WHICH+:} false; then :
11983   $as_echo_n "(cached) " >&6
11984 else
11985   case $WHICH in
11986   [\\/]* | ?:[\\/]*)
11987   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11988   ;;
11989   *)
11990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11992 do
11993   IFS=$as_save_IFS
11994   test -z "$as_dir" && as_dir=.
11995     for ac_exec_ext in '' $ac_executable_extensions; do
11996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11999     break 2
12000   fi
12001 done
12002   done
12003 IFS=$as_save_IFS
12004 
12005   ;;
12006 esac
12007 fi
12008 WHICH=$ac_cv_path_WHICH
12009 if test -n "$WHICH"; then
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12011 $as_echo "$WHICH" >&6; }
12012 else
12013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12015 fi
12016 
12017 
12018   test -n "$WHICH" && break
12019 done
12020 
12021     else
12022       # If it succeeded, then it was overridden by the user. We will use it
12023       # for the tool.
12024 
12025       # First remove it from the list of overridden variables, so we can test
12026       # for unknown variables in the end.
12027       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12028 
12029       # Check if we try to supply an empty value
12030       if test "x$WHICH" = x; then
12031         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12032 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12034 $as_echo_n "checking for WHICH... " >&6; }
12035         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12036 $as_echo "disabled" >&6; }
12037       else
12038         # Check if the provided tool contains a complete path.
12039         tool_specified="$WHICH"
12040         tool_basename="${tool_specified##*/}"
12041         if test "x$tool_basename" = "x$tool_specified"; then
12042           # A command without a complete path is provided, search $PATH.
12043           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12044 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12045           # Extract the first word of "$tool_basename", so it can be a program name with args.
12046 set dummy $tool_basename; ac_word=$2
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048 $as_echo_n "checking for $ac_word... " >&6; }
12049 if ${ac_cv_path_WHICH+:} false; then :
12050   $as_echo_n "(cached) " >&6
12051 else
12052   case $WHICH in
12053   [\\/]* | ?:[\\/]*)
12054   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12055   ;;
12056   *)
12057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12059 do
12060   IFS=$as_save_IFS
12061   test -z "$as_dir" && as_dir=.
12062     for ac_exec_ext in '' $ac_executable_extensions; do
12063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12064     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12066     break 2
12067   fi
12068 done
12069   done
12070 IFS=$as_save_IFS
12071 
12072   ;;
12073 esac
12074 fi
12075 WHICH=$ac_cv_path_WHICH
12076 if test -n "$WHICH"; then
12077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12078 $as_echo "$WHICH" >&6; }
12079 else
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12082 fi
12083 
12084 
12085           if test "x$WHICH" = x; then
12086             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12087           fi
12088         else
12089           # Otherwise we believe it is a complete path. Use it as it is.
12090           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12091 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12092           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12093 $as_echo_n "checking for WHICH... " >&6; }
12094           if test ! -x "$tool_specified"; then
12095             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12096 $as_echo "not found" >&6; }
12097             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12098           fi
12099           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12100 $as_echo "$tool_specified" >&6; }
12101         fi
12102       fi
12103     fi
12104 
12105   fi
12106 
12107 
12108 
12109   if test "x$WHICH" = x; then
12110     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12111   fi
12112 
12113 
12114 
12115 
12116 
12117   # Publish this variable in the help.
12118 
12119 
12120   if [ -z "${XARGS+x}" ]; then
12121     # The variable is not set by user, try to locate tool using the code snippet
12122     for ac_prog in xargs
12123 do
12124   # Extract the first word of "$ac_prog", so it can be a program name with args.
12125 set dummy $ac_prog; ac_word=$2
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127 $as_echo_n "checking for $ac_word... " >&6; }
12128 if ${ac_cv_path_XARGS+:} false; then :
12129   $as_echo_n "(cached) " >&6
12130 else
12131   case $XARGS in
12132   [\\/]* | ?:[\\/]*)
12133   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12134   ;;
12135   *)
12136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12138 do
12139   IFS=$as_save_IFS
12140   test -z "$as_dir" && as_dir=.
12141     for ac_exec_ext in '' $ac_executable_extensions; do
12142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12145     break 2
12146   fi
12147 done
12148   done
12149 IFS=$as_save_IFS
12150 
12151   ;;
12152 esac
12153 fi
12154 XARGS=$ac_cv_path_XARGS
12155 if test -n "$XARGS"; then
12156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12157 $as_echo "$XARGS" >&6; }
12158 else
12159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12161 fi
12162 
12163 
12164   test -n "$XARGS" && break
12165 done
12166 
12167   else
12168     # The variable is set, but is it from the command line or the environment?
12169 
12170     # Try to remove the string !XARGS! from our list.
12171     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12172     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12173       # If it failed, the variable was not from the command line. Ignore it,
12174       # but warn the user (except for BASH, which is always set by the calling BASH).
12175       if test "xXARGS" != xBASH; then
12176         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12177 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12178       fi
12179       # Try to locate tool using the code snippet
12180       for ac_prog in xargs
12181 do
12182   # Extract the first word of "$ac_prog", so it can be a program name with args.
12183 set dummy $ac_prog; ac_word=$2
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185 $as_echo_n "checking for $ac_word... " >&6; }
12186 if ${ac_cv_path_XARGS+:} false; then :
12187   $as_echo_n "(cached) " >&6
12188 else
12189   case $XARGS in
12190   [\\/]* | ?:[\\/]*)
12191   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12192   ;;
12193   *)
12194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195 for as_dir in $PATH
12196 do
12197   IFS=$as_save_IFS
12198   test -z "$as_dir" && as_dir=.
12199     for ac_exec_ext in '' $ac_executable_extensions; do
12200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12201     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12203     break 2
12204   fi
12205 done
12206   done
12207 IFS=$as_save_IFS
12208 
12209   ;;
12210 esac
12211 fi
12212 XARGS=$ac_cv_path_XARGS
12213 if test -n "$XARGS"; then
12214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12215 $as_echo "$XARGS" >&6; }
12216 else
12217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; }
12219 fi
12220 
12221 
12222   test -n "$XARGS" && break
12223 done
12224 
12225     else
12226       # If it succeeded, then it was overridden by the user. We will use it
12227       # for the tool.
12228 
12229       # First remove it from the list of overridden variables, so we can test
12230       # for unknown variables in the end.
12231       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12232 
12233       # Check if we try to supply an empty value
12234       if test "x$XARGS" = x; then
12235         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
12236 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
12237         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12238 $as_echo_n "checking for XARGS... " >&6; }
12239         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12240 $as_echo "disabled" >&6; }
12241       else
12242         # Check if the provided tool contains a complete path.
12243         tool_specified="$XARGS"
12244         tool_basename="${tool_specified##*/}"
12245         if test "x$tool_basename" = "x$tool_specified"; then
12246           # A command without a complete path is provided, search $PATH.
12247           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
12248 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
12249           # Extract the first word of "$tool_basename", so it can be a program name with args.
12250 set dummy $tool_basename; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if ${ac_cv_path_XARGS+:} false; then :
12254   $as_echo_n "(cached) " >&6
12255 else
12256   case $XARGS in
12257   [\\/]* | ?:[\\/]*)
12258   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12259   ;;
12260   *)
12261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $PATH
12263 do
12264   IFS=$as_save_IFS
12265   test -z "$as_dir" && as_dir=.
12266     for ac_exec_ext in '' $ac_executable_extensions; do
12267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12268     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270     break 2
12271   fi
12272 done
12273   done
12274 IFS=$as_save_IFS
12275 
12276   ;;
12277 esac
12278 fi
12279 XARGS=$ac_cv_path_XARGS
12280 if test -n "$XARGS"; then
12281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12282 $as_echo "$XARGS" >&6; }
12283 else
12284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 fi
12287 
12288 
12289           if test "x$XARGS" = x; then
12290             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12291           fi
12292         else
12293           # Otherwise we believe it is a complete path. Use it as it is.
12294           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
12295 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
12296           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12297 $as_echo_n "checking for XARGS... " >&6; }
12298           if test ! -x "$tool_specified"; then
12299             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12300 $as_echo "not found" >&6; }
12301             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
12302           fi
12303           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12304 $as_echo "$tool_specified" >&6; }
12305         fi
12306       fi
12307     fi
12308 
12309   fi
12310 
12311 
12312 
12313   if test "x$XARGS" = x; then
12314     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
12315   fi
12316 
12317 
12318 
12319   # Then required tools that require some special treatment.
12320 
12321 
12322   # Publish this variable in the help.
12323 
12324 
12325   if [ -z "${AWK+x}" ]; then
12326     # The variable is not set by user, try to locate tool using the code snippet
12327     for ac_prog in gawk mawk nawk awk
12328 do
12329   # Extract the first word of "$ac_prog", so it can be a program name with args.
12330 set dummy $ac_prog; ac_word=$2
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332 $as_echo_n "checking for $ac_word... " >&6; }
12333 if ${ac_cv_prog_AWK+:} false; then :
12334   $as_echo_n "(cached) " >&6
12335 else
12336   if test -n "$AWK"; then
12337   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12338 else
12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12341 do
12342   IFS=$as_save_IFS
12343   test -z "$as_dir" && as_dir=.
12344     for ac_exec_ext in '' $ac_executable_extensions; do
12345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12346     ac_cv_prog_AWK="$ac_prog"
12347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12348     break 2
12349   fi
12350 done
12351   done
12352 IFS=$as_save_IFS
12353 
12354 fi
12355 fi
12356 AWK=$ac_cv_prog_AWK
12357 if test -n "$AWK"; then
12358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12359 $as_echo "$AWK" >&6; }
12360 else
12361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362 $as_echo "no" >&6; }
12363 fi
12364 
12365 
12366   test -n "$AWK" && break
12367 done
12368 
12369   else
12370     # The variable is set, but is it from the command line or the environment?
12371 
12372     # Try to remove the string !AWK! from our list.
12373     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
12374     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12375       # If it failed, the variable was not from the command line. Ignore it,
12376       # but warn the user (except for BASH, which is always set by the calling BASH).
12377       if test "xAWK" != xBASH; then
12378         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
12379 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
12380       fi
12381       # Try to locate tool using the code snippet
12382       for ac_prog in gawk mawk nawk awk
12383 do
12384   # Extract the first word of "$ac_prog", so it can be a program name with args.
12385 set dummy $ac_prog; ac_word=$2
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387 $as_echo_n "checking for $ac_word... " >&6; }
12388 if ${ac_cv_prog_AWK+:} false; then :
12389   $as_echo_n "(cached) " >&6
12390 else
12391   if test -n "$AWK"; then
12392   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12393 else
12394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395 for as_dir in $PATH
12396 do
12397   IFS=$as_save_IFS
12398   test -z "$as_dir" && as_dir=.
12399     for ac_exec_ext in '' $ac_executable_extensions; do
12400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12401     ac_cv_prog_AWK="$ac_prog"
12402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403     break 2
12404   fi
12405 done
12406   done
12407 IFS=$as_save_IFS
12408 
12409 fi
12410 fi
12411 AWK=$ac_cv_prog_AWK
12412 if test -n "$AWK"; then
12413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12414 $as_echo "$AWK" >&6; }
12415 else
12416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417 $as_echo "no" >&6; }
12418 fi
12419 
12420 
12421   test -n "$AWK" && break
12422 done
12423 
12424     else
12425       # If it succeeded, then it was overridden by the user. We will use it
12426       # for the tool.
12427 
12428       # First remove it from the list of overridden variables, so we can test
12429       # for unknown variables in the end.
12430       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12431 
12432       # Check if we try to supply an empty value
12433       if test "x$AWK" = x; then
12434         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
12435 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
12436         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12437 $as_echo_n "checking for AWK... " >&6; }
12438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12439 $as_echo "disabled" >&6; }
12440       else
12441         # Check if the provided tool contains a complete path.
12442         tool_specified="$AWK"
12443         tool_basename="${tool_specified##*/}"
12444         if test "x$tool_basename" = "x$tool_specified"; then
12445           # A command without a complete path is provided, search $PATH.
12446           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
12447 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
12448           # Extract the first word of "$tool_basename", so it can be a program name with args.
12449 set dummy $tool_basename; ac_word=$2
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451 $as_echo_n "checking for $ac_word... " >&6; }
12452 if ${ac_cv_path_AWK+:} false; then :
12453   $as_echo_n "(cached) " >&6
12454 else
12455   case $AWK in
12456   [\\/]* | ?:[\\/]*)
12457   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
12458   ;;
12459   *)
12460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12462 do
12463   IFS=$as_save_IFS
12464   test -z "$as_dir" && as_dir=.
12465     for ac_exec_ext in '' $ac_executable_extensions; do
12466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469     break 2
12470   fi
12471 done
12472   done
12473 IFS=$as_save_IFS
12474 
12475   ;;
12476 esac
12477 fi
12478 AWK=$ac_cv_path_AWK
12479 if test -n "$AWK"; then
12480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12481 $as_echo "$AWK" >&6; }
12482 else
12483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484 $as_echo "no" >&6; }
12485 fi
12486 
12487 
12488           if test "x$AWK" = x; then
12489             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12490           fi
12491         else
12492           # Otherwise we believe it is a complete path. Use it as it is.
12493           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
12494 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
12495           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12496 $as_echo_n "checking for AWK... " >&6; }
12497           if test ! -x "$tool_specified"; then
12498             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12499 $as_echo "not found" >&6; }
12500             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
12501           fi
12502           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12503 $as_echo "$tool_specified" >&6; }
12504         fi
12505       fi
12506     fi
12507 
12508   fi
12509 
12510 
12511   if test "x$AWK" = x; then
12512     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
12513   fi
12514 
12515 
12516 
12517 
12518   # Publish this variable in the help.
12519 
12520 
12521   if [ -z "${GREP+x}" ]; then
12522     # The variable is not set by user, try to locate tool using the code snippet
12523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12524 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12525 if ${ac_cv_path_GREP+:} false; then :
12526   $as_echo_n "(cached) " >&6
12527 else
12528   if test -z "$GREP"; then
12529   ac_path_GREP_found=false
12530   # Loop through the user's path and test for each of PROGNAME-LIST
12531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12533 do
12534   IFS=$as_save_IFS
12535   test -z "$as_dir" && as_dir=.
12536     for ac_prog in grep ggrep; do
12537     for ac_exec_ext in '' $ac_executable_extensions; do
12538       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12539       as_fn_executable_p "$ac_path_GREP" || continue
12540 # Check for GNU ac_path_GREP and select it if it is found.
12541   # Check for GNU $ac_path_GREP
12542 case `"$ac_path_GREP" --version 2>&1` in
12543 *GNU*)
12544   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12545 *)
12546   ac_count=0
12547   $as_echo_n 0123456789 >"conftest.in"
12548   while :
12549   do
12550     cat "conftest.in" "conftest.in" >"conftest.tmp"
12551     mv "conftest.tmp" "conftest.in"
12552     cp "conftest.in" "conftest.nl"
12553     $as_echo 'GREP' >> "conftest.nl"
12554     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12555     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12556     as_fn_arith $ac_count + 1 && ac_count=$as_val
12557     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12558       # Best one so far, save it but keep looking for a better one
12559       ac_cv_path_GREP="$ac_path_GREP"
12560       ac_path_GREP_max=$ac_count
12561     fi
12562     # 10*(2^10) chars as input seems more than enough
12563     test $ac_count -gt 10 && break
12564   done
12565   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12566 esac
12567 
12568       $ac_path_GREP_found && break 3
12569     done
12570   done
12571   done
12572 IFS=$as_save_IFS
12573   if test -z "$ac_cv_path_GREP"; then
12574     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12575   fi
12576 else
12577   ac_cv_path_GREP=$GREP
12578 fi
12579 
12580 fi
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12582 $as_echo "$ac_cv_path_GREP" >&6; }
12583  GREP="$ac_cv_path_GREP"
12584 
12585 
12586   else
12587     # The variable is set, but is it from the command line or the environment?
12588 
12589     # Try to remove the string !GREP! from our list.
12590     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
12591     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12592       # If it failed, the variable was not from the command line. Ignore it,
12593       # but warn the user (except for BASH, which is always set by the calling BASH).
12594       if test "xGREP" != xBASH; then
12595         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
12596 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
12597       fi
12598       # Try to locate tool using the code snippet
12599       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12600 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12601 if ${ac_cv_path_GREP+:} false; then :
12602   $as_echo_n "(cached) " >&6
12603 else
12604   if test -z "$GREP"; then
12605   ac_path_GREP_found=false
12606   # Loop through the user's path and test for each of PROGNAME-LIST
12607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12609 do
12610   IFS=$as_save_IFS
12611   test -z "$as_dir" && as_dir=.
12612     for ac_prog in grep ggrep; do
12613     for ac_exec_ext in '' $ac_executable_extensions; do
12614       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12615       as_fn_executable_p "$ac_path_GREP" || continue
12616 # Check for GNU ac_path_GREP and select it if it is found.
12617   # Check for GNU $ac_path_GREP
12618 case `"$ac_path_GREP" --version 2>&1` in
12619 *GNU*)
12620   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12621 *)
12622   ac_count=0
12623   $as_echo_n 0123456789 >"conftest.in"
12624   while :
12625   do
12626     cat "conftest.in" "conftest.in" >"conftest.tmp"
12627     mv "conftest.tmp" "conftest.in"
12628     cp "conftest.in" "conftest.nl"
12629     $as_echo 'GREP' >> "conftest.nl"
12630     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12631     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12632     as_fn_arith $ac_count + 1 && ac_count=$as_val
12633     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12634       # Best one so far, save it but keep looking for a better one
12635       ac_cv_path_GREP="$ac_path_GREP"
12636       ac_path_GREP_max=$ac_count
12637     fi
12638     # 10*(2^10) chars as input seems more than enough
12639     test $ac_count -gt 10 && break
12640   done
12641   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12642 esac
12643 
12644       $ac_path_GREP_found && break 3
12645     done
12646   done
12647   done
12648 IFS=$as_save_IFS
12649   if test -z "$ac_cv_path_GREP"; then
12650     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12651   fi
12652 else
12653   ac_cv_path_GREP=$GREP
12654 fi
12655 
12656 fi
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12658 $as_echo "$ac_cv_path_GREP" >&6; }
12659  GREP="$ac_cv_path_GREP"
12660 
12661 
12662     else
12663       # If it succeeded, then it was overridden by the user. We will use it
12664       # for the tool.
12665 
12666       # First remove it from the list of overridden variables, so we can test
12667       # for unknown variables in the end.
12668       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12669 
12670       # Check if we try to supply an empty value
12671       if test "x$GREP" = x; then
12672         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
12673 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
12674         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12675 $as_echo_n "checking for GREP... " >&6; }
12676         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12677 $as_echo "disabled" >&6; }
12678       else
12679         # Check if the provided tool contains a complete path.
12680         tool_specified="$GREP"
12681         tool_basename="${tool_specified##*/}"
12682         if test "x$tool_basename" = "x$tool_specified"; then
12683           # A command without a complete path is provided, search $PATH.
12684           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
12685 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
12686           # Extract the first word of "$tool_basename", so it can be a program name with args.
12687 set dummy $tool_basename; ac_word=$2
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689 $as_echo_n "checking for $ac_word... " >&6; }
12690 if ${ac_cv_path_GREP+:} false; then :
12691   $as_echo_n "(cached) " >&6
12692 else
12693   case $GREP in
12694   [\\/]* | ?:[\\/]*)
12695   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12696   ;;
12697   *)
12698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699 for as_dir in $PATH
12700 do
12701   IFS=$as_save_IFS
12702   test -z "$as_dir" && as_dir=.
12703     for ac_exec_ext in '' $ac_executable_extensions; do
12704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12705     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12707     break 2
12708   fi
12709 done
12710   done
12711 IFS=$as_save_IFS
12712 
12713   ;;
12714 esac
12715 fi
12716 GREP=$ac_cv_path_GREP
12717 if test -n "$GREP"; then
12718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12719 $as_echo "$GREP" >&6; }
12720 else
12721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12723 fi
12724 
12725 
12726           if test "x$GREP" = x; then
12727             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12728           fi
12729         else
12730           # Otherwise we believe it is a complete path. Use it as it is.
12731           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
12732 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
12733           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12734 $as_echo_n "checking for GREP... " >&6; }
12735           if test ! -x "$tool_specified"; then
12736             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12737 $as_echo "not found" >&6; }
12738             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12739           fi
12740           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12741 $as_echo "$tool_specified" >&6; }
12742         fi
12743       fi
12744     fi
12745 
12746   fi
12747 
12748 
12749   if test "x$GREP" = x; then
12750     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
12751   fi
12752 
12753 
12754 
12755 
12756   # Publish this variable in the help.
12757 
12758 
12759   if [ -z "${EGREP+x}" ]; then
12760     # The variable is not set by user, try to locate tool using the code snippet
12761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12762 $as_echo_n "checking for egrep... " >&6; }
12763 if ${ac_cv_path_EGREP+:} false; then :
12764   $as_echo_n "(cached) " >&6
12765 else
12766   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12767    then ac_cv_path_EGREP="$GREP -E"
12768    else
12769      if test -z "$EGREP"; then
12770   ac_path_EGREP_found=false
12771   # Loop through the user's path and test for each of PROGNAME-LIST
12772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12774 do
12775   IFS=$as_save_IFS
12776   test -z "$as_dir" && as_dir=.
12777     for ac_prog in egrep; do
12778     for ac_exec_ext in '' $ac_executable_extensions; do
12779       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12780       as_fn_executable_p "$ac_path_EGREP" || continue
12781 # Check for GNU ac_path_EGREP and select it if it is found.
12782   # Check for GNU $ac_path_EGREP
12783 case `"$ac_path_EGREP" --version 2>&1` in
12784 *GNU*)
12785   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12786 *)
12787   ac_count=0
12788   $as_echo_n 0123456789 >"conftest.in"
12789   while :
12790   do
12791     cat "conftest.in" "conftest.in" >"conftest.tmp"
12792     mv "conftest.tmp" "conftest.in"
12793     cp "conftest.in" "conftest.nl"
12794     $as_echo 'EGREP' >> "conftest.nl"
12795     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12796     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12797     as_fn_arith $ac_count + 1 && ac_count=$as_val
12798     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12799       # Best one so far, save it but keep looking for a better one
12800       ac_cv_path_EGREP="$ac_path_EGREP"
12801       ac_path_EGREP_max=$ac_count
12802     fi
12803     # 10*(2^10) chars as input seems more than enough
12804     test $ac_count -gt 10 && break
12805   done
12806   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12807 esac
12808 
12809       $ac_path_EGREP_found && break 3
12810     done
12811   done
12812   done
12813 IFS=$as_save_IFS
12814   if test -z "$ac_cv_path_EGREP"; then
12815     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12816   fi
12817 else
12818   ac_cv_path_EGREP=$EGREP
12819 fi
12820 
12821    fi
12822 fi
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12824 $as_echo "$ac_cv_path_EGREP" >&6; }
12825  EGREP="$ac_cv_path_EGREP"
12826 
12827 
12828   else
12829     # The variable is set, but is it from the command line or the environment?
12830 
12831     # Try to remove the string !EGREP! from our list.
12832     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
12833     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12834       # If it failed, the variable was not from the command line. Ignore it,
12835       # but warn the user (except for BASH, which is always set by the calling BASH).
12836       if test "xEGREP" != xBASH; then
12837         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
12838 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
12839       fi
12840       # Try to locate tool using the code snippet
12841       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12842 $as_echo_n "checking for egrep... " >&6; }
12843 if ${ac_cv_path_EGREP+:} false; then :
12844   $as_echo_n "(cached) " >&6
12845 else
12846   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12847    then ac_cv_path_EGREP="$GREP -E"
12848    else
12849      if test -z "$EGREP"; then
12850   ac_path_EGREP_found=false
12851   # Loop through the user's path and test for each of PROGNAME-LIST
12852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12854 do
12855   IFS=$as_save_IFS
12856   test -z "$as_dir" && as_dir=.
12857     for ac_prog in egrep; do
12858     for ac_exec_ext in '' $ac_executable_extensions; do
12859       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12860       as_fn_executable_p "$ac_path_EGREP" || continue
12861 # Check for GNU ac_path_EGREP and select it if it is found.
12862   # Check for GNU $ac_path_EGREP
12863 case `"$ac_path_EGREP" --version 2>&1` in
12864 *GNU*)
12865   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12866 *)
12867   ac_count=0
12868   $as_echo_n 0123456789 >"conftest.in"
12869   while :
12870   do
12871     cat "conftest.in" "conftest.in" >"conftest.tmp"
12872     mv "conftest.tmp" "conftest.in"
12873     cp "conftest.in" "conftest.nl"
12874     $as_echo 'EGREP' >> "conftest.nl"
12875     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12876     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12877     as_fn_arith $ac_count + 1 && ac_count=$as_val
12878     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12879       # Best one so far, save it but keep looking for a better one
12880       ac_cv_path_EGREP="$ac_path_EGREP"
12881       ac_path_EGREP_max=$ac_count
12882     fi
12883     # 10*(2^10) chars as input seems more than enough
12884     test $ac_count -gt 10 && break
12885   done
12886   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12887 esac
12888 
12889       $ac_path_EGREP_found && break 3
12890     done
12891   done
12892   done
12893 IFS=$as_save_IFS
12894   if test -z "$ac_cv_path_EGREP"; then
12895     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12896   fi
12897 else
12898   ac_cv_path_EGREP=$EGREP
12899 fi
12900 
12901    fi
12902 fi
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12904 $as_echo "$ac_cv_path_EGREP" >&6; }
12905  EGREP="$ac_cv_path_EGREP"
12906 
12907 
12908     else
12909       # If it succeeded, then it was overridden by the user. We will use it
12910       # for the tool.
12911 
12912       # First remove it from the list of overridden variables, so we can test
12913       # for unknown variables in the end.
12914       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12915 
12916       # Check if we try to supply an empty value
12917       if test "x$EGREP" = x; then
12918         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
12919 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
12920         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12921 $as_echo_n "checking for EGREP... " >&6; }
12922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12923 $as_echo "disabled" >&6; }
12924       else
12925         # Check if the provided tool contains a complete path.
12926         tool_specified="$EGREP"
12927         tool_basename="${tool_specified##*/}"
12928         if test "x$tool_basename" = "x$tool_specified"; then
12929           # A command without a complete path is provided, search $PATH.
12930           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12931 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12932           # Extract the first word of "$tool_basename", so it can be a program name with args.
12933 set dummy $tool_basename; ac_word=$2
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12935 $as_echo_n "checking for $ac_word... " >&6; }
12936 if ${ac_cv_path_EGREP+:} false; then :
12937   $as_echo_n "(cached) " >&6
12938 else
12939   case $EGREP in
12940   [\\/]* | ?:[\\/]*)
12941   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12942   ;;
12943   *)
12944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12946 do
12947   IFS=$as_save_IFS
12948   test -z "$as_dir" && as_dir=.
12949     for ac_exec_ext in '' $ac_executable_extensions; do
12950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12951     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12953     break 2
12954   fi
12955 done
12956   done
12957 IFS=$as_save_IFS
12958 
12959   ;;
12960 esac
12961 fi
12962 EGREP=$ac_cv_path_EGREP
12963 if test -n "$EGREP"; then
12964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12965 $as_echo "$EGREP" >&6; }
12966 else
12967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12969 fi
12970 
12971 
12972           if test "x$EGREP" = x; then
12973             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12974           fi
12975         else
12976           # Otherwise we believe it is a complete path. Use it as it is.
12977           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12978 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12979           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12980 $as_echo_n "checking for EGREP... " >&6; }
12981           if test ! -x "$tool_specified"; then
12982             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12983 $as_echo "not found" >&6; }
12984             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12985           fi
12986           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12987 $as_echo "$tool_specified" >&6; }
12988         fi
12989       fi
12990     fi
12991 
12992   fi
12993 
12994 
12995   if test "x$EGREP" = x; then
12996     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12997   fi
12998 
12999 
13000 
13001 
13002   # Publish this variable in the help.
13003 
13004 
13005   if [ -z "${FGREP+x}" ]; then
13006     # The variable is not set by user, try to locate tool using the code snippet
13007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13008 $as_echo_n "checking for fgrep... " >&6; }
13009 if ${ac_cv_path_FGREP+:} false; then :
13010   $as_echo_n "(cached) " >&6
13011 else
13012   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13013    then ac_cv_path_FGREP="$GREP -F"
13014    else
13015      if test -z "$FGREP"; then
13016   ac_path_FGREP_found=false
13017   # Loop through the user's path and test for each of PROGNAME-LIST
13018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13020 do
13021   IFS=$as_save_IFS
13022   test -z "$as_dir" && as_dir=.
13023     for ac_prog in fgrep; do
13024     for ac_exec_ext in '' $ac_executable_extensions; do
13025       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13026       as_fn_executable_p "$ac_path_FGREP" || continue
13027 # Check for GNU ac_path_FGREP and select it if it is found.
13028   # Check for GNU $ac_path_FGREP
13029 case `"$ac_path_FGREP" --version 2>&1` in
13030 *GNU*)
13031   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13032 *)
13033   ac_count=0
13034   $as_echo_n 0123456789 >"conftest.in"
13035   while :
13036   do
13037     cat "conftest.in" "conftest.in" >"conftest.tmp"
13038     mv "conftest.tmp" "conftest.in"
13039     cp "conftest.in" "conftest.nl"
13040     $as_echo 'FGREP' >> "conftest.nl"
13041     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13042     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13043     as_fn_arith $ac_count + 1 && ac_count=$as_val
13044     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13045       # Best one so far, save it but keep looking for a better one
13046       ac_cv_path_FGREP="$ac_path_FGREP"
13047       ac_path_FGREP_max=$ac_count
13048     fi
13049     # 10*(2^10) chars as input seems more than enough
13050     test $ac_count -gt 10 && break
13051   done
13052   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13053 esac
13054 
13055       $ac_path_FGREP_found && break 3
13056     done
13057   done
13058   done
13059 IFS=$as_save_IFS
13060   if test -z "$ac_cv_path_FGREP"; then
13061     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13062   fi
13063 else
13064   ac_cv_path_FGREP=$FGREP
13065 fi
13066 
13067    fi
13068 fi
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13070 $as_echo "$ac_cv_path_FGREP" >&6; }
13071  FGREP="$ac_cv_path_FGREP"
13072 
13073 
13074   else
13075     # The variable is set, but is it from the command line or the environment?
13076 
13077     # Try to remove the string !FGREP! from our list.
13078     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13079     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13080       # If it failed, the variable was not from the command line. Ignore it,
13081       # but warn the user (except for BASH, which is always set by the calling BASH).
13082       if test "xFGREP" != xBASH; then
13083         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13084 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13085       fi
13086       # Try to locate tool using the code snippet
13087       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13088 $as_echo_n "checking for fgrep... " >&6; }
13089 if ${ac_cv_path_FGREP+:} false; then :
13090   $as_echo_n "(cached) " >&6
13091 else
13092   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13093    then ac_cv_path_FGREP="$GREP -F"
13094    else
13095      if test -z "$FGREP"; then
13096   ac_path_FGREP_found=false
13097   # Loop through the user's path and test for each of PROGNAME-LIST
13098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13100 do
13101   IFS=$as_save_IFS
13102   test -z "$as_dir" && as_dir=.
13103     for ac_prog in fgrep; do
13104     for ac_exec_ext in '' $ac_executable_extensions; do
13105       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13106       as_fn_executable_p "$ac_path_FGREP" || continue
13107 # Check for GNU ac_path_FGREP and select it if it is found.
13108   # Check for GNU $ac_path_FGREP
13109 case `"$ac_path_FGREP" --version 2>&1` in
13110 *GNU*)
13111   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13112 *)
13113   ac_count=0
13114   $as_echo_n 0123456789 >"conftest.in"
13115   while :
13116   do
13117     cat "conftest.in" "conftest.in" >"conftest.tmp"
13118     mv "conftest.tmp" "conftest.in"
13119     cp "conftest.in" "conftest.nl"
13120     $as_echo 'FGREP' >> "conftest.nl"
13121     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13122     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13123     as_fn_arith $ac_count + 1 && ac_count=$as_val
13124     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13125       # Best one so far, save it but keep looking for a better one
13126       ac_cv_path_FGREP="$ac_path_FGREP"
13127       ac_path_FGREP_max=$ac_count
13128     fi
13129     # 10*(2^10) chars as input seems more than enough
13130     test $ac_count -gt 10 && break
13131   done
13132   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13133 esac
13134 
13135       $ac_path_FGREP_found && break 3
13136     done
13137   done
13138   done
13139 IFS=$as_save_IFS
13140   if test -z "$ac_cv_path_FGREP"; then
13141     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13142   fi
13143 else
13144   ac_cv_path_FGREP=$FGREP
13145 fi
13146 
13147    fi
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13150 $as_echo "$ac_cv_path_FGREP" >&6; }
13151  FGREP="$ac_cv_path_FGREP"
13152 
13153 
13154     else
13155       # If it succeeded, then it was overridden by the user. We will use it
13156       # for the tool.
13157 
13158       # First remove it from the list of overridden variables, so we can test
13159       # for unknown variables in the end.
13160       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13161 
13162       # Check if we try to supply an empty value
13163       if test "x$FGREP" = x; then
13164         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13165 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13166         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13167 $as_echo_n "checking for FGREP... " >&6; }
13168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13169 $as_echo "disabled" >&6; }
13170       else
13171         # Check if the provided tool contains a complete path.
13172         tool_specified="$FGREP"
13173         tool_basename="${tool_specified##*/}"
13174         if test "x$tool_basename" = "x$tool_specified"; then
13175           # A command without a complete path is provided, search $PATH.
13176           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13177 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13178           # Extract the first word of "$tool_basename", so it can be a program name with args.
13179 set dummy $tool_basename; ac_word=$2
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13181 $as_echo_n "checking for $ac_word... " >&6; }
13182 if ${ac_cv_path_FGREP+:} false; then :
13183   $as_echo_n "(cached) " >&6
13184 else
13185   case $FGREP in
13186   [\\/]* | ?:[\\/]*)
13187   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13188   ;;
13189   *)
13190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191 for as_dir in $PATH
13192 do
13193   IFS=$as_save_IFS
13194   test -z "$as_dir" && as_dir=.
13195     for ac_exec_ext in '' $ac_executable_extensions; do
13196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13197     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13199     break 2
13200   fi
13201 done
13202   done
13203 IFS=$as_save_IFS
13204 
13205   ;;
13206 esac
13207 fi
13208 FGREP=$ac_cv_path_FGREP
13209 if test -n "$FGREP"; then
13210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
13211 $as_echo "$FGREP" >&6; }
13212 else
13213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13215 fi
13216 
13217 
13218           if test "x$FGREP" = x; then
13219             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13220           fi
13221         else
13222           # Otherwise we believe it is a complete path. Use it as it is.
13223           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
13224 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
13225           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13226 $as_echo_n "checking for FGREP... " >&6; }
13227           if test ! -x "$tool_specified"; then
13228             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13229 $as_echo "not found" >&6; }
13230             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13231           fi
13232           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13233 $as_echo "$tool_specified" >&6; }
13234         fi
13235       fi
13236     fi
13237 
13238   fi
13239 
13240 
13241   if test "x$FGREP" = x; then
13242     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
13243   fi
13244 
13245 
13246 
13247 
13248   # Publish this variable in the help.
13249 
13250 
13251   if [ -z "${SED+x}" ]; then
13252     # The variable is not set by user, try to locate tool using the code snippet
13253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13254 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13255 if ${ac_cv_path_SED+:} false; then :
13256   $as_echo_n "(cached) " >&6
13257 else
13258             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13259      for ac_i in 1 2 3 4 5 6 7; do
13260        ac_script="$ac_script$as_nl$ac_script"
13261      done
13262      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13263      { ac_script=; unset ac_script;}
13264      if test -z "$SED"; then
13265   ac_path_SED_found=false
13266   # Loop through the user's path and test for each of PROGNAME-LIST
13267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13269 do
13270   IFS=$as_save_IFS
13271   test -z "$as_dir" && as_dir=.
13272     for ac_prog in sed gsed; do
13273     for ac_exec_ext in '' $ac_executable_extensions; do
13274       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13275       as_fn_executable_p "$ac_path_SED" || continue
13276 # Check for GNU ac_path_SED and select it if it is found.
13277   # Check for GNU $ac_path_SED
13278 case `"$ac_path_SED" --version 2>&1` in
13279 *GNU*)
13280   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13281 *)
13282   ac_count=0
13283   $as_echo_n 0123456789 >"conftest.in"
13284   while :
13285   do
13286     cat "conftest.in" "conftest.in" >"conftest.tmp"
13287     mv "conftest.tmp" "conftest.in"
13288     cp "conftest.in" "conftest.nl"
13289     $as_echo '' >> "conftest.nl"
13290     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13291     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13292     as_fn_arith $ac_count + 1 && ac_count=$as_val
13293     if test $ac_count -gt ${ac_path_SED_max-0}; then
13294       # Best one so far, save it but keep looking for a better one
13295       ac_cv_path_SED="$ac_path_SED"
13296       ac_path_SED_max=$ac_count
13297     fi
13298     # 10*(2^10) chars as input seems more than enough
13299     test $ac_count -gt 10 && break
13300   done
13301   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13302 esac
13303 
13304       $ac_path_SED_found && break 3
13305     done
13306   done
13307   done
13308 IFS=$as_save_IFS
13309   if test -z "$ac_cv_path_SED"; then
13310     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13311   fi
13312 else
13313   ac_cv_path_SED=$SED
13314 fi
13315 
13316 fi
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13318 $as_echo "$ac_cv_path_SED" >&6; }
13319  SED="$ac_cv_path_SED"
13320   rm -f conftest.sed
13321 
13322   else
13323     # The variable is set, but is it from the command line or the environment?
13324 
13325     # Try to remove the string !SED! from our list.
13326     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
13327     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13328       # If it failed, the variable was not from the command line. Ignore it,
13329       # but warn the user (except for BASH, which is always set by the calling BASH).
13330       if test "xSED" != xBASH; then
13331         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
13332 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
13333       fi
13334       # Try to locate tool using the code snippet
13335       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13336 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13337 if ${ac_cv_path_SED+:} false; then :
13338   $as_echo_n "(cached) " >&6
13339 else
13340             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13341      for ac_i in 1 2 3 4 5 6 7; do
13342        ac_script="$ac_script$as_nl$ac_script"
13343      done
13344      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13345      { ac_script=; unset ac_script;}
13346      if test -z "$SED"; then
13347   ac_path_SED_found=false
13348   # Loop through the user's path and test for each of PROGNAME-LIST
13349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350 for as_dir in $PATH
13351 do
13352   IFS=$as_save_IFS
13353   test -z "$as_dir" && as_dir=.
13354     for ac_prog in sed gsed; do
13355     for ac_exec_ext in '' $ac_executable_extensions; do
13356       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13357       as_fn_executable_p "$ac_path_SED" || continue
13358 # Check for GNU ac_path_SED and select it if it is found.
13359   # Check for GNU $ac_path_SED
13360 case `"$ac_path_SED" --version 2>&1` in
13361 *GNU*)
13362   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13363 *)
13364   ac_count=0
13365   $as_echo_n 0123456789 >"conftest.in"
13366   while :
13367   do
13368     cat "conftest.in" "conftest.in" >"conftest.tmp"
13369     mv "conftest.tmp" "conftest.in"
13370     cp "conftest.in" "conftest.nl"
13371     $as_echo '' >> "conftest.nl"
13372     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13373     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13374     as_fn_arith $ac_count + 1 && ac_count=$as_val
13375     if test $ac_count -gt ${ac_path_SED_max-0}; then
13376       # Best one so far, save it but keep looking for a better one
13377       ac_cv_path_SED="$ac_path_SED"
13378       ac_path_SED_max=$ac_count
13379     fi
13380     # 10*(2^10) chars as input seems more than enough
13381     test $ac_count -gt 10 && break
13382   done
13383   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13384 esac
13385 
13386       $ac_path_SED_found && break 3
13387     done
13388   done
13389   done
13390 IFS=$as_save_IFS
13391   if test -z "$ac_cv_path_SED"; then
13392     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13393   fi
13394 else
13395   ac_cv_path_SED=$SED
13396 fi
13397 
13398 fi
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13400 $as_echo "$ac_cv_path_SED" >&6; }
13401  SED="$ac_cv_path_SED"
13402   rm -f conftest.sed
13403 
13404     else
13405       # If it succeeded, then it was overridden by the user. We will use it
13406       # for the tool.
13407 
13408       # First remove it from the list of overridden variables, so we can test
13409       # for unknown variables in the end.
13410       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13411 
13412       # Check if we try to supply an empty value
13413       if test "x$SED" = x; then
13414         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
13415 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
13416         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13417 $as_echo_n "checking for SED... " >&6; }
13418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13419 $as_echo "disabled" >&6; }
13420       else
13421         # Check if the provided tool contains a complete path.
13422         tool_specified="$SED"
13423         tool_basename="${tool_specified##*/}"
13424         if test "x$tool_basename" = "x$tool_specified"; then
13425           # A command without a complete path is provided, search $PATH.
13426           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
13427 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
13428           # Extract the first word of "$tool_basename", so it can be a program name with args.
13429 set dummy $tool_basename; ac_word=$2
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13431 $as_echo_n "checking for $ac_word... " >&6; }
13432 if ${ac_cv_path_SED+:} false; then :
13433   $as_echo_n "(cached) " >&6
13434 else
13435   case $SED in
13436   [\\/]* | ?:[\\/]*)
13437   ac_cv_path_SED="$SED" # Let the user override the test with a path.
13438   ;;
13439   *)
13440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13441 for as_dir in $PATH
13442 do
13443   IFS=$as_save_IFS
13444   test -z "$as_dir" && as_dir=.
13445     for ac_exec_ext in '' $ac_executable_extensions; do
13446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13447     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13449     break 2
13450   fi
13451 done
13452   done
13453 IFS=$as_save_IFS
13454 
13455   ;;
13456 esac
13457 fi
13458 SED=$ac_cv_path_SED
13459 if test -n "$SED"; then
13460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13461 $as_echo "$SED" >&6; }
13462 else
13463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13465 fi
13466 
13467 
13468           if test "x$SED" = x; then
13469             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13470           fi
13471         else
13472           # Otherwise we believe it is a complete path. Use it as it is.
13473           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
13474 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
13475           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13476 $as_echo_n "checking for SED... " >&6; }
13477           if test ! -x "$tool_specified"; then
13478             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13479 $as_echo "not found" >&6; }
13480             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
13481           fi
13482           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13483 $as_echo "$tool_specified" >&6; }
13484         fi
13485       fi
13486     fi
13487 
13488   fi
13489 
13490 
13491   if test "x$SED" = x; then
13492     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
13493   fi
13494 
13495 
13496 
13497   # Always force rm.
13498   RM="$RM -f"
13499 
13500   # pwd behaves differently on various platforms and some don't support the -L flag.
13501   # Always use the bash builtin pwd to get uniform behavior.
13502   THEPWDCMD=pwd
13503 
13504   # These are not required on all platforms
13505 
13506 
13507   # Publish this variable in the help.
13508 
13509 
13510   if [ -z "${CYGPATH+x}" ]; then
13511     # The variable is not set by user, try to locate tool using the code snippet
13512     for ac_prog in cygpath
13513 do
13514   # Extract the first word of "$ac_prog", so it can be a program name with args.
13515 set dummy $ac_prog; ac_word=$2
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13517 $as_echo_n "checking for $ac_word... " >&6; }
13518 if ${ac_cv_path_CYGPATH+:} false; then :
13519   $as_echo_n "(cached) " >&6
13520 else
13521   case $CYGPATH in
13522   [\\/]* | ?:[\\/]*)
13523   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13524   ;;
13525   *)
13526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527 for as_dir in $PATH
13528 do
13529   IFS=$as_save_IFS
13530   test -z "$as_dir" && as_dir=.
13531     for ac_exec_ext in '' $ac_executable_extensions; do
13532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13533     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13535     break 2
13536   fi
13537 done
13538   done
13539 IFS=$as_save_IFS
13540 
13541   ;;
13542 esac
13543 fi
13544 CYGPATH=$ac_cv_path_CYGPATH
13545 if test -n "$CYGPATH"; then
13546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13547 $as_echo "$CYGPATH" >&6; }
13548 else
13549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550 $as_echo "no" >&6; }
13551 fi
13552 
13553 
13554   test -n "$CYGPATH" && break
13555 done
13556 
13557   else
13558     # The variable is set, but is it from the command line or the environment?
13559 
13560     # Try to remove the string !CYGPATH! from our list.
13561     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
13562     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13563       # If it failed, the variable was not from the command line. Ignore it,
13564       # but warn the user (except for BASH, which is always set by the calling BASH).
13565       if test "xCYGPATH" != xBASH; then
13566         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
13567 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
13568       fi
13569       # Try to locate tool using the code snippet
13570       for ac_prog in cygpath
13571 do
13572   # Extract the first word of "$ac_prog", so it can be a program name with args.
13573 set dummy $ac_prog; ac_word=$2
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13575 $as_echo_n "checking for $ac_word... " >&6; }
13576 if ${ac_cv_path_CYGPATH+:} false; then :
13577   $as_echo_n "(cached) " >&6
13578 else
13579   case $CYGPATH in
13580   [\\/]* | ?:[\\/]*)
13581   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13582   ;;
13583   *)
13584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585 for as_dir in $PATH
13586 do
13587   IFS=$as_save_IFS
13588   test -z "$as_dir" && as_dir=.
13589     for ac_exec_ext in '' $ac_executable_extensions; do
13590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13591     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13593     break 2
13594   fi
13595 done
13596   done
13597 IFS=$as_save_IFS
13598 
13599   ;;
13600 esac
13601 fi
13602 CYGPATH=$ac_cv_path_CYGPATH
13603 if test -n "$CYGPATH"; then
13604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13605 $as_echo "$CYGPATH" >&6; }
13606 else
13607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608 $as_echo "no" >&6; }
13609 fi
13610 
13611 
13612   test -n "$CYGPATH" && break
13613 done
13614 
13615     else
13616       # If it succeeded, then it was overridden by the user. We will use it
13617       # for the tool.
13618 
13619       # First remove it from the list of overridden variables, so we can test
13620       # for unknown variables in the end.
13621       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13622 
13623       # Check if we try to supply an empty value
13624       if test "x$CYGPATH" = x; then
13625         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
13626 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
13627         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13628 $as_echo_n "checking for CYGPATH... " >&6; }
13629         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13630 $as_echo "disabled" >&6; }
13631       else
13632         # Check if the provided tool contains a complete path.
13633         tool_specified="$CYGPATH"
13634         tool_basename="${tool_specified##*/}"
13635         if test "x$tool_basename" = "x$tool_specified"; then
13636           # A command without a complete path is provided, search $PATH.
13637           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
13638 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
13639           # Extract the first word of "$tool_basename", so it can be a program name with args.
13640 set dummy $tool_basename; ac_word=$2
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13642 $as_echo_n "checking for $ac_word... " >&6; }
13643 if ${ac_cv_path_CYGPATH+:} false; then :
13644   $as_echo_n "(cached) " >&6
13645 else
13646   case $CYGPATH in
13647   [\\/]* | ?:[\\/]*)
13648   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13649   ;;
13650   *)
13651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13653 do
13654   IFS=$as_save_IFS
13655   test -z "$as_dir" && as_dir=.
13656     for ac_exec_ext in '' $ac_executable_extensions; do
13657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13658     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13660     break 2
13661   fi
13662 done
13663   done
13664 IFS=$as_save_IFS
13665 
13666   ;;
13667 esac
13668 fi
13669 CYGPATH=$ac_cv_path_CYGPATH
13670 if test -n "$CYGPATH"; then
13671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13672 $as_echo "$CYGPATH" >&6; }
13673 else
13674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13676 fi
13677 
13678 
13679           if test "x$CYGPATH" = x; then
13680             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13681           fi
13682         else
13683           # Otherwise we believe it is a complete path. Use it as it is.
13684           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
13685 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
13686           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13687 $as_echo_n "checking for CYGPATH... " >&6; }
13688           if test ! -x "$tool_specified"; then
13689             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13690 $as_echo "not found" >&6; }
13691             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
13692           fi
13693           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13694 $as_echo "$tool_specified" >&6; }
13695         fi
13696       fi
13697     fi
13698 
13699   fi
13700 
13701 
13702 
13703 
13704   # Publish this variable in the help.
13705 
13706 
13707   if [ -z "${READLINK+x}" ]; then
13708     # The variable is not set by user, try to locate tool using the code snippet
13709     for ac_prog in greadlink readlink
13710 do
13711   # Extract the first word of "$ac_prog", so it can be a program name with args.
13712 set dummy $ac_prog; ac_word=$2
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13714 $as_echo_n "checking for $ac_word... " >&6; }
13715 if ${ac_cv_path_READLINK+:} false; then :
13716   $as_echo_n "(cached) " >&6
13717 else
13718   case $READLINK in
13719   [\\/]* | ?:[\\/]*)
13720   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13721   ;;
13722   *)
13723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724 for as_dir in $PATH
13725 do
13726   IFS=$as_save_IFS
13727   test -z "$as_dir" && as_dir=.
13728     for ac_exec_ext in '' $ac_executable_extensions; do
13729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13730     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13732     break 2
13733   fi
13734 done
13735   done
13736 IFS=$as_save_IFS
13737 
13738   ;;
13739 esac
13740 fi
13741 READLINK=$ac_cv_path_READLINK
13742 if test -n "$READLINK"; then
13743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13744 $as_echo "$READLINK" >&6; }
13745 else
13746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13747 $as_echo "no" >&6; }
13748 fi
13749 
13750 
13751   test -n "$READLINK" && break
13752 done
13753 
13754   else
13755     # The variable is set, but is it from the command line or the environment?
13756 
13757     # Try to remove the string !READLINK! from our list.
13758     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
13759     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13760       # If it failed, the variable was not from the command line. Ignore it,
13761       # but warn the user (except for BASH, which is always set by the calling BASH).
13762       if test "xREADLINK" != xBASH; then
13763         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
13764 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
13765       fi
13766       # Try to locate tool using the code snippet
13767       for ac_prog in greadlink readlink
13768 do
13769   # Extract the first word of "$ac_prog", so it can be a program name with args.
13770 set dummy $ac_prog; ac_word=$2
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13772 $as_echo_n "checking for $ac_word... " >&6; }
13773 if ${ac_cv_path_READLINK+:} false; then :
13774   $as_echo_n "(cached) " >&6
13775 else
13776   case $READLINK in
13777   [\\/]* | ?:[\\/]*)
13778   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13779   ;;
13780   *)
13781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13782 for as_dir in $PATH
13783 do
13784   IFS=$as_save_IFS
13785   test -z "$as_dir" && as_dir=.
13786     for ac_exec_ext in '' $ac_executable_extensions; do
13787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13788     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13790     break 2
13791   fi
13792 done
13793   done
13794 IFS=$as_save_IFS
13795 
13796   ;;
13797 esac
13798 fi
13799 READLINK=$ac_cv_path_READLINK
13800 if test -n "$READLINK"; then
13801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13802 $as_echo "$READLINK" >&6; }
13803 else
13804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805 $as_echo "no" >&6; }
13806 fi
13807 
13808 
13809   test -n "$READLINK" && break
13810 done
13811 
13812     else
13813       # If it succeeded, then it was overridden by the user. We will use it
13814       # for the tool.
13815 
13816       # First remove it from the list of overridden variables, so we can test
13817       # for unknown variables in the end.
13818       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13819 
13820       # Check if we try to supply an empty value
13821       if test "x$READLINK" = x; then
13822         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
13823 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
13824         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13825 $as_echo_n "checking for READLINK... " >&6; }
13826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13827 $as_echo "disabled" >&6; }
13828       else
13829         # Check if the provided tool contains a complete path.
13830         tool_specified="$READLINK"
13831         tool_basename="${tool_specified##*/}"
13832         if test "x$tool_basename" = "x$tool_specified"; then
13833           # A command without a complete path is provided, search $PATH.
13834           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
13835 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
13836           # Extract the first word of "$tool_basename", so it can be a program name with args.
13837 set dummy $tool_basename; ac_word=$2
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13839 $as_echo_n "checking for $ac_word... " >&6; }
13840 if ${ac_cv_path_READLINK+:} false; then :
13841   $as_echo_n "(cached) " >&6
13842 else
13843   case $READLINK in
13844   [\\/]* | ?:[\\/]*)
13845   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13846   ;;
13847   *)
13848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849 for as_dir in $PATH
13850 do
13851   IFS=$as_save_IFS
13852   test -z "$as_dir" && as_dir=.
13853     for ac_exec_ext in '' $ac_executable_extensions; do
13854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13855     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13857     break 2
13858   fi
13859 done
13860   done
13861 IFS=$as_save_IFS
13862 
13863   ;;
13864 esac
13865 fi
13866 READLINK=$ac_cv_path_READLINK
13867 if test -n "$READLINK"; then
13868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13869 $as_echo "$READLINK" >&6; }
13870 else
13871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872 $as_echo "no" >&6; }
13873 fi
13874 
13875 
13876           if test "x$READLINK" = x; then
13877             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13878           fi
13879         else
13880           # Otherwise we believe it is a complete path. Use it as it is.
13881           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
13882 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
13883           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13884 $as_echo_n "checking for READLINK... " >&6; }
13885           if test ! -x "$tool_specified"; then
13886             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13887 $as_echo "not found" >&6; }
13888             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
13889           fi
13890           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13891 $as_echo "$tool_specified" >&6; }
13892         fi
13893       fi
13894     fi
13895 
13896   fi
13897 
13898 
13899 
13900 
13901   # Publish this variable in the help.
13902 
13903 
13904   if [ -z "${DF+x}" ]; then
13905     # The variable is not set by user, try to locate tool using the code snippet
13906     for ac_prog in df
13907 do
13908   # Extract the first word of "$ac_prog", so it can be a program name with args.
13909 set dummy $ac_prog; ac_word=$2
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13911 $as_echo_n "checking for $ac_word... " >&6; }
13912 if ${ac_cv_path_DF+:} false; then :
13913   $as_echo_n "(cached) " >&6
13914 else
13915   case $DF in
13916   [\\/]* | ?:[\\/]*)
13917   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13918   ;;
13919   *)
13920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921 for as_dir in $PATH
13922 do
13923   IFS=$as_save_IFS
13924   test -z "$as_dir" && as_dir=.
13925     for ac_exec_ext in '' $ac_executable_extensions; do
13926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13927     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13929     break 2
13930   fi
13931 done
13932   done
13933 IFS=$as_save_IFS
13934 
13935   ;;
13936 esac
13937 fi
13938 DF=$ac_cv_path_DF
13939 if test -n "$DF"; then
13940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13941 $as_echo "$DF" >&6; }
13942 else
13943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944 $as_echo "no" >&6; }
13945 fi
13946 
13947 
13948   test -n "$DF" && break
13949 done
13950 
13951   else
13952     # The variable is set, but is it from the command line or the environment?
13953 
13954     # Try to remove the string !DF! from our list.
13955     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
13956     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13957       # If it failed, the variable was not from the command line. Ignore it,
13958       # but warn the user (except for BASH, which is always set by the calling BASH).
13959       if test "xDF" != xBASH; then
13960         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13961 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13962       fi
13963       # Try to locate tool using the code snippet
13964       for ac_prog in df
13965 do
13966   # Extract the first word of "$ac_prog", so it can be a program name with args.
13967 set dummy $ac_prog; ac_word=$2
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13969 $as_echo_n "checking for $ac_word... " >&6; }
13970 if ${ac_cv_path_DF+:} false; then :
13971   $as_echo_n "(cached) " >&6
13972 else
13973   case $DF in
13974   [\\/]* | ?:[\\/]*)
13975   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13976   ;;
13977   *)
13978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13979 for as_dir in $PATH
13980 do
13981   IFS=$as_save_IFS
13982   test -z "$as_dir" && as_dir=.
13983     for ac_exec_ext in '' $ac_executable_extensions; do
13984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13985     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13987     break 2
13988   fi
13989 done
13990   done
13991 IFS=$as_save_IFS
13992 
13993   ;;
13994 esac
13995 fi
13996 DF=$ac_cv_path_DF
13997 if test -n "$DF"; then
13998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13999 $as_echo "$DF" >&6; }
14000 else
14001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002 $as_echo "no" >&6; }
14003 fi
14004 
14005 
14006   test -n "$DF" && break
14007 done
14008 
14009     else
14010       # If it succeeded, then it was overridden by the user. We will use it
14011       # for the tool.
14012 
14013       # First remove it from the list of overridden variables, so we can test
14014       # for unknown variables in the end.
14015       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14016 
14017       # Check if we try to supply an empty value
14018       if test "x$DF" = x; then
14019         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14020 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14022 $as_echo_n "checking for DF... " >&6; }
14023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14024 $as_echo "disabled" >&6; }
14025       else
14026         # Check if the provided tool contains a complete path.
14027         tool_specified="$DF"
14028         tool_basename="${tool_specified##*/}"
14029         if test "x$tool_basename" = "x$tool_specified"; then
14030           # A command without a complete path is provided, search $PATH.
14031           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14032 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14033           # Extract the first word of "$tool_basename", so it can be a program name with args.
14034 set dummy $tool_basename; ac_word=$2
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14036 $as_echo_n "checking for $ac_word... " >&6; }
14037 if ${ac_cv_path_DF+:} false; then :
14038   $as_echo_n "(cached) " >&6
14039 else
14040   case $DF in
14041   [\\/]* | ?:[\\/]*)
14042   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14043   ;;
14044   *)
14045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046 for as_dir in $PATH
14047 do
14048   IFS=$as_save_IFS
14049   test -z "$as_dir" && as_dir=.
14050     for ac_exec_ext in '' $ac_executable_extensions; do
14051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14052     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14054     break 2
14055   fi
14056 done
14057   done
14058 IFS=$as_save_IFS
14059 
14060   ;;
14061 esac
14062 fi
14063 DF=$ac_cv_path_DF
14064 if test -n "$DF"; then
14065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14066 $as_echo "$DF" >&6; }
14067 else
14068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 $as_echo "no" >&6; }
14070 fi
14071 
14072 
14073           if test "x$DF" = x; then
14074             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14075           fi
14076         else
14077           # Otherwise we believe it is a complete path. Use it as it is.
14078           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14079 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14080           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14081 $as_echo_n "checking for DF... " >&6; }
14082           if test ! -x "$tool_specified"; then
14083             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14084 $as_echo "not found" >&6; }
14085             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14086           fi
14087           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14088 $as_echo "$tool_specified" >&6; }
14089         fi
14090       fi
14091     fi
14092 
14093   fi
14094 
14095 
14096 
14097 
14098   # Publish this variable in the help.
14099 
14100 
14101   if [ -z "${CPIO+x}" ]; then
14102     # The variable is not set by user, try to locate tool using the code snippet
14103     for ac_prog in cpio bsdcpio
14104 do
14105   # Extract the first word of "$ac_prog", so it can be a program name with args.
14106 set dummy $ac_prog; ac_word=$2
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14108 $as_echo_n "checking for $ac_word... " >&6; }
14109 if ${ac_cv_path_CPIO+:} false; then :
14110   $as_echo_n "(cached) " >&6
14111 else
14112   case $CPIO in
14113   [\\/]* | ?:[\\/]*)
14114   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14115   ;;
14116   *)
14117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118 for as_dir in $PATH
14119 do
14120   IFS=$as_save_IFS
14121   test -z "$as_dir" && as_dir=.
14122     for ac_exec_ext in '' $ac_executable_extensions; do
14123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14124     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14126     break 2
14127   fi
14128 done
14129   done
14130 IFS=$as_save_IFS
14131 
14132   ;;
14133 esac
14134 fi
14135 CPIO=$ac_cv_path_CPIO
14136 if test -n "$CPIO"; then
14137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14138 $as_echo "$CPIO" >&6; }
14139 else
14140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14141 $as_echo "no" >&6; }
14142 fi
14143 
14144 
14145   test -n "$CPIO" && break
14146 done
14147 
14148   else
14149     # The variable is set, but is it from the command line or the environment?
14150 
14151     # Try to remove the string !CPIO! from our list.
14152     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14153     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14154       # If it failed, the variable was not from the command line. Ignore it,
14155       # but warn the user (except for BASH, which is always set by the calling BASH).
14156       if test "xCPIO" != xBASH; then
14157         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14158 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14159       fi
14160       # Try to locate tool using the code snippet
14161       for ac_prog in cpio bsdcpio
14162 do
14163   # Extract the first word of "$ac_prog", so it can be a program name with args.
14164 set dummy $ac_prog; ac_word=$2
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14166 $as_echo_n "checking for $ac_word... " >&6; }
14167 if ${ac_cv_path_CPIO+:} false; then :
14168   $as_echo_n "(cached) " >&6
14169 else
14170   case $CPIO in
14171   [\\/]* | ?:[\\/]*)
14172   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14173   ;;
14174   *)
14175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14177 do
14178   IFS=$as_save_IFS
14179   test -z "$as_dir" && as_dir=.
14180     for ac_exec_ext in '' $ac_executable_extensions; do
14181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14182     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14184     break 2
14185   fi
14186 done
14187   done
14188 IFS=$as_save_IFS
14189 
14190   ;;
14191 esac
14192 fi
14193 CPIO=$ac_cv_path_CPIO
14194 if test -n "$CPIO"; then
14195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14196 $as_echo "$CPIO" >&6; }
14197 else
14198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14200 fi
14201 
14202 
14203   test -n "$CPIO" && break
14204 done
14205 
14206     else
14207       # If it succeeded, then it was overridden by the user. We will use it
14208       # for the tool.
14209 
14210       # First remove it from the list of overridden variables, so we can test
14211       # for unknown variables in the end.
14212       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14213 
14214       # Check if we try to supply an empty value
14215       if test "x$CPIO" = x; then
14216         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
14217 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
14218         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14219 $as_echo_n "checking for CPIO... " >&6; }
14220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14221 $as_echo "disabled" >&6; }
14222       else
14223         # Check if the provided tool contains a complete path.
14224         tool_specified="$CPIO"
14225         tool_basename="${tool_specified##*/}"
14226         if test "x$tool_basename" = "x$tool_specified"; then
14227           # A command without a complete path is provided, search $PATH.
14228           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
14229 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
14230           # Extract the first word of "$tool_basename", so it can be a program name with args.
14231 set dummy $tool_basename; ac_word=$2
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14233 $as_echo_n "checking for $ac_word... " >&6; }
14234 if ${ac_cv_path_CPIO+:} false; then :
14235   $as_echo_n "(cached) " >&6
14236 else
14237   case $CPIO in
14238   [\\/]* | ?:[\\/]*)
14239   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14240   ;;
14241   *)
14242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14243 for as_dir in $PATH
14244 do
14245   IFS=$as_save_IFS
14246   test -z "$as_dir" && as_dir=.
14247     for ac_exec_ext in '' $ac_executable_extensions; do
14248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14249     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14251     break 2
14252   fi
14253 done
14254   done
14255 IFS=$as_save_IFS
14256 
14257   ;;
14258 esac
14259 fi
14260 CPIO=$ac_cv_path_CPIO
14261 if test -n "$CPIO"; then
14262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14263 $as_echo "$CPIO" >&6; }
14264 else
14265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266 $as_echo "no" >&6; }
14267 fi
14268 
14269 
14270           if test "x$CPIO" = x; then
14271             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14272           fi
14273         else
14274           # Otherwise we believe it is a complete path. Use it as it is.
14275           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
14276 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
14277           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14278 $as_echo_n "checking for CPIO... " >&6; }
14279           if test ! -x "$tool_specified"; then
14280             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14281 $as_echo "not found" >&6; }
14282             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
14283           fi
14284           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14285 $as_echo "$tool_specified" >&6; }
14286         fi
14287       fi
14288     fi
14289 
14290   fi
14291 
14292 
14293 
14294 
14295   # Publish this variable in the help.
14296 
14297 
14298   if [ -z "${NICE+x}" ]; then
14299     # The variable is not set by user, try to locate tool using the code snippet
14300     for ac_prog in nice
14301 do
14302   # Extract the first word of "$ac_prog", so it can be a program name with args.
14303 set dummy $ac_prog; ac_word=$2
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14305 $as_echo_n "checking for $ac_word... " >&6; }
14306 if ${ac_cv_path_NICE+:} false; then :
14307   $as_echo_n "(cached) " >&6
14308 else
14309   case $NICE in
14310   [\\/]* | ?:[\\/]*)
14311   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14312   ;;
14313   *)
14314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315 for as_dir in $PATH
14316 do
14317   IFS=$as_save_IFS
14318   test -z "$as_dir" && as_dir=.
14319     for ac_exec_ext in '' $ac_executable_extensions; do
14320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14321     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14323     break 2
14324   fi
14325 done
14326   done
14327 IFS=$as_save_IFS
14328 
14329   ;;
14330 esac
14331 fi
14332 NICE=$ac_cv_path_NICE
14333 if test -n "$NICE"; then
14334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14335 $as_echo "$NICE" >&6; }
14336 else
14337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338 $as_echo "no" >&6; }
14339 fi
14340 
14341 
14342   test -n "$NICE" && break
14343 done
14344 
14345   else
14346     # The variable is set, but is it from the command line or the environment?
14347 
14348     # Try to remove the string !NICE! from our list.
14349     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
14350     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14351       # If it failed, the variable was not from the command line. Ignore it,
14352       # but warn the user (except for BASH, which is always set by the calling BASH).
14353       if test "xNICE" != xBASH; then
14354         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
14355 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
14356       fi
14357       # Try to locate tool using the code snippet
14358       for ac_prog in nice
14359 do
14360   # Extract the first word of "$ac_prog", so it can be a program name with args.
14361 set dummy $ac_prog; ac_word=$2
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14363 $as_echo_n "checking for $ac_word... " >&6; }
14364 if ${ac_cv_path_NICE+:} false; then :
14365   $as_echo_n "(cached) " >&6
14366 else
14367   case $NICE in
14368   [\\/]* | ?:[\\/]*)
14369   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14370   ;;
14371   *)
14372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14373 for as_dir in $PATH
14374 do
14375   IFS=$as_save_IFS
14376   test -z "$as_dir" && as_dir=.
14377     for ac_exec_ext in '' $ac_executable_extensions; do
14378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14379     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14381     break 2
14382   fi
14383 done
14384   done
14385 IFS=$as_save_IFS
14386 
14387   ;;
14388 esac
14389 fi
14390 NICE=$ac_cv_path_NICE
14391 if test -n "$NICE"; then
14392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14393 $as_echo "$NICE" >&6; }
14394 else
14395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14396 $as_echo "no" >&6; }
14397 fi
14398 
14399 
14400   test -n "$NICE" && break
14401 done
14402 
14403     else
14404       # If it succeeded, then it was overridden by the user. We will use it
14405       # for the tool.
14406 
14407       # First remove it from the list of overridden variables, so we can test
14408       # for unknown variables in the end.
14409       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14410 
14411       # Check if we try to supply an empty value
14412       if test "x$NICE" = x; then
14413         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
14414 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
14415         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14416 $as_echo_n "checking for NICE... " >&6; }
14417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14418 $as_echo "disabled" >&6; }
14419       else
14420         # Check if the provided tool contains a complete path.
14421         tool_specified="$NICE"
14422         tool_basename="${tool_specified##*/}"
14423         if test "x$tool_basename" = "x$tool_specified"; then
14424           # A command without a complete path is provided, search $PATH.
14425           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
14426 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
14427           # Extract the first word of "$tool_basename", so it can be a program name with args.
14428 set dummy $tool_basename; ac_word=$2
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14430 $as_echo_n "checking for $ac_word... " >&6; }
14431 if ${ac_cv_path_NICE+:} false; then :
14432   $as_echo_n "(cached) " >&6
14433 else
14434   case $NICE in
14435   [\\/]* | ?:[\\/]*)
14436   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14437   ;;
14438   *)
14439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14440 for as_dir in $PATH
14441 do
14442   IFS=$as_save_IFS
14443   test -z "$as_dir" && as_dir=.
14444     for ac_exec_ext in '' $ac_executable_extensions; do
14445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14446     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14448     break 2
14449   fi
14450 done
14451   done
14452 IFS=$as_save_IFS
14453 
14454   ;;
14455 esac
14456 fi
14457 NICE=$ac_cv_path_NICE
14458 if test -n "$NICE"; then
14459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14460 $as_echo "$NICE" >&6; }
14461 else
14462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14463 $as_echo "no" >&6; }
14464 fi
14465 
14466 
14467           if test "x$NICE" = x; then
14468             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14469           fi
14470         else
14471           # Otherwise we believe it is a complete path. Use it as it is.
14472           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
14473 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
14474           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14475 $as_echo_n "checking for NICE... " >&6; }
14476           if test ! -x "$tool_specified"; then
14477             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14478 $as_echo "not found" >&6; }
14479             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
14480           fi
14481           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14482 $as_echo "$tool_specified" >&6; }
14483         fi
14484       fi
14485     fi
14486 
14487   fi
14488 
14489 
14490 
14491 
14492 # Now we can determine OpenJDK build and target platforms. This is required to
14493 # have early on.
14494 # Make sure we can run config.sub.
14495 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
14496   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
14497 
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
14499 $as_echo_n "checking build system type... " >&6; }
14500 if ${ac_cv_build+:} false; then :
14501   $as_echo_n "(cached) " >&6
14502 else
14503   ac_build_alias=$build_alias
14504 test "x$ac_build_alias" = x &&
14505   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
14506 test "x$ac_build_alias" = x &&
14507   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
14508 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
14509   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
14510 
14511 fi
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
14513 $as_echo "$ac_cv_build" >&6; }
14514 case $ac_cv_build in
14515 *-*-*) ;;
14516 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
14517 esac
14518 build=$ac_cv_build
14519 ac_save_IFS=$IFS; IFS='-'
14520 set x $ac_cv_build
14521 shift
14522 build_cpu=$1
14523 build_vendor=$2
14524 shift; shift
14525 # Remember, the first character of IFS is used to create $*,
14526 # except with old shells:
14527 build_os=$*
14528 IFS=$ac_save_IFS
14529 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
14530 
14531 
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
14533 $as_echo_n "checking host system type... " >&6; }
14534 if ${ac_cv_host+:} false; then :
14535   $as_echo_n "(cached) " >&6
14536 else
14537   if test "x$host_alias" = x; then
14538   ac_cv_host=$ac_cv_build
14539 else
14540   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
14541     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
14542 fi
14543 
14544 fi
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
14546 $as_echo "$ac_cv_host" >&6; }
14547 case $ac_cv_host in
14548 *-*-*) ;;
14549 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
14550 esac
14551 host=$ac_cv_host
14552 ac_save_IFS=$IFS; IFS='-'
14553 set x $ac_cv_host
14554 shift
14555 host_cpu=$1
14556 host_vendor=$2
14557 shift; shift
14558 # Remember, the first character of IFS is used to create $*,
14559 # except with old shells:
14560 host_os=$*
14561 IFS=$ac_save_IFS
14562 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
14563 
14564 
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
14566 $as_echo_n "checking target system type... " >&6; }
14567 if ${ac_cv_target+:} false; then :
14568   $as_echo_n "(cached) " >&6
14569 else
14570   if test "x$target_alias" = x; then
14571   ac_cv_target=$ac_cv_host
14572 else
14573   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
14574     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
14575 fi
14576 
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
14579 $as_echo "$ac_cv_target" >&6; }
14580 case $ac_cv_target in
14581 *-*-*) ;;
14582 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
14583 esac
14584 target=$ac_cv_target
14585 ac_save_IFS=$IFS; IFS='-'
14586 set x $ac_cv_target
14587 shift
14588 target_cpu=$1
14589 target_vendor=$2
14590 shift; shift
14591 # Remember, the first character of IFS is used to create $*,
14592 # except with old shells:
14593 target_os=$*
14594 IFS=$ac_save_IFS
14595 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
14596 
14597 
14598 # The aliases save the names the user supplied, while $host etc.
14599 # will get canonicalized.
14600 test -n "$target_alias" &&
14601   test "$program_prefix$program_suffix$program_transform_name" = \
14602     NONENONEs,x,x, &&
14603   program_prefix=${target_alias}-
14604 
14605   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
14606   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
14607   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
14608   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
14609   # to use the configure naming style.
14610 
14611 
14612 
14613 
14614 
14615   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
14616   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
14617   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
14618   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
14619   OPENJDK_TARGET_AUTOCONF_NAME="$host"
14620   OPENJDK_BUILD_AUTOCONF_NAME="$build"
14621 
14622 
14623 
14624   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14625 
14626   case "$build_os" in
14627     *linux*)
14628       VAR_OS=linux
14629       VAR_OS_TYPE=unix
14630       ;;
14631     *solaris*)
14632       VAR_OS=solaris
14633       VAR_OS_TYPE=unix
14634       ;;
14635     *darwin*)
14636       VAR_OS=macosx
14637       VAR_OS_TYPE=unix
14638       ;;
14639     *bsd*)
14640       VAR_OS=bsd
14641       VAR_OS_TYPE=unix
14642       ;;
14643     *cygwin*)
14644       VAR_OS=windows
14645       VAR_OS_ENV=windows.cygwin
14646       ;;
14647     *mingw*)
14648       VAR_OS=windows
14649       VAR_OS_ENV=windows.msys
14650       ;;
14651     *aix*)
14652       VAR_OS=aix
14653       VAR_OS_TYPE=unix
14654       ;;
14655     *)
14656       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
14657       ;;
14658   esac
14659 
14660 
14661   # First argument is the cpu name from the trip/quad
14662   case "$build_cpu" in
14663     x86_64)
14664       VAR_CPU=x86_64
14665       VAR_CPU_ARCH=x86
14666       VAR_CPU_BITS=64
14667       VAR_CPU_ENDIAN=little
14668       ;;
14669     i?86)
14670       VAR_CPU=x86
14671       VAR_CPU_ARCH=x86
14672       VAR_CPU_BITS=32
14673       VAR_CPU_ENDIAN=little
14674       ;;
14675     arm*)
14676       VAR_CPU=arm
14677       VAR_CPU_ARCH=arm
14678       VAR_CPU_BITS=32
14679       VAR_CPU_ENDIAN=little
14680       ;;
14681     aarch64)
14682       VAR_CPU=aarch64
14683       VAR_CPU_ARCH=aarch64
14684       VAR_CPU_BITS=64
14685       VAR_CPU_ENDIAN=little
14686       ;;
14687     powerpc)
14688       VAR_CPU=ppc
14689       VAR_CPU_ARCH=ppc
14690       VAR_CPU_BITS=32
14691       VAR_CPU_ENDIAN=big
14692       ;;
14693     powerpc64)
14694       VAR_CPU=ppc64
14695       VAR_CPU_ARCH=ppc
14696       VAR_CPU_BITS=64
14697       VAR_CPU_ENDIAN=big
14698       ;;
14699     powerpc64le)
14700       VAR_CPU=ppc64
14701       VAR_CPU_ARCH=ppc
14702       VAR_CPU_BITS=64
14703       VAR_CPU_ENDIAN=little
14704       ;;
14705     s390)
14706       VAR_CPU=s390
14707       VAR_CPU_ARCH=s390
14708       VAR_CPU_BITS=32
14709       VAR_CPU_ENDIAN=big
14710       ;;
14711     s390x)
14712       VAR_CPU=s390x
14713       VAR_CPU_ARCH=s390
14714       VAR_CPU_BITS=64
14715       VAR_CPU_ENDIAN=big
14716       ;;
14717     sparc)
14718       VAR_CPU=sparc
14719       VAR_CPU_ARCH=sparc
14720       VAR_CPU_BITS=32
14721       VAR_CPU_ENDIAN=big
14722       ;;
14723     sparcv9|sparc64)
14724       VAR_CPU=sparcv9
14725       VAR_CPU_ARCH=sparc
14726       VAR_CPU_BITS=64
14727       VAR_CPU_ENDIAN=big
14728       ;;
14729     *)
14730       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
14731       ;;
14732   esac
14733 
14734   # ..and setup our own variables. (Do this explicitely to facilitate searching)
14735   OPENJDK_BUILD_OS="$VAR_OS"
14736   if test "x$VAR_OS_TYPE" != x; then
14737     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
14738   else
14739     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
14740   fi
14741   if test "x$VAR_OS_ENV" != x; then
14742     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
14743   else
14744     OPENJDK_BUILD_OS_ENV="$VAR_OS"
14745   fi
14746   OPENJDK_BUILD_CPU="$VAR_CPU"
14747   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
14748   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
14749   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14750 
14751 
14752 
14753 
14754 
14755 
14756 
14757 
14758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
14759 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
14760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
14761 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
14762 
14763   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14764 
14765   case "$host_os" in
14766     *linux*)
14767       VAR_OS=linux
14768       VAR_OS_TYPE=unix
14769       ;;
14770     *solaris*)
14771       VAR_OS=solaris
14772       VAR_OS_TYPE=unix
14773       ;;
14774     *darwin*)
14775       VAR_OS=macosx
14776       VAR_OS_TYPE=unix
14777       ;;
14778     *bsd*)
14779       VAR_OS=bsd
14780       VAR_OS_TYPE=unix
14781       ;;
14782     *cygwin*)
14783       VAR_OS=windows
14784       VAR_OS_ENV=windows.cygwin
14785       ;;
14786     *mingw*)
14787       VAR_OS=windows
14788       VAR_OS_ENV=windows.msys
14789       ;;
14790     *aix*)
14791       VAR_OS=aix
14792       VAR_OS_TYPE=unix
14793       ;;
14794     *)
14795       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
14796       ;;
14797   esac
14798 
14799 
14800   # First argument is the cpu name from the trip/quad
14801   case "$host_cpu" in
14802     x86_64)
14803       VAR_CPU=x86_64
14804       VAR_CPU_ARCH=x86
14805       VAR_CPU_BITS=64
14806       VAR_CPU_ENDIAN=little
14807       ;;
14808     i?86)
14809       VAR_CPU=x86
14810       VAR_CPU_ARCH=x86
14811       VAR_CPU_BITS=32
14812       VAR_CPU_ENDIAN=little
14813       ;;
14814     arm*)
14815       VAR_CPU=arm
14816       VAR_CPU_ARCH=arm
14817       VAR_CPU_BITS=32
14818       VAR_CPU_ENDIAN=little
14819       ;;
14820     aarch64)
14821       VAR_CPU=aarch64
14822       VAR_CPU_ARCH=aarch64
14823       VAR_CPU_BITS=64
14824       VAR_CPU_ENDIAN=little
14825       ;;
14826     powerpc)
14827       VAR_CPU=ppc
14828       VAR_CPU_ARCH=ppc
14829       VAR_CPU_BITS=32
14830       VAR_CPU_ENDIAN=big
14831       ;;
14832     powerpc64)
14833       VAR_CPU=ppc64
14834       VAR_CPU_ARCH=ppc
14835       VAR_CPU_BITS=64
14836       VAR_CPU_ENDIAN=big
14837       ;;
14838     powerpc64le)
14839       VAR_CPU=ppc64
14840       VAR_CPU_ARCH=ppc
14841       VAR_CPU_BITS=64
14842       VAR_CPU_ENDIAN=little
14843       ;;
14844     s390)
14845       VAR_CPU=s390
14846       VAR_CPU_ARCH=s390
14847       VAR_CPU_BITS=32
14848       VAR_CPU_ENDIAN=big
14849       ;;
14850     s390x)
14851       VAR_CPU=s390x
14852       VAR_CPU_ARCH=s390
14853       VAR_CPU_BITS=64
14854       VAR_CPU_ENDIAN=big
14855       ;;
14856     sparc)
14857       VAR_CPU=sparc
14858       VAR_CPU_ARCH=sparc
14859       VAR_CPU_BITS=32
14860       VAR_CPU_ENDIAN=big
14861       ;;
14862     sparcv9|sparc64)
14863       VAR_CPU=sparcv9
14864       VAR_CPU_ARCH=sparc
14865       VAR_CPU_BITS=64
14866       VAR_CPU_ENDIAN=big
14867       ;;
14868     *)
14869       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
14870       ;;
14871   esac
14872 
14873   # ... and setup our own variables. (Do this explicitely to facilitate searching)
14874   OPENJDK_TARGET_OS="$VAR_OS"
14875   if test "x$VAR_OS_TYPE" != x; then
14876     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
14877   else
14878     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
14879   fi
14880   if test "x$VAR_OS_ENV" != x; then
14881     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
14882   else
14883     OPENJDK_TARGET_OS_ENV="$VAR_OS"
14884   fi
14885   OPENJDK_TARGET_CPU="$VAR_CPU"
14886   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
14887   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
14888   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14889 
14890 
14891 
14892 
14893 
14894 
14895 
14896 
14897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
14898 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
14899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
14900 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
14901 
14902 
14903 
14904 # Check whether --with-target-bits was given.
14905 if test "${with_target_bits+set}" = set; then :
14906   withval=$with_target_bits;
14907 fi
14908 
14909 
14910   # We have three types of compiles:
14911   # native  == normal compilation, target system == build system
14912   # cross   == traditional cross compilation, target system != build system; special toolchain needed
14913   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
14914   #
14915   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
14916     # We're doing a proper cross-compilation
14917     COMPILE_TYPE="cross"
14918   else
14919     COMPILE_TYPE="native"
14920   fi
14921 
14922   if test "x$with_target_bits" != x; then
14923     if test "x$COMPILE_TYPE" = "xcross"; then
14924       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
14925     fi
14926 
14927     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14928       # A reduced build is requested
14929       COMPILE_TYPE="reduced"
14930       OPENJDK_TARGET_CPU_BITS=32
14931       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
14932         OPENJDK_TARGET_CPU=x86
14933       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
14934         OPENJDK_TARGET_CPU=sparc
14935       else
14936         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
14937       fi
14938     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
14939       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
14940     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
14941       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
14942 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
14943     else
14944       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
14945     fi
14946   fi
14947 
14948 
14949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
14950 $as_echo_n "checking compilation type... " >&6; }
14951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
14952 $as_echo "$COMPILE_TYPE" >&6; }
14953 
14954 
14955   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
14956     REQUIRED_OS_NAME=SunOS
14957     REQUIRED_OS_VERSION=5.10
14958   fi
14959   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
14960     REQUIRED_OS_NAME=Linux
14961     REQUIRED_OS_VERSION=2.6
14962   fi
14963   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14964     REQUIRED_OS_NAME=Windows
14965     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
14966       REQUIRED_OS_VERSION=5.2
14967     else
14968       REQUIRED_OS_VERSION=5.1
14969     fi
14970   fi
14971   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14972     REQUIRED_OS_NAME=Darwin
14973     REQUIRED_OS_VERSION=11.2
14974   fi
14975 
14976 
14977 
14978 
14979 
14980   # Also store the legacy naming of the cpu.
14981   # Ie i586 and amd64 instead of x86 and x86_64
14982   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
14983   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14984     OPENJDK_TARGET_CPU_LEGACY="i586"
14985   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14986     # On all platforms except MacOSX replace x86_64 with amd64.
14987     OPENJDK_TARGET_CPU_LEGACY="amd64"
14988   fi
14989 
14990 
14991   # And the second legacy naming of the cpu.
14992   # Ie i386 and amd64 instead of x86 and x86_64.
14993   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
14994   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14995     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
14996   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14997     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
14998   fi
14999 
15000 
15001   # This is the name of the cpu (but using i386 and amd64 instead of
15002   # x86 and x86_64, respectively), preceeded by a /, to be used when
15003   # locating libraries. On macosx, it's empty, though.
15004   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
15005   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15006     OPENJDK_TARGET_CPU_LIBDIR=""
15007   fi
15008 
15009 
15010   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15011   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15012   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
15013   OPENJDK_TARGET_CPU_ISADIR=""
15014   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15015     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15016       OPENJDK_TARGET_CPU_ISADIR="/amd64"
15017     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15018       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
15019     fi
15020   fi
15021 
15022 
15023   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
15024   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
15025   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
15026     # On linux only, we replace x86 with i386.
15027     OPENJDK_TARGET_CPU_OSARCH="i386"
15028   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15029     # On all platforms except macosx, we replace x86_64 with amd64.
15030     OPENJDK_TARGET_CPU_OSARCH="amd64"
15031   fi
15032 
15033 
15034   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
15035   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15036     OPENJDK_TARGET_CPU_JLI="i386"
15037   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15038     # On all platforms except macosx, we replace x86_64 with amd64.
15039     OPENJDK_TARGET_CPU_JLI="amd64"
15040   fi
15041   # Now setup the -D flags for building libjli.
15042   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
15043   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15044     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
15045       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
15046     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
15047       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
15048     fi
15049   fi
15050 
15051 
15052   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15053       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
15054   else
15055       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
15056   fi
15057 
15058 
15059   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15060     A_LP64="LP64:="
15061     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15062     # unpack200.exe
15063     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
15064       ADD_LP64="-D_LP64=1"
15065     fi
15066   fi
15067   LP64=$A_LP64
15068 
15069 
15070   if test "x$COMPILE_TYPE" = "xcross"; then
15071     # FIXME: ... or should this include reduced builds..?
15072     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15073   else
15074     DEFINE_CROSS_COMPILE_ARCH=""
15075   fi
15076 
15077 
15078   # ZERO_ARCHDEF is used to enable architecture-specific code
15079   case "${OPENJDK_TARGET_CPU}" in
15080     ppc)     ZERO_ARCHDEF=PPC32 ;;
15081     ppc64)   ZERO_ARCHDEF=PPC64 ;;
15082     s390*)   ZERO_ARCHDEF=S390  ;;
15083     sparc*)  ZERO_ARCHDEF=SPARC ;;
15084     x86_64*) ZERO_ARCHDEF=AMD64 ;;
15085     x86)     ZERO_ARCHDEF=IA32  ;;
15086     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
15087   esac
15088 
15089 
15090 
15091 
15092 # Continue setting up basic stuff. Most remaining code require fundamental tools.
15093 
15094   # Save the current directory this script was started from
15095   CURDIR="$PWD"
15096 
15097   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
15098   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
15099   # was not available at that time.
15100   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
15101   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
15102     ORIGINAL_PATH="$REWRITTEN_PATH"
15103     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
15104 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
15105   fi
15106 
15107   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15108     PATH_SEP=";"
15109 
15110   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
15111   if test $SRC_ROOT_LENGTH -gt 100; then
15112     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
15113   fi
15114 
15115   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
15117 $as_echo_n "checking cygwin release... " >&6; }
15118     CYGWIN_VERSION=`$UNAME -r`
15119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
15120 $as_echo "$CYGWIN_VERSION" >&6; }
15121     WINDOWS_ENV_VENDOR='cygwin'
15122     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
15123 
15124     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
15125     if test "x$CYGWIN_VERSION_OLD" != x; then
15126       { $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
15127 $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;}
15128       as_fn_error $? "Cannot continue" "$LINENO" 5
15129     fi
15130     if test "x$CYGPATH" = x; then
15131       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
15132     fi
15133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
15134 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
15135     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15136     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
15137     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
15138     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
15139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
15140 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
15141     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
15142     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
15143     if test "x$test_cygdrive_prefix" = x; then
15144       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
15145     fi
15146   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
15148 $as_echo_n "checking msys release... " >&6; }
15149     MSYS_VERSION=`$UNAME -r`
15150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
15151 $as_echo "$MSYS_VERSION" >&6; }
15152 
15153     WINDOWS_ENV_VENDOR='msys'
15154     WINDOWS_ENV_VERSION="$MSYS_VERSION"
15155 
15156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
15157 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
15158     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15159     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
15160 
15161   windows_path="$MSYS_ROOT_PATH"
15162   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15163     unix_path=`$CYGPATH -u "$windows_path"`
15164     MSYS_ROOT_PATH="$unix_path"
15165   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15166     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15167     MSYS_ROOT_PATH="$unix_path"
15168   fi
15169 
15170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
15171 $as_echo "$MSYS_ROOT_PATH" >&6; }
15172     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
15173   else
15174     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
15175   fi
15176 
15177   # Test if windows or unix (cygwin/msys) find is first in path.
15178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
15179 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
15180   FIND_BINARY_OUTPUT=`find --version 2>&1`
15181   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
15182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
15183 $as_echo "unix style" >&6; }
15184   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
15185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
15186 $as_echo "Windows" >&6; }
15187     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
15188 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
15189     { $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
15190 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
15191     as_fn_error $? "Cannot continue" "$LINENO" 5
15192   else
15193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15194 $as_echo "unknown" >&6; }
15195     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
15196 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
15197   fi
15198 
15199   else
15200     PATH_SEP=":"
15201   fi
15202 
15203 
15204   # We get the top-level directory from the supporting wrappers.
15205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
15206 $as_echo_n "checking for top-level directory... " >&6; }
15207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
15208 $as_echo "$TOPDIR" >&6; }
15209 
15210 
15211   # Save the original version of TOPDIR for string comparisons
15212   ORIGINAL_TOPDIR="$TOPDIR"
15213 
15214 
15215   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
15216 
15217   # Only process if variable expands to non-empty
15218 
15219   if test "x$CURDIR" != x; then
15220     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15221 
15222   # Input might be given as Windows format, start by converting to
15223   # unix format.
15224   path="$CURDIR"
15225   new_path=`$CYGPATH -u "$path"`
15226 
15227   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15228   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15229   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15230   # "foo.exe" is OK but "foo" is an error.
15231   #
15232   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15233   # It is also a way to make sure we got the proper file name for the real test later on.
15234   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15235   if test "x$test_shortpath" = x; then
15236     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15237 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15238     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
15239   fi
15240 
15241   # Call helper function which possibly converts this using DOS-style short mode.
15242   # If so, the updated path is stored in $new_path.
15243 
15244   input_path="$new_path"
15245   # Check if we need to convert this using DOS-style short mode. If the path
15246   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15247   # take no chances and rewrite it.
15248   # Note: m4 eats our [], so we need to use [ and ] instead.
15249   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15250   if test "x$has_forbidden_chars" != x; then
15251     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15252     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15253     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15254     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15255       # Going to short mode and back again did indeed matter. Since short mode is
15256       # case insensitive, let's make it lowercase to improve readability.
15257       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15258       # Now convert it back to Unix-style (cygpath)
15259       input_path=`$CYGPATH -u "$shortmode_path"`
15260       new_path="$input_path"
15261     fi
15262   fi
15263 
15264   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15265   if test "x$test_cygdrive_prefix" = x; then
15266     # As a simple fix, exclude /usr/bin since it's not a real path.
15267     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15268       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15269       # a path prefixed by /cygdrive for fixpath to work.
15270       new_path="$CYGWIN_ROOT_PATH$input_path"
15271     fi
15272   fi
15273 
15274 
15275   if test "x$path" != "x$new_path"; then
15276     CURDIR="$new_path"
15277     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15278 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15279   fi
15280 
15281     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15282 
15283   path="$CURDIR"
15284   has_colon=`$ECHO $path | $GREP ^.:`
15285   new_path="$path"
15286   if test "x$has_colon" = x; then
15287     # Not in mixed or Windows style, start by that.
15288     new_path=`cmd //c echo $path`
15289   fi
15290 
15291 
15292   input_path="$new_path"
15293   # Check if we need to convert this using DOS-style short mode. If the path
15294   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15295   # take no chances and rewrite it.
15296   # Note: m4 eats our [], so we need to use [ and ] instead.
15297   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15298   if test "x$has_forbidden_chars" != x; then
15299     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15300     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15301   fi
15302 
15303 
15304   windows_path="$new_path"
15305   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15306     unix_path=`$CYGPATH -u "$windows_path"`
15307     new_path="$unix_path"
15308   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15309     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15310     new_path="$unix_path"
15311   fi
15312 
15313   if test "x$path" != "x$new_path"; then
15314     CURDIR="$new_path"
15315     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15316 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15317   fi
15318 
15319   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15320   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15321 
15322     else
15323       # We're on a unix platform. Hooray! :)
15324       path="$CURDIR"
15325       has_space=`$ECHO "$path" | $GREP " "`
15326       if test "x$has_space" != x; then
15327         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15328 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15329         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15330       fi
15331 
15332       # Use eval to expand a potential ~
15333       eval path="$path"
15334       if test ! -f "$path" && test ! -d "$path"; then
15335         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15336       fi
15337 
15338       CURDIR="`cd "$path"; $THEPWDCMD -L`"
15339     fi
15340   fi
15341 
15342 
15343   # Only process if variable expands to non-empty
15344 
15345   if test "x$TOPDIR" != x; then
15346     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15347 
15348   # Input might be given as Windows format, start by converting to
15349   # unix format.
15350   path="$TOPDIR"
15351   new_path=`$CYGPATH -u "$path"`
15352 
15353   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15354   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15355   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15356   # "foo.exe" is OK but "foo" is an error.
15357   #
15358   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15359   # It is also a way to make sure we got the proper file name for the real test later on.
15360   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15361   if test "x$test_shortpath" = x; then
15362     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15363 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15364     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
15365   fi
15366 
15367   # Call helper function which possibly converts this using DOS-style short mode.
15368   # If so, the updated path is stored in $new_path.
15369 
15370   input_path="$new_path"
15371   # Check if we need to convert this using DOS-style short mode. If the path
15372   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15373   # take no chances and rewrite it.
15374   # Note: m4 eats our [], so we need to use [ and ] instead.
15375   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15376   if test "x$has_forbidden_chars" != x; then
15377     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15378     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15379     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15380     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15381       # Going to short mode and back again did indeed matter. Since short mode is
15382       # case insensitive, let's make it lowercase to improve readability.
15383       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15384       # Now convert it back to Unix-style (cygpath)
15385       input_path=`$CYGPATH -u "$shortmode_path"`
15386       new_path="$input_path"
15387     fi
15388   fi
15389 
15390   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15391   if test "x$test_cygdrive_prefix" = x; then
15392     # As a simple fix, exclude /usr/bin since it's not a real path.
15393     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15394       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15395       # a path prefixed by /cygdrive for fixpath to work.
15396       new_path="$CYGWIN_ROOT_PATH$input_path"
15397     fi
15398   fi
15399 
15400 
15401   if test "x$path" != "x$new_path"; then
15402     TOPDIR="$new_path"
15403     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15404 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15405   fi
15406 
15407     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15408 
15409   path="$TOPDIR"
15410   has_colon=`$ECHO $path | $GREP ^.:`
15411   new_path="$path"
15412   if test "x$has_colon" = x; then
15413     # Not in mixed or Windows style, start by that.
15414     new_path=`cmd //c echo $path`
15415   fi
15416 
15417 
15418   input_path="$new_path"
15419   # Check if we need to convert this using DOS-style short mode. If the path
15420   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15421   # take no chances and rewrite it.
15422   # Note: m4 eats our [], so we need to use [ and ] instead.
15423   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15424   if test "x$has_forbidden_chars" != x; then
15425     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15426     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15427   fi
15428 
15429 
15430   windows_path="$new_path"
15431   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15432     unix_path=`$CYGPATH -u "$windows_path"`
15433     new_path="$unix_path"
15434   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15435     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15436     new_path="$unix_path"
15437   fi
15438 
15439   if test "x$path" != "x$new_path"; then
15440     TOPDIR="$new_path"
15441     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15442 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15443   fi
15444 
15445   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15446   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15447 
15448     else
15449       # We're on a unix platform. Hooray! :)
15450       path="$TOPDIR"
15451       has_space=`$ECHO "$path" | $GREP " "`
15452       if test "x$has_space" != x; then
15453         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15454 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15455         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15456       fi
15457 
15458       # Use eval to expand a potential ~
15459       eval path="$path"
15460       if test ! -f "$path" && test ! -d "$path"; then
15461         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15462       fi
15463 
15464       TOPDIR="`cd "$path"; $THEPWDCMD -L`"
15465     fi
15466   fi
15467 
15468   # SRC_ROOT is a traditional alias for TOPDIR.
15469   SRC_ROOT=$TOPDIR
15470 
15471   # Calculate a canonical version of TOPDIR for string comparisons
15472   CANONICAL_TOPDIR=$TOPDIR
15473 
15474   if test "x$OPENJDK_BUILD_OS" != xwindows; then
15475     # Follow a chain of symbolic links. Use readlink
15476     # where it exists, else fall back to horribly
15477     # complicated shell code.
15478     if test "x$READLINK_TESTED" != yes; then
15479       # On MacOSX there is a readlink tool with a different
15480       # purpose than the GNU readlink tool. Check the found readlink.
15481       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
15482       if test "x$ISGNU" = x; then
15483         # A readlink that we do not know how to use.
15484         # Are there other non-GNU readlinks out there?
15485         READLINK_TESTED=yes
15486         READLINK=
15487       fi
15488     fi
15489 
15490     if test "x$READLINK" != x; then
15491       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
15492     else
15493       # Save the current directory for restoring afterwards
15494       STARTDIR=$PWD
15495       COUNTER=0
15496       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
15497       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
15498       cd $sym_link_dir
15499       # Use -P flag to resolve symlinks in directories.
15500       cd `$THEPWDCMD -P`
15501       sym_link_dir=`$THEPWDCMD -P`
15502       # Resolve file symlinks
15503       while test $COUNTER -lt 20; do
15504         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
15505         if test "x$ISLINK" == x; then
15506           # This is not a symbolic link! We are done!
15507           break
15508         fi
15509         # Again resolve directory symlinks since the target of the just found
15510         # link could be in a different directory
15511         cd `$DIRNAME $ISLINK`
15512         sym_link_dir=`$THEPWDCMD -P`
15513         sym_link_file=`$BASENAME $ISLINK`
15514         let COUNTER=COUNTER+1
15515       done
15516       cd $STARTDIR
15517       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
15518     fi
15519   fi
15520 
15521 
15522 
15523   # Locate the directory of this script.
15524   AUTOCONF_DIR=$TOPDIR/common/autoconf
15525 
15526 
15527 # Check if it's a pure open build or if custom sources are to be used.
15528 
15529   # Check whether --enable-openjdk-only was given.
15530 if test "${enable_openjdk_only+set}" = set; then :
15531   enableval=$enable_openjdk_only;
15532 else
15533   enable_openjdk_only="no"
15534 fi
15535 
15536 
15537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
15538 $as_echo_n "checking for presence of closed sources... " >&6; }
15539   if test -d "$SRC_ROOT/jdk/src/closed"; then
15540     CLOSED_SOURCE_PRESENT=yes
15541   else
15542     CLOSED_SOURCE_PRESENT=no
15543   fi
15544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
15545 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
15546 
15547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
15548 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
15549   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
15550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
15551 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
15552 
15553   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
15554     OPENJDK=true
15555     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15556       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
15557 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
15558     fi
15559   else
15560     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15561       OPENJDK=true
15562     else
15563       OPENJDK=false
15564     fi
15565   fi
15566 
15567   if test "x$OPENJDK" = "xtrue"; then
15568     SET_OPENJDK="OPENJDK=true"
15569   fi
15570 
15571 
15572 
15573   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
15574   # the IncludeCustomExtension macro.
15575 
15576 
15577 # Check whether --with-custom-make-dir was given.
15578 if test "${with_custom_make_dir+set}" = set; then :
15579   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
15580 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
15581 fi
15582 
15583 
15584 
15585 
15586 # These are needed to be able to create a configuration name (and thus the output directory)
15587 
15588   ###############################################################################
15589   #
15590   # Check which variant of the JDK that we want to build.
15591   # Currently we have:
15592   #    normal:   standard edition
15593   # but the custom make system may add other variants
15594   #
15595   # Effectively the JDK variant gives a name to a specific set of
15596   # modules to compile into the JDK. In the future, these modules
15597   # might even be Jigsaw modules.
15598   #
15599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
15600 $as_echo_n "checking which variant of the JDK to build... " >&6; }
15601 
15602 # Check whether --with-jdk-variant was given.
15603 if test "${with_jdk_variant+set}" = set; then :
15604   withval=$with_jdk_variant;
15605 fi
15606 
15607 
15608   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
15609     JDK_VARIANT="normal"
15610   else
15611     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
15612   fi
15613 
15614 
15615 
15616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
15617 $as_echo "$JDK_VARIANT" >&6; }
15618 
15619 
15620 ###############################################################################
15621 #
15622 # Check which interpreter of the JVM we want to build.
15623 # Currently we have:
15624 #    template: Template interpreter (the default)
15625 #    cpp     : C++ interpreter
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
15627 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
15628 
15629 # Check whether --with-jvm-interpreter was given.
15630 if test "${with_jvm_interpreter+set}" = set; then :
15631   withval=$with_jvm_interpreter;
15632 fi
15633 
15634 
15635 if test "x$with_jvm_interpreter" = x; then
15636      with_jvm_interpreter="template"
15637 fi
15638 
15639 JVM_INTERPRETER="$with_jvm_interpreter"
15640 
15641 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
15642    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
15643 fi
15644 
15645 
15646 
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
15648 $as_echo "$with_jvm_interpreter" >&6; }
15649 
15650 
15651 
15652   ###############################################################################
15653   #
15654   # Check which variants of the JVM that we want to build.
15655   # Currently we have:
15656   #    server: normal interpreter and a tiered C1/C2 compiler
15657   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
15658   #    minimal1: reduced form of client with optional VM services and features stripped out
15659   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
15660   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
15661   #    zero: no machine code interpreter, no compiler
15662   #    zeroshark: zero interpreter and shark/llvm compiler backend
15663 #    core: interpreter only, no compiler (only works on some platforms)
15664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
15665 $as_echo_n "checking which variants of the JVM to build... " >&6; }
15666 
15667 # Check whether --with-jvm-variants was given.
15668 if test "${with_jvm_variants+set}" = set; then :
15669   withval=$with_jvm_variants;
15670 fi
15671 
15672 
15673   if test "x$with_jvm_variants" = x; then
15674     with_jvm_variants="server"
15675   fi
15676 
15677   JVM_VARIANTS=",$with_jvm_variants,"
15678   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,//'`
15679 
15680   if test "x$TEST_VARIANTS" != "x,"; then
15681      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
15682   fi
15683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
15684 $as_echo "$with_jvm_variants" >&6; }
15685 
15686   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
15687   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
15688   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
15689   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
15690   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
15691   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
15692   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
15693 
15694   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15695     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15696       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
15697     fi
15698   fi
15699   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15700     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15701       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
15702     fi
15703   fi
15704   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15705     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15706       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
15707     fi
15708   fi
15709 
15710   # Replace the commas with AND for use in the build directory name.
15711   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
15712   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/'`
15713   if test "x$COUNT_VARIANTS" != "x,1"; then
15714     BUILDING_MULTIPLE_JVM_VARIANTS=yes
15715   else
15716     BUILDING_MULTIPLE_JVM_VARIANTS=no
15717   fi
15718 
15719 
15720 
15721 
15722 
15723 
15724 
15725 
15726 
15727 
15728   INCLUDE_SA=true
15729   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
15730     INCLUDE_SA=false
15731   fi
15732   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
15733     INCLUDE_SA=false
15734   fi
15735   if test "x$OPENJDK_TARGET_OS" = xaix ; then
15736     INCLUDE_SA=false
15737   fi
15738   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15739     INCLUDE_SA=false
15740   fi
15741 
15742 
15743   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15744     MACOSX_UNIVERSAL="true"
15745   fi
15746 
15747 
15748 
15749 
15750   ###############################################################################
15751   #
15752   # Set the debug level
15753   #    release: no debug information, all optimizations, no asserts.
15754   #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
15755   #    fastdebug: debug information (-g), all optimizations, all asserts
15756   #    slowdebug: debug information (-g), no optimizations, all asserts
15757   #
15758   DEBUG_LEVEL="release"
15759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
15760 $as_echo_n "checking which debug level to use... " >&6; }
15761   # Check whether --enable-debug was given.
15762 if test "${enable_debug+set}" = set; then :
15763   enableval=$enable_debug;
15764         ENABLE_DEBUG="${enableval}"
15765         DEBUG_LEVEL="fastdebug"
15766 
15767 else
15768   ENABLE_DEBUG="no"
15769 fi
15770 
15771 
15772 
15773 # Check whether --with-debug-level was given.
15774 if test "${with_debug_level+set}" = set; then :
15775   withval=$with_debug_level;
15776         DEBUG_LEVEL="${withval}"
15777         if test "x$ENABLE_DEBUG" = xyes; then
15778           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
15779         fi
15780 
15781 fi
15782 
15783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
15784 $as_echo "$DEBUG_LEVEL" >&6; }
15785 
15786   if test "x$DEBUG_LEVEL" != xrelease && \
15787       test "x$DEBUG_LEVEL" != xoptimized && \
15788       test "x$DEBUG_LEVEL" != xfastdebug && \
15789       test "x$DEBUG_LEVEL" != xslowdebug; then
15790     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
15791   fi
15792 
15793 
15794   ###############################################################################
15795   #
15796   # Setup legacy vars/targets and new vars to deal with different debug levels.
15797   #
15798 
15799   case $DEBUG_LEVEL in
15800     release )
15801       VARIANT="OPT"
15802       FASTDEBUG="false"
15803       DEBUG_CLASSFILES="false"
15804       BUILD_VARIANT_RELEASE=""
15805       HOTSPOT_DEBUG_LEVEL="product"
15806       HOTSPOT_EXPORT="product"
15807       ;;
15808     fastdebug )
15809       VARIANT="DBG"
15810       FASTDEBUG="true"
15811       DEBUG_CLASSFILES="true"
15812       BUILD_VARIANT_RELEASE="-fastdebug"
15813       HOTSPOT_DEBUG_LEVEL="fastdebug"
15814       HOTSPOT_EXPORT="fastdebug"
15815       ;;
15816     slowdebug )
15817       VARIANT="DBG"
15818       FASTDEBUG="false"
15819       DEBUG_CLASSFILES="true"
15820       BUILD_VARIANT_RELEASE="-debug"
15821       HOTSPOT_DEBUG_LEVEL="debug"
15822       HOTSPOT_EXPORT="debug"
15823       ;;
15824     optimized )
15825       VARIANT="OPT"
15826       FASTDEBUG="false"
15827       DEBUG_CLASSFILES="false"
15828       BUILD_VARIANT_RELEASE="-optimized"
15829       HOTSPOT_DEBUG_LEVEL="optimized"
15830       HOTSPOT_EXPORT="optimized"
15831       ;;
15832   esac
15833 
15834   # The debug level 'optimized' is a little special because it is currently only
15835   # applicable to the HotSpot build where it means to build a completely
15836   # optimized version of the VM without any debugging code (like for the
15837   # 'release' debug level which is called 'product' in the HotSpot build) but
15838   # with the exception that it can contain additional code which is otherwise
15839   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
15840   # test new and/or experimental features which are not intended for customer
15841   # shipment. Because these new features need to be tested and benchmarked in
15842   # real world scenarios, we want to build the containing JDK at the 'release'
15843   # debug level.
15844   if test "x$DEBUG_LEVEL" = xoptimized; then
15845     DEBUG_LEVEL="release"
15846   fi
15847 
15848   #####
15849   # Generate the legacy makefile targets for hotspot.
15850   # The hotspot api for selecting the build artifacts, really, needs to be improved.
15851   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
15852   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
15853   # But until then ...
15854   HOTSPOT_TARGET=""
15855 
15856   if test "x$JVM_VARIANT_SERVER" = xtrue; then
15857     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
15858   fi
15859 
15860   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15861     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
15862   fi
15863 
15864   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15865     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
15866   fi
15867 
15868   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15869     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
15870   fi
15871 
15872   if test "x$JVM_VARIANT_ZERO" = xtrue; then
15873     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
15874   fi
15875 
15876   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
15877     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
15878   fi
15879 
15880   if test "x$JVM_VARIANT_CORE" = xtrue; then
15881     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
15882   fi
15883 
15884   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
15885 
15886   # On Macosx universal binaries are produced, but they only contain
15887   # 64 bit intel. This invalidates control of which jvms are built
15888   # from configure, but only server is valid anyway. Fix this
15889   # when hotspot makefiles are rewritten.
15890   if test "x$MACOSX_UNIVERSAL" = xtrue; then
15891     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
15892   fi
15893 
15894   #####
15895 
15896 
15897 
15898 
15899 
15900 
15901 
15902 
15903 # With basic setup done, call the custom early hook.
15904 
15905 
15906 # Check if we have devkits, extra paths or sysroot set.
15907 
15908 
15909 # Check whether --with-devkit was given.
15910 if test "${with_devkit+set}" = set; then :
15911   withval=$with_devkit;
15912 
15913   # Only process if variable expands to non-empty
15914 
15915   if test "x$with_devkit" != x; then
15916     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15917 
15918   # Input might be given as Windows format, start by converting to
15919   # unix format.
15920   path="$with_devkit"
15921   new_path=`$CYGPATH -u "$path"`
15922 
15923   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15924   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15925   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15926   # "foo.exe" is OK but "foo" is an error.
15927   #
15928   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15929   # It is also a way to make sure we got the proper file name for the real test later on.
15930   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15931   if test "x$test_shortpath" = x; then
15932     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15933 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15934     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
15935   fi
15936 
15937   # Call helper function which possibly converts this using DOS-style short mode.
15938   # If so, the updated path is stored in $new_path.
15939 
15940   input_path="$new_path"
15941   # Check if we need to convert this using DOS-style short mode. If the path
15942   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15943   # take no chances and rewrite it.
15944   # Note: m4 eats our [], so we need to use [ and ] instead.
15945   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15946   if test "x$has_forbidden_chars" != x; then
15947     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15948     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15949     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15950     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15951       # Going to short mode and back again did indeed matter. Since short mode is
15952       # case insensitive, let's make it lowercase to improve readability.
15953       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15954       # Now convert it back to Unix-style (cygpath)
15955       input_path=`$CYGPATH -u "$shortmode_path"`
15956       new_path="$input_path"
15957     fi
15958   fi
15959 
15960   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15961   if test "x$test_cygdrive_prefix" = x; then
15962     # As a simple fix, exclude /usr/bin since it's not a real path.
15963     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15964       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15965       # a path prefixed by /cygdrive for fixpath to work.
15966       new_path="$CYGWIN_ROOT_PATH$input_path"
15967     fi
15968   fi
15969 
15970 
15971   if test "x$path" != "x$new_path"; then
15972     with_devkit="$new_path"
15973     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15974 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15975   fi
15976 
15977     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15978 
15979   path="$with_devkit"
15980   has_colon=`$ECHO $path | $GREP ^.:`
15981   new_path="$path"
15982   if test "x$has_colon" = x; then
15983     # Not in mixed or Windows style, start by that.
15984     new_path=`cmd //c echo $path`
15985   fi
15986 
15987 
15988   input_path="$new_path"
15989   # Check if we need to convert this using DOS-style short mode. If the path
15990   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15991   # take no chances and rewrite it.
15992   # Note: m4 eats our [], so we need to use [ and ] instead.
15993   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15994   if test "x$has_forbidden_chars" != x; then
15995     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15996     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15997   fi
15998 
15999 
16000   windows_path="$new_path"
16001   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16002     unix_path=`$CYGPATH -u "$windows_path"`
16003     new_path="$unix_path"
16004   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16005     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16006     new_path="$unix_path"
16007   fi
16008 
16009   if test "x$path" != "x$new_path"; then
16010     with_devkit="$new_path"
16011     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16012 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16013   fi
16014 
16015   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16016   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16017 
16018     else
16019       # We're on a unix platform. Hooray! :)
16020       path="$with_devkit"
16021       has_space=`$ECHO "$path" | $GREP " "`
16022       if test "x$has_space" != x; then
16023         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16024 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16025         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16026       fi
16027 
16028       # Use eval to expand a potential ~
16029       eval path="$path"
16030       if test ! -f "$path" && test ! -d "$path"; then
16031         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
16032       fi
16033 
16034       with_devkit="`cd "$path"; $THEPWDCMD -L`"
16035     fi
16036   fi
16037 
16038         DEVKIT_ROOT="$with_devkit"
16039         # Check for a meta data info file in the root of the devkit
16040         if test -f "$DEVKIT_ROOT/devkit.info"; then
16041           . $DEVKIT_ROOT/devkit.info
16042           # This potentially sets the following:
16043           # A descriptive name of the devkit
16044 
16045   if test "x$DEVKIT_NAME" = x; then
16046     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
16047   fi
16048 
16049           # Corresponds to --with-extra-path
16050 
16051   if test "x$DEVKIT_EXTRA_PATH" = x; then
16052     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
16053   fi
16054 
16055           # Corresponds to --with-toolchain-path
16056 
16057   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16058     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
16059   fi
16060 
16061           # Corresponds to --with-sysroot
16062 
16063   if test "x$DEVKIT_SYSROOT" = x; then
16064     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
16065   fi
16066 
16067 
16068           # Identifies the Visual Studio version in the devkit
16069 
16070   if test "x$DEVKIT_VS_VERSION" = x; then
16071     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
16072   fi
16073 
16074           # The Visual Studio include environment variable
16075 
16076   if test "x$DEVKIT_VS_INCLUDE" = x; then
16077     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
16078   fi
16079 
16080           # The Visual Studio lib environment variable
16081 
16082   if test "x$DEVKIT_VS_LIB" = x; then
16083     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
16084   fi
16085 
16086           # Corresponds to --with-msvcr-dll
16087 
16088   if test "x$DEVKIT_MSVCR_DLL" = x; then
16089     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
16090   fi
16091 
16092           # Corresponds to --with-msvcp-dll
16093 
16094   if test "x$DEVKIT_MSVCP_DLL" = x; then
16095     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
16096   fi
16097 
16098         fi
16099 
16100         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
16101 $as_echo_n "checking for devkit... " >&6; }
16102         if test "x$DEVKIT_NAME" != x; then
16103           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
16104 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
16105         else
16106           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
16107 $as_echo "$DEVKIT_ROOT" >&6; }
16108         fi
16109 
16110 
16111   if test "x$DEVKIT_EXTRA_PATH" != x; then
16112     if test "x$EXTRA_PATH" = x; then
16113       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
16114     else
16115       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
16116     fi
16117   fi
16118 
16119 
16120         # Fallback default of just /bin if DEVKIT_PATH is not defined
16121         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16122           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
16123         fi
16124 
16125   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
16126     if test "x$TOOLCHAIN_PATH" = x; then
16127       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
16128     else
16129       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
16130     fi
16131   fi
16132 
16133 
16134         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
16135         # places for backwards compatiblity.
16136         if test "x$DEVKIT_SYSROOT" != x; then
16137           SYSROOT="$DEVKIT_SYSROOT"
16138         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
16139           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
16140         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
16141           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
16142         fi
16143 
16144 
16145 fi
16146 
16147 
16148   # You can force the sysroot if the sysroot encoded into the compiler tools
16149   # is not correct.
16150 
16151 # Check whether --with-sys-root was given.
16152 if test "${with_sys_root+set}" = set; then :
16153   withval=$with_sys_root; SYSROOT=$with_sys_root
16154 
16155 fi
16156 
16157 
16158 
16159 # Check whether --with-sysroot was given.
16160 if test "${with_sysroot+set}" = set; then :
16161   withval=$with_sysroot; SYSROOT=$with_sysroot
16162 
16163 fi
16164 
16165 
16166 
16167 # Check whether --with-tools-dir was given.
16168 if test "${with_tools_dir+set}" = set; then :
16169   withval=$with_tools_dir;
16170   if test "x$with_tools_dir" != x; then
16171     if test "x$TOOLCHAIN_PATH" = x; then
16172       TOOLCHAIN_PATH="$with_tools_dir"
16173     else
16174       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
16175     fi
16176   fi
16177 
16178 
16179 fi
16180 
16181 
16182 
16183 # Check whether --with-toolchain-path was given.
16184 if test "${with_toolchain_path+set}" = set; then :
16185   withval=$with_toolchain_path;
16186   if test "x$with_toolchain_path" != x; then
16187     if test "x$TOOLCHAIN_PATH" = x; then
16188       TOOLCHAIN_PATH="$with_toolchain_path"
16189     else
16190       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
16191     fi
16192   fi
16193 
16194 
16195 fi
16196 
16197 
16198 
16199 # Check whether --with-extra-path was given.
16200 if test "${with_extra_path+set}" = set; then :
16201   withval=$with_extra_path;
16202   if test "x$with_extra_path" != x; then
16203     if test "x$EXTRA_PATH" = x; then
16204       EXTRA_PATH="$with_extra_path"
16205     else
16206       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
16207     fi
16208   fi
16209 
16210 
16211 fi
16212 
16213 
16214   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
16215     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
16216     # If not, detect if Xcode is installed by running xcodebuild -version
16217     # if no Xcode installed, xcodebuild exits with 1
16218     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
16219     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
16220       # We need to use xcodebuild in the toolchain dir provided by the user, this will
16221       # fall back on the stub binary in /usr/bin/xcodebuild
16222       # Extract the first word of "xcodebuild", so it can be a program name with args.
16223 set dummy xcodebuild; ac_word=$2
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16225 $as_echo_n "checking for $ac_word... " >&6; }
16226 if ${ac_cv_path_XCODEBUILD+:} false; then :
16227   $as_echo_n "(cached) " >&6
16228 else
16229   case $XCODEBUILD in
16230   [\\/]* | ?:[\\/]*)
16231   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
16232   ;;
16233   *)
16234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16235 for as_dir in $TOOLCHAIN_PATH
16236 do
16237   IFS=$as_save_IFS
16238   test -z "$as_dir" && as_dir=.
16239     for ac_exec_ext in '' $ac_executable_extensions; do
16240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16241     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
16242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16243     break 2
16244   fi
16245 done
16246   done
16247 IFS=$as_save_IFS
16248 
16249   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
16250   ;;
16251 esac
16252 fi
16253 XCODEBUILD=$ac_cv_path_XCODEBUILD
16254 if test -n "$XCODEBUILD"; then
16255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
16256 $as_echo "$XCODEBUILD" >&6; }
16257 else
16258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16259 $as_echo "no" >&6; }
16260 fi
16261 
16262 
16263     else
16264       # this should result in SYSROOT being empty, unless --with-sysroot is provided
16265       # when only the command line tools are installed there are no SDKs, so headers
16266       # are copied into the system frameworks
16267       XCODEBUILD=
16268 
16269     fi
16270 
16271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
16272 $as_echo_n "checking for sdk name... " >&6; }
16273 
16274 # Check whether --with-sdk-name was given.
16275 if test "${with_sdk_name+set}" = set; then :
16276   withval=$with_sdk_name; SDKNAME=$with_sdk_name
16277 
16278 fi
16279 
16280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
16281 $as_echo "$SDKNAME" >&6; }
16282 
16283     # if toolchain path is specified then don't rely on system headers, they may not compile
16284     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
16285     test -z "$TOOLCHAIN_PATH" && \
16286       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
16287 
16288     if test -z "$SYSROOT"; then
16289       if test -n "$XCODEBUILD"; then
16290         # if we don't have system headers, use default SDK name (last resort)
16291         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16292           SDKNAME=${SDKNAME:-macosx}
16293         fi
16294 
16295         if test -n "$SDKNAME"; then
16296           # Call xcodebuild to determine SYSROOT
16297           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
16298         fi
16299       else
16300         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16301           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
16302         fi
16303       fi
16304     else
16305       # warn user if --with-sdk-name was also set
16306       if test -n "$with_sdk_name"; then
16307         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
16308 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
16309       fi
16310     fi
16311 
16312     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
16313       # If no system framework headers, then SYSROOT must be set, or we won't build
16314       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
16315     fi
16316 
16317     # Perform a basic sanity test
16318     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
16319       if test -z "$SYSROOT"; then
16320         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
16321       else
16322         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
16323       fi
16324     fi
16325 
16326     # set SDKROOT too, Xcode tools will pick it up
16327     SDKROOT=$SYSROOT
16328 
16329   fi
16330 
16331   # Prepend the extra path to the global path
16332 
16333   if test "x$EXTRA_PATH" != x; then
16334     if test "x$PATH" = x; then
16335       PATH="$EXTRA_PATH"
16336     else
16337       PATH="$EXTRA_PATH:$PATH"
16338     fi
16339   fi
16340 
16341 
16342   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
16343     # Add extra search paths on solaris for utilities like ar and as etc...
16344     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
16345   fi
16346 
16347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16348 $as_echo_n "checking for sysroot... " >&6; }
16349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
16350 $as_echo "$SYSROOT" >&6; }
16351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
16352 $as_echo_n "checking for toolchain path... " >&6; }
16353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
16354 $as_echo "$TOOLCHAIN_PATH" >&6; }
16355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
16356 $as_echo_n "checking for extra path... " >&6; }
16357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
16358 $as_echo "$EXTRA_PATH" >&6; }
16359 
16360 
16361 # To properly create a configuration name, we need to have the OpenJDK target
16362 # and options (variants and debug level) parsed.
16363 
16364 
16365 
16366 # Check whether --with-conf-name was given.
16367 if test "${with_conf_name+set}" = set; then :
16368   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
16369 fi
16370 
16371 
16372   # Test from where we are running configure, in or outside of src root.
16373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
16374 $as_echo_n "checking where to store configuration... " >&6; }
16375   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
16376       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
16377       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
16378     # We are running configure from the src root.
16379     # Create a default ./build/target-variant-debuglevel output root.
16380     if test "x${CONF_NAME}" = x; then
16381       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
16382 $as_echo "in default location" >&6; }
16383       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
16384     else
16385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
16386 $as_echo "in build directory with custom name" >&6; }
16387     fi
16388     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
16389     $MKDIR -p "$OUTPUT_ROOT"
16390     if test ! -d "$OUTPUT_ROOT"; then
16391       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
16392     fi
16393   else
16394     # We are running configure from outside of the src dir.
16395     # Then use the current directory as output dir!
16396     # If configuration is situated in normal build directory, just use the build
16397     # directory name as configuration name, otherwise use the complete path.
16398     if test "x${CONF_NAME}" = x; then
16399       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
16400     fi
16401     OUTPUT_ROOT="$CURDIR"
16402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
16403 $as_echo "in current directory" >&6; }
16404 
16405     # WARNING: This might be a bad thing to do. You need to be sure you want to
16406     # have a configuration in this directory. Do some sanity checks!
16407 
16408     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
16409       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
16410       # other files
16411       files_present=`$LS $OUTPUT_ROOT`
16412       # Configure has already touched config.log and confdefs.h in the current dir when this check
16413       # is performed.
16414       filtered_files=`$ECHO "$files_present" \
16415           | $SED -e 's/config.log//g' \
16416               -e 's/configure.log//g' \
16417               -e 's/confdefs.h//g' \
16418               -e 's/ //g' \
16419           | $TR -d '\n'`
16420       if test "x$filtered_files" != x; then
16421         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
16422 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
16423         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
16424 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
16425         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
16426 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
16427         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
16428 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
16429         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
16430 $as_echo "$as_me: seriously mess up just about everything." >&6;}
16431         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
16432 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
16433         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
16434 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
16435         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
16436       fi
16437     fi
16438   fi
16439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
16440 $as_echo_n "checking what configuration name to use... " >&6; }
16441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
16442 $as_echo "$CONF_NAME" >&6; }
16443 
16444 
16445   # Only process if variable expands to non-empty
16446 
16447   if test "x$OUTPUT_ROOT" != x; then
16448     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16449 
16450   # Input might be given as Windows format, start by converting to
16451   # unix format.
16452   path="$OUTPUT_ROOT"
16453   new_path=`$CYGPATH -u "$path"`
16454 
16455   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16456   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16457   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16458   # "foo.exe" is OK but "foo" is an error.
16459   #
16460   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16461   # It is also a way to make sure we got the proper file name for the real test later on.
16462   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16463   if test "x$test_shortpath" = x; then
16464     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16465 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16466     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
16467   fi
16468 
16469   # Call helper function which possibly converts this using DOS-style short mode.
16470   # If so, the updated path is stored in $new_path.
16471 
16472   input_path="$new_path"
16473   # Check if we need to convert this using DOS-style short mode. If the path
16474   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16475   # take no chances and rewrite it.
16476   # Note: m4 eats our [], so we need to use [ and ] instead.
16477   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16478   if test "x$has_forbidden_chars" != x; then
16479     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16480     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16481     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16482     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16483       # Going to short mode and back again did indeed matter. Since short mode is
16484       # case insensitive, let's make it lowercase to improve readability.
16485       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16486       # Now convert it back to Unix-style (cygpath)
16487       input_path=`$CYGPATH -u "$shortmode_path"`
16488       new_path="$input_path"
16489     fi
16490   fi
16491 
16492   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16493   if test "x$test_cygdrive_prefix" = x; then
16494     # As a simple fix, exclude /usr/bin since it's not a real path.
16495     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16496       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16497       # a path prefixed by /cygdrive for fixpath to work.
16498       new_path="$CYGWIN_ROOT_PATH$input_path"
16499     fi
16500   fi
16501 
16502 
16503   if test "x$path" != "x$new_path"; then
16504     OUTPUT_ROOT="$new_path"
16505     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16506 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16507   fi
16508 
16509     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16510 
16511   path="$OUTPUT_ROOT"
16512   has_colon=`$ECHO $path | $GREP ^.:`
16513   new_path="$path"
16514   if test "x$has_colon" = x; then
16515     # Not in mixed or Windows style, start by that.
16516     new_path=`cmd //c echo $path`
16517   fi
16518 
16519 
16520   input_path="$new_path"
16521   # Check if we need to convert this using DOS-style short mode. If the path
16522   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16523   # take no chances and rewrite it.
16524   # Note: m4 eats our [], so we need to use [ and ] instead.
16525   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16526   if test "x$has_forbidden_chars" != x; then
16527     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16528     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16529   fi
16530 
16531 
16532   windows_path="$new_path"
16533   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16534     unix_path=`$CYGPATH -u "$windows_path"`
16535     new_path="$unix_path"
16536   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16537     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16538     new_path="$unix_path"
16539   fi
16540 
16541   if test "x$path" != "x$new_path"; then
16542     OUTPUT_ROOT="$new_path"
16543     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16544 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16545   fi
16546 
16547   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16548   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16549 
16550     else
16551       # We're on a unix platform. Hooray! :)
16552       path="$OUTPUT_ROOT"
16553       has_space=`$ECHO "$path" | $GREP " "`
16554       if test "x$has_space" != x; then
16555         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16556 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16557         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16558       fi
16559 
16560       # Use eval to expand a potential ~
16561       eval path="$path"
16562       if test ! -f "$path" && test ! -d "$path"; then
16563         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16564       fi
16565 
16566       OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
16567     fi
16568   fi
16569 
16570 
16571   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
16572   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
16573 
16574   SPEC=$OUTPUT_ROOT/spec.gmk
16575 
16576   CONF_NAME=$CONF_NAME
16577 
16578   OUTPUT_ROOT=$OUTPUT_ROOT
16579 
16580 
16581 
16582   # The spec.gmk file contains all variables for the make system.
16583   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
16584 
16585   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
16586   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
16587 
16588   # The bootcycle-spec.gmk file contains support for boot cycle builds.
16589   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
16590 
16591   # The compare.sh is used to compare the build output to other builds.
16592   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
16593 
16594   # The generated Makefile knows where the spec.gmk is and where the source is.
16595   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
16596   # which will look for generated configurations
16597   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
16598 
16599 
16600 
16601 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
16602 
16603   for ac_prog in apt-get yum port pkgutil pkgadd
16604 do
16605   # Extract the first word of "$ac_prog", so it can be a program name with args.
16606 set dummy $ac_prog; ac_word=$2
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16608 $as_echo_n "checking for $ac_word... " >&6; }
16609 if ${ac_cv_prog_PKGHANDLER+:} false; then :
16610   $as_echo_n "(cached) " >&6
16611 else
16612   if test -n "$PKGHANDLER"; then
16613   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
16614 else
16615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16616 for as_dir in $PATH
16617 do
16618   IFS=$as_save_IFS
16619   test -z "$as_dir" && as_dir=.
16620     for ac_exec_ext in '' $ac_executable_extensions; do
16621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16622     ac_cv_prog_PKGHANDLER="$ac_prog"
16623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16624     break 2
16625   fi
16626 done
16627   done
16628 IFS=$as_save_IFS
16629 
16630 fi
16631 fi
16632 PKGHANDLER=$ac_cv_prog_PKGHANDLER
16633 if test -n "$PKGHANDLER"; then
16634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
16635 $as_echo "$PKGHANDLER" >&6; }
16636 else
16637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638 $as_echo "no" >&6; }
16639 fi
16640 
16641 
16642   test -n "$PKGHANDLER" && break
16643 done
16644 
16645 
16646 
16647 # Setup tools that requires more complex handling, or that is not needed by the configure script.
16648 
16649 
16650 
16651   # Publish this variable in the help.
16652 
16653 
16654   if [ -z "${MAKE+x}" ]; then
16655     # The variable is not set by user, try to locate tool using the code snippet
16656 
16657     # Try our hardest to locate a correct version of GNU make
16658     for ac_prog in gmake
16659 do
16660   # Extract the first word of "$ac_prog", so it can be a program name with args.
16661 set dummy $ac_prog; ac_word=$2
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16663 $as_echo_n "checking for $ac_word... " >&6; }
16664 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
16665   $as_echo_n "(cached) " >&6
16666 else
16667   case $CHECK_GMAKE in
16668   [\\/]* | ?:[\\/]*)
16669   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
16670   ;;
16671   *)
16672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16673 for as_dir in $PATH
16674 do
16675   IFS=$as_save_IFS
16676   test -z "$as_dir" && as_dir=.
16677     for ac_exec_ext in '' $ac_executable_extensions; do
16678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16679     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16681     break 2
16682   fi
16683 done
16684   done
16685 IFS=$as_save_IFS
16686 
16687   ;;
16688 esac
16689 fi
16690 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
16691 if test -n "$CHECK_GMAKE"; then
16692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
16693 $as_echo "$CHECK_GMAKE" >&6; }
16694 else
16695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16696 $as_echo "no" >&6; }
16697 fi
16698 
16699 
16700   test -n "$CHECK_GMAKE" && break
16701 done
16702 
16703 
16704   MAKE_CANDIDATE=""$CHECK_GMAKE""
16705   DESCRIPTION="gmake in PATH"
16706 
16707   # On Cygwin, we require a newer version of make than on other platforms
16708   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16709     MAKE_VERSION_EXPR="-e 4\."
16710     MAKE_REQUIRED_VERSION="4.0"
16711    else
16712     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
16713     MAKE_REQUIRED_VERSION="3.81"
16714   fi
16715 
16716   if test "x$MAKE_CANDIDATE" != x; then
16717     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16718 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16719     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16720     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16721     if test "x$IS_GNU_MAKE" = x; then
16722       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16723 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16724     else
16725       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
16726       if test "x$IS_MODERN_MAKE" = x; then
16727         { $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
16728 $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;}
16729       else
16730         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16731           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16732             MAKE_EXPECTED_ENV='cygwin'
16733           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16734             MAKE_EXPECTED_ENV='msys'
16735           else
16736             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16737           fi
16738           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16739           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16740         else
16741           # Not relevant for non-Windows
16742           IS_MAKE_CORRECT_ENV=true
16743         fi
16744         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16745           { $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
16746 $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;}
16747         else
16748           FOUND_MAKE=$MAKE_CANDIDATE
16749 
16750   # Only process if variable expands to non-empty
16751 
16752   if test "x$FOUND_MAKE" != x; then
16753     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16754 
16755   # First separate the path from the arguments. This will split at the first
16756   # space.
16757   complete="$FOUND_MAKE"
16758   path="${complete%% *}"
16759   tmp="$complete EOL"
16760   arguments="${tmp#* }"
16761 
16762   # Input might be given as Windows format, start by converting to
16763   # unix format.
16764   new_path=`$CYGPATH -u "$path"`
16765 
16766   # Now try to locate executable using which
16767   new_path=`$WHICH "$new_path" 2> /dev/null`
16768   # bat and cmd files are not always considered executable in cygwin causing which
16769   # to not find them
16770   if test "x$new_path" = x \
16771       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16772       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16773     new_path=`$CYGPATH -u "$path"`
16774   fi
16775   if test "x$new_path" = x; then
16776     # Oops. Which didn't find the executable.
16777     # The splitting of arguments from the executable at a space might have been incorrect,
16778     # since paths with space are more likely in Windows. Give it another try with the whole
16779     # argument.
16780     path="$complete"
16781     arguments="EOL"
16782     new_path=`$CYGPATH -u "$path"`
16783     new_path=`$WHICH "$new_path" 2> /dev/null`
16784     # bat and cmd files are not always considered executable in cygwin causing which
16785     # to not find them
16786     if test "x$new_path" = x \
16787         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16788         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16789       new_path=`$CYGPATH -u "$path"`
16790     fi
16791     if test "x$new_path" = x; then
16792       # It's still not found. Now this is an unrecoverable error.
16793       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16794 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16795       has_space=`$ECHO "$complete" | $GREP " "`
16796       if test "x$has_space" != x; then
16797         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16798 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16799       fi
16800       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16801     fi
16802   fi
16803 
16804   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16805   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16806   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16807   # "foo.exe" is OK but "foo" is an error.
16808   #
16809   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16810   # It is also a way to make sure we got the proper file name for the real test later on.
16811   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16812   if test "x$test_shortpath" = x; then
16813     # Short path failed, file does not exist as specified.
16814     # Try adding .exe or .cmd
16815     if test -f "${new_path}.exe"; then
16816       input_to_shortpath="${new_path}.exe"
16817     elif test -f "${new_path}.cmd"; then
16818       input_to_shortpath="${new_path}.cmd"
16819     else
16820       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16821 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16822       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16823 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16824       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16825     fi
16826   else
16827     input_to_shortpath="$new_path"
16828   fi
16829 
16830   # Call helper function which possibly converts this using DOS-style short mode.
16831   # If so, the updated path is stored in $new_path.
16832   new_path="$input_to_shortpath"
16833 
16834   input_path="$input_to_shortpath"
16835   # Check if we need to convert this using DOS-style short mode. If the path
16836   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16837   # take no chances and rewrite it.
16838   # Note: m4 eats our [], so we need to use [ and ] instead.
16839   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16840   if test "x$has_forbidden_chars" != x; then
16841     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16842     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16843     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16844     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16845       # Going to short mode and back again did indeed matter. Since short mode is
16846       # case insensitive, let's make it lowercase to improve readability.
16847       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16848       # Now convert it back to Unix-style (cygpath)
16849       input_path=`$CYGPATH -u "$shortmode_path"`
16850       new_path="$input_path"
16851     fi
16852   fi
16853 
16854   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16855   if test "x$test_cygdrive_prefix" = x; then
16856     # As a simple fix, exclude /usr/bin since it's not a real path.
16857     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16858       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16859       # a path prefixed by /cygdrive for fixpath to work.
16860       new_path="$CYGWIN_ROOT_PATH$input_path"
16861     fi
16862   fi
16863 
16864   # remove trailing .exe if any
16865   new_path="${new_path/%.exe/}"
16866 
16867     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16868 
16869   # First separate the path from the arguments. This will split at the first
16870   # space.
16871   complete="$FOUND_MAKE"
16872   path="${complete%% *}"
16873   tmp="$complete EOL"
16874   arguments="${tmp#* }"
16875 
16876   # Input might be given as Windows format, start by converting to
16877   # unix format.
16878   new_path="$path"
16879 
16880   windows_path="$new_path"
16881   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16882     unix_path=`$CYGPATH -u "$windows_path"`
16883     new_path="$unix_path"
16884   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16885     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16886     new_path="$unix_path"
16887   fi
16888 
16889 
16890   # Now try to locate executable using which
16891   new_path=`$WHICH "$new_path" 2> /dev/null`
16892 
16893   if test "x$new_path" = x; then
16894     # Oops. Which didn't find the executable.
16895     # The splitting of arguments from the executable at a space might have been incorrect,
16896     # since paths with space are more likely in Windows. Give it another try with the whole
16897     # argument.
16898     path="$complete"
16899     arguments="EOL"
16900     new_path="$path"
16901 
16902   windows_path="$new_path"
16903   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16904     unix_path=`$CYGPATH -u "$windows_path"`
16905     new_path="$unix_path"
16906   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16907     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16908     new_path="$unix_path"
16909   fi
16910 
16911 
16912     new_path=`$WHICH "$new_path" 2> /dev/null`
16913     # bat and cmd files are not always considered executable in MSYS causing which
16914     # to not find them
16915     if test "x$new_path" = x \
16916         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16917         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16918       new_path="$path"
16919 
16920   windows_path="$new_path"
16921   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16922     unix_path=`$CYGPATH -u "$windows_path"`
16923     new_path="$unix_path"
16924   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16925     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16926     new_path="$unix_path"
16927   fi
16928 
16929     fi
16930 
16931     if test "x$new_path" = x; then
16932       # It's still not found. Now this is an unrecoverable error.
16933       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16934 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16935       has_space=`$ECHO "$complete" | $GREP " "`
16936       if test "x$has_space" != x; then
16937         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16938 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16939       fi
16940       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16941     fi
16942   fi
16943 
16944   # Now new_path has a complete unix path to the binary
16945   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16946     # Keep paths in /bin as-is, but remove trailing .exe if any
16947     new_path="${new_path/%.exe/}"
16948     # Do not save /bin paths to all_fixpath_prefixes!
16949   else
16950     # Not in mixed or Windows style, start by that.
16951     new_path=`cmd //c echo $new_path`
16952 
16953   input_path="$new_path"
16954   # Check if we need to convert this using DOS-style short mode. If the path
16955   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16956   # take no chances and rewrite it.
16957   # Note: m4 eats our [], so we need to use [ and ] instead.
16958   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16959   if test "x$has_forbidden_chars" != x; then
16960     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16961     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16962   fi
16963 
16964     # Output is in $new_path
16965 
16966   windows_path="$new_path"
16967   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16968     unix_path=`$CYGPATH -u "$windows_path"`
16969     new_path="$unix_path"
16970   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16971     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16972     new_path="$unix_path"
16973   fi
16974 
16975     # remove trailing .exe if any
16976     new_path="${new_path/%.exe/}"
16977 
16978     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16979     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16980   fi
16981 
16982     else
16983       # We're on a unix platform. Hooray! :)
16984       # First separate the path from the arguments. This will split at the first
16985       # space.
16986       complete="$FOUND_MAKE"
16987       path="${complete%% *}"
16988       tmp="$complete EOL"
16989       arguments="${tmp#* }"
16990 
16991       # Cannot rely on the command "which" here since it doesn't always work.
16992       is_absolute_path=`$ECHO "$path" | $GREP ^/`
16993       if test -z "$is_absolute_path"; then
16994         # Path to executable is not absolute. Find it.
16995         IFS_save="$IFS"
16996         IFS=:
16997         for p in $PATH; do
16998           if test -f "$p/$path" && test -x "$p/$path"; then
16999             new_path="$p/$path"
17000             break
17001           fi
17002         done
17003         IFS="$IFS_save"
17004       else
17005         # This is an absolute path, we can use it without further modifications.
17006         new_path="$path"
17007       fi
17008 
17009       if test "x$new_path" = x; then
17010         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17011 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17012         has_space=`$ECHO "$complete" | $GREP " "`
17013         if test "x$has_space" != x; then
17014           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17015 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17016         fi
17017         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17018       fi
17019     fi
17020 
17021     # Now join together the path and the arguments once again
17022     if test "x$arguments" != xEOL; then
17023       new_complete="$new_path ${arguments% *}"
17024     else
17025       new_complete="$new_path"
17026     fi
17027 
17028     if test "x$complete" != "x$new_complete"; then
17029       FOUND_MAKE="$new_complete"
17030       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17031 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17032     fi
17033   fi
17034 
17035         fi
17036       fi
17037     fi
17038   fi
17039 
17040 
17041     if test "x$FOUND_MAKE" = x; then
17042       for ac_prog in make
17043 do
17044   # Extract the first word of "$ac_prog", so it can be a program name with args.
17045 set dummy $ac_prog; ac_word=$2
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17047 $as_echo_n "checking for $ac_word... " >&6; }
17048 if ${ac_cv_path_CHECK_MAKE+:} false; then :
17049   $as_echo_n "(cached) " >&6
17050 else
17051   case $CHECK_MAKE in
17052   [\\/]* | ?:[\\/]*)
17053   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
17054   ;;
17055   *)
17056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17057 for as_dir in $PATH
17058 do
17059   IFS=$as_save_IFS
17060   test -z "$as_dir" && as_dir=.
17061     for ac_exec_ext in '' $ac_executable_extensions; do
17062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17063     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
17064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17065     break 2
17066   fi
17067 done
17068   done
17069 IFS=$as_save_IFS
17070 
17071   ;;
17072 esac
17073 fi
17074 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
17075 if test -n "$CHECK_MAKE"; then
17076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
17077 $as_echo "$CHECK_MAKE" >&6; }
17078 else
17079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17080 $as_echo "no" >&6; }
17081 fi
17082 
17083 
17084   test -n "$CHECK_MAKE" && break
17085 done
17086 
17087 
17088   MAKE_CANDIDATE=""$CHECK_MAKE""
17089   DESCRIPTION="make in PATH"
17090 
17091   # On Cygwin, we require a newer version of make than on other platforms
17092   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17093     MAKE_VERSION_EXPR="-e 4\."
17094     MAKE_REQUIRED_VERSION="4.0"
17095    else
17096     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17097     MAKE_REQUIRED_VERSION="3.81"
17098   fi
17099 
17100   if test "x$MAKE_CANDIDATE" != x; then
17101     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17102 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17103     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17104     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17105     if test "x$IS_GNU_MAKE" = x; then
17106       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17107 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17108     else
17109       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17110       if test "x$IS_MODERN_MAKE" = x; then
17111         { $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
17112 $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;}
17113       else
17114         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17115           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17116             MAKE_EXPECTED_ENV='cygwin'
17117           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17118             MAKE_EXPECTED_ENV='msys'
17119           else
17120             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17121           fi
17122           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17123           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17124         else
17125           # Not relevant for non-Windows
17126           IS_MAKE_CORRECT_ENV=true
17127         fi
17128         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17129           { $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
17130 $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;}
17131         else
17132           FOUND_MAKE=$MAKE_CANDIDATE
17133 
17134   # Only process if variable expands to non-empty
17135 
17136   if test "x$FOUND_MAKE" != x; then
17137     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17138 
17139   # First separate the path from the arguments. This will split at the first
17140   # space.
17141   complete="$FOUND_MAKE"
17142   path="${complete%% *}"
17143   tmp="$complete EOL"
17144   arguments="${tmp#* }"
17145 
17146   # Input might be given as Windows format, start by converting to
17147   # unix format.
17148   new_path=`$CYGPATH -u "$path"`
17149 
17150   # Now try to locate executable using which
17151   new_path=`$WHICH "$new_path" 2> /dev/null`
17152   # bat and cmd files are not always considered executable in cygwin causing which
17153   # to not find them
17154   if test "x$new_path" = x \
17155       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17156       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17157     new_path=`$CYGPATH -u "$path"`
17158   fi
17159   if test "x$new_path" = x; then
17160     # Oops. Which didn't find the executable.
17161     # The splitting of arguments from the executable at a space might have been incorrect,
17162     # since paths with space are more likely in Windows. Give it another try with the whole
17163     # argument.
17164     path="$complete"
17165     arguments="EOL"
17166     new_path=`$CYGPATH -u "$path"`
17167     new_path=`$WHICH "$new_path" 2> /dev/null`
17168     # bat and cmd files are not always considered executable in cygwin causing which
17169     # to not find them
17170     if test "x$new_path" = x \
17171         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17172         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17173       new_path=`$CYGPATH -u "$path"`
17174     fi
17175     if test "x$new_path" = x; then
17176       # It's still not found. Now this is an unrecoverable error.
17177       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17178 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17179       has_space=`$ECHO "$complete" | $GREP " "`
17180       if test "x$has_space" != x; then
17181         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17182 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17183       fi
17184       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17185     fi
17186   fi
17187 
17188   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17189   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17190   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17191   # "foo.exe" is OK but "foo" is an error.
17192   #
17193   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17194   # It is also a way to make sure we got the proper file name for the real test later on.
17195   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17196   if test "x$test_shortpath" = x; then
17197     # Short path failed, file does not exist as specified.
17198     # Try adding .exe or .cmd
17199     if test -f "${new_path}.exe"; then
17200       input_to_shortpath="${new_path}.exe"
17201     elif test -f "${new_path}.cmd"; then
17202       input_to_shortpath="${new_path}.cmd"
17203     else
17204       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17205 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17206       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17207 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17208       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17209     fi
17210   else
17211     input_to_shortpath="$new_path"
17212   fi
17213 
17214   # Call helper function which possibly converts this using DOS-style short mode.
17215   # If so, the updated path is stored in $new_path.
17216   new_path="$input_to_shortpath"
17217 
17218   input_path="$input_to_shortpath"
17219   # Check if we need to convert this using DOS-style short mode. If the path
17220   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17221   # take no chances and rewrite it.
17222   # Note: m4 eats our [], so we need to use [ and ] instead.
17223   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17224   if test "x$has_forbidden_chars" != x; then
17225     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17226     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17227     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17228     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17229       # Going to short mode and back again did indeed matter. Since short mode is
17230       # case insensitive, let's make it lowercase to improve readability.
17231       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17232       # Now convert it back to Unix-style (cygpath)
17233       input_path=`$CYGPATH -u "$shortmode_path"`
17234       new_path="$input_path"
17235     fi
17236   fi
17237 
17238   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17239   if test "x$test_cygdrive_prefix" = x; then
17240     # As a simple fix, exclude /usr/bin since it's not a real path.
17241     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17242       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17243       # a path prefixed by /cygdrive for fixpath to work.
17244       new_path="$CYGWIN_ROOT_PATH$input_path"
17245     fi
17246   fi
17247 
17248   # remove trailing .exe if any
17249   new_path="${new_path/%.exe/}"
17250 
17251     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17252 
17253   # First separate the path from the arguments. This will split at the first
17254   # space.
17255   complete="$FOUND_MAKE"
17256   path="${complete%% *}"
17257   tmp="$complete EOL"
17258   arguments="${tmp#* }"
17259 
17260   # Input might be given as Windows format, start by converting to
17261   # unix format.
17262   new_path="$path"
17263 
17264   windows_path="$new_path"
17265   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17266     unix_path=`$CYGPATH -u "$windows_path"`
17267     new_path="$unix_path"
17268   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17269     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17270     new_path="$unix_path"
17271   fi
17272 
17273 
17274   # Now try to locate executable using which
17275   new_path=`$WHICH "$new_path" 2> /dev/null`
17276 
17277   if test "x$new_path" = x; then
17278     # Oops. Which didn't find the executable.
17279     # The splitting of arguments from the executable at a space might have been incorrect,
17280     # since paths with space are more likely in Windows. Give it another try with the whole
17281     # argument.
17282     path="$complete"
17283     arguments="EOL"
17284     new_path="$path"
17285 
17286   windows_path="$new_path"
17287   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17288     unix_path=`$CYGPATH -u "$windows_path"`
17289     new_path="$unix_path"
17290   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17291     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17292     new_path="$unix_path"
17293   fi
17294 
17295 
17296     new_path=`$WHICH "$new_path" 2> /dev/null`
17297     # bat and cmd files are not always considered executable in MSYS causing which
17298     # to not find them
17299     if test "x$new_path" = x \
17300         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17301         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17302       new_path="$path"
17303 
17304   windows_path="$new_path"
17305   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17306     unix_path=`$CYGPATH -u "$windows_path"`
17307     new_path="$unix_path"
17308   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17309     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17310     new_path="$unix_path"
17311   fi
17312 
17313     fi
17314 
17315     if test "x$new_path" = x; then
17316       # It's still not found. Now this is an unrecoverable error.
17317       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17318 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17319       has_space=`$ECHO "$complete" | $GREP " "`
17320       if test "x$has_space" != x; then
17321         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17322 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17323       fi
17324       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17325     fi
17326   fi
17327 
17328   # Now new_path has a complete unix path to the binary
17329   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17330     # Keep paths in /bin as-is, but remove trailing .exe if any
17331     new_path="${new_path/%.exe/}"
17332     # Do not save /bin paths to all_fixpath_prefixes!
17333   else
17334     # Not in mixed or Windows style, start by that.
17335     new_path=`cmd //c echo $new_path`
17336 
17337   input_path="$new_path"
17338   # Check if we need to convert this using DOS-style short mode. If the path
17339   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17340   # take no chances and rewrite it.
17341   # Note: m4 eats our [], so we need to use [ and ] instead.
17342   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17343   if test "x$has_forbidden_chars" != x; then
17344     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17345     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17346   fi
17347 
17348     # Output is in $new_path
17349 
17350   windows_path="$new_path"
17351   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17352     unix_path=`$CYGPATH -u "$windows_path"`
17353     new_path="$unix_path"
17354   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17355     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17356     new_path="$unix_path"
17357   fi
17358 
17359     # remove trailing .exe if any
17360     new_path="${new_path/%.exe/}"
17361 
17362     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17363     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17364   fi
17365 
17366     else
17367       # We're on a unix platform. Hooray! :)
17368       # First separate the path from the arguments. This will split at the first
17369       # space.
17370       complete="$FOUND_MAKE"
17371       path="${complete%% *}"
17372       tmp="$complete EOL"
17373       arguments="${tmp#* }"
17374 
17375       # Cannot rely on the command "which" here since it doesn't always work.
17376       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17377       if test -z "$is_absolute_path"; then
17378         # Path to executable is not absolute. Find it.
17379         IFS_save="$IFS"
17380         IFS=:
17381         for p in $PATH; do
17382           if test -f "$p/$path" && test -x "$p/$path"; then
17383             new_path="$p/$path"
17384             break
17385           fi
17386         done
17387         IFS="$IFS_save"
17388       else
17389         # This is an absolute path, we can use it without further modifications.
17390         new_path="$path"
17391       fi
17392 
17393       if test "x$new_path" = x; then
17394         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17395 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17396         has_space=`$ECHO "$complete" | $GREP " "`
17397         if test "x$has_space" != x; then
17398           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17399 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17400         fi
17401         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17402       fi
17403     fi
17404 
17405     # Now join together the path and the arguments once again
17406     if test "x$arguments" != xEOL; then
17407       new_complete="$new_path ${arguments% *}"
17408     else
17409       new_complete="$new_path"
17410     fi
17411 
17412     if test "x$complete" != "x$new_complete"; then
17413       FOUND_MAKE="$new_complete"
17414       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17415 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17416     fi
17417   fi
17418 
17419         fi
17420       fi
17421     fi
17422   fi
17423 
17424     fi
17425 
17426     if test "x$FOUND_MAKE" = x; then
17427       if test "x$TOOLCHAIN_PATH" != x; then
17428         # We have a toolchain path, check that as well before giving up.
17429         OLD_PATH=$PATH
17430         PATH=$TOOLCHAIN_PATH:$PATH
17431         for ac_prog in gmake
17432 do
17433   # Extract the first word of "$ac_prog", so it can be a program name with args.
17434 set dummy $ac_prog; ac_word=$2
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17436 $as_echo_n "checking for $ac_word... " >&6; }
17437 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17438   $as_echo_n "(cached) " >&6
17439 else
17440   case $CHECK_TOOLSDIR_GMAKE in
17441   [\\/]* | ?:[\\/]*)
17442   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17443   ;;
17444   *)
17445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17446 for as_dir in $PATH
17447 do
17448   IFS=$as_save_IFS
17449   test -z "$as_dir" && as_dir=.
17450     for ac_exec_ext in '' $ac_executable_extensions; do
17451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17452     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17454     break 2
17455   fi
17456 done
17457   done
17458 IFS=$as_save_IFS
17459 
17460   ;;
17461 esac
17462 fi
17463 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17464 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17466 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17467 else
17468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17469 $as_echo "no" >&6; }
17470 fi
17471 
17472 
17473   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17474 done
17475 
17476 
17477   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17478   DESCRIPTION="gmake in tools-dir"
17479 
17480   # On Cygwin, we require a newer version of make than on other platforms
17481   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17482     MAKE_VERSION_EXPR="-e 4\."
17483     MAKE_REQUIRED_VERSION="4.0"
17484    else
17485     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17486     MAKE_REQUIRED_VERSION="3.81"
17487   fi
17488 
17489   if test "x$MAKE_CANDIDATE" != x; then
17490     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17491 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17492     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17493     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17494     if test "x$IS_GNU_MAKE" = x; then
17495       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17496 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17497     else
17498       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17499       if test "x$IS_MODERN_MAKE" = x; then
17500         { $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
17501 $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;}
17502       else
17503         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17504           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17505             MAKE_EXPECTED_ENV='cygwin'
17506           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17507             MAKE_EXPECTED_ENV='msys'
17508           else
17509             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17510           fi
17511           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17512           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17513         else
17514           # Not relevant for non-Windows
17515           IS_MAKE_CORRECT_ENV=true
17516         fi
17517         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17518           { $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
17519 $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;}
17520         else
17521           FOUND_MAKE=$MAKE_CANDIDATE
17522 
17523   # Only process if variable expands to non-empty
17524 
17525   if test "x$FOUND_MAKE" != x; then
17526     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17527 
17528   # First separate the path from the arguments. This will split at the first
17529   # space.
17530   complete="$FOUND_MAKE"
17531   path="${complete%% *}"
17532   tmp="$complete EOL"
17533   arguments="${tmp#* }"
17534 
17535   # Input might be given as Windows format, start by converting to
17536   # unix format.
17537   new_path=`$CYGPATH -u "$path"`
17538 
17539   # Now try to locate executable using which
17540   new_path=`$WHICH "$new_path" 2> /dev/null`
17541   # bat and cmd files are not always considered executable in cygwin causing which
17542   # to not find them
17543   if test "x$new_path" = x \
17544       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17545       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17546     new_path=`$CYGPATH -u "$path"`
17547   fi
17548   if test "x$new_path" = x; then
17549     # Oops. Which didn't find the executable.
17550     # The splitting of arguments from the executable at a space might have been incorrect,
17551     # since paths with space are more likely in Windows. Give it another try with the whole
17552     # argument.
17553     path="$complete"
17554     arguments="EOL"
17555     new_path=`$CYGPATH -u "$path"`
17556     new_path=`$WHICH "$new_path" 2> /dev/null`
17557     # bat and cmd files are not always considered executable in cygwin causing which
17558     # to not find them
17559     if test "x$new_path" = x \
17560         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17561         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17562       new_path=`$CYGPATH -u "$path"`
17563     fi
17564     if test "x$new_path" = x; then
17565       # It's still not found. Now this is an unrecoverable error.
17566       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17567 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17568       has_space=`$ECHO "$complete" | $GREP " "`
17569       if test "x$has_space" != x; then
17570         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17571 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17572       fi
17573       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17574     fi
17575   fi
17576 
17577   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17578   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17579   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17580   # "foo.exe" is OK but "foo" is an error.
17581   #
17582   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17583   # It is also a way to make sure we got the proper file name for the real test later on.
17584   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17585   if test "x$test_shortpath" = x; then
17586     # Short path failed, file does not exist as specified.
17587     # Try adding .exe or .cmd
17588     if test -f "${new_path}.exe"; then
17589       input_to_shortpath="${new_path}.exe"
17590     elif test -f "${new_path}.cmd"; then
17591       input_to_shortpath="${new_path}.cmd"
17592     else
17593       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17594 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17595       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17596 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17597       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17598     fi
17599   else
17600     input_to_shortpath="$new_path"
17601   fi
17602 
17603   # Call helper function which possibly converts this using DOS-style short mode.
17604   # If so, the updated path is stored in $new_path.
17605   new_path="$input_to_shortpath"
17606 
17607   input_path="$input_to_shortpath"
17608   # Check if we need to convert this using DOS-style short mode. If the path
17609   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17610   # take no chances and rewrite it.
17611   # Note: m4 eats our [], so we need to use [ and ] instead.
17612   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17613   if test "x$has_forbidden_chars" != x; then
17614     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17615     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17616     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17617     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17618       # Going to short mode and back again did indeed matter. Since short mode is
17619       # case insensitive, let's make it lowercase to improve readability.
17620       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17621       # Now convert it back to Unix-style (cygpath)
17622       input_path=`$CYGPATH -u "$shortmode_path"`
17623       new_path="$input_path"
17624     fi
17625   fi
17626 
17627   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17628   if test "x$test_cygdrive_prefix" = x; then
17629     # As a simple fix, exclude /usr/bin since it's not a real path.
17630     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17631       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17632       # a path prefixed by /cygdrive for fixpath to work.
17633       new_path="$CYGWIN_ROOT_PATH$input_path"
17634     fi
17635   fi
17636 
17637   # remove trailing .exe if any
17638   new_path="${new_path/%.exe/}"
17639 
17640     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17641 
17642   # First separate the path from the arguments. This will split at the first
17643   # space.
17644   complete="$FOUND_MAKE"
17645   path="${complete%% *}"
17646   tmp="$complete EOL"
17647   arguments="${tmp#* }"
17648 
17649   # Input might be given as Windows format, start by converting to
17650   # unix format.
17651   new_path="$path"
17652 
17653   windows_path="$new_path"
17654   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17655     unix_path=`$CYGPATH -u "$windows_path"`
17656     new_path="$unix_path"
17657   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17658     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17659     new_path="$unix_path"
17660   fi
17661 
17662 
17663   # Now try to locate executable using which
17664   new_path=`$WHICH "$new_path" 2> /dev/null`
17665 
17666   if test "x$new_path" = x; then
17667     # Oops. Which didn't find the executable.
17668     # The splitting of arguments from the executable at a space might have been incorrect,
17669     # since paths with space are more likely in Windows. Give it another try with the whole
17670     # argument.
17671     path="$complete"
17672     arguments="EOL"
17673     new_path="$path"
17674 
17675   windows_path="$new_path"
17676   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17677     unix_path=`$CYGPATH -u "$windows_path"`
17678     new_path="$unix_path"
17679   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17680     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17681     new_path="$unix_path"
17682   fi
17683 
17684 
17685     new_path=`$WHICH "$new_path" 2> /dev/null`
17686     # bat and cmd files are not always considered executable in MSYS causing which
17687     # to not find them
17688     if test "x$new_path" = x \
17689         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17690         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17691       new_path="$path"
17692 
17693   windows_path="$new_path"
17694   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17695     unix_path=`$CYGPATH -u "$windows_path"`
17696     new_path="$unix_path"
17697   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17698     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17699     new_path="$unix_path"
17700   fi
17701 
17702     fi
17703 
17704     if test "x$new_path" = x; then
17705       # It's still not found. Now this is an unrecoverable error.
17706       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17707 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17708       has_space=`$ECHO "$complete" | $GREP " "`
17709       if test "x$has_space" != x; then
17710         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17711 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17712       fi
17713       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17714     fi
17715   fi
17716 
17717   # Now new_path has a complete unix path to the binary
17718   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17719     # Keep paths in /bin as-is, but remove trailing .exe if any
17720     new_path="${new_path/%.exe/}"
17721     # Do not save /bin paths to all_fixpath_prefixes!
17722   else
17723     # Not in mixed or Windows style, start by that.
17724     new_path=`cmd //c echo $new_path`
17725 
17726   input_path="$new_path"
17727   # Check if we need to convert this using DOS-style short mode. If the path
17728   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17729   # take no chances and rewrite it.
17730   # Note: m4 eats our [], so we need to use [ and ] instead.
17731   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17732   if test "x$has_forbidden_chars" != x; then
17733     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17734     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17735   fi
17736 
17737     # Output is in $new_path
17738 
17739   windows_path="$new_path"
17740   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17741     unix_path=`$CYGPATH -u "$windows_path"`
17742     new_path="$unix_path"
17743   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17744     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17745     new_path="$unix_path"
17746   fi
17747 
17748     # remove trailing .exe if any
17749     new_path="${new_path/%.exe/}"
17750 
17751     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17752     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17753   fi
17754 
17755     else
17756       # We're on a unix platform. Hooray! :)
17757       # First separate the path from the arguments. This will split at the first
17758       # space.
17759       complete="$FOUND_MAKE"
17760       path="${complete%% *}"
17761       tmp="$complete EOL"
17762       arguments="${tmp#* }"
17763 
17764       # Cannot rely on the command "which" here since it doesn't always work.
17765       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17766       if test -z "$is_absolute_path"; then
17767         # Path to executable is not absolute. Find it.
17768         IFS_save="$IFS"
17769         IFS=:
17770         for p in $PATH; do
17771           if test -f "$p/$path" && test -x "$p/$path"; then
17772             new_path="$p/$path"
17773             break
17774           fi
17775         done
17776         IFS="$IFS_save"
17777       else
17778         # This is an absolute path, we can use it without further modifications.
17779         new_path="$path"
17780       fi
17781 
17782       if test "x$new_path" = x; then
17783         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17784 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17785         has_space=`$ECHO "$complete" | $GREP " "`
17786         if test "x$has_space" != x; then
17787           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17788 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17789         fi
17790         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17791       fi
17792     fi
17793 
17794     # Now join together the path and the arguments once again
17795     if test "x$arguments" != xEOL; then
17796       new_complete="$new_path ${arguments% *}"
17797     else
17798       new_complete="$new_path"
17799     fi
17800 
17801     if test "x$complete" != "x$new_complete"; then
17802       FOUND_MAKE="$new_complete"
17803       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17804 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17805     fi
17806   fi
17807 
17808         fi
17809       fi
17810     fi
17811   fi
17812 
17813         if test "x$FOUND_MAKE" = x; then
17814           for ac_prog in make
17815 do
17816   # Extract the first word of "$ac_prog", so it can be a program name with args.
17817 set dummy $ac_prog; ac_word=$2
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17819 $as_echo_n "checking for $ac_word... " >&6; }
17820 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
17821   $as_echo_n "(cached) " >&6
17822 else
17823   case $CHECK_TOOLSDIR_MAKE in
17824   [\\/]* | ?:[\\/]*)
17825   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
17826   ;;
17827   *)
17828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17829 for as_dir in $PATH
17830 do
17831   IFS=$as_save_IFS
17832   test -z "$as_dir" && as_dir=.
17833     for ac_exec_ext in '' $ac_executable_extensions; do
17834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17835     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
17836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17837     break 2
17838   fi
17839 done
17840   done
17841 IFS=$as_save_IFS
17842 
17843   ;;
17844 esac
17845 fi
17846 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
17847 if test -n "$CHECK_TOOLSDIR_MAKE"; then
17848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
17849 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
17850 else
17851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17852 $as_echo "no" >&6; }
17853 fi
17854 
17855 
17856   test -n "$CHECK_TOOLSDIR_MAKE" && break
17857 done
17858 
17859 
17860   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
17861   DESCRIPTION="make in tools-dir"
17862 
17863   # On Cygwin, we require a newer version of make than on other platforms
17864   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17865     MAKE_VERSION_EXPR="-e 4\."
17866     MAKE_REQUIRED_VERSION="4.0"
17867    else
17868     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17869     MAKE_REQUIRED_VERSION="3.81"
17870   fi
17871 
17872   if test "x$MAKE_CANDIDATE" != x; then
17873     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17874 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17875     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17876     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17877     if test "x$IS_GNU_MAKE" = x; then
17878       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17879 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17880     else
17881       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17882       if test "x$IS_MODERN_MAKE" = x; then
17883         { $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
17884 $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;}
17885       else
17886         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17887           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17888             MAKE_EXPECTED_ENV='cygwin'
17889           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17890             MAKE_EXPECTED_ENV='msys'
17891           else
17892             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17893           fi
17894           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17895           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17896         else
17897           # Not relevant for non-Windows
17898           IS_MAKE_CORRECT_ENV=true
17899         fi
17900         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17901           { $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
17902 $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;}
17903         else
17904           FOUND_MAKE=$MAKE_CANDIDATE
17905 
17906   # Only process if variable expands to non-empty
17907 
17908   if test "x$FOUND_MAKE" != x; then
17909     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17910 
17911   # First separate the path from the arguments. This will split at the first
17912   # space.
17913   complete="$FOUND_MAKE"
17914   path="${complete%% *}"
17915   tmp="$complete EOL"
17916   arguments="${tmp#* }"
17917 
17918   # Input might be given as Windows format, start by converting to
17919   # unix format.
17920   new_path=`$CYGPATH -u "$path"`
17921 
17922   # Now try to locate executable using which
17923   new_path=`$WHICH "$new_path" 2> /dev/null`
17924   # bat and cmd files are not always considered executable in cygwin causing which
17925   # to not find them
17926   if test "x$new_path" = x \
17927       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17928       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17929     new_path=`$CYGPATH -u "$path"`
17930   fi
17931   if test "x$new_path" = x; then
17932     # Oops. Which didn't find the executable.
17933     # The splitting of arguments from the executable at a space might have been incorrect,
17934     # since paths with space are more likely in Windows. Give it another try with the whole
17935     # argument.
17936     path="$complete"
17937     arguments="EOL"
17938     new_path=`$CYGPATH -u "$path"`
17939     new_path=`$WHICH "$new_path" 2> /dev/null`
17940     # bat and cmd files are not always considered executable in cygwin causing which
17941     # to not find them
17942     if test "x$new_path" = x \
17943         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17944         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17945       new_path=`$CYGPATH -u "$path"`
17946     fi
17947     if test "x$new_path" = x; then
17948       # It's still not found. Now this is an unrecoverable error.
17949       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17950 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17951       has_space=`$ECHO "$complete" | $GREP " "`
17952       if test "x$has_space" != x; then
17953         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17954 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17955       fi
17956       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17957     fi
17958   fi
17959 
17960   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17961   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17962   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17963   # "foo.exe" is OK but "foo" is an error.
17964   #
17965   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17966   # It is also a way to make sure we got the proper file name for the real test later on.
17967   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17968   if test "x$test_shortpath" = x; then
17969     # Short path failed, file does not exist as specified.
17970     # Try adding .exe or .cmd
17971     if test -f "${new_path}.exe"; then
17972       input_to_shortpath="${new_path}.exe"
17973     elif test -f "${new_path}.cmd"; then
17974       input_to_shortpath="${new_path}.cmd"
17975     else
17976       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17977 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17978       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17979 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17980       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17981     fi
17982   else
17983     input_to_shortpath="$new_path"
17984   fi
17985 
17986   # Call helper function which possibly converts this using DOS-style short mode.
17987   # If so, the updated path is stored in $new_path.
17988   new_path="$input_to_shortpath"
17989 
17990   input_path="$input_to_shortpath"
17991   # Check if we need to convert this using DOS-style short mode. If the path
17992   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17993   # take no chances and rewrite it.
17994   # Note: m4 eats our [], so we need to use [ and ] instead.
17995   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17996   if test "x$has_forbidden_chars" != x; then
17997     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17998     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17999     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18000     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18001       # Going to short mode and back again did indeed matter. Since short mode is
18002       # case insensitive, let's make it lowercase to improve readability.
18003       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18004       # Now convert it back to Unix-style (cygpath)
18005       input_path=`$CYGPATH -u "$shortmode_path"`
18006       new_path="$input_path"
18007     fi
18008   fi
18009 
18010   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18011   if test "x$test_cygdrive_prefix" = x; then
18012     # As a simple fix, exclude /usr/bin since it's not a real path.
18013     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18014       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18015       # a path prefixed by /cygdrive for fixpath to work.
18016       new_path="$CYGWIN_ROOT_PATH$input_path"
18017     fi
18018   fi
18019 
18020   # remove trailing .exe if any
18021   new_path="${new_path/%.exe/}"
18022 
18023     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18024 
18025   # First separate the path from the arguments. This will split at the first
18026   # space.
18027   complete="$FOUND_MAKE"
18028   path="${complete%% *}"
18029   tmp="$complete EOL"
18030   arguments="${tmp#* }"
18031 
18032   # Input might be given as Windows format, start by converting to
18033   # unix format.
18034   new_path="$path"
18035 
18036   windows_path="$new_path"
18037   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18038     unix_path=`$CYGPATH -u "$windows_path"`
18039     new_path="$unix_path"
18040   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18041     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18042     new_path="$unix_path"
18043   fi
18044 
18045 
18046   # Now try to locate executable using which
18047   new_path=`$WHICH "$new_path" 2> /dev/null`
18048 
18049   if test "x$new_path" = x; then
18050     # Oops. Which didn't find the executable.
18051     # The splitting of arguments from the executable at a space might have been incorrect,
18052     # since paths with space are more likely in Windows. Give it another try with the whole
18053     # argument.
18054     path="$complete"
18055     arguments="EOL"
18056     new_path="$path"
18057 
18058   windows_path="$new_path"
18059   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18060     unix_path=`$CYGPATH -u "$windows_path"`
18061     new_path="$unix_path"
18062   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18063     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18064     new_path="$unix_path"
18065   fi
18066 
18067 
18068     new_path=`$WHICH "$new_path" 2> /dev/null`
18069     # bat and cmd files are not always considered executable in MSYS causing which
18070     # to not find them
18071     if test "x$new_path" = x \
18072         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18073         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18074       new_path="$path"
18075 
18076   windows_path="$new_path"
18077   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18078     unix_path=`$CYGPATH -u "$windows_path"`
18079     new_path="$unix_path"
18080   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18081     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18082     new_path="$unix_path"
18083   fi
18084 
18085     fi
18086 
18087     if test "x$new_path" = x; then
18088       # It's still not found. Now this is an unrecoverable error.
18089       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18090 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18091       has_space=`$ECHO "$complete" | $GREP " "`
18092       if test "x$has_space" != x; then
18093         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18094 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18095       fi
18096       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18097     fi
18098   fi
18099 
18100   # Now new_path has a complete unix path to the binary
18101   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18102     # Keep paths in /bin as-is, but remove trailing .exe if any
18103     new_path="${new_path/%.exe/}"
18104     # Do not save /bin paths to all_fixpath_prefixes!
18105   else
18106     # Not in mixed or Windows style, start by that.
18107     new_path=`cmd //c echo $new_path`
18108 
18109   input_path="$new_path"
18110   # Check if we need to convert this using DOS-style short mode. If the path
18111   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18112   # take no chances and rewrite it.
18113   # Note: m4 eats our [], so we need to use [ and ] instead.
18114   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18115   if test "x$has_forbidden_chars" != x; then
18116     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18117     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18118   fi
18119 
18120     # Output is in $new_path
18121 
18122   windows_path="$new_path"
18123   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18124     unix_path=`$CYGPATH -u "$windows_path"`
18125     new_path="$unix_path"
18126   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18127     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18128     new_path="$unix_path"
18129   fi
18130 
18131     # remove trailing .exe if any
18132     new_path="${new_path/%.exe/}"
18133 
18134     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18135     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18136   fi
18137 
18138     else
18139       # We're on a unix platform. Hooray! :)
18140       # First separate the path from the arguments. This will split at the first
18141       # space.
18142       complete="$FOUND_MAKE"
18143       path="${complete%% *}"
18144       tmp="$complete EOL"
18145       arguments="${tmp#* }"
18146 
18147       # Cannot rely on the command "which" here since it doesn't always work.
18148       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18149       if test -z "$is_absolute_path"; then
18150         # Path to executable is not absolute. Find it.
18151         IFS_save="$IFS"
18152         IFS=:
18153         for p in $PATH; do
18154           if test -f "$p/$path" && test -x "$p/$path"; then
18155             new_path="$p/$path"
18156             break
18157           fi
18158         done
18159         IFS="$IFS_save"
18160       else
18161         # This is an absolute path, we can use it without further modifications.
18162         new_path="$path"
18163       fi
18164 
18165       if test "x$new_path" = x; then
18166         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18167 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18168         has_space=`$ECHO "$complete" | $GREP " "`
18169         if test "x$has_space" != x; then
18170           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18171 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18172         fi
18173         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18174       fi
18175     fi
18176 
18177     # Now join together the path and the arguments once again
18178     if test "x$arguments" != xEOL; then
18179       new_complete="$new_path ${arguments% *}"
18180     else
18181       new_complete="$new_path"
18182     fi
18183 
18184     if test "x$complete" != "x$new_complete"; then
18185       FOUND_MAKE="$new_complete"
18186       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18187 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18188     fi
18189   fi
18190 
18191         fi
18192       fi
18193     fi
18194   fi
18195 
18196         fi
18197         PATH=$OLD_PATH
18198       fi
18199     fi
18200 
18201     if test "x$FOUND_MAKE" = x; then
18202       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
18203     fi
18204 
18205   else
18206     # The variable is set, but is it from the command line or the environment?
18207 
18208     # Try to remove the string !MAKE! from our list.
18209     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
18210     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18211       # If it failed, the variable was not from the command line. Ignore it,
18212       # but warn the user (except for BASH, which is always set by the calling BASH).
18213       if test "xMAKE" != xBASH; then
18214         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
18215 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
18216       fi
18217       # Try to locate tool using the code snippet
18218 
18219     # Try our hardest to locate a correct version of GNU make
18220     for ac_prog in gmake
18221 do
18222   # Extract the first word of "$ac_prog", so it can be a program name with args.
18223 set dummy $ac_prog; ac_word=$2
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18225 $as_echo_n "checking for $ac_word... " >&6; }
18226 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
18227   $as_echo_n "(cached) " >&6
18228 else
18229   case $CHECK_GMAKE in
18230   [\\/]* | ?:[\\/]*)
18231   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
18232   ;;
18233   *)
18234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18235 for as_dir in $PATH
18236 do
18237   IFS=$as_save_IFS
18238   test -z "$as_dir" && as_dir=.
18239     for ac_exec_ext in '' $ac_executable_extensions; do
18240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18241     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18243     break 2
18244   fi
18245 done
18246   done
18247 IFS=$as_save_IFS
18248 
18249   ;;
18250 esac
18251 fi
18252 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
18253 if test -n "$CHECK_GMAKE"; then
18254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
18255 $as_echo "$CHECK_GMAKE" >&6; }
18256 else
18257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18258 $as_echo "no" >&6; }
18259 fi
18260 
18261 
18262   test -n "$CHECK_GMAKE" && break
18263 done
18264 
18265 
18266   MAKE_CANDIDATE=""$CHECK_GMAKE""
18267   DESCRIPTION="gmake in PATH"
18268 
18269   # On Cygwin, we require a newer version of make than on other platforms
18270   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18271     MAKE_VERSION_EXPR="-e 4\."
18272     MAKE_REQUIRED_VERSION="4.0"
18273    else
18274     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18275     MAKE_REQUIRED_VERSION="3.81"
18276   fi
18277 
18278   if test "x$MAKE_CANDIDATE" != x; then
18279     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18280 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18281     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18282     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18283     if test "x$IS_GNU_MAKE" = x; then
18284       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18285 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18286     else
18287       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18288       if test "x$IS_MODERN_MAKE" = x; then
18289         { $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
18290 $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;}
18291       else
18292         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18293           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18294             MAKE_EXPECTED_ENV='cygwin'
18295           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18296             MAKE_EXPECTED_ENV='msys'
18297           else
18298             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18299           fi
18300           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18301           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18302         else
18303           # Not relevant for non-Windows
18304           IS_MAKE_CORRECT_ENV=true
18305         fi
18306         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18307           { $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
18308 $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;}
18309         else
18310           FOUND_MAKE=$MAKE_CANDIDATE
18311 
18312   # Only process if variable expands to non-empty
18313 
18314   if test "x$FOUND_MAKE" != x; then
18315     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18316 
18317   # First separate the path from the arguments. This will split at the first
18318   # space.
18319   complete="$FOUND_MAKE"
18320   path="${complete%% *}"
18321   tmp="$complete EOL"
18322   arguments="${tmp#* }"
18323 
18324   # Input might be given as Windows format, start by converting to
18325   # unix format.
18326   new_path=`$CYGPATH -u "$path"`
18327 
18328   # Now try to locate executable using which
18329   new_path=`$WHICH "$new_path" 2> /dev/null`
18330   # bat and cmd files are not always considered executable in cygwin causing which
18331   # to not find them
18332   if test "x$new_path" = x \
18333       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18334       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18335     new_path=`$CYGPATH -u "$path"`
18336   fi
18337   if test "x$new_path" = x; then
18338     # Oops. Which didn't find the executable.
18339     # The splitting of arguments from the executable at a space might have been incorrect,
18340     # since paths with space are more likely in Windows. Give it another try with the whole
18341     # argument.
18342     path="$complete"
18343     arguments="EOL"
18344     new_path=`$CYGPATH -u "$path"`
18345     new_path=`$WHICH "$new_path" 2> /dev/null`
18346     # bat and cmd files are not always considered executable in cygwin causing which
18347     # to not find them
18348     if test "x$new_path" = x \
18349         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18350         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18351       new_path=`$CYGPATH -u "$path"`
18352     fi
18353     if test "x$new_path" = x; then
18354       # It's still not found. Now this is an unrecoverable error.
18355       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18356 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18357       has_space=`$ECHO "$complete" | $GREP " "`
18358       if test "x$has_space" != x; then
18359         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18360 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18361       fi
18362       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18363     fi
18364   fi
18365 
18366   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18367   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18368   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18369   # "foo.exe" is OK but "foo" is an error.
18370   #
18371   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18372   # It is also a way to make sure we got the proper file name for the real test later on.
18373   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18374   if test "x$test_shortpath" = x; then
18375     # Short path failed, file does not exist as specified.
18376     # Try adding .exe or .cmd
18377     if test -f "${new_path}.exe"; then
18378       input_to_shortpath="${new_path}.exe"
18379     elif test -f "${new_path}.cmd"; then
18380       input_to_shortpath="${new_path}.cmd"
18381     else
18382       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18383 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18384       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18385 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18386       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18387     fi
18388   else
18389     input_to_shortpath="$new_path"
18390   fi
18391 
18392   # Call helper function which possibly converts this using DOS-style short mode.
18393   # If so, the updated path is stored in $new_path.
18394   new_path="$input_to_shortpath"
18395 
18396   input_path="$input_to_shortpath"
18397   # Check if we need to convert this using DOS-style short mode. If the path
18398   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18399   # take no chances and rewrite it.
18400   # Note: m4 eats our [], so we need to use [ and ] instead.
18401   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18402   if test "x$has_forbidden_chars" != x; then
18403     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18404     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18405     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18406     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18407       # Going to short mode and back again did indeed matter. Since short mode is
18408       # case insensitive, let's make it lowercase to improve readability.
18409       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18410       # Now convert it back to Unix-style (cygpath)
18411       input_path=`$CYGPATH -u "$shortmode_path"`
18412       new_path="$input_path"
18413     fi
18414   fi
18415 
18416   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18417   if test "x$test_cygdrive_prefix" = x; then
18418     # As a simple fix, exclude /usr/bin since it's not a real path.
18419     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18420       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18421       # a path prefixed by /cygdrive for fixpath to work.
18422       new_path="$CYGWIN_ROOT_PATH$input_path"
18423     fi
18424   fi
18425 
18426   # remove trailing .exe if any
18427   new_path="${new_path/%.exe/}"
18428 
18429     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18430 
18431   # First separate the path from the arguments. This will split at the first
18432   # space.
18433   complete="$FOUND_MAKE"
18434   path="${complete%% *}"
18435   tmp="$complete EOL"
18436   arguments="${tmp#* }"
18437 
18438   # Input might be given as Windows format, start by converting to
18439   # unix format.
18440   new_path="$path"
18441 
18442   windows_path="$new_path"
18443   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18444     unix_path=`$CYGPATH -u "$windows_path"`
18445     new_path="$unix_path"
18446   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18447     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18448     new_path="$unix_path"
18449   fi
18450 
18451 
18452   # Now try to locate executable using which
18453   new_path=`$WHICH "$new_path" 2> /dev/null`
18454 
18455   if test "x$new_path" = x; then
18456     # Oops. Which didn't find the executable.
18457     # The splitting of arguments from the executable at a space might have been incorrect,
18458     # since paths with space are more likely in Windows. Give it another try with the whole
18459     # argument.
18460     path="$complete"
18461     arguments="EOL"
18462     new_path="$path"
18463 
18464   windows_path="$new_path"
18465   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18466     unix_path=`$CYGPATH -u "$windows_path"`
18467     new_path="$unix_path"
18468   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18469     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18470     new_path="$unix_path"
18471   fi
18472 
18473 
18474     new_path=`$WHICH "$new_path" 2> /dev/null`
18475     # bat and cmd files are not always considered executable in MSYS causing which
18476     # to not find them
18477     if test "x$new_path" = x \
18478         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18479         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18480       new_path="$path"
18481 
18482   windows_path="$new_path"
18483   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18484     unix_path=`$CYGPATH -u "$windows_path"`
18485     new_path="$unix_path"
18486   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18487     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18488     new_path="$unix_path"
18489   fi
18490 
18491     fi
18492 
18493     if test "x$new_path" = x; then
18494       # It's still not found. Now this is an unrecoverable error.
18495       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18496 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18497       has_space=`$ECHO "$complete" | $GREP " "`
18498       if test "x$has_space" != x; then
18499         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18500 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18501       fi
18502       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18503     fi
18504   fi
18505 
18506   # Now new_path has a complete unix path to the binary
18507   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18508     # Keep paths in /bin as-is, but remove trailing .exe if any
18509     new_path="${new_path/%.exe/}"
18510     # Do not save /bin paths to all_fixpath_prefixes!
18511   else
18512     # Not in mixed or Windows style, start by that.
18513     new_path=`cmd //c echo $new_path`
18514 
18515   input_path="$new_path"
18516   # Check if we need to convert this using DOS-style short mode. If the path
18517   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18518   # take no chances and rewrite it.
18519   # Note: m4 eats our [], so we need to use [ and ] instead.
18520   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18521   if test "x$has_forbidden_chars" != x; then
18522     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18523     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18524   fi
18525 
18526     # Output is in $new_path
18527 
18528   windows_path="$new_path"
18529   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18530     unix_path=`$CYGPATH -u "$windows_path"`
18531     new_path="$unix_path"
18532   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18533     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18534     new_path="$unix_path"
18535   fi
18536 
18537     # remove trailing .exe if any
18538     new_path="${new_path/%.exe/}"
18539 
18540     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18541     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18542   fi
18543 
18544     else
18545       # We're on a unix platform. Hooray! :)
18546       # First separate the path from the arguments. This will split at the first
18547       # space.
18548       complete="$FOUND_MAKE"
18549       path="${complete%% *}"
18550       tmp="$complete EOL"
18551       arguments="${tmp#* }"
18552 
18553       # Cannot rely on the command "which" here since it doesn't always work.
18554       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18555       if test -z "$is_absolute_path"; then
18556         # Path to executable is not absolute. Find it.
18557         IFS_save="$IFS"
18558         IFS=:
18559         for p in $PATH; do
18560           if test -f "$p/$path" && test -x "$p/$path"; then
18561             new_path="$p/$path"
18562             break
18563           fi
18564         done
18565         IFS="$IFS_save"
18566       else
18567         # This is an absolute path, we can use it without further modifications.
18568         new_path="$path"
18569       fi
18570 
18571       if test "x$new_path" = x; then
18572         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18573 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18574         has_space=`$ECHO "$complete" | $GREP " "`
18575         if test "x$has_space" != x; then
18576           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18577 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18578         fi
18579         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18580       fi
18581     fi
18582 
18583     # Now join together the path and the arguments once again
18584     if test "x$arguments" != xEOL; then
18585       new_complete="$new_path ${arguments% *}"
18586     else
18587       new_complete="$new_path"
18588     fi
18589 
18590     if test "x$complete" != "x$new_complete"; then
18591       FOUND_MAKE="$new_complete"
18592       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18593 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18594     fi
18595   fi
18596 
18597         fi
18598       fi
18599     fi
18600   fi
18601 
18602 
18603     if test "x$FOUND_MAKE" = x; then
18604       for ac_prog in make
18605 do
18606   # Extract the first word of "$ac_prog", so it can be a program name with args.
18607 set dummy $ac_prog; ac_word=$2
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18609 $as_echo_n "checking for $ac_word... " >&6; }
18610 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18611   $as_echo_n "(cached) " >&6
18612 else
18613   case $CHECK_MAKE in
18614   [\\/]* | ?:[\\/]*)
18615   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18616   ;;
18617   *)
18618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18619 for as_dir in $PATH
18620 do
18621   IFS=$as_save_IFS
18622   test -z "$as_dir" && as_dir=.
18623     for ac_exec_ext in '' $ac_executable_extensions; do
18624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18625     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18627     break 2
18628   fi
18629 done
18630   done
18631 IFS=$as_save_IFS
18632 
18633   ;;
18634 esac
18635 fi
18636 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18637 if test -n "$CHECK_MAKE"; then
18638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18639 $as_echo "$CHECK_MAKE" >&6; }
18640 else
18641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18642 $as_echo "no" >&6; }
18643 fi
18644 
18645 
18646   test -n "$CHECK_MAKE" && break
18647 done
18648 
18649 
18650   MAKE_CANDIDATE=""$CHECK_MAKE""
18651   DESCRIPTION="make in PATH"
18652 
18653   # On Cygwin, we require a newer version of make than on other platforms
18654   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18655     MAKE_VERSION_EXPR="-e 4\."
18656     MAKE_REQUIRED_VERSION="4.0"
18657    else
18658     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18659     MAKE_REQUIRED_VERSION="3.81"
18660   fi
18661 
18662   if test "x$MAKE_CANDIDATE" != x; then
18663     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18664 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18665     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18666     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18667     if test "x$IS_GNU_MAKE" = x; then
18668       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18669 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18670     else
18671       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18672       if test "x$IS_MODERN_MAKE" = x; then
18673         { $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
18674 $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;}
18675       else
18676         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18677           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18678             MAKE_EXPECTED_ENV='cygwin'
18679           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18680             MAKE_EXPECTED_ENV='msys'
18681           else
18682             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18683           fi
18684           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18685           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18686         else
18687           # Not relevant for non-Windows
18688           IS_MAKE_CORRECT_ENV=true
18689         fi
18690         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18691           { $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
18692 $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;}
18693         else
18694           FOUND_MAKE=$MAKE_CANDIDATE
18695 
18696   # Only process if variable expands to non-empty
18697 
18698   if test "x$FOUND_MAKE" != x; then
18699     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18700 
18701   # First separate the path from the arguments. This will split at the first
18702   # space.
18703   complete="$FOUND_MAKE"
18704   path="${complete%% *}"
18705   tmp="$complete EOL"
18706   arguments="${tmp#* }"
18707 
18708   # Input might be given as Windows format, start by converting to
18709   # unix format.
18710   new_path=`$CYGPATH -u "$path"`
18711 
18712   # Now try to locate executable using which
18713   new_path=`$WHICH "$new_path" 2> /dev/null`
18714   # bat and cmd files are not always considered executable in cygwin causing which
18715   # to not find them
18716   if test "x$new_path" = x \
18717       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18718       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18719     new_path=`$CYGPATH -u "$path"`
18720   fi
18721   if test "x$new_path" = x; then
18722     # Oops. Which didn't find the executable.
18723     # The splitting of arguments from the executable at a space might have been incorrect,
18724     # since paths with space are more likely in Windows. Give it another try with the whole
18725     # argument.
18726     path="$complete"
18727     arguments="EOL"
18728     new_path=`$CYGPATH -u "$path"`
18729     new_path=`$WHICH "$new_path" 2> /dev/null`
18730     # bat and cmd files are not always considered executable in cygwin causing which
18731     # to not find them
18732     if test "x$new_path" = x \
18733         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18734         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18735       new_path=`$CYGPATH -u "$path"`
18736     fi
18737     if test "x$new_path" = x; then
18738       # It's still not found. Now this is an unrecoverable error.
18739       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18740 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18741       has_space=`$ECHO "$complete" | $GREP " "`
18742       if test "x$has_space" != x; then
18743         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18744 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18745       fi
18746       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18747     fi
18748   fi
18749 
18750   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18751   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18752   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18753   # "foo.exe" is OK but "foo" is an error.
18754   #
18755   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18756   # It is also a way to make sure we got the proper file name for the real test later on.
18757   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18758   if test "x$test_shortpath" = x; then
18759     # Short path failed, file does not exist as specified.
18760     # Try adding .exe or .cmd
18761     if test -f "${new_path}.exe"; then
18762       input_to_shortpath="${new_path}.exe"
18763     elif test -f "${new_path}.cmd"; then
18764       input_to_shortpath="${new_path}.cmd"
18765     else
18766       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18767 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18768       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18769 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18770       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18771     fi
18772   else
18773     input_to_shortpath="$new_path"
18774   fi
18775 
18776   # Call helper function which possibly converts this using DOS-style short mode.
18777   # If so, the updated path is stored in $new_path.
18778   new_path="$input_to_shortpath"
18779 
18780   input_path="$input_to_shortpath"
18781   # Check if we need to convert this using DOS-style short mode. If the path
18782   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18783   # take no chances and rewrite it.
18784   # Note: m4 eats our [], so we need to use [ and ] instead.
18785   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18786   if test "x$has_forbidden_chars" != x; then
18787     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18788     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18789     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18790     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18791       # Going to short mode and back again did indeed matter. Since short mode is
18792       # case insensitive, let's make it lowercase to improve readability.
18793       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18794       # Now convert it back to Unix-style (cygpath)
18795       input_path=`$CYGPATH -u "$shortmode_path"`
18796       new_path="$input_path"
18797     fi
18798   fi
18799 
18800   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18801   if test "x$test_cygdrive_prefix" = x; then
18802     # As a simple fix, exclude /usr/bin since it's not a real path.
18803     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18804       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18805       # a path prefixed by /cygdrive for fixpath to work.
18806       new_path="$CYGWIN_ROOT_PATH$input_path"
18807     fi
18808   fi
18809 
18810   # remove trailing .exe if any
18811   new_path="${new_path/%.exe/}"
18812 
18813     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18814 
18815   # First separate the path from the arguments. This will split at the first
18816   # space.
18817   complete="$FOUND_MAKE"
18818   path="${complete%% *}"
18819   tmp="$complete EOL"
18820   arguments="${tmp#* }"
18821 
18822   # Input might be given as Windows format, start by converting to
18823   # unix format.
18824   new_path="$path"
18825 
18826   windows_path="$new_path"
18827   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18828     unix_path=`$CYGPATH -u "$windows_path"`
18829     new_path="$unix_path"
18830   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18831     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18832     new_path="$unix_path"
18833   fi
18834 
18835 
18836   # Now try to locate executable using which
18837   new_path=`$WHICH "$new_path" 2> /dev/null`
18838 
18839   if test "x$new_path" = x; then
18840     # Oops. Which didn't find the executable.
18841     # The splitting of arguments from the executable at a space might have been incorrect,
18842     # since paths with space are more likely in Windows. Give it another try with the whole
18843     # argument.
18844     path="$complete"
18845     arguments="EOL"
18846     new_path="$path"
18847 
18848   windows_path="$new_path"
18849   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18850     unix_path=`$CYGPATH -u "$windows_path"`
18851     new_path="$unix_path"
18852   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18853     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18854     new_path="$unix_path"
18855   fi
18856 
18857 
18858     new_path=`$WHICH "$new_path" 2> /dev/null`
18859     # bat and cmd files are not always considered executable in MSYS causing which
18860     # to not find them
18861     if test "x$new_path" = x \
18862         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18863         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18864       new_path="$path"
18865 
18866   windows_path="$new_path"
18867   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18868     unix_path=`$CYGPATH -u "$windows_path"`
18869     new_path="$unix_path"
18870   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18871     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18872     new_path="$unix_path"
18873   fi
18874 
18875     fi
18876 
18877     if test "x$new_path" = x; then
18878       # It's still not found. Now this is an unrecoverable error.
18879       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18880 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18881       has_space=`$ECHO "$complete" | $GREP " "`
18882       if test "x$has_space" != x; then
18883         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18884 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18885       fi
18886       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18887     fi
18888   fi
18889 
18890   # Now new_path has a complete unix path to the binary
18891   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18892     # Keep paths in /bin as-is, but remove trailing .exe if any
18893     new_path="${new_path/%.exe/}"
18894     # Do not save /bin paths to all_fixpath_prefixes!
18895   else
18896     # Not in mixed or Windows style, start by that.
18897     new_path=`cmd //c echo $new_path`
18898 
18899   input_path="$new_path"
18900   # Check if we need to convert this using DOS-style short mode. If the path
18901   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18902   # take no chances and rewrite it.
18903   # Note: m4 eats our [], so we need to use [ and ] instead.
18904   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18905   if test "x$has_forbidden_chars" != x; then
18906     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18907     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18908   fi
18909 
18910     # Output is in $new_path
18911 
18912   windows_path="$new_path"
18913   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18914     unix_path=`$CYGPATH -u "$windows_path"`
18915     new_path="$unix_path"
18916   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18917     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18918     new_path="$unix_path"
18919   fi
18920 
18921     # remove trailing .exe if any
18922     new_path="${new_path/%.exe/}"
18923 
18924     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18925     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18926   fi
18927 
18928     else
18929       # We're on a unix platform. Hooray! :)
18930       # First separate the path from the arguments. This will split at the first
18931       # space.
18932       complete="$FOUND_MAKE"
18933       path="${complete%% *}"
18934       tmp="$complete EOL"
18935       arguments="${tmp#* }"
18936 
18937       # Cannot rely on the command "which" here since it doesn't always work.
18938       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18939       if test -z "$is_absolute_path"; then
18940         # Path to executable is not absolute. Find it.
18941         IFS_save="$IFS"
18942         IFS=:
18943         for p in $PATH; do
18944           if test -f "$p/$path" && test -x "$p/$path"; then
18945             new_path="$p/$path"
18946             break
18947           fi
18948         done
18949         IFS="$IFS_save"
18950       else
18951         # This is an absolute path, we can use it without further modifications.
18952         new_path="$path"
18953       fi
18954 
18955       if test "x$new_path" = x; then
18956         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18957 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18958         has_space=`$ECHO "$complete" | $GREP " "`
18959         if test "x$has_space" != x; then
18960           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18961 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18962         fi
18963         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18964       fi
18965     fi
18966 
18967     # Now join together the path and the arguments once again
18968     if test "x$arguments" != xEOL; then
18969       new_complete="$new_path ${arguments% *}"
18970     else
18971       new_complete="$new_path"
18972     fi
18973 
18974     if test "x$complete" != "x$new_complete"; then
18975       FOUND_MAKE="$new_complete"
18976       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18977 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18978     fi
18979   fi
18980 
18981         fi
18982       fi
18983     fi
18984   fi
18985 
18986     fi
18987 
18988     if test "x$FOUND_MAKE" = x; then
18989       if test "x$TOOLCHAIN_PATH" != x; then
18990         # We have a toolchain path, check that as well before giving up.
18991         OLD_PATH=$PATH
18992         PATH=$TOOLCHAIN_PATH:$PATH
18993         for ac_prog in gmake
18994 do
18995   # Extract the first word of "$ac_prog", so it can be a program name with args.
18996 set dummy $ac_prog; ac_word=$2
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18998 $as_echo_n "checking for $ac_word... " >&6; }
18999 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
19000   $as_echo_n "(cached) " >&6
19001 else
19002   case $CHECK_TOOLSDIR_GMAKE in
19003   [\\/]* | ?:[\\/]*)
19004   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
19005   ;;
19006   *)
19007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19008 for as_dir in $PATH
19009 do
19010   IFS=$as_save_IFS
19011   test -z "$as_dir" && as_dir=.
19012     for ac_exec_ext in '' $ac_executable_extensions; do
19013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19014     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19016     break 2
19017   fi
19018 done
19019   done
19020 IFS=$as_save_IFS
19021 
19022   ;;
19023 esac
19024 fi
19025 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
19026 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
19027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
19028 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
19029 else
19030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19031 $as_echo "no" >&6; }
19032 fi
19033 
19034 
19035   test -n "$CHECK_TOOLSDIR_GMAKE" && break
19036 done
19037 
19038 
19039   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
19040   DESCRIPTION="gmake in tools-dir"
19041 
19042   # On Cygwin, we require a newer version of make than on other platforms
19043   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19044     MAKE_VERSION_EXPR="-e 4\."
19045     MAKE_REQUIRED_VERSION="4.0"
19046    else
19047     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19048     MAKE_REQUIRED_VERSION="3.81"
19049   fi
19050 
19051   if test "x$MAKE_CANDIDATE" != x; then
19052     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19053 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19054     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19055     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19056     if test "x$IS_GNU_MAKE" = x; then
19057       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19058 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19059     else
19060       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19061       if test "x$IS_MODERN_MAKE" = x; then
19062         { $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
19063 $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;}
19064       else
19065         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19066           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19067             MAKE_EXPECTED_ENV='cygwin'
19068           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19069             MAKE_EXPECTED_ENV='msys'
19070           else
19071             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19072           fi
19073           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19074           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19075         else
19076           # Not relevant for non-Windows
19077           IS_MAKE_CORRECT_ENV=true
19078         fi
19079         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19080           { $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
19081 $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;}
19082         else
19083           FOUND_MAKE=$MAKE_CANDIDATE
19084 
19085   # Only process if variable expands to non-empty
19086 
19087   if test "x$FOUND_MAKE" != x; then
19088     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19089 
19090   # First separate the path from the arguments. This will split at the first
19091   # space.
19092   complete="$FOUND_MAKE"
19093   path="${complete%% *}"
19094   tmp="$complete EOL"
19095   arguments="${tmp#* }"
19096 
19097   # Input might be given as Windows format, start by converting to
19098   # unix format.
19099   new_path=`$CYGPATH -u "$path"`
19100 
19101   # Now try to locate executable using which
19102   new_path=`$WHICH "$new_path" 2> /dev/null`
19103   # bat and cmd files are not always considered executable in cygwin causing which
19104   # to not find them
19105   if test "x$new_path" = x \
19106       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19107       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19108     new_path=`$CYGPATH -u "$path"`
19109   fi
19110   if test "x$new_path" = x; then
19111     # Oops. Which didn't find the executable.
19112     # The splitting of arguments from the executable at a space might have been incorrect,
19113     # since paths with space are more likely in Windows. Give it another try with the whole
19114     # argument.
19115     path="$complete"
19116     arguments="EOL"
19117     new_path=`$CYGPATH -u "$path"`
19118     new_path=`$WHICH "$new_path" 2> /dev/null`
19119     # bat and cmd files are not always considered executable in cygwin causing which
19120     # to not find them
19121     if test "x$new_path" = x \
19122         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19123         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19124       new_path=`$CYGPATH -u "$path"`
19125     fi
19126     if test "x$new_path" = x; then
19127       # It's still not found. Now this is an unrecoverable error.
19128       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19129 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19130       has_space=`$ECHO "$complete" | $GREP " "`
19131       if test "x$has_space" != x; then
19132         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19133 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19134       fi
19135       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19136     fi
19137   fi
19138 
19139   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19140   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19141   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19142   # "foo.exe" is OK but "foo" is an error.
19143   #
19144   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19145   # It is also a way to make sure we got the proper file name for the real test later on.
19146   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19147   if test "x$test_shortpath" = x; then
19148     # Short path failed, file does not exist as specified.
19149     # Try adding .exe or .cmd
19150     if test -f "${new_path}.exe"; then
19151       input_to_shortpath="${new_path}.exe"
19152     elif test -f "${new_path}.cmd"; then
19153       input_to_shortpath="${new_path}.cmd"
19154     else
19155       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19156 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19157       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19158 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19159       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19160     fi
19161   else
19162     input_to_shortpath="$new_path"
19163   fi
19164 
19165   # Call helper function which possibly converts this using DOS-style short mode.
19166   # If so, the updated path is stored in $new_path.
19167   new_path="$input_to_shortpath"
19168 
19169   input_path="$input_to_shortpath"
19170   # Check if we need to convert this using DOS-style short mode. If the path
19171   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19172   # take no chances and rewrite it.
19173   # Note: m4 eats our [], so we need to use [ and ] instead.
19174   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19175   if test "x$has_forbidden_chars" != x; then
19176     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19177     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19178     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19179     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19180       # Going to short mode and back again did indeed matter. Since short mode is
19181       # case insensitive, let's make it lowercase to improve readability.
19182       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19183       # Now convert it back to Unix-style (cygpath)
19184       input_path=`$CYGPATH -u "$shortmode_path"`
19185       new_path="$input_path"
19186     fi
19187   fi
19188 
19189   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19190   if test "x$test_cygdrive_prefix" = x; then
19191     # As a simple fix, exclude /usr/bin since it's not a real path.
19192     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19193       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19194       # a path prefixed by /cygdrive for fixpath to work.
19195       new_path="$CYGWIN_ROOT_PATH$input_path"
19196     fi
19197   fi
19198 
19199   # remove trailing .exe if any
19200   new_path="${new_path/%.exe/}"
19201 
19202     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19203 
19204   # First separate the path from the arguments. This will split at the first
19205   # space.
19206   complete="$FOUND_MAKE"
19207   path="${complete%% *}"
19208   tmp="$complete EOL"
19209   arguments="${tmp#* }"
19210 
19211   # Input might be given as Windows format, start by converting to
19212   # unix format.
19213   new_path="$path"
19214 
19215   windows_path="$new_path"
19216   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19217     unix_path=`$CYGPATH -u "$windows_path"`
19218     new_path="$unix_path"
19219   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19220     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19221     new_path="$unix_path"
19222   fi
19223 
19224 
19225   # Now try to locate executable using which
19226   new_path=`$WHICH "$new_path" 2> /dev/null`
19227 
19228   if test "x$new_path" = x; then
19229     # Oops. Which didn't find the executable.
19230     # The splitting of arguments from the executable at a space might have been incorrect,
19231     # since paths with space are more likely in Windows. Give it another try with the whole
19232     # argument.
19233     path="$complete"
19234     arguments="EOL"
19235     new_path="$path"
19236 
19237   windows_path="$new_path"
19238   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19239     unix_path=`$CYGPATH -u "$windows_path"`
19240     new_path="$unix_path"
19241   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19242     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19243     new_path="$unix_path"
19244   fi
19245 
19246 
19247     new_path=`$WHICH "$new_path" 2> /dev/null`
19248     # bat and cmd files are not always considered executable in MSYS causing which
19249     # to not find them
19250     if test "x$new_path" = x \
19251         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19252         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19253       new_path="$path"
19254 
19255   windows_path="$new_path"
19256   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19257     unix_path=`$CYGPATH -u "$windows_path"`
19258     new_path="$unix_path"
19259   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19260     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19261     new_path="$unix_path"
19262   fi
19263 
19264     fi
19265 
19266     if test "x$new_path" = x; then
19267       # It's still not found. Now this is an unrecoverable error.
19268       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19269 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19270       has_space=`$ECHO "$complete" | $GREP " "`
19271       if test "x$has_space" != x; then
19272         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19273 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19274       fi
19275       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19276     fi
19277   fi
19278 
19279   # Now new_path has a complete unix path to the binary
19280   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19281     # Keep paths in /bin as-is, but remove trailing .exe if any
19282     new_path="${new_path/%.exe/}"
19283     # Do not save /bin paths to all_fixpath_prefixes!
19284   else
19285     # Not in mixed or Windows style, start by that.
19286     new_path=`cmd //c echo $new_path`
19287 
19288   input_path="$new_path"
19289   # Check if we need to convert this using DOS-style short mode. If the path
19290   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19291   # take no chances and rewrite it.
19292   # Note: m4 eats our [], so we need to use [ and ] instead.
19293   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19294   if test "x$has_forbidden_chars" != x; then
19295     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19296     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19297   fi
19298 
19299     # Output is in $new_path
19300 
19301   windows_path="$new_path"
19302   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19303     unix_path=`$CYGPATH -u "$windows_path"`
19304     new_path="$unix_path"
19305   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19306     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19307     new_path="$unix_path"
19308   fi
19309 
19310     # remove trailing .exe if any
19311     new_path="${new_path/%.exe/}"
19312 
19313     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19314     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19315   fi
19316 
19317     else
19318       # We're on a unix platform. Hooray! :)
19319       # First separate the path from the arguments. This will split at the first
19320       # space.
19321       complete="$FOUND_MAKE"
19322       path="${complete%% *}"
19323       tmp="$complete EOL"
19324       arguments="${tmp#* }"
19325 
19326       # Cannot rely on the command "which" here since it doesn't always work.
19327       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19328       if test -z "$is_absolute_path"; then
19329         # Path to executable is not absolute. Find it.
19330         IFS_save="$IFS"
19331         IFS=:
19332         for p in $PATH; do
19333           if test -f "$p/$path" && test -x "$p/$path"; then
19334             new_path="$p/$path"
19335             break
19336           fi
19337         done
19338         IFS="$IFS_save"
19339       else
19340         # This is an absolute path, we can use it without further modifications.
19341         new_path="$path"
19342       fi
19343 
19344       if test "x$new_path" = x; then
19345         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19346 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19347         has_space=`$ECHO "$complete" | $GREP " "`
19348         if test "x$has_space" != x; then
19349           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19350 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19351         fi
19352         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19353       fi
19354     fi
19355 
19356     # Now join together the path and the arguments once again
19357     if test "x$arguments" != xEOL; then
19358       new_complete="$new_path ${arguments% *}"
19359     else
19360       new_complete="$new_path"
19361     fi
19362 
19363     if test "x$complete" != "x$new_complete"; then
19364       FOUND_MAKE="$new_complete"
19365       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19366 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19367     fi
19368   fi
19369 
19370         fi
19371       fi
19372     fi
19373   fi
19374 
19375         if test "x$FOUND_MAKE" = x; then
19376           for ac_prog in make
19377 do
19378   # Extract the first word of "$ac_prog", so it can be a program name with args.
19379 set dummy $ac_prog; ac_word=$2
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19381 $as_echo_n "checking for $ac_word... " >&6; }
19382 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19383   $as_echo_n "(cached) " >&6
19384 else
19385   case $CHECK_TOOLSDIR_MAKE in
19386   [\\/]* | ?:[\\/]*)
19387   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19388   ;;
19389   *)
19390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19391 for as_dir in $PATH
19392 do
19393   IFS=$as_save_IFS
19394   test -z "$as_dir" && as_dir=.
19395     for ac_exec_ext in '' $ac_executable_extensions; do
19396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19397     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19399     break 2
19400   fi
19401 done
19402   done
19403 IFS=$as_save_IFS
19404 
19405   ;;
19406 esac
19407 fi
19408 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19409 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19411 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19412 else
19413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19414 $as_echo "no" >&6; }
19415 fi
19416 
19417 
19418   test -n "$CHECK_TOOLSDIR_MAKE" && break
19419 done
19420 
19421 
19422   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19423   DESCRIPTION="make in tools-dir"
19424 
19425   # On Cygwin, we require a newer version of make than on other platforms
19426   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19427     MAKE_VERSION_EXPR="-e 4\."
19428     MAKE_REQUIRED_VERSION="4.0"
19429    else
19430     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19431     MAKE_REQUIRED_VERSION="3.81"
19432   fi
19433 
19434   if test "x$MAKE_CANDIDATE" != x; then
19435     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19436 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19437     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19438     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19439     if test "x$IS_GNU_MAKE" = x; then
19440       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19441 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19442     else
19443       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19444       if test "x$IS_MODERN_MAKE" = x; then
19445         { $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
19446 $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;}
19447       else
19448         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19449           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19450             MAKE_EXPECTED_ENV='cygwin'
19451           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19452             MAKE_EXPECTED_ENV='msys'
19453           else
19454             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19455           fi
19456           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19457           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19458         else
19459           # Not relevant for non-Windows
19460           IS_MAKE_CORRECT_ENV=true
19461         fi
19462         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19463           { $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
19464 $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;}
19465         else
19466           FOUND_MAKE=$MAKE_CANDIDATE
19467 
19468   # Only process if variable expands to non-empty
19469 
19470   if test "x$FOUND_MAKE" != x; then
19471     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19472 
19473   # First separate the path from the arguments. This will split at the first
19474   # space.
19475   complete="$FOUND_MAKE"
19476   path="${complete%% *}"
19477   tmp="$complete EOL"
19478   arguments="${tmp#* }"
19479 
19480   # Input might be given as Windows format, start by converting to
19481   # unix format.
19482   new_path=`$CYGPATH -u "$path"`
19483 
19484   # Now try to locate executable using which
19485   new_path=`$WHICH "$new_path" 2> /dev/null`
19486   # bat and cmd files are not always considered executable in cygwin causing which
19487   # to not find them
19488   if test "x$new_path" = x \
19489       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19490       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19491     new_path=`$CYGPATH -u "$path"`
19492   fi
19493   if test "x$new_path" = x; then
19494     # Oops. Which didn't find the executable.
19495     # The splitting of arguments from the executable at a space might have been incorrect,
19496     # since paths with space are more likely in Windows. Give it another try with the whole
19497     # argument.
19498     path="$complete"
19499     arguments="EOL"
19500     new_path=`$CYGPATH -u "$path"`
19501     new_path=`$WHICH "$new_path" 2> /dev/null`
19502     # bat and cmd files are not always considered executable in cygwin causing which
19503     # to not find them
19504     if test "x$new_path" = x \
19505         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19506         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19507       new_path=`$CYGPATH -u "$path"`
19508     fi
19509     if test "x$new_path" = x; then
19510       # It's still not found. Now this is an unrecoverable error.
19511       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19512 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19513       has_space=`$ECHO "$complete" | $GREP " "`
19514       if test "x$has_space" != x; then
19515         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19516 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19517       fi
19518       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19519     fi
19520   fi
19521 
19522   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19523   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19524   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19525   # "foo.exe" is OK but "foo" is an error.
19526   #
19527   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19528   # It is also a way to make sure we got the proper file name for the real test later on.
19529   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19530   if test "x$test_shortpath" = x; then
19531     # Short path failed, file does not exist as specified.
19532     # Try adding .exe or .cmd
19533     if test -f "${new_path}.exe"; then
19534       input_to_shortpath="${new_path}.exe"
19535     elif test -f "${new_path}.cmd"; then
19536       input_to_shortpath="${new_path}.cmd"
19537     else
19538       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19539 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19540       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19541 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19542       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19543     fi
19544   else
19545     input_to_shortpath="$new_path"
19546   fi
19547 
19548   # Call helper function which possibly converts this using DOS-style short mode.
19549   # If so, the updated path is stored in $new_path.
19550   new_path="$input_to_shortpath"
19551 
19552   input_path="$input_to_shortpath"
19553   # Check if we need to convert this using DOS-style short mode. If the path
19554   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19555   # take no chances and rewrite it.
19556   # Note: m4 eats our [], so we need to use [ and ] instead.
19557   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19558   if test "x$has_forbidden_chars" != x; then
19559     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19560     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19561     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19562     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19563       # Going to short mode and back again did indeed matter. Since short mode is
19564       # case insensitive, let's make it lowercase to improve readability.
19565       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19566       # Now convert it back to Unix-style (cygpath)
19567       input_path=`$CYGPATH -u "$shortmode_path"`
19568       new_path="$input_path"
19569     fi
19570   fi
19571 
19572   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19573   if test "x$test_cygdrive_prefix" = x; then
19574     # As a simple fix, exclude /usr/bin since it's not a real path.
19575     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19576       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19577       # a path prefixed by /cygdrive for fixpath to work.
19578       new_path="$CYGWIN_ROOT_PATH$input_path"
19579     fi
19580   fi
19581 
19582   # remove trailing .exe if any
19583   new_path="${new_path/%.exe/}"
19584 
19585     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19586 
19587   # First separate the path from the arguments. This will split at the first
19588   # space.
19589   complete="$FOUND_MAKE"
19590   path="${complete%% *}"
19591   tmp="$complete EOL"
19592   arguments="${tmp#* }"
19593 
19594   # Input might be given as Windows format, start by converting to
19595   # unix format.
19596   new_path="$path"
19597 
19598   windows_path="$new_path"
19599   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19600     unix_path=`$CYGPATH -u "$windows_path"`
19601     new_path="$unix_path"
19602   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19603     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19604     new_path="$unix_path"
19605   fi
19606 
19607 
19608   # Now try to locate executable using which
19609   new_path=`$WHICH "$new_path" 2> /dev/null`
19610 
19611   if test "x$new_path" = x; then
19612     # Oops. Which didn't find the executable.
19613     # The splitting of arguments from the executable at a space might have been incorrect,
19614     # since paths with space are more likely in Windows. Give it another try with the whole
19615     # argument.
19616     path="$complete"
19617     arguments="EOL"
19618     new_path="$path"
19619 
19620   windows_path="$new_path"
19621   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19622     unix_path=`$CYGPATH -u "$windows_path"`
19623     new_path="$unix_path"
19624   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19625     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19626     new_path="$unix_path"
19627   fi
19628 
19629 
19630     new_path=`$WHICH "$new_path" 2> /dev/null`
19631     # bat and cmd files are not always considered executable in MSYS causing which
19632     # to not find them
19633     if test "x$new_path" = x \
19634         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19635         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19636       new_path="$path"
19637 
19638   windows_path="$new_path"
19639   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19640     unix_path=`$CYGPATH -u "$windows_path"`
19641     new_path="$unix_path"
19642   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19643     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19644     new_path="$unix_path"
19645   fi
19646 
19647     fi
19648 
19649     if test "x$new_path" = x; then
19650       # It's still not found. Now this is an unrecoverable error.
19651       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19652 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19653       has_space=`$ECHO "$complete" | $GREP " "`
19654       if test "x$has_space" != x; then
19655         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19656 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19657       fi
19658       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19659     fi
19660   fi
19661 
19662   # Now new_path has a complete unix path to the binary
19663   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19664     # Keep paths in /bin as-is, but remove trailing .exe if any
19665     new_path="${new_path/%.exe/}"
19666     # Do not save /bin paths to all_fixpath_prefixes!
19667   else
19668     # Not in mixed or Windows style, start by that.
19669     new_path=`cmd //c echo $new_path`
19670 
19671   input_path="$new_path"
19672   # Check if we need to convert this using DOS-style short mode. If the path
19673   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19674   # take no chances and rewrite it.
19675   # Note: m4 eats our [], so we need to use [ and ] instead.
19676   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19677   if test "x$has_forbidden_chars" != x; then
19678     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19679     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19680   fi
19681 
19682     # Output is in $new_path
19683 
19684   windows_path="$new_path"
19685   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19686     unix_path=`$CYGPATH -u "$windows_path"`
19687     new_path="$unix_path"
19688   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19689     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19690     new_path="$unix_path"
19691   fi
19692 
19693     # remove trailing .exe if any
19694     new_path="${new_path/%.exe/}"
19695 
19696     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19697     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19698   fi
19699 
19700     else
19701       # We're on a unix platform. Hooray! :)
19702       # First separate the path from the arguments. This will split at the first
19703       # space.
19704       complete="$FOUND_MAKE"
19705       path="${complete%% *}"
19706       tmp="$complete EOL"
19707       arguments="${tmp#* }"
19708 
19709       # Cannot rely on the command "which" here since it doesn't always work.
19710       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19711       if test -z "$is_absolute_path"; then
19712         # Path to executable is not absolute. Find it.
19713         IFS_save="$IFS"
19714         IFS=:
19715         for p in $PATH; do
19716           if test -f "$p/$path" && test -x "$p/$path"; then
19717             new_path="$p/$path"
19718             break
19719           fi
19720         done
19721         IFS="$IFS_save"
19722       else
19723         # This is an absolute path, we can use it without further modifications.
19724         new_path="$path"
19725       fi
19726 
19727       if test "x$new_path" = x; then
19728         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19729 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19730         has_space=`$ECHO "$complete" | $GREP " "`
19731         if test "x$has_space" != x; then
19732           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19733 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19734         fi
19735         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19736       fi
19737     fi
19738 
19739     # Now join together the path and the arguments once again
19740     if test "x$arguments" != xEOL; then
19741       new_complete="$new_path ${arguments% *}"
19742     else
19743       new_complete="$new_path"
19744     fi
19745 
19746     if test "x$complete" != "x$new_complete"; then
19747       FOUND_MAKE="$new_complete"
19748       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19749 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19750     fi
19751   fi
19752 
19753         fi
19754       fi
19755     fi
19756   fi
19757 
19758         fi
19759         PATH=$OLD_PATH
19760       fi
19761     fi
19762 
19763     if test "x$FOUND_MAKE" = x; then
19764       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
19765     fi
19766 
19767     else
19768       # If it succeeded, then it was overridden by the user. We will use it
19769       # for the tool.
19770 
19771       # First remove it from the list of overridden variables, so we can test
19772       # for unknown variables in the end.
19773       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19774 
19775       # Check if we try to supply an empty value
19776       if test "x$MAKE" = x; then
19777         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
19778 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
19779         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19780 $as_echo_n "checking for MAKE... " >&6; }
19781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
19782 $as_echo "disabled" >&6; }
19783       else
19784         # Check if the provided tool contains a complete path.
19785         tool_specified="$MAKE"
19786         tool_basename="${tool_specified##*/}"
19787         if test "x$tool_basename" = "x$tool_specified"; then
19788           # A command without a complete path is provided, search $PATH.
19789           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
19790 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
19791           # Extract the first word of "$tool_basename", so it can be a program name with args.
19792 set dummy $tool_basename; ac_word=$2
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19794 $as_echo_n "checking for $ac_word... " >&6; }
19795 if ${ac_cv_path_MAKE+:} false; then :
19796   $as_echo_n "(cached) " >&6
19797 else
19798   case $MAKE in
19799   [\\/]* | ?:[\\/]*)
19800   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
19801   ;;
19802   *)
19803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19804 for as_dir in $PATH
19805 do
19806   IFS=$as_save_IFS
19807   test -z "$as_dir" && as_dir=.
19808     for ac_exec_ext in '' $ac_executable_extensions; do
19809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19810     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
19811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19812     break 2
19813   fi
19814 done
19815   done
19816 IFS=$as_save_IFS
19817 
19818   ;;
19819 esac
19820 fi
19821 MAKE=$ac_cv_path_MAKE
19822 if test -n "$MAKE"; then
19823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
19824 $as_echo "$MAKE" >&6; }
19825 else
19826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827 $as_echo "no" >&6; }
19828 fi
19829 
19830 
19831           if test "x$MAKE" = x; then
19832             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19833           fi
19834         else
19835           # Otherwise we believe it is a complete path. Use it as it is.
19836           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
19837 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
19838           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19839 $as_echo_n "checking for MAKE... " >&6; }
19840           if test ! -x "$tool_specified"; then
19841             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19842 $as_echo "not found" >&6; }
19843             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
19844           fi
19845           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19846 $as_echo "$tool_specified" >&6; }
19847         fi
19848       fi
19849     fi
19850 
19851     # If MAKE was set by user, verify the version
19852 
19853   MAKE_CANDIDATE=""$MAKE""
19854   DESCRIPTION="user supplied MAKE=$MAKE"
19855 
19856   # On Cygwin, we require a newer version of make than on other platforms
19857   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19858     MAKE_VERSION_EXPR="-e 4\."
19859     MAKE_REQUIRED_VERSION="4.0"
19860    else
19861     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19862     MAKE_REQUIRED_VERSION="3.81"
19863   fi
19864 
19865   if test "x$MAKE_CANDIDATE" != x; then
19866     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19867 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19868     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19869     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19870     if test "x$IS_GNU_MAKE" = x; then
19871       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19872 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19873     else
19874       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19875       if test "x$IS_MODERN_MAKE" = x; then
19876         { $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
19877 $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;}
19878       else
19879         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19880           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19881             MAKE_EXPECTED_ENV='cygwin'
19882           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19883             MAKE_EXPECTED_ENV='msys'
19884           else
19885             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19886           fi
19887           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19888           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19889         else
19890           # Not relevant for non-Windows
19891           IS_MAKE_CORRECT_ENV=true
19892         fi
19893         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19894           { $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
19895 $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;}
19896         else
19897           FOUND_MAKE=$MAKE_CANDIDATE
19898 
19899   # Only process if variable expands to non-empty
19900 
19901   if test "x$FOUND_MAKE" != x; then
19902     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19903 
19904   # First separate the path from the arguments. This will split at the first
19905   # space.
19906   complete="$FOUND_MAKE"
19907   path="${complete%% *}"
19908   tmp="$complete EOL"
19909   arguments="${tmp#* }"
19910 
19911   # Input might be given as Windows format, start by converting to
19912   # unix format.
19913   new_path=`$CYGPATH -u "$path"`
19914 
19915   # Now try to locate executable using which
19916   new_path=`$WHICH "$new_path" 2> /dev/null`
19917   # bat and cmd files are not always considered executable in cygwin causing which
19918   # to not find them
19919   if test "x$new_path" = x \
19920       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19921       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19922     new_path=`$CYGPATH -u "$path"`
19923   fi
19924   if test "x$new_path" = x; then
19925     # Oops. Which didn't find the executable.
19926     # The splitting of arguments from the executable at a space might have been incorrect,
19927     # since paths with space are more likely in Windows. Give it another try with the whole
19928     # argument.
19929     path="$complete"
19930     arguments="EOL"
19931     new_path=`$CYGPATH -u "$path"`
19932     new_path=`$WHICH "$new_path" 2> /dev/null`
19933     # bat and cmd files are not always considered executable in cygwin causing which
19934     # to not find them
19935     if test "x$new_path" = x \
19936         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19937         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19938       new_path=`$CYGPATH -u "$path"`
19939     fi
19940     if test "x$new_path" = x; then
19941       # It's still not found. Now this is an unrecoverable error.
19942       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19943 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19944       has_space=`$ECHO "$complete" | $GREP " "`
19945       if test "x$has_space" != x; then
19946         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19947 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19948       fi
19949       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19950     fi
19951   fi
19952 
19953   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19954   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19955   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19956   # "foo.exe" is OK but "foo" is an error.
19957   #
19958   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19959   # It is also a way to make sure we got the proper file name for the real test later on.
19960   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19961   if test "x$test_shortpath" = x; then
19962     # Short path failed, file does not exist as specified.
19963     # Try adding .exe or .cmd
19964     if test -f "${new_path}.exe"; then
19965       input_to_shortpath="${new_path}.exe"
19966     elif test -f "${new_path}.cmd"; then
19967       input_to_shortpath="${new_path}.cmd"
19968     else
19969       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19970 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19971       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19972 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19973       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19974     fi
19975   else
19976     input_to_shortpath="$new_path"
19977   fi
19978 
19979   # Call helper function which possibly converts this using DOS-style short mode.
19980   # If so, the updated path is stored in $new_path.
19981   new_path="$input_to_shortpath"
19982 
19983   input_path="$input_to_shortpath"
19984   # Check if we need to convert this using DOS-style short mode. If the path
19985   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19986   # take no chances and rewrite it.
19987   # Note: m4 eats our [], so we need to use [ and ] instead.
19988   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19989   if test "x$has_forbidden_chars" != x; then
19990     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19991     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19992     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19993     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19994       # Going to short mode and back again did indeed matter. Since short mode is
19995       # case insensitive, let's make it lowercase to improve readability.
19996       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19997       # Now convert it back to Unix-style (cygpath)
19998       input_path=`$CYGPATH -u "$shortmode_path"`
19999       new_path="$input_path"
20000     fi
20001   fi
20002 
20003   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20004   if test "x$test_cygdrive_prefix" = x; then
20005     # As a simple fix, exclude /usr/bin since it's not a real path.
20006     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20007       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20008       # a path prefixed by /cygdrive for fixpath to work.
20009       new_path="$CYGWIN_ROOT_PATH$input_path"
20010     fi
20011   fi
20012 
20013   # remove trailing .exe if any
20014   new_path="${new_path/%.exe/}"
20015 
20016     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20017 
20018   # First separate the path from the arguments. This will split at the first
20019   # space.
20020   complete="$FOUND_MAKE"
20021   path="${complete%% *}"
20022   tmp="$complete EOL"
20023   arguments="${tmp#* }"
20024 
20025   # Input might be given as Windows format, start by converting to
20026   # unix format.
20027   new_path="$path"
20028 
20029   windows_path="$new_path"
20030   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20031     unix_path=`$CYGPATH -u "$windows_path"`
20032     new_path="$unix_path"
20033   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20034     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20035     new_path="$unix_path"
20036   fi
20037 
20038 
20039   # Now try to locate executable using which
20040   new_path=`$WHICH "$new_path" 2> /dev/null`
20041 
20042   if test "x$new_path" = x; then
20043     # Oops. Which didn't find the executable.
20044     # The splitting of arguments from the executable at a space might have been incorrect,
20045     # since paths with space are more likely in Windows. Give it another try with the whole
20046     # argument.
20047     path="$complete"
20048     arguments="EOL"
20049     new_path="$path"
20050 
20051   windows_path="$new_path"
20052   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20053     unix_path=`$CYGPATH -u "$windows_path"`
20054     new_path="$unix_path"
20055   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20056     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20057     new_path="$unix_path"
20058   fi
20059 
20060 
20061     new_path=`$WHICH "$new_path" 2> /dev/null`
20062     # bat and cmd files are not always considered executable in MSYS causing which
20063     # to not find them
20064     if test "x$new_path" = x \
20065         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20066         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20067       new_path="$path"
20068 
20069   windows_path="$new_path"
20070   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20071     unix_path=`$CYGPATH -u "$windows_path"`
20072     new_path="$unix_path"
20073   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20074     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20075     new_path="$unix_path"
20076   fi
20077 
20078     fi
20079 
20080     if test "x$new_path" = x; then
20081       # It's still not found. Now this is an unrecoverable error.
20082       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20083 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20084       has_space=`$ECHO "$complete" | $GREP " "`
20085       if test "x$has_space" != x; then
20086         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20087 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20088       fi
20089       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20090     fi
20091   fi
20092 
20093   # Now new_path has a complete unix path to the binary
20094   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20095     # Keep paths in /bin as-is, but remove trailing .exe if any
20096     new_path="${new_path/%.exe/}"
20097     # Do not save /bin paths to all_fixpath_prefixes!
20098   else
20099     # Not in mixed or Windows style, start by that.
20100     new_path=`cmd //c echo $new_path`
20101 
20102   input_path="$new_path"
20103   # Check if we need to convert this using DOS-style short mode. If the path
20104   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20105   # take no chances and rewrite it.
20106   # Note: m4 eats our [], so we need to use [ and ] instead.
20107   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20108   if test "x$has_forbidden_chars" != x; then
20109     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20110     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20111   fi
20112 
20113     # Output is in $new_path
20114 
20115   windows_path="$new_path"
20116   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20117     unix_path=`$CYGPATH -u "$windows_path"`
20118     new_path="$unix_path"
20119   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20120     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20121     new_path="$unix_path"
20122   fi
20123 
20124     # remove trailing .exe if any
20125     new_path="${new_path/%.exe/}"
20126 
20127     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20128     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20129   fi
20130 
20131     else
20132       # We're on a unix platform. Hooray! :)
20133       # First separate the path from the arguments. This will split at the first
20134       # space.
20135       complete="$FOUND_MAKE"
20136       path="${complete%% *}"
20137       tmp="$complete EOL"
20138       arguments="${tmp#* }"
20139 
20140       # Cannot rely on the command "which" here since it doesn't always work.
20141       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20142       if test -z "$is_absolute_path"; then
20143         # Path to executable is not absolute. Find it.
20144         IFS_save="$IFS"
20145         IFS=:
20146         for p in $PATH; do
20147           if test -f "$p/$path" && test -x "$p/$path"; then
20148             new_path="$p/$path"
20149             break
20150           fi
20151         done
20152         IFS="$IFS_save"
20153       else
20154         # This is an absolute path, we can use it without further modifications.
20155         new_path="$path"
20156       fi
20157 
20158       if test "x$new_path" = x; then
20159         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20160 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20161         has_space=`$ECHO "$complete" | $GREP " "`
20162         if test "x$has_space" != x; then
20163           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20164 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20165         fi
20166         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20167       fi
20168     fi
20169 
20170     # Now join together the path and the arguments once again
20171     if test "x$arguments" != xEOL; then
20172       new_complete="$new_path ${arguments% *}"
20173     else
20174       new_complete="$new_path"
20175     fi
20176 
20177     if test "x$complete" != "x$new_complete"; then
20178       FOUND_MAKE="$new_complete"
20179       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20180 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20181     fi
20182   fi
20183 
20184         fi
20185       fi
20186     fi
20187   fi
20188 
20189     if test "x$FOUND_MAKE" = x; then
20190       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
20191     fi
20192 
20193   fi
20194 
20195 
20196   MAKE=$FOUND_MAKE
20197 
20198   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
20199 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
20200 
20201 
20202   # Check if make supports the output sync option and if so, setup using it.
20203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
20204 $as_echo_n "checking if make --output-sync is supported... " >&6; }
20205   if $MAKE --version -O > /dev/null 2>&1; then
20206     OUTPUT_SYNC_SUPPORTED=true
20207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20208 $as_echo "yes" >&6; }
20209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
20210 $as_echo_n "checking for output-sync value... " >&6; }
20211 
20212 # Check whether --with-output-sync was given.
20213 if test "${with_output_sync+set}" = set; then :
20214   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
20215 fi
20216 
20217     if test "x$OUTPUT_SYNC" = "x"; then
20218       OUTPUT_SYNC=none
20219     fi
20220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
20221 $as_echo "$OUTPUT_SYNC" >&6; }
20222     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
20223       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
20224     fi
20225   else
20226     OUTPUT_SYNC_SUPPORTED=false
20227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20228 $as_echo "no" >&6; }
20229   fi
20230 
20231 
20232 
20233 
20234 
20235 
20236   # Test if find supports -delete
20237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
20238 $as_echo_n "checking if find supports -delete... " >&6; }
20239   FIND_DELETE="-delete"
20240 
20241   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
20242 
20243   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
20244 
20245   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
20246   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
20247     # No, it does not.
20248     rm $DELETEDIR/TestIfFindSupportsDelete
20249     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
20250       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
20251       FIND_DELETE="-print | xargs rm"
20252     else
20253       FIND_DELETE="-exec rm \{\} \+"
20254     fi
20255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20256 $as_echo "no" >&6; }
20257   else
20258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20259 $as_echo "yes" >&6; }
20260   fi
20261   rmdir $DELETEDIR
20262 
20263 
20264 
20265   # These tools might not be installed by default,
20266   # need hint on how to install them.
20267 
20268 
20269 
20270   # Publish this variable in the help.
20271 
20272 
20273   if [ -z "${UNZIP+x}" ]; then
20274     # The variable is not set by user, try to locate tool using the code snippet
20275     for ac_prog in unzip
20276 do
20277   # Extract the first word of "$ac_prog", so it can be a program name with args.
20278 set dummy $ac_prog; ac_word=$2
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20280 $as_echo_n "checking for $ac_word... " >&6; }
20281 if ${ac_cv_path_UNZIP+:} false; then :
20282   $as_echo_n "(cached) " >&6
20283 else
20284   case $UNZIP in
20285   [\\/]* | ?:[\\/]*)
20286   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20287   ;;
20288   *)
20289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20290 for as_dir in $PATH
20291 do
20292   IFS=$as_save_IFS
20293   test -z "$as_dir" && as_dir=.
20294     for ac_exec_ext in '' $ac_executable_extensions; do
20295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20296     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20298     break 2
20299   fi
20300 done
20301   done
20302 IFS=$as_save_IFS
20303 
20304   ;;
20305 esac
20306 fi
20307 UNZIP=$ac_cv_path_UNZIP
20308 if test -n "$UNZIP"; then
20309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20310 $as_echo "$UNZIP" >&6; }
20311 else
20312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20313 $as_echo "no" >&6; }
20314 fi
20315 
20316 
20317   test -n "$UNZIP" && break
20318 done
20319 
20320   else
20321     # The variable is set, but is it from the command line or the environment?
20322 
20323     # Try to remove the string !UNZIP! from our list.
20324     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
20325     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20326       # If it failed, the variable was not from the command line. Ignore it,
20327       # but warn the user (except for BASH, which is always set by the calling BASH).
20328       if test "xUNZIP" != xBASH; then
20329         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
20330 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
20331       fi
20332       # Try to locate tool using the code snippet
20333       for ac_prog in unzip
20334 do
20335   # Extract the first word of "$ac_prog", so it can be a program name with args.
20336 set dummy $ac_prog; ac_word=$2
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20338 $as_echo_n "checking for $ac_word... " >&6; }
20339 if ${ac_cv_path_UNZIP+:} false; then :
20340   $as_echo_n "(cached) " >&6
20341 else
20342   case $UNZIP in
20343   [\\/]* | ?:[\\/]*)
20344   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20345   ;;
20346   *)
20347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20348 for as_dir in $PATH
20349 do
20350   IFS=$as_save_IFS
20351   test -z "$as_dir" && as_dir=.
20352     for ac_exec_ext in '' $ac_executable_extensions; do
20353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20354     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20356     break 2
20357   fi
20358 done
20359   done
20360 IFS=$as_save_IFS
20361 
20362   ;;
20363 esac
20364 fi
20365 UNZIP=$ac_cv_path_UNZIP
20366 if test -n "$UNZIP"; then
20367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20368 $as_echo "$UNZIP" >&6; }
20369 else
20370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20371 $as_echo "no" >&6; }
20372 fi
20373 
20374 
20375   test -n "$UNZIP" && break
20376 done
20377 
20378     else
20379       # If it succeeded, then it was overridden by the user. We will use it
20380       # for the tool.
20381 
20382       # First remove it from the list of overridden variables, so we can test
20383       # for unknown variables in the end.
20384       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20385 
20386       # Check if we try to supply an empty value
20387       if test "x$UNZIP" = x; then
20388         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
20389 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
20390         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20391 $as_echo_n "checking for UNZIP... " >&6; }
20392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20393 $as_echo "disabled" >&6; }
20394       else
20395         # Check if the provided tool contains a complete path.
20396         tool_specified="$UNZIP"
20397         tool_basename="${tool_specified##*/}"
20398         if test "x$tool_basename" = "x$tool_specified"; then
20399           # A command without a complete path is provided, search $PATH.
20400           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
20401 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
20402           # Extract the first word of "$tool_basename", so it can be a program name with args.
20403 set dummy $tool_basename; ac_word=$2
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20405 $as_echo_n "checking for $ac_word... " >&6; }
20406 if ${ac_cv_path_UNZIP+:} false; then :
20407   $as_echo_n "(cached) " >&6
20408 else
20409   case $UNZIP in
20410   [\\/]* | ?:[\\/]*)
20411   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20412   ;;
20413   *)
20414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20415 for as_dir in $PATH
20416 do
20417   IFS=$as_save_IFS
20418   test -z "$as_dir" && as_dir=.
20419     for ac_exec_ext in '' $ac_executable_extensions; do
20420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20421     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20423     break 2
20424   fi
20425 done
20426   done
20427 IFS=$as_save_IFS
20428 
20429   ;;
20430 esac
20431 fi
20432 UNZIP=$ac_cv_path_UNZIP
20433 if test -n "$UNZIP"; then
20434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20435 $as_echo "$UNZIP" >&6; }
20436 else
20437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20438 $as_echo "no" >&6; }
20439 fi
20440 
20441 
20442           if test "x$UNZIP" = x; then
20443             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20444           fi
20445         else
20446           # Otherwise we believe it is a complete path. Use it as it is.
20447           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
20448 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
20449           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20450 $as_echo_n "checking for UNZIP... " >&6; }
20451           if test ! -x "$tool_specified"; then
20452             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20453 $as_echo "not found" >&6; }
20454             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20455           fi
20456           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20457 $as_echo "$tool_specified" >&6; }
20458         fi
20459       fi
20460     fi
20461 
20462   fi
20463 
20464 
20465 
20466   if test "x$UNZIP" = x; then
20467     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
20468   fi
20469 
20470 
20471 
20472 
20473 
20474   # Publish this variable in the help.
20475 
20476 
20477   if [ -z "${ZIP+x}" ]; then
20478     # The variable is not set by user, try to locate tool using the code snippet
20479     for ac_prog in zip
20480 do
20481   # Extract the first word of "$ac_prog", so it can be a program name with args.
20482 set dummy $ac_prog; ac_word=$2
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20484 $as_echo_n "checking for $ac_word... " >&6; }
20485 if ${ac_cv_path_ZIP+:} false; then :
20486   $as_echo_n "(cached) " >&6
20487 else
20488   case $ZIP in
20489   [\\/]* | ?:[\\/]*)
20490   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20491   ;;
20492   *)
20493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20494 for as_dir in $PATH
20495 do
20496   IFS=$as_save_IFS
20497   test -z "$as_dir" && as_dir=.
20498     for ac_exec_ext in '' $ac_executable_extensions; do
20499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20500     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20502     break 2
20503   fi
20504 done
20505   done
20506 IFS=$as_save_IFS
20507 
20508   ;;
20509 esac
20510 fi
20511 ZIP=$ac_cv_path_ZIP
20512 if test -n "$ZIP"; then
20513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20514 $as_echo "$ZIP" >&6; }
20515 else
20516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20517 $as_echo "no" >&6; }
20518 fi
20519 
20520 
20521   test -n "$ZIP" && break
20522 done
20523 
20524   else
20525     # The variable is set, but is it from the command line or the environment?
20526 
20527     # Try to remove the string !ZIP! from our list.
20528     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
20529     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20530       # If it failed, the variable was not from the command line. Ignore it,
20531       # but warn the user (except for BASH, which is always set by the calling BASH).
20532       if test "xZIP" != xBASH; then
20533         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
20534 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
20535       fi
20536       # Try to locate tool using the code snippet
20537       for ac_prog in zip
20538 do
20539   # Extract the first word of "$ac_prog", so it can be a program name with args.
20540 set dummy $ac_prog; ac_word=$2
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20542 $as_echo_n "checking for $ac_word... " >&6; }
20543 if ${ac_cv_path_ZIP+:} false; then :
20544   $as_echo_n "(cached) " >&6
20545 else
20546   case $ZIP in
20547   [\\/]* | ?:[\\/]*)
20548   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20549   ;;
20550   *)
20551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20552 for as_dir in $PATH
20553 do
20554   IFS=$as_save_IFS
20555   test -z "$as_dir" && as_dir=.
20556     for ac_exec_ext in '' $ac_executable_extensions; do
20557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20558     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20560     break 2
20561   fi
20562 done
20563   done
20564 IFS=$as_save_IFS
20565 
20566   ;;
20567 esac
20568 fi
20569 ZIP=$ac_cv_path_ZIP
20570 if test -n "$ZIP"; then
20571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20572 $as_echo "$ZIP" >&6; }
20573 else
20574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20575 $as_echo "no" >&6; }
20576 fi
20577 
20578 
20579   test -n "$ZIP" && break
20580 done
20581 
20582     else
20583       # If it succeeded, then it was overridden by the user. We will use it
20584       # for the tool.
20585 
20586       # First remove it from the list of overridden variables, so we can test
20587       # for unknown variables in the end.
20588       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20589 
20590       # Check if we try to supply an empty value
20591       if test "x$ZIP" = x; then
20592         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
20593 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
20594         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20595 $as_echo_n "checking for ZIP... " >&6; }
20596         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20597 $as_echo "disabled" >&6; }
20598       else
20599         # Check if the provided tool contains a complete path.
20600         tool_specified="$ZIP"
20601         tool_basename="${tool_specified##*/}"
20602         if test "x$tool_basename" = "x$tool_specified"; then
20603           # A command without a complete path is provided, search $PATH.
20604           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
20605 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
20606           # Extract the first word of "$tool_basename", so it can be a program name with args.
20607 set dummy $tool_basename; ac_word=$2
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20609 $as_echo_n "checking for $ac_word... " >&6; }
20610 if ${ac_cv_path_ZIP+:} false; then :
20611   $as_echo_n "(cached) " >&6
20612 else
20613   case $ZIP in
20614   [\\/]* | ?:[\\/]*)
20615   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20616   ;;
20617   *)
20618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20619 for as_dir in $PATH
20620 do
20621   IFS=$as_save_IFS
20622   test -z "$as_dir" && as_dir=.
20623     for ac_exec_ext in '' $ac_executable_extensions; do
20624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20625     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20627     break 2
20628   fi
20629 done
20630   done
20631 IFS=$as_save_IFS
20632 
20633   ;;
20634 esac
20635 fi
20636 ZIP=$ac_cv_path_ZIP
20637 if test -n "$ZIP"; then
20638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20639 $as_echo "$ZIP" >&6; }
20640 else
20641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20642 $as_echo "no" >&6; }
20643 fi
20644 
20645 
20646           if test "x$ZIP" = x; then
20647             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20648           fi
20649         else
20650           # Otherwise we believe it is a complete path. Use it as it is.
20651           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
20652 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
20653           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20654 $as_echo_n "checking for ZIP... " >&6; }
20655           if test ! -x "$tool_specified"; then
20656             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20657 $as_echo "not found" >&6; }
20658             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20659           fi
20660           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20661 $as_echo "$tool_specified" >&6; }
20662         fi
20663       fi
20664     fi
20665 
20666   fi
20667 
20668 
20669 
20670   if test "x$ZIP" = x; then
20671     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
20672   fi
20673 
20674 
20675 
20676   # Non-required basic tools
20677 
20678 
20679 
20680   # Publish this variable in the help.
20681 
20682 
20683   if [ -z "${LDD+x}" ]; then
20684     # The variable is not set by user, try to locate tool using the code snippet
20685     for ac_prog in ldd
20686 do
20687   # Extract the first word of "$ac_prog", so it can be a program name with args.
20688 set dummy $ac_prog; ac_word=$2
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20690 $as_echo_n "checking for $ac_word... " >&6; }
20691 if ${ac_cv_path_LDD+:} false; then :
20692   $as_echo_n "(cached) " >&6
20693 else
20694   case $LDD in
20695   [\\/]* | ?:[\\/]*)
20696   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20697   ;;
20698   *)
20699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20700 for as_dir in $PATH
20701 do
20702   IFS=$as_save_IFS
20703   test -z "$as_dir" && as_dir=.
20704     for ac_exec_ext in '' $ac_executable_extensions; do
20705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20706     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20708     break 2
20709   fi
20710 done
20711   done
20712 IFS=$as_save_IFS
20713 
20714   ;;
20715 esac
20716 fi
20717 LDD=$ac_cv_path_LDD
20718 if test -n "$LDD"; then
20719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20720 $as_echo "$LDD" >&6; }
20721 else
20722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20723 $as_echo "no" >&6; }
20724 fi
20725 
20726 
20727   test -n "$LDD" && break
20728 done
20729 
20730   else
20731     # The variable is set, but is it from the command line or the environment?
20732 
20733     # Try to remove the string !LDD! from our list.
20734     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
20735     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20736       # If it failed, the variable was not from the command line. Ignore it,
20737       # but warn the user (except for BASH, which is always set by the calling BASH).
20738       if test "xLDD" != xBASH; then
20739         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
20740 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
20741       fi
20742       # Try to locate tool using the code snippet
20743       for ac_prog in ldd
20744 do
20745   # Extract the first word of "$ac_prog", so it can be a program name with args.
20746 set dummy $ac_prog; ac_word=$2
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20748 $as_echo_n "checking for $ac_word... " >&6; }
20749 if ${ac_cv_path_LDD+:} false; then :
20750   $as_echo_n "(cached) " >&6
20751 else
20752   case $LDD in
20753   [\\/]* | ?:[\\/]*)
20754   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20755   ;;
20756   *)
20757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20758 for as_dir in $PATH
20759 do
20760   IFS=$as_save_IFS
20761   test -z "$as_dir" && as_dir=.
20762     for ac_exec_ext in '' $ac_executable_extensions; do
20763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20764     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20766     break 2
20767   fi
20768 done
20769   done
20770 IFS=$as_save_IFS
20771 
20772   ;;
20773 esac
20774 fi
20775 LDD=$ac_cv_path_LDD
20776 if test -n "$LDD"; then
20777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20778 $as_echo "$LDD" >&6; }
20779 else
20780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20781 $as_echo "no" >&6; }
20782 fi
20783 
20784 
20785   test -n "$LDD" && break
20786 done
20787 
20788     else
20789       # If it succeeded, then it was overridden by the user. We will use it
20790       # for the tool.
20791 
20792       # First remove it from the list of overridden variables, so we can test
20793       # for unknown variables in the end.
20794       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20795 
20796       # Check if we try to supply an empty value
20797       if test "x$LDD" = x; then
20798         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
20799 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
20800         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20801 $as_echo_n "checking for LDD... " >&6; }
20802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20803 $as_echo "disabled" >&6; }
20804       else
20805         # Check if the provided tool contains a complete path.
20806         tool_specified="$LDD"
20807         tool_basename="${tool_specified##*/}"
20808         if test "x$tool_basename" = "x$tool_specified"; then
20809           # A command without a complete path is provided, search $PATH.
20810           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
20811 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
20812           # Extract the first word of "$tool_basename", so it can be a program name with args.
20813 set dummy $tool_basename; ac_word=$2
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20815 $as_echo_n "checking for $ac_word... " >&6; }
20816 if ${ac_cv_path_LDD+:} false; then :
20817   $as_echo_n "(cached) " >&6
20818 else
20819   case $LDD in
20820   [\\/]* | ?:[\\/]*)
20821   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20822   ;;
20823   *)
20824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20825 for as_dir in $PATH
20826 do
20827   IFS=$as_save_IFS
20828   test -z "$as_dir" && as_dir=.
20829     for ac_exec_ext in '' $ac_executable_extensions; do
20830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20831     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20833     break 2
20834   fi
20835 done
20836   done
20837 IFS=$as_save_IFS
20838 
20839   ;;
20840 esac
20841 fi
20842 LDD=$ac_cv_path_LDD
20843 if test -n "$LDD"; then
20844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20845 $as_echo "$LDD" >&6; }
20846 else
20847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20848 $as_echo "no" >&6; }
20849 fi
20850 
20851 
20852           if test "x$LDD" = x; then
20853             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20854           fi
20855         else
20856           # Otherwise we believe it is a complete path. Use it as it is.
20857           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
20858 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
20859           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20860 $as_echo_n "checking for LDD... " >&6; }
20861           if test ! -x "$tool_specified"; then
20862             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20863 $as_echo "not found" >&6; }
20864             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
20865           fi
20866           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20867 $as_echo "$tool_specified" >&6; }
20868         fi
20869       fi
20870     fi
20871 
20872   fi
20873 
20874 
20875   if test "x$LDD" = "x"; then
20876     # List shared lib dependencies is used for
20877     # debug output and checking for forbidden dependencies.
20878     # We can build without it.
20879     LDD="true"
20880   fi
20881 
20882 
20883   # Publish this variable in the help.
20884 
20885 
20886   if [ -z "${OTOOL+x}" ]; then
20887     # The variable is not set by user, try to locate tool using the code snippet
20888     for ac_prog in otool
20889 do
20890   # Extract the first word of "$ac_prog", so it can be a program name with args.
20891 set dummy $ac_prog; ac_word=$2
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20893 $as_echo_n "checking for $ac_word... " >&6; }
20894 if ${ac_cv_path_OTOOL+:} false; then :
20895   $as_echo_n "(cached) " >&6
20896 else
20897   case $OTOOL in
20898   [\\/]* | ?:[\\/]*)
20899   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20900   ;;
20901   *)
20902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20903 for as_dir in $PATH
20904 do
20905   IFS=$as_save_IFS
20906   test -z "$as_dir" && as_dir=.
20907     for ac_exec_ext in '' $ac_executable_extensions; do
20908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20909     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20911     break 2
20912   fi
20913 done
20914   done
20915 IFS=$as_save_IFS
20916 
20917   ;;
20918 esac
20919 fi
20920 OTOOL=$ac_cv_path_OTOOL
20921 if test -n "$OTOOL"; then
20922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20923 $as_echo "$OTOOL" >&6; }
20924 else
20925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20926 $as_echo "no" >&6; }
20927 fi
20928 
20929 
20930   test -n "$OTOOL" && break
20931 done
20932 
20933   else
20934     # The variable is set, but is it from the command line or the environment?
20935 
20936     # Try to remove the string !OTOOL! from our list.
20937     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
20938     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20939       # If it failed, the variable was not from the command line. Ignore it,
20940       # but warn the user (except for BASH, which is always set by the calling BASH).
20941       if test "xOTOOL" != xBASH; then
20942         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
20943 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
20944       fi
20945       # Try to locate tool using the code snippet
20946       for ac_prog in otool
20947 do
20948   # Extract the first word of "$ac_prog", so it can be a program name with args.
20949 set dummy $ac_prog; ac_word=$2
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20951 $as_echo_n "checking for $ac_word... " >&6; }
20952 if ${ac_cv_path_OTOOL+:} false; then :
20953   $as_echo_n "(cached) " >&6
20954 else
20955   case $OTOOL in
20956   [\\/]* | ?:[\\/]*)
20957   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20958   ;;
20959   *)
20960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20961 for as_dir in $PATH
20962 do
20963   IFS=$as_save_IFS
20964   test -z "$as_dir" && as_dir=.
20965     for ac_exec_ext in '' $ac_executable_extensions; do
20966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20967     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20969     break 2
20970   fi
20971 done
20972   done
20973 IFS=$as_save_IFS
20974 
20975   ;;
20976 esac
20977 fi
20978 OTOOL=$ac_cv_path_OTOOL
20979 if test -n "$OTOOL"; then
20980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20981 $as_echo "$OTOOL" >&6; }
20982 else
20983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20984 $as_echo "no" >&6; }
20985 fi
20986 
20987 
20988   test -n "$OTOOL" && break
20989 done
20990 
20991     else
20992       # If it succeeded, then it was overridden by the user. We will use it
20993       # for the tool.
20994 
20995       # First remove it from the list of overridden variables, so we can test
20996       # for unknown variables in the end.
20997       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20998 
20999       # Check if we try to supply an empty value
21000       if test "x$OTOOL" = x; then
21001         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
21002 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
21003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21004 $as_echo_n "checking for OTOOL... " >&6; }
21005         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21006 $as_echo "disabled" >&6; }
21007       else
21008         # Check if the provided tool contains a complete path.
21009         tool_specified="$OTOOL"
21010         tool_basename="${tool_specified##*/}"
21011         if test "x$tool_basename" = "x$tool_specified"; then
21012           # A command without a complete path is provided, search $PATH.
21013           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
21014 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
21015           # Extract the first word of "$tool_basename", so it can be a program name with args.
21016 set dummy $tool_basename; ac_word=$2
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21018 $as_echo_n "checking for $ac_word... " >&6; }
21019 if ${ac_cv_path_OTOOL+:} false; then :
21020   $as_echo_n "(cached) " >&6
21021 else
21022   case $OTOOL in
21023   [\\/]* | ?:[\\/]*)
21024   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21025   ;;
21026   *)
21027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21028 for as_dir in $PATH
21029 do
21030   IFS=$as_save_IFS
21031   test -z "$as_dir" && as_dir=.
21032     for ac_exec_ext in '' $ac_executable_extensions; do
21033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21034     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21036     break 2
21037   fi
21038 done
21039   done
21040 IFS=$as_save_IFS
21041 
21042   ;;
21043 esac
21044 fi
21045 OTOOL=$ac_cv_path_OTOOL
21046 if test -n "$OTOOL"; then
21047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21048 $as_echo "$OTOOL" >&6; }
21049 else
21050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21051 $as_echo "no" >&6; }
21052 fi
21053 
21054 
21055           if test "x$OTOOL" = x; then
21056             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21057           fi
21058         else
21059           # Otherwise we believe it is a complete path. Use it as it is.
21060           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
21061 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
21062           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21063 $as_echo_n "checking for OTOOL... " >&6; }
21064           if test ! -x "$tool_specified"; then
21065             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21066 $as_echo "not found" >&6; }
21067             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
21068           fi
21069           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21070 $as_echo "$tool_specified" >&6; }
21071         fi
21072       fi
21073     fi
21074 
21075   fi
21076 
21077 
21078   if test "x$OTOOL" = "x"; then
21079     OTOOL="true"
21080   fi
21081 
21082 
21083   # Publish this variable in the help.
21084 
21085 
21086   if [ -z "${READELF+x}" ]; then
21087     # The variable is not set by user, try to locate tool using the code snippet
21088     for ac_prog in greadelf readelf
21089 do
21090   # Extract the first word of "$ac_prog", so it can be a program name with args.
21091 set dummy $ac_prog; ac_word=$2
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21093 $as_echo_n "checking for $ac_word... " >&6; }
21094 if ${ac_cv_path_READELF+:} false; then :
21095   $as_echo_n "(cached) " >&6
21096 else
21097   case $READELF in
21098   [\\/]* | ?:[\\/]*)
21099   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21100   ;;
21101   *)
21102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21103 for as_dir in $PATH
21104 do
21105   IFS=$as_save_IFS
21106   test -z "$as_dir" && as_dir=.
21107     for ac_exec_ext in '' $ac_executable_extensions; do
21108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21109     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21111     break 2
21112   fi
21113 done
21114   done
21115 IFS=$as_save_IFS
21116 
21117   ;;
21118 esac
21119 fi
21120 READELF=$ac_cv_path_READELF
21121 if test -n "$READELF"; then
21122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21123 $as_echo "$READELF" >&6; }
21124 else
21125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21126 $as_echo "no" >&6; }
21127 fi
21128 
21129 
21130   test -n "$READELF" && break
21131 done
21132 
21133   else
21134     # The variable is set, but is it from the command line or the environment?
21135 
21136     # Try to remove the string !READELF! from our list.
21137     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
21138     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21139       # If it failed, the variable was not from the command line. Ignore it,
21140       # but warn the user (except for BASH, which is always set by the calling BASH).
21141       if test "xREADELF" != xBASH; then
21142         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
21143 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
21144       fi
21145       # Try to locate tool using the code snippet
21146       for ac_prog in greadelf readelf
21147 do
21148   # Extract the first word of "$ac_prog", so it can be a program name with args.
21149 set dummy $ac_prog; ac_word=$2
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21151 $as_echo_n "checking for $ac_word... " >&6; }
21152 if ${ac_cv_path_READELF+:} false; then :
21153   $as_echo_n "(cached) " >&6
21154 else
21155   case $READELF in
21156   [\\/]* | ?:[\\/]*)
21157   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21158   ;;
21159   *)
21160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21161 for as_dir in $PATH
21162 do
21163   IFS=$as_save_IFS
21164   test -z "$as_dir" && as_dir=.
21165     for ac_exec_ext in '' $ac_executable_extensions; do
21166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21167     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21169     break 2
21170   fi
21171 done
21172   done
21173 IFS=$as_save_IFS
21174 
21175   ;;
21176 esac
21177 fi
21178 READELF=$ac_cv_path_READELF
21179 if test -n "$READELF"; then
21180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21181 $as_echo "$READELF" >&6; }
21182 else
21183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21184 $as_echo "no" >&6; }
21185 fi
21186 
21187 
21188   test -n "$READELF" && break
21189 done
21190 
21191     else
21192       # If it succeeded, then it was overridden by the user. We will use it
21193       # for the tool.
21194 
21195       # First remove it from the list of overridden variables, so we can test
21196       # for unknown variables in the end.
21197       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21198 
21199       # Check if we try to supply an empty value
21200       if test "x$READELF" = x; then
21201         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
21202 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
21203         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21204 $as_echo_n "checking for READELF... " >&6; }
21205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21206 $as_echo "disabled" >&6; }
21207       else
21208         # Check if the provided tool contains a complete path.
21209         tool_specified="$READELF"
21210         tool_basename="${tool_specified##*/}"
21211         if test "x$tool_basename" = "x$tool_specified"; then
21212           # A command without a complete path is provided, search $PATH.
21213           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
21214 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
21215           # Extract the first word of "$tool_basename", so it can be a program name with args.
21216 set dummy $tool_basename; ac_word=$2
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21218 $as_echo_n "checking for $ac_word... " >&6; }
21219 if ${ac_cv_path_READELF+:} false; then :
21220   $as_echo_n "(cached) " >&6
21221 else
21222   case $READELF in
21223   [\\/]* | ?:[\\/]*)
21224   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21225   ;;
21226   *)
21227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21228 for as_dir in $PATH
21229 do
21230   IFS=$as_save_IFS
21231   test -z "$as_dir" && as_dir=.
21232     for ac_exec_ext in '' $ac_executable_extensions; do
21233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21234     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21236     break 2
21237   fi
21238 done
21239   done
21240 IFS=$as_save_IFS
21241 
21242   ;;
21243 esac
21244 fi
21245 READELF=$ac_cv_path_READELF
21246 if test -n "$READELF"; then
21247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21248 $as_echo "$READELF" >&6; }
21249 else
21250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21251 $as_echo "no" >&6; }
21252 fi
21253 
21254 
21255           if test "x$READELF" = x; then
21256             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21257           fi
21258         else
21259           # Otherwise we believe it is a complete path. Use it as it is.
21260           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
21261 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
21262           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21263 $as_echo_n "checking for READELF... " >&6; }
21264           if test ! -x "$tool_specified"; then
21265             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21266 $as_echo "not found" >&6; }
21267             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
21268           fi
21269           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21270 $as_echo "$tool_specified" >&6; }
21271         fi
21272       fi
21273     fi
21274 
21275   fi
21276 
21277 
21278 
21279 
21280   # Publish this variable in the help.
21281 
21282 
21283   if [ -z "${HG+x}" ]; then
21284     # The variable is not set by user, try to locate tool using the code snippet
21285     for ac_prog in hg
21286 do
21287   # Extract the first word of "$ac_prog", so it can be a program name with args.
21288 set dummy $ac_prog; ac_word=$2
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21290 $as_echo_n "checking for $ac_word... " >&6; }
21291 if ${ac_cv_path_HG+:} false; then :
21292   $as_echo_n "(cached) " >&6
21293 else
21294   case $HG in
21295   [\\/]* | ?:[\\/]*)
21296   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21297   ;;
21298   *)
21299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21300 for as_dir in $PATH
21301 do
21302   IFS=$as_save_IFS
21303   test -z "$as_dir" && as_dir=.
21304     for ac_exec_ext in '' $ac_executable_extensions; do
21305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21306     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21308     break 2
21309   fi
21310 done
21311   done
21312 IFS=$as_save_IFS
21313 
21314   ;;
21315 esac
21316 fi
21317 HG=$ac_cv_path_HG
21318 if test -n "$HG"; then
21319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21320 $as_echo "$HG" >&6; }
21321 else
21322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21323 $as_echo "no" >&6; }
21324 fi
21325 
21326 
21327   test -n "$HG" && break
21328 done
21329 
21330   else
21331     # The variable is set, but is it from the command line or the environment?
21332 
21333     # Try to remove the string !HG! from our list.
21334     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
21335     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21336       # If it failed, the variable was not from the command line. Ignore it,
21337       # but warn the user (except for BASH, which is always set by the calling BASH).
21338       if test "xHG" != xBASH; then
21339         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
21340 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
21341       fi
21342       # Try to locate tool using the code snippet
21343       for ac_prog in hg
21344 do
21345   # Extract the first word of "$ac_prog", so it can be a program name with args.
21346 set dummy $ac_prog; ac_word=$2
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21348 $as_echo_n "checking for $ac_word... " >&6; }
21349 if ${ac_cv_path_HG+:} false; then :
21350   $as_echo_n "(cached) " >&6
21351 else
21352   case $HG in
21353   [\\/]* | ?:[\\/]*)
21354   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21355   ;;
21356   *)
21357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21358 for as_dir in $PATH
21359 do
21360   IFS=$as_save_IFS
21361   test -z "$as_dir" && as_dir=.
21362     for ac_exec_ext in '' $ac_executable_extensions; do
21363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21364     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21366     break 2
21367   fi
21368 done
21369   done
21370 IFS=$as_save_IFS
21371 
21372   ;;
21373 esac
21374 fi
21375 HG=$ac_cv_path_HG
21376 if test -n "$HG"; then
21377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21378 $as_echo "$HG" >&6; }
21379 else
21380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21381 $as_echo "no" >&6; }
21382 fi
21383 
21384 
21385   test -n "$HG" && break
21386 done
21387 
21388     else
21389       # If it succeeded, then it was overridden by the user. We will use it
21390       # for the tool.
21391 
21392       # First remove it from the list of overridden variables, so we can test
21393       # for unknown variables in the end.
21394       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21395 
21396       # Check if we try to supply an empty value
21397       if test "x$HG" = x; then
21398         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
21399 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
21400         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21401 $as_echo_n "checking for HG... " >&6; }
21402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21403 $as_echo "disabled" >&6; }
21404       else
21405         # Check if the provided tool contains a complete path.
21406         tool_specified="$HG"
21407         tool_basename="${tool_specified##*/}"
21408         if test "x$tool_basename" = "x$tool_specified"; then
21409           # A command without a complete path is provided, search $PATH.
21410           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
21411 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
21412           # Extract the first word of "$tool_basename", so it can be a program name with args.
21413 set dummy $tool_basename; ac_word=$2
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21415 $as_echo_n "checking for $ac_word... " >&6; }
21416 if ${ac_cv_path_HG+:} false; then :
21417   $as_echo_n "(cached) " >&6
21418 else
21419   case $HG in
21420   [\\/]* | ?:[\\/]*)
21421   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21422   ;;
21423   *)
21424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21425 for as_dir in $PATH
21426 do
21427   IFS=$as_save_IFS
21428   test -z "$as_dir" && as_dir=.
21429     for ac_exec_ext in '' $ac_executable_extensions; do
21430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21431     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21433     break 2
21434   fi
21435 done
21436   done
21437 IFS=$as_save_IFS
21438 
21439   ;;
21440 esac
21441 fi
21442 HG=$ac_cv_path_HG
21443 if test -n "$HG"; then
21444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21445 $as_echo "$HG" >&6; }
21446 else
21447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21448 $as_echo "no" >&6; }
21449 fi
21450 
21451 
21452           if test "x$HG" = x; then
21453             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21454           fi
21455         else
21456           # Otherwise we believe it is a complete path. Use it as it is.
21457           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
21458 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
21459           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21460 $as_echo_n "checking for HG... " >&6; }
21461           if test ! -x "$tool_specified"; then
21462             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21463 $as_echo "not found" >&6; }
21464             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
21465           fi
21466           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21467 $as_echo "$tool_specified" >&6; }
21468         fi
21469       fi
21470     fi
21471 
21472   fi
21473 
21474 
21475 
21476 
21477   # Publish this variable in the help.
21478 
21479 
21480   if [ -z "${STAT+x}" ]; then
21481     # The variable is not set by user, try to locate tool using the code snippet
21482     for ac_prog in stat
21483 do
21484   # Extract the first word of "$ac_prog", so it can be a program name with args.
21485 set dummy $ac_prog; ac_word=$2
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21487 $as_echo_n "checking for $ac_word... " >&6; }
21488 if ${ac_cv_path_STAT+:} false; then :
21489   $as_echo_n "(cached) " >&6
21490 else
21491   case $STAT in
21492   [\\/]* | ?:[\\/]*)
21493   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21494   ;;
21495   *)
21496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21497 for as_dir in $PATH
21498 do
21499   IFS=$as_save_IFS
21500   test -z "$as_dir" && as_dir=.
21501     for ac_exec_ext in '' $ac_executable_extensions; do
21502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21503     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21505     break 2
21506   fi
21507 done
21508   done
21509 IFS=$as_save_IFS
21510 
21511   ;;
21512 esac
21513 fi
21514 STAT=$ac_cv_path_STAT
21515 if test -n "$STAT"; then
21516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21517 $as_echo "$STAT" >&6; }
21518 else
21519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21520 $as_echo "no" >&6; }
21521 fi
21522 
21523 
21524   test -n "$STAT" && break
21525 done
21526 
21527   else
21528     # The variable is set, but is it from the command line or the environment?
21529 
21530     # Try to remove the string !STAT! from our list.
21531     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
21532     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21533       # If it failed, the variable was not from the command line. Ignore it,
21534       # but warn the user (except for BASH, which is always set by the calling BASH).
21535       if test "xSTAT" != xBASH; then
21536         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
21537 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
21538       fi
21539       # Try to locate tool using the code snippet
21540       for ac_prog in stat
21541 do
21542   # Extract the first word of "$ac_prog", so it can be a program name with args.
21543 set dummy $ac_prog; ac_word=$2
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21545 $as_echo_n "checking for $ac_word... " >&6; }
21546 if ${ac_cv_path_STAT+:} false; then :
21547   $as_echo_n "(cached) " >&6
21548 else
21549   case $STAT in
21550   [\\/]* | ?:[\\/]*)
21551   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21552   ;;
21553   *)
21554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21555 for as_dir in $PATH
21556 do
21557   IFS=$as_save_IFS
21558   test -z "$as_dir" && as_dir=.
21559     for ac_exec_ext in '' $ac_executable_extensions; do
21560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21561     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21563     break 2
21564   fi
21565 done
21566   done
21567 IFS=$as_save_IFS
21568 
21569   ;;
21570 esac
21571 fi
21572 STAT=$ac_cv_path_STAT
21573 if test -n "$STAT"; then
21574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21575 $as_echo "$STAT" >&6; }
21576 else
21577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21578 $as_echo "no" >&6; }
21579 fi
21580 
21581 
21582   test -n "$STAT" && break
21583 done
21584 
21585     else
21586       # If it succeeded, then it was overridden by the user. We will use it
21587       # for the tool.
21588 
21589       # First remove it from the list of overridden variables, so we can test
21590       # for unknown variables in the end.
21591       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21592 
21593       # Check if we try to supply an empty value
21594       if test "x$STAT" = x; then
21595         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
21596 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
21597         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21598 $as_echo_n "checking for STAT... " >&6; }
21599         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21600 $as_echo "disabled" >&6; }
21601       else
21602         # Check if the provided tool contains a complete path.
21603         tool_specified="$STAT"
21604         tool_basename="${tool_specified##*/}"
21605         if test "x$tool_basename" = "x$tool_specified"; then
21606           # A command without a complete path is provided, search $PATH.
21607           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
21608 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
21609           # Extract the first word of "$tool_basename", so it can be a program name with args.
21610 set dummy $tool_basename; ac_word=$2
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21612 $as_echo_n "checking for $ac_word... " >&6; }
21613 if ${ac_cv_path_STAT+:} false; then :
21614   $as_echo_n "(cached) " >&6
21615 else
21616   case $STAT in
21617   [\\/]* | ?:[\\/]*)
21618   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21619   ;;
21620   *)
21621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21622 for as_dir in $PATH
21623 do
21624   IFS=$as_save_IFS
21625   test -z "$as_dir" && as_dir=.
21626     for ac_exec_ext in '' $ac_executable_extensions; do
21627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21628     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21630     break 2
21631   fi
21632 done
21633   done
21634 IFS=$as_save_IFS
21635 
21636   ;;
21637 esac
21638 fi
21639 STAT=$ac_cv_path_STAT
21640 if test -n "$STAT"; then
21641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21642 $as_echo "$STAT" >&6; }
21643 else
21644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21645 $as_echo "no" >&6; }
21646 fi
21647 
21648 
21649           if test "x$STAT" = x; then
21650             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21651           fi
21652         else
21653           # Otherwise we believe it is a complete path. Use it as it is.
21654           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
21655 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
21656           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21657 $as_echo_n "checking for STAT... " >&6; }
21658           if test ! -x "$tool_specified"; then
21659             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21660 $as_echo "not found" >&6; }
21661             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
21662           fi
21663           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21664 $as_echo "$tool_specified" >&6; }
21665         fi
21666       fi
21667     fi
21668 
21669   fi
21670 
21671 
21672 
21673 
21674   # Publish this variable in the help.
21675 
21676 
21677   if [ -z "${TIME+x}" ]; then
21678     # The variable is not set by user, try to locate tool using the code snippet
21679     for ac_prog in time
21680 do
21681   # Extract the first word of "$ac_prog", so it can be a program name with args.
21682 set dummy $ac_prog; ac_word=$2
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21684 $as_echo_n "checking for $ac_word... " >&6; }
21685 if ${ac_cv_path_TIME+:} false; then :
21686   $as_echo_n "(cached) " >&6
21687 else
21688   case $TIME in
21689   [\\/]* | ?:[\\/]*)
21690   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21691   ;;
21692   *)
21693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21694 for as_dir in $PATH
21695 do
21696   IFS=$as_save_IFS
21697   test -z "$as_dir" && as_dir=.
21698     for ac_exec_ext in '' $ac_executable_extensions; do
21699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21700     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21702     break 2
21703   fi
21704 done
21705   done
21706 IFS=$as_save_IFS
21707 
21708   ;;
21709 esac
21710 fi
21711 TIME=$ac_cv_path_TIME
21712 if test -n "$TIME"; then
21713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21714 $as_echo "$TIME" >&6; }
21715 else
21716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21717 $as_echo "no" >&6; }
21718 fi
21719 
21720 
21721   test -n "$TIME" && break
21722 done
21723 
21724   else
21725     # The variable is set, but is it from the command line or the environment?
21726 
21727     # Try to remove the string !TIME! from our list.
21728     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
21729     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21730       # If it failed, the variable was not from the command line. Ignore it,
21731       # but warn the user (except for BASH, which is always set by the calling BASH).
21732       if test "xTIME" != xBASH; then
21733         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
21734 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
21735       fi
21736       # Try to locate tool using the code snippet
21737       for ac_prog in time
21738 do
21739   # Extract the first word of "$ac_prog", so it can be a program name with args.
21740 set dummy $ac_prog; ac_word=$2
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21742 $as_echo_n "checking for $ac_word... " >&6; }
21743 if ${ac_cv_path_TIME+:} false; then :
21744   $as_echo_n "(cached) " >&6
21745 else
21746   case $TIME in
21747   [\\/]* | ?:[\\/]*)
21748   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21749   ;;
21750   *)
21751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21752 for as_dir in $PATH
21753 do
21754   IFS=$as_save_IFS
21755   test -z "$as_dir" && as_dir=.
21756     for ac_exec_ext in '' $ac_executable_extensions; do
21757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21758     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21760     break 2
21761   fi
21762 done
21763   done
21764 IFS=$as_save_IFS
21765 
21766   ;;
21767 esac
21768 fi
21769 TIME=$ac_cv_path_TIME
21770 if test -n "$TIME"; then
21771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21772 $as_echo "$TIME" >&6; }
21773 else
21774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21775 $as_echo "no" >&6; }
21776 fi
21777 
21778 
21779   test -n "$TIME" && break
21780 done
21781 
21782     else
21783       # If it succeeded, then it was overridden by the user. We will use it
21784       # for the tool.
21785 
21786       # First remove it from the list of overridden variables, so we can test
21787       # for unknown variables in the end.
21788       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21789 
21790       # Check if we try to supply an empty value
21791       if test "x$TIME" = x; then
21792         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
21793 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
21794         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21795 $as_echo_n "checking for TIME... " >&6; }
21796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21797 $as_echo "disabled" >&6; }
21798       else
21799         # Check if the provided tool contains a complete path.
21800         tool_specified="$TIME"
21801         tool_basename="${tool_specified##*/}"
21802         if test "x$tool_basename" = "x$tool_specified"; then
21803           # A command without a complete path is provided, search $PATH.
21804           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
21805 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
21806           # Extract the first word of "$tool_basename", so it can be a program name with args.
21807 set dummy $tool_basename; ac_word=$2
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21809 $as_echo_n "checking for $ac_word... " >&6; }
21810 if ${ac_cv_path_TIME+:} false; then :
21811   $as_echo_n "(cached) " >&6
21812 else
21813   case $TIME in
21814   [\\/]* | ?:[\\/]*)
21815   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21816   ;;
21817   *)
21818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21819 for as_dir in $PATH
21820 do
21821   IFS=$as_save_IFS
21822   test -z "$as_dir" && as_dir=.
21823     for ac_exec_ext in '' $ac_executable_extensions; do
21824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21825     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21827     break 2
21828   fi
21829 done
21830   done
21831 IFS=$as_save_IFS
21832 
21833   ;;
21834 esac
21835 fi
21836 TIME=$ac_cv_path_TIME
21837 if test -n "$TIME"; then
21838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21839 $as_echo "$TIME" >&6; }
21840 else
21841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21842 $as_echo "no" >&6; }
21843 fi
21844 
21845 
21846           if test "x$TIME" = x; then
21847             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21848           fi
21849         else
21850           # Otherwise we believe it is a complete path. Use it as it is.
21851           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
21852 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
21853           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21854 $as_echo_n "checking for TIME... " >&6; }
21855           if test ! -x "$tool_specified"; then
21856             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21857 $as_echo "not found" >&6; }
21858             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
21859           fi
21860           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21861 $as_echo "$tool_specified" >&6; }
21862         fi
21863       fi
21864     fi
21865 
21866   fi
21867 
21868 
21869 
21870 
21871   # Publish this variable in the help.
21872 
21873 
21874   if [ -z "${PATCH+x}" ]; then
21875     # The variable is not set by user, try to locate tool using the code snippet
21876     for ac_prog in gpatch patch
21877 do
21878   # Extract the first word of "$ac_prog", so it can be a program name with args.
21879 set dummy $ac_prog; ac_word=$2
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21881 $as_echo_n "checking for $ac_word... " >&6; }
21882 if ${ac_cv_path_PATCH+:} false; then :
21883   $as_echo_n "(cached) " >&6
21884 else
21885   case $PATCH in
21886   [\\/]* | ?:[\\/]*)
21887   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21888   ;;
21889   *)
21890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21891 for as_dir in $PATH
21892 do
21893   IFS=$as_save_IFS
21894   test -z "$as_dir" && as_dir=.
21895     for ac_exec_ext in '' $ac_executable_extensions; do
21896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21897     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21899     break 2
21900   fi
21901 done
21902   done
21903 IFS=$as_save_IFS
21904 
21905   ;;
21906 esac
21907 fi
21908 PATCH=$ac_cv_path_PATCH
21909 if test -n "$PATCH"; then
21910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21911 $as_echo "$PATCH" >&6; }
21912 else
21913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21914 $as_echo "no" >&6; }
21915 fi
21916 
21917 
21918   test -n "$PATCH" && break
21919 done
21920 
21921   else
21922     # The variable is set, but is it from the command line or the environment?
21923 
21924     # Try to remove the string !PATCH! from our list.
21925     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
21926     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21927       # If it failed, the variable was not from the command line. Ignore it,
21928       # but warn the user (except for BASH, which is always set by the calling BASH).
21929       if test "xPATCH" != xBASH; then
21930         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
21931 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
21932       fi
21933       # Try to locate tool using the code snippet
21934       for ac_prog in gpatch patch
21935 do
21936   # Extract the first word of "$ac_prog", so it can be a program name with args.
21937 set dummy $ac_prog; ac_word=$2
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21939 $as_echo_n "checking for $ac_word... " >&6; }
21940 if ${ac_cv_path_PATCH+:} false; then :
21941   $as_echo_n "(cached) " >&6
21942 else
21943   case $PATCH in
21944   [\\/]* | ?:[\\/]*)
21945   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21946   ;;
21947   *)
21948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21949 for as_dir in $PATH
21950 do
21951   IFS=$as_save_IFS
21952   test -z "$as_dir" && as_dir=.
21953     for ac_exec_ext in '' $ac_executable_extensions; do
21954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21955     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21957     break 2
21958   fi
21959 done
21960   done
21961 IFS=$as_save_IFS
21962 
21963   ;;
21964 esac
21965 fi
21966 PATCH=$ac_cv_path_PATCH
21967 if test -n "$PATCH"; then
21968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21969 $as_echo "$PATCH" >&6; }
21970 else
21971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21972 $as_echo "no" >&6; }
21973 fi
21974 
21975 
21976   test -n "$PATCH" && break
21977 done
21978 
21979     else
21980       # If it succeeded, then it was overridden by the user. We will use it
21981       # for the tool.
21982 
21983       # First remove it from the list of overridden variables, so we can test
21984       # for unknown variables in the end.
21985       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21986 
21987       # Check if we try to supply an empty value
21988       if test "x$PATCH" = x; then
21989         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
21990 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
21991         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
21992 $as_echo_n "checking for PATCH... " >&6; }
21993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21994 $as_echo "disabled" >&6; }
21995       else
21996         # Check if the provided tool contains a complete path.
21997         tool_specified="$PATCH"
21998         tool_basename="${tool_specified##*/}"
21999         if test "x$tool_basename" = "x$tool_specified"; then
22000           # A command without a complete path is provided, search $PATH.
22001           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
22002 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
22003           # Extract the first word of "$tool_basename", so it can be a program name with args.
22004 set dummy $tool_basename; ac_word=$2
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22006 $as_echo_n "checking for $ac_word... " >&6; }
22007 if ${ac_cv_path_PATCH+:} false; then :
22008   $as_echo_n "(cached) " >&6
22009 else
22010   case $PATCH in
22011   [\\/]* | ?:[\\/]*)
22012   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22013   ;;
22014   *)
22015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22016 for as_dir in $PATH
22017 do
22018   IFS=$as_save_IFS
22019   test -z "$as_dir" && as_dir=.
22020     for ac_exec_ext in '' $ac_executable_extensions; do
22021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22022     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22024     break 2
22025   fi
22026 done
22027   done
22028 IFS=$as_save_IFS
22029 
22030   ;;
22031 esac
22032 fi
22033 PATCH=$ac_cv_path_PATCH
22034 if test -n "$PATCH"; then
22035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22036 $as_echo "$PATCH" >&6; }
22037 else
22038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22039 $as_echo "no" >&6; }
22040 fi
22041 
22042 
22043           if test "x$PATCH" = x; then
22044             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22045           fi
22046         else
22047           # Otherwise we believe it is a complete path. Use it as it is.
22048           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
22049 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
22050           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
22051 $as_echo_n "checking for PATCH... " >&6; }
22052           if test ! -x "$tool_specified"; then
22053             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22054 $as_echo "not found" >&6; }
22055             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
22056           fi
22057           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22058 $as_echo "$tool_specified" >&6; }
22059         fi
22060       fi
22061     fi
22062 
22063   fi
22064 
22065 
22066   # Check if it's GNU time
22067   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
22068   if test "x$IS_GNU_TIME" != x; then
22069     IS_GNU_TIME=yes
22070   else
22071     IS_GNU_TIME=no
22072   fi
22073 
22074 
22075   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
22076 
22077 
22078 
22079   # Publish this variable in the help.
22080 
22081 
22082   if [ -z "${DSYMUTIL+x}" ]; then
22083     # The variable is not set by user, try to locate tool using the code snippet
22084     for ac_prog in dsymutil
22085 do
22086   # Extract the first word of "$ac_prog", so it can be a program name with args.
22087 set dummy $ac_prog; ac_word=$2
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22089 $as_echo_n "checking for $ac_word... " >&6; }
22090 if ${ac_cv_path_DSYMUTIL+:} false; then :
22091   $as_echo_n "(cached) " >&6
22092 else
22093   case $DSYMUTIL in
22094   [\\/]* | ?:[\\/]*)
22095   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22096   ;;
22097   *)
22098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22099 for as_dir in $PATH
22100 do
22101   IFS=$as_save_IFS
22102   test -z "$as_dir" && as_dir=.
22103     for ac_exec_ext in '' $ac_executable_extensions; do
22104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22105     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22107     break 2
22108   fi
22109 done
22110   done
22111 IFS=$as_save_IFS
22112 
22113   ;;
22114 esac
22115 fi
22116 DSYMUTIL=$ac_cv_path_DSYMUTIL
22117 if test -n "$DSYMUTIL"; then
22118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22119 $as_echo "$DSYMUTIL" >&6; }
22120 else
22121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22122 $as_echo "no" >&6; }
22123 fi
22124 
22125 
22126   test -n "$DSYMUTIL" && break
22127 done
22128 
22129   else
22130     # The variable is set, but is it from the command line or the environment?
22131 
22132     # Try to remove the string !DSYMUTIL! from our list.
22133     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
22134     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22135       # If it failed, the variable was not from the command line. Ignore it,
22136       # but warn the user (except for BASH, which is always set by the calling BASH).
22137       if test "xDSYMUTIL" != xBASH; then
22138         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
22139 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
22140       fi
22141       # Try to locate tool using the code snippet
22142       for ac_prog in dsymutil
22143 do
22144   # Extract the first word of "$ac_prog", so it can be a program name with args.
22145 set dummy $ac_prog; ac_word=$2
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22147 $as_echo_n "checking for $ac_word... " >&6; }
22148 if ${ac_cv_path_DSYMUTIL+:} false; then :
22149   $as_echo_n "(cached) " >&6
22150 else
22151   case $DSYMUTIL in
22152   [\\/]* | ?:[\\/]*)
22153   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22154   ;;
22155   *)
22156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22157 for as_dir in $PATH
22158 do
22159   IFS=$as_save_IFS
22160   test -z "$as_dir" && as_dir=.
22161     for ac_exec_ext in '' $ac_executable_extensions; do
22162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22163     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22165     break 2
22166   fi
22167 done
22168   done
22169 IFS=$as_save_IFS
22170 
22171   ;;
22172 esac
22173 fi
22174 DSYMUTIL=$ac_cv_path_DSYMUTIL
22175 if test -n "$DSYMUTIL"; then
22176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22177 $as_echo "$DSYMUTIL" >&6; }
22178 else
22179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22180 $as_echo "no" >&6; }
22181 fi
22182 
22183 
22184   test -n "$DSYMUTIL" && break
22185 done
22186 
22187     else
22188       # If it succeeded, then it was overridden by the user. We will use it
22189       # for the tool.
22190 
22191       # First remove it from the list of overridden variables, so we can test
22192       # for unknown variables in the end.
22193       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22194 
22195       # Check if we try to supply an empty value
22196       if test "x$DSYMUTIL" = x; then
22197         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
22198 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
22199         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22200 $as_echo_n "checking for DSYMUTIL... " >&6; }
22201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22202 $as_echo "disabled" >&6; }
22203       else
22204         # Check if the provided tool contains a complete path.
22205         tool_specified="$DSYMUTIL"
22206         tool_basename="${tool_specified##*/}"
22207         if test "x$tool_basename" = "x$tool_specified"; then
22208           # A command without a complete path is provided, search $PATH.
22209           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
22210 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
22211           # Extract the first word of "$tool_basename", so it can be a program name with args.
22212 set dummy $tool_basename; ac_word=$2
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22214 $as_echo_n "checking for $ac_word... " >&6; }
22215 if ${ac_cv_path_DSYMUTIL+:} false; then :
22216   $as_echo_n "(cached) " >&6
22217 else
22218   case $DSYMUTIL in
22219   [\\/]* | ?:[\\/]*)
22220   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22221   ;;
22222   *)
22223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22224 for as_dir in $PATH
22225 do
22226   IFS=$as_save_IFS
22227   test -z "$as_dir" && as_dir=.
22228     for ac_exec_ext in '' $ac_executable_extensions; do
22229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22230     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22232     break 2
22233   fi
22234 done
22235   done
22236 IFS=$as_save_IFS
22237 
22238   ;;
22239 esac
22240 fi
22241 DSYMUTIL=$ac_cv_path_DSYMUTIL
22242 if test -n "$DSYMUTIL"; then
22243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22244 $as_echo "$DSYMUTIL" >&6; }
22245 else
22246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22247 $as_echo "no" >&6; }
22248 fi
22249 
22250 
22251           if test "x$DSYMUTIL" = x; then
22252             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22253           fi
22254         else
22255           # Otherwise we believe it is a complete path. Use it as it is.
22256           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
22257 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
22258           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22259 $as_echo_n "checking for DSYMUTIL... " >&6; }
22260           if test ! -x "$tool_specified"; then
22261             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22262 $as_echo "not found" >&6; }
22263             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
22264           fi
22265           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22266 $as_echo "$tool_specified" >&6; }
22267         fi
22268       fi
22269     fi
22270 
22271   fi
22272 
22273 
22274 
22275   if test "x$DSYMUTIL" = x; then
22276     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
22277   fi
22278 
22279 
22280 
22281 
22282 
22283   # Publish this variable in the help.
22284 
22285 
22286   if [ -z "${XATTR+x}" ]; then
22287     # The variable is not set by user, try to locate tool using the code snippet
22288     for ac_prog in xattr
22289 do
22290   # Extract the first word of "$ac_prog", so it can be a program name with args.
22291 set dummy $ac_prog; ac_word=$2
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22293 $as_echo_n "checking for $ac_word... " >&6; }
22294 if ${ac_cv_path_XATTR+:} false; then :
22295   $as_echo_n "(cached) " >&6
22296 else
22297   case $XATTR in
22298   [\\/]* | ?:[\\/]*)
22299   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22300   ;;
22301   *)
22302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22303 for as_dir in $PATH
22304 do
22305   IFS=$as_save_IFS
22306   test -z "$as_dir" && as_dir=.
22307     for ac_exec_ext in '' $ac_executable_extensions; do
22308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22309     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22311     break 2
22312   fi
22313 done
22314   done
22315 IFS=$as_save_IFS
22316 
22317   ;;
22318 esac
22319 fi
22320 XATTR=$ac_cv_path_XATTR
22321 if test -n "$XATTR"; then
22322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22323 $as_echo "$XATTR" >&6; }
22324 else
22325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22326 $as_echo "no" >&6; }
22327 fi
22328 
22329 
22330   test -n "$XATTR" && break
22331 done
22332 
22333   else
22334     # The variable is set, but is it from the command line or the environment?
22335 
22336     # Try to remove the string !XATTR! from our list.
22337     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
22338     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22339       # If it failed, the variable was not from the command line. Ignore it,
22340       # but warn the user (except for BASH, which is always set by the calling BASH).
22341       if test "xXATTR" != xBASH; then
22342         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
22343 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
22344       fi
22345       # Try to locate tool using the code snippet
22346       for ac_prog in xattr
22347 do
22348   # Extract the first word of "$ac_prog", so it can be a program name with args.
22349 set dummy $ac_prog; ac_word=$2
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22351 $as_echo_n "checking for $ac_word... " >&6; }
22352 if ${ac_cv_path_XATTR+:} false; then :
22353   $as_echo_n "(cached) " >&6
22354 else
22355   case $XATTR in
22356   [\\/]* | ?:[\\/]*)
22357   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22358   ;;
22359   *)
22360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22361 for as_dir in $PATH
22362 do
22363   IFS=$as_save_IFS
22364   test -z "$as_dir" && as_dir=.
22365     for ac_exec_ext in '' $ac_executable_extensions; do
22366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22367     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22369     break 2
22370   fi
22371 done
22372   done
22373 IFS=$as_save_IFS
22374 
22375   ;;
22376 esac
22377 fi
22378 XATTR=$ac_cv_path_XATTR
22379 if test -n "$XATTR"; then
22380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22381 $as_echo "$XATTR" >&6; }
22382 else
22383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22384 $as_echo "no" >&6; }
22385 fi
22386 
22387 
22388   test -n "$XATTR" && break
22389 done
22390 
22391     else
22392       # If it succeeded, then it was overridden by the user. We will use it
22393       # for the tool.
22394 
22395       # First remove it from the list of overridden variables, so we can test
22396       # for unknown variables in the end.
22397       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22398 
22399       # Check if we try to supply an empty value
22400       if test "x$XATTR" = x; then
22401         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
22402 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
22403         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22404 $as_echo_n "checking for XATTR... " >&6; }
22405         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22406 $as_echo "disabled" >&6; }
22407       else
22408         # Check if the provided tool contains a complete path.
22409         tool_specified="$XATTR"
22410         tool_basename="${tool_specified##*/}"
22411         if test "x$tool_basename" = "x$tool_specified"; then
22412           # A command without a complete path is provided, search $PATH.
22413           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
22414 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
22415           # Extract the first word of "$tool_basename", so it can be a program name with args.
22416 set dummy $tool_basename; ac_word=$2
22417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22418 $as_echo_n "checking for $ac_word... " >&6; }
22419 if ${ac_cv_path_XATTR+:} false; then :
22420   $as_echo_n "(cached) " >&6
22421 else
22422   case $XATTR in
22423   [\\/]* | ?:[\\/]*)
22424   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22425   ;;
22426   *)
22427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22428 for as_dir in $PATH
22429 do
22430   IFS=$as_save_IFS
22431   test -z "$as_dir" && as_dir=.
22432     for ac_exec_ext in '' $ac_executable_extensions; do
22433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22434     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22436     break 2
22437   fi
22438 done
22439   done
22440 IFS=$as_save_IFS
22441 
22442   ;;
22443 esac
22444 fi
22445 XATTR=$ac_cv_path_XATTR
22446 if test -n "$XATTR"; then
22447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22448 $as_echo "$XATTR" >&6; }
22449 else
22450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22451 $as_echo "no" >&6; }
22452 fi
22453 
22454 
22455           if test "x$XATTR" = x; then
22456             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22457           fi
22458         else
22459           # Otherwise we believe it is a complete path. Use it as it is.
22460           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
22461 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
22462           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22463 $as_echo_n "checking for XATTR... " >&6; }
22464           if test ! -x "$tool_specified"; then
22465             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22466 $as_echo "not found" >&6; }
22467             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
22468           fi
22469           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22470 $as_echo "$tool_specified" >&6; }
22471         fi
22472       fi
22473     fi
22474 
22475   fi
22476 
22477 
22478 
22479   if test "x$XATTR" = x; then
22480     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
22481   fi
22482 
22483 
22484 
22485 
22486   # Publish this variable in the help.
22487 
22488 
22489   if [ -z "${CODESIGN+x}" ]; then
22490     # The variable is not set by user, try to locate tool using the code snippet
22491     for ac_prog in codesign
22492 do
22493   # Extract the first word of "$ac_prog", so it can be a program name with args.
22494 set dummy $ac_prog; ac_word=$2
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22496 $as_echo_n "checking for $ac_word... " >&6; }
22497 if ${ac_cv_path_CODESIGN+:} false; then :
22498   $as_echo_n "(cached) " >&6
22499 else
22500   case $CODESIGN in
22501   [\\/]* | ?:[\\/]*)
22502   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22503   ;;
22504   *)
22505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22506 for as_dir in $PATH
22507 do
22508   IFS=$as_save_IFS
22509   test -z "$as_dir" && as_dir=.
22510     for ac_exec_ext in '' $ac_executable_extensions; do
22511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22512     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22514     break 2
22515   fi
22516 done
22517   done
22518 IFS=$as_save_IFS
22519 
22520   ;;
22521 esac
22522 fi
22523 CODESIGN=$ac_cv_path_CODESIGN
22524 if test -n "$CODESIGN"; then
22525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22526 $as_echo "$CODESIGN" >&6; }
22527 else
22528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22529 $as_echo "no" >&6; }
22530 fi
22531 
22532 
22533   test -n "$CODESIGN" && break
22534 done
22535 
22536   else
22537     # The variable is set, but is it from the command line or the environment?
22538 
22539     # Try to remove the string !CODESIGN! from our list.
22540     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
22541     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22542       # If it failed, the variable was not from the command line. Ignore it,
22543       # but warn the user (except for BASH, which is always set by the calling BASH).
22544       if test "xCODESIGN" != xBASH; then
22545         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
22546 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
22547       fi
22548       # Try to locate tool using the code snippet
22549       for ac_prog in codesign
22550 do
22551   # Extract the first word of "$ac_prog", so it can be a program name with args.
22552 set dummy $ac_prog; ac_word=$2
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22554 $as_echo_n "checking for $ac_word... " >&6; }
22555 if ${ac_cv_path_CODESIGN+:} false; then :
22556   $as_echo_n "(cached) " >&6
22557 else
22558   case $CODESIGN in
22559   [\\/]* | ?:[\\/]*)
22560   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22561   ;;
22562   *)
22563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22564 for as_dir in $PATH
22565 do
22566   IFS=$as_save_IFS
22567   test -z "$as_dir" && as_dir=.
22568     for ac_exec_ext in '' $ac_executable_extensions; do
22569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22570     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22572     break 2
22573   fi
22574 done
22575   done
22576 IFS=$as_save_IFS
22577 
22578   ;;
22579 esac
22580 fi
22581 CODESIGN=$ac_cv_path_CODESIGN
22582 if test -n "$CODESIGN"; then
22583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22584 $as_echo "$CODESIGN" >&6; }
22585 else
22586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22587 $as_echo "no" >&6; }
22588 fi
22589 
22590 
22591   test -n "$CODESIGN" && break
22592 done
22593 
22594     else
22595       # If it succeeded, then it was overridden by the user. We will use it
22596       # for the tool.
22597 
22598       # First remove it from the list of overridden variables, so we can test
22599       # for unknown variables in the end.
22600       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22601 
22602       # Check if we try to supply an empty value
22603       if test "x$CODESIGN" = x; then
22604         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
22605 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
22606         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22607 $as_echo_n "checking for CODESIGN... " >&6; }
22608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22609 $as_echo "disabled" >&6; }
22610       else
22611         # Check if the provided tool contains a complete path.
22612         tool_specified="$CODESIGN"
22613         tool_basename="${tool_specified##*/}"
22614         if test "x$tool_basename" = "x$tool_specified"; then
22615           # A command without a complete path is provided, search $PATH.
22616           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
22617 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
22618           # Extract the first word of "$tool_basename", so it can be a program name with args.
22619 set dummy $tool_basename; ac_word=$2
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22621 $as_echo_n "checking for $ac_word... " >&6; }
22622 if ${ac_cv_path_CODESIGN+:} false; then :
22623   $as_echo_n "(cached) " >&6
22624 else
22625   case $CODESIGN in
22626   [\\/]* | ?:[\\/]*)
22627   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22628   ;;
22629   *)
22630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22631 for as_dir in $PATH
22632 do
22633   IFS=$as_save_IFS
22634   test -z "$as_dir" && as_dir=.
22635     for ac_exec_ext in '' $ac_executable_extensions; do
22636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22637     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22639     break 2
22640   fi
22641 done
22642   done
22643 IFS=$as_save_IFS
22644 
22645   ;;
22646 esac
22647 fi
22648 CODESIGN=$ac_cv_path_CODESIGN
22649 if test -n "$CODESIGN"; then
22650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22651 $as_echo "$CODESIGN" >&6; }
22652 else
22653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22654 $as_echo "no" >&6; }
22655 fi
22656 
22657 
22658           if test "x$CODESIGN" = x; then
22659             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22660           fi
22661         else
22662           # Otherwise we believe it is a complete path. Use it as it is.
22663           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
22664 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
22665           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22666 $as_echo_n "checking for CODESIGN... " >&6; }
22667           if test ! -x "$tool_specified"; then
22668             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22669 $as_echo "not found" >&6; }
22670             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
22671           fi
22672           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22673 $as_echo "$tool_specified" >&6; }
22674         fi
22675       fi
22676     fi
22677 
22678   fi
22679 
22680 
22681     if test "x$CODESIGN" != "x"; then
22682       # Verify that the openjdk_codesign certificate is present
22683       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
22684 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
22685       rm -f codesign-testfile
22686       touch codesign-testfile
22687       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
22688       rm -f codesign-testfile
22689       if test "x$CODESIGN" = x; then
22690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22691 $as_echo "no" >&6; }
22692       else
22693         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22694 $as_echo "yes" >&6; }
22695       fi
22696     fi
22697 
22698 
22699 
22700   # Publish this variable in the help.
22701 
22702 
22703   if [ -z "${SETFILE+x}" ]; then
22704     # The variable is not set by user, try to locate tool using the code snippet
22705     for ac_prog in SetFile
22706 do
22707   # Extract the first word of "$ac_prog", so it can be a program name with args.
22708 set dummy $ac_prog; ac_word=$2
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22710 $as_echo_n "checking for $ac_word... " >&6; }
22711 if ${ac_cv_path_SETFILE+:} false; then :
22712   $as_echo_n "(cached) " >&6
22713 else
22714   case $SETFILE in
22715   [\\/]* | ?:[\\/]*)
22716   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22717   ;;
22718   *)
22719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22720 for as_dir in $PATH
22721 do
22722   IFS=$as_save_IFS
22723   test -z "$as_dir" && as_dir=.
22724     for ac_exec_ext in '' $ac_executable_extensions; do
22725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22726     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22728     break 2
22729   fi
22730 done
22731   done
22732 IFS=$as_save_IFS
22733 
22734   ;;
22735 esac
22736 fi
22737 SETFILE=$ac_cv_path_SETFILE
22738 if test -n "$SETFILE"; then
22739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22740 $as_echo "$SETFILE" >&6; }
22741 else
22742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22743 $as_echo "no" >&6; }
22744 fi
22745 
22746 
22747   test -n "$SETFILE" && break
22748 done
22749 
22750   else
22751     # The variable is set, but is it from the command line or the environment?
22752 
22753     # Try to remove the string !SETFILE! from our list.
22754     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
22755     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22756       # If it failed, the variable was not from the command line. Ignore it,
22757       # but warn the user (except for BASH, which is always set by the calling BASH).
22758       if test "xSETFILE" != xBASH; then
22759         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
22760 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
22761       fi
22762       # Try to locate tool using the code snippet
22763       for ac_prog in SetFile
22764 do
22765   # Extract the first word of "$ac_prog", so it can be a program name with args.
22766 set dummy $ac_prog; ac_word=$2
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22768 $as_echo_n "checking for $ac_word... " >&6; }
22769 if ${ac_cv_path_SETFILE+:} false; then :
22770   $as_echo_n "(cached) " >&6
22771 else
22772   case $SETFILE in
22773   [\\/]* | ?:[\\/]*)
22774   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22775   ;;
22776   *)
22777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22778 for as_dir in $PATH
22779 do
22780   IFS=$as_save_IFS
22781   test -z "$as_dir" && as_dir=.
22782     for ac_exec_ext in '' $ac_executable_extensions; do
22783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22784     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22786     break 2
22787   fi
22788 done
22789   done
22790 IFS=$as_save_IFS
22791 
22792   ;;
22793 esac
22794 fi
22795 SETFILE=$ac_cv_path_SETFILE
22796 if test -n "$SETFILE"; then
22797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22798 $as_echo "$SETFILE" >&6; }
22799 else
22800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22801 $as_echo "no" >&6; }
22802 fi
22803 
22804 
22805   test -n "$SETFILE" && break
22806 done
22807 
22808     else
22809       # If it succeeded, then it was overridden by the user. We will use it
22810       # for the tool.
22811 
22812       # First remove it from the list of overridden variables, so we can test
22813       # for unknown variables in the end.
22814       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22815 
22816       # Check if we try to supply an empty value
22817       if test "x$SETFILE" = x; then
22818         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
22819 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
22820         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22821 $as_echo_n "checking for SETFILE... " >&6; }
22822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22823 $as_echo "disabled" >&6; }
22824       else
22825         # Check if the provided tool contains a complete path.
22826         tool_specified="$SETFILE"
22827         tool_basename="${tool_specified##*/}"
22828         if test "x$tool_basename" = "x$tool_specified"; then
22829           # A command without a complete path is provided, search $PATH.
22830           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
22831 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
22832           # Extract the first word of "$tool_basename", so it can be a program name with args.
22833 set dummy $tool_basename; ac_word=$2
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22835 $as_echo_n "checking for $ac_word... " >&6; }
22836 if ${ac_cv_path_SETFILE+:} false; then :
22837   $as_echo_n "(cached) " >&6
22838 else
22839   case $SETFILE in
22840   [\\/]* | ?:[\\/]*)
22841   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22842   ;;
22843   *)
22844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22845 for as_dir in $PATH
22846 do
22847   IFS=$as_save_IFS
22848   test -z "$as_dir" && as_dir=.
22849     for ac_exec_ext in '' $ac_executable_extensions; do
22850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22851     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22853     break 2
22854   fi
22855 done
22856   done
22857 IFS=$as_save_IFS
22858 
22859   ;;
22860 esac
22861 fi
22862 SETFILE=$ac_cv_path_SETFILE
22863 if test -n "$SETFILE"; then
22864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22865 $as_echo "$SETFILE" >&6; }
22866 else
22867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22868 $as_echo "no" >&6; }
22869 fi
22870 
22871 
22872           if test "x$SETFILE" = x; then
22873             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22874           fi
22875         else
22876           # Otherwise we believe it is a complete path. Use it as it is.
22877           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
22878 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
22879           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22880 $as_echo_n "checking for SETFILE... " >&6; }
22881           if test ! -x "$tool_specified"; then
22882             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22883 $as_echo "not found" >&6; }
22884             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
22885           fi
22886           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22887 $as_echo "$tool_specified" >&6; }
22888         fi
22889       fi
22890     fi
22891 
22892   fi
22893 
22894 
22895 
22896   if test "x$SETFILE" = x; then
22897     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
22898   fi
22899 
22900 
22901   fi
22902 
22903 
22904   # Test if bash supports pipefail.
22905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
22906 $as_echo_n "checking if bash supports pipefail... " >&6; }
22907   if ${BASH} -c 'set -o pipefail'; then
22908     BASH_ARGS="$BASH_ARGS -o pipefail"
22909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22910 $as_echo "yes" >&6; }
22911   else
22912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22913 $as_echo "no" >&6; }
22914   fi
22915 
22916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
22917 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
22918   if ${BASH} -e -c 'true'; then
22919     BASH_ARGS="$BASH_ARGS -e"
22920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22921 $as_echo "yes" >&6; }
22922   else
22923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22924 $as_echo "no" >&6; }
22925   fi
22926 
22927 
22928 
22929 
22930 # Check if pkg-config is available.
22931 
22932 
22933 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22934         if test -n "$ac_tool_prefix"; then
22935   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22936 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22938 $as_echo_n "checking for $ac_word... " >&6; }
22939 if ${ac_cv_path_PKG_CONFIG+:} false; then :
22940   $as_echo_n "(cached) " >&6
22941 else
22942   case $PKG_CONFIG in
22943   [\\/]* | ?:[\\/]*)
22944   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22945   ;;
22946   *)
22947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22948 for as_dir in $PATH
22949 do
22950   IFS=$as_save_IFS
22951   test -z "$as_dir" && as_dir=.
22952     for ac_exec_ext in '' $ac_executable_extensions; do
22953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22954     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22956     break 2
22957   fi
22958 done
22959   done
22960 IFS=$as_save_IFS
22961 
22962   ;;
22963 esac
22964 fi
22965 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22966 if test -n "$PKG_CONFIG"; then
22967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22968 $as_echo "$PKG_CONFIG" >&6; }
22969 else
22970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22971 $as_echo "no" >&6; }
22972 fi
22973 
22974 
22975 fi
22976 if test -z "$ac_cv_path_PKG_CONFIG"; then
22977   ac_pt_PKG_CONFIG=$PKG_CONFIG
22978   # Extract the first word of "pkg-config", so it can be a program name with args.
22979 set dummy pkg-config; ac_word=$2
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22981 $as_echo_n "checking for $ac_word... " >&6; }
22982 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
22983   $as_echo_n "(cached) " >&6
22984 else
22985   case $ac_pt_PKG_CONFIG in
22986   [\\/]* | ?:[\\/]*)
22987   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22988   ;;
22989   *)
22990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22991 for as_dir in $PATH
22992 do
22993   IFS=$as_save_IFS
22994   test -z "$as_dir" && as_dir=.
22995     for ac_exec_ext in '' $ac_executable_extensions; do
22996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22997     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22999     break 2
23000   fi
23001 done
23002   done
23003 IFS=$as_save_IFS
23004 
23005   ;;
23006 esac
23007 fi
23008 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23009 if test -n "$ac_pt_PKG_CONFIG"; then
23010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23011 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23012 else
23013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23014 $as_echo "no" >&6; }
23015 fi
23016 
23017   if test "x$ac_pt_PKG_CONFIG" = x; then
23018     PKG_CONFIG=""
23019   else
23020     case $cross_compiling:$ac_tool_warned in
23021 yes:)
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23024 ac_tool_warned=yes ;;
23025 esac
23026     PKG_CONFIG=$ac_pt_PKG_CONFIG
23027   fi
23028 else
23029   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23030 fi
23031 
23032 fi
23033 if test -n "$PKG_CONFIG"; then
23034         _pkg_min_version=0.9.0
23035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
23036 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23037         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23038                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23039 $as_echo "yes" >&6; }
23040         else
23041                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23042 $as_echo "no" >&6; }
23043                 PKG_CONFIG=""
23044         fi
23045 
23046 fi
23047 
23048 # After basic tools have been setup, we can check build os specific details.
23049 
23050   ###############################################################################
23051 
23052   # Note that this is the build platform OS version!
23053 
23054   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
23055   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
23056   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
23057   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
23058 
23059 
23060 
23061 
23062 
23063 ###############################################################################
23064 #
23065 # Determine OpenJDK variants, options and version numbers.
23066 #
23067 ###############################################################################
23068 
23069 # We need build & target for this.
23070 
23071 
23072   ###############################################################################
23073   #
23074   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
23075   # We always build headless support.
23076   #
23077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
23078 $as_echo_n "checking headful support... " >&6; }
23079   # Check whether --enable-headful was given.
23080 if test "${enable_headful+set}" = set; then :
23081   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
23082 else
23083   SUPPORT_HEADFUL=yes
23084 fi
23085 
23086 
23087   SUPPORT_HEADLESS=yes
23088   BUILD_HEADLESS="BUILD_HEADLESS:=true"
23089 
23090   if test "x$SUPPORT_HEADFUL" = xyes; then
23091     # We are building both headful and headless.
23092     headful_msg="include support for both headful and headless"
23093   fi
23094 
23095   if test "x$SUPPORT_HEADFUL" = xno; then
23096     # Thus we are building headless only.
23097     BUILD_HEADLESS="BUILD_HEADLESS:=true"
23098     headful_msg="headless only"
23099   fi
23100 
23101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
23102 $as_echo "$headful_msg" >&6; }
23103 
23104 
23105 
23106 
23107 
23108   # Control wether Hotspot runs Queens test after build.
23109   # Check whether --enable-hotspot-test-in-build was given.
23110 if test "${enable_hotspot_test_in_build+set}" = set; then :
23111   enableval=$enable_hotspot_test_in_build;
23112 else
23113   enable_hotspot_test_in_build=no
23114 fi
23115 
23116   if test "x$enable_hotspot_test_in_build" = "xyes"; then
23117     TEST_IN_BUILD=true
23118   else
23119     TEST_IN_BUILD=false
23120   fi
23121 
23122 
23123   ###############################################################################
23124   #
23125   # Choose cacerts source file
23126   #
23127 
23128 # Check whether --with-cacerts-file was given.
23129 if test "${with_cacerts_file+set}" = set; then :
23130   withval=$with_cacerts_file;
23131 fi
23132 
23133   if test "x$with_cacerts_file" != x; then
23134     CACERTS_FILE=$with_cacerts_file
23135   fi
23136 
23137 
23138   ###############################################################################
23139   #
23140   # Enable or disable unlimited crypto
23141   #
23142   # Check whether --enable-unlimited-crypto was given.
23143 if test "${enable_unlimited_crypto+set}" = set; then :
23144   enableval=$enable_unlimited_crypto;
23145 else
23146   enable_unlimited_crypto=no
23147 fi
23148 
23149   if test "x$enable_unlimited_crypto" = "xyes"; then
23150     UNLIMITED_CRYPTO=true
23151   else
23152     UNLIMITED_CRYPTO=false
23153   fi
23154 
23155 
23156   ###############################################################################
23157   #
23158   # Compress jars
23159   #
23160   COMPRESS_JARS=false
23161 
23162 
23163 
23164   # Setup default copyright year. Mostly overridden when building close to a new year.
23165 
23166 # Check whether --with-copyright-year was given.
23167 if test "${with_copyright_year+set}" = set; then :
23168   withval=$with_copyright_year;
23169 fi
23170 
23171   if test "x$with_copyright_year" = xyes; then
23172     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
23173   elif test "x$with_copyright_year" != x; then
23174     COPYRIGHT_YEAR="$with_copyright_year"
23175   else
23176     COPYRIGHT_YEAR=`date +'%Y'`
23177   fi
23178 
23179 
23180 
23181   # Warn user that old version arguments are deprecated.
23182 
23183 
23184 # Check whether --with-milestone was given.
23185 if test "${with_milestone+set}" = set; then :
23186   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
23187 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
23188 fi
23189 
23190 
23191 
23192 
23193 # Check whether --with-update-version was given.
23194 if test "${with_update_version+set}" = set; then :
23195   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
23196 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
23197 fi
23198 
23199 
23200 
23201 
23202 # Check whether --with-user-release-suffix was given.
23203 if test "${with_user_release_suffix+set}" = set; then :
23204   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
23205 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
23206 fi
23207 
23208 
23209 
23210 
23211 # Check whether --with-build-number was given.
23212 if test "${with_build_number+set}" = set; then :
23213   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
23214 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
23215 fi
23216 
23217 
23218 
23219   # Source the version numbers file
23220   . $AUTOCONF_DIR/version-numbers
23221 
23222   # Some non-version number information is set in that file
23223 
23224 
23225 
23226 
23227 
23228 
23229 
23230 
23231   # Override version from arguments
23232 
23233   # If --with-version-string is set, process it first. It is possible to
23234   # override parts with more specific flags, since these are processed later.
23235 
23236 # Check whether --with-version-string was given.
23237 if test "${with_version_string+set}" = set; then :
23238   withval=$with_version_string;
23239 fi
23240 
23241   if test "x$with_version_string" = xyes; then
23242     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
23243   elif test "x$with_version_string" != x; then
23244     # Additional [] needed to keep m4 from mangling shell constructs.
23245     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
23246       VERSION_MAJOR=${BASH_REMATCH[1]}
23247       VERSION_MINOR=${BASH_REMATCH[3]}
23248       VERSION_SECURITY=${BASH_REMATCH[5]}
23249       VERSION_PATCH=${BASH_REMATCH[7]}
23250       VERSION_PRE=${BASH_REMATCH[9]}
23251       version_plus_separator=${BASH_REMATCH[11]}
23252       VERSION_BUILD=${BASH_REMATCH[12]}
23253       VERSION_OPT=${BASH_REMATCH[14]}
23254       # Unspecified numerical fields are interpreted as 0.
23255       if test "x$VERSION_MINOR" = x; then
23256         VERSION_MINOR=0
23257       fi
23258       if test "x$VERSION_SECURITY" = x; then
23259         VERSION_SECURITY=0
23260       fi
23261       if test "x$VERSION_PATCH" = x; then
23262         VERSION_PATCH=0
23263       fi
23264       if test "x$version_plus_separator" != x \
23265           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
23266         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
23267       fi
23268       # Stop the version part process from setting default values.
23269       # We still allow them to explicitely override though.
23270       NO_DEFAULT_VERSION_PARTS=true
23271     else
23272       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
23273     fi
23274   fi
23275 
23276 
23277 # Check whether --with-version-pre was given.
23278 if test "${with_version_pre+set}" = set; then :
23279   withval=$with_version_pre; with_version_pre_present=true
23280 else
23281   with_version_pre_present=false
23282 fi
23283 
23284 
23285   if test "x$with_version_pre_present" = xtrue; then
23286     if test "x$with_version_pre" = xyes; then
23287       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
23288     elif test "x$with_version_pre" = xno; then
23289       # Interpret --without-* as empty string instead of the literal "no"
23290       VERSION_PRE=
23291     else
23292       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
23293        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
23294       if test "x$VERSION_PRE" != "x$with_version_pre"; then
23295         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
23296 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
23297       fi
23298     fi
23299   else
23300     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23301       # Default is to use "internal" as pre
23302       VERSION_PRE="internal"
23303     fi
23304   fi
23305 
23306 
23307 # Check whether --with-version-opt was given.
23308 if test "${with_version_opt+set}" = set; then :
23309   withval=$with_version_opt; with_version_opt_present=true
23310 else
23311   with_version_opt_present=false
23312 fi
23313 
23314 
23315   if test "x$with_version_opt_present" = xtrue; then
23316     if test "x$with_version_opt" = xyes; then
23317       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
23318     elif test "x$with_version_opt" = xno; then
23319       # Interpret --without-* as empty string instead of the literal "no"
23320       VERSION_OPT=
23321     else
23322       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
23323        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
23324       if test "x$VERSION_OPT" != "x$with_version_opt"; then
23325         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
23326 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
23327       fi
23328     fi
23329   else
23330     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23331       # Default is to calculate a string like this <timestamp>.<username>.<base dir name>
23332       timestamp=`$DATE '+%Y-%m-%d-%H%M%S'`
23333       # Outer [ ] to quote m4.
23334        username=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
23335        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
23336       VERSION_OPT="$timestamp.$username.$basedirname"
23337     fi
23338   fi
23339 
23340 
23341 # Check whether --with-version-build was given.
23342 if test "${with_version_build+set}" = set; then :
23343   withval=$with_version_build; with_version_build_present=true
23344 else
23345   with_version_build_present=false
23346 fi
23347 
23348 
23349   if test "x$with_version_build_present" = xtrue; then
23350     if test "x$with_version_build" = xyes; then
23351       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
23352     elif test "x$with_version_build" = xno; then
23353       # Interpret --without-* as empty string instead of the literal "no"
23354       VERSION_BUILD=
23355     elif test "x$with_version_build" = x; then
23356       VERSION_BUILD=
23357     else
23358 
23359   # Additional [] needed to keep m4 from mangling shell constructs.
23360   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23361     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
23362   fi
23363   # Extract the version number without leading zeros.
23364   cleaned_value=${BASH_REMATCH[1]}
23365   if test "x$cleaned_value" = x; then
23366     # Special case for zero
23367     cleaned_value=${BASH_REMATCH[2]}
23368   fi
23369 
23370   if test $cleaned_value -gt 255; then
23371     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
23372   fi
23373   if test "x$cleaned_value" != "x$with_version_build"; then
23374     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
23375 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
23376   fi
23377   VERSION_BUILD=$cleaned_value
23378 
23379     fi
23380   else
23381     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23382       # Default is to not have a build number.
23383       VERSION_BUILD=""
23384       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
23385       VERSION_BUILD=0
23386     fi
23387   fi
23388 
23389 
23390 # Check whether --with-version-major was given.
23391 if test "${with_version_major+set}" = set; then :
23392   withval=$with_version_major; with_version_major_present=true
23393 else
23394   with_version_major_present=false
23395 fi
23396 
23397 
23398   if test "x$with_version_major_present" = xtrue; then
23399     if test "x$with_version_major" = xyes; then
23400       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
23401     else
23402 
23403   # Additional [] needed to keep m4 from mangling shell constructs.
23404   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23405     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
23406   fi
23407   # Extract the version number without leading zeros.
23408   cleaned_value=${BASH_REMATCH[1]}
23409   if test "x$cleaned_value" = x; then
23410     # Special case for zero
23411     cleaned_value=${BASH_REMATCH[2]}
23412   fi
23413 
23414   if test $cleaned_value -gt 255; then
23415     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
23416   fi
23417   if test "x$cleaned_value" != "x$with_version_major"; then
23418     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
23419 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
23420   fi
23421   VERSION_MAJOR=$cleaned_value
23422 
23423     fi
23424   else
23425     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23426       # Default is to get value from version-numbers
23427       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
23428     fi
23429   fi
23430 
23431 
23432 # Check whether --with-version-minor was given.
23433 if test "${with_version_minor+set}" = set; then :
23434   withval=$with_version_minor; with_version_minor_present=true
23435 else
23436   with_version_minor_present=false
23437 fi
23438 
23439 
23440   if test "x$with_version_minor_present" = xtrue; then
23441     if test "x$with_version_minor" = xyes; then
23442       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
23443     elif test "x$with_version_minor" = xno; then
23444       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
23445       VERSION_MINOR=0
23446     elif test "x$with_version_minor" = x; then
23447       VERSION_MINOR=0
23448     else
23449 
23450   # Additional [] needed to keep m4 from mangling shell constructs.
23451   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23452     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
23453   fi
23454   # Extract the version number without leading zeros.
23455   cleaned_value=${BASH_REMATCH[1]}
23456   if test "x$cleaned_value" = x; then
23457     # Special case for zero
23458     cleaned_value=${BASH_REMATCH[2]}
23459   fi
23460 
23461   if test $cleaned_value -gt 255; then
23462     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
23463   fi
23464   if test "x$cleaned_value" != "x$with_version_minor"; then
23465     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
23466 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
23467   fi
23468   VERSION_MINOR=$cleaned_value
23469 
23470     fi
23471   else
23472     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23473       # Default is 0, if unspecified
23474       VERSION_MINOR=0
23475     fi
23476   fi
23477 
23478 
23479 # Check whether --with-version-security was given.
23480 if test "${with_version_security+set}" = set; then :
23481   withval=$with_version_security; with_version_security_present=true
23482 else
23483   with_version_security_present=false
23484 fi
23485 
23486 
23487   if test "x$with_version_security_present" = xtrue; then
23488     if test "x$with_version_security" = xyes; then
23489       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
23490     elif test "x$with_version_security" = xno; then
23491       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
23492       VERSION_SECURITY=0
23493     elif test "x$with_version_security" = x; then
23494       VERSION_SECURITY=0
23495     else
23496 
23497   # Additional [] needed to keep m4 from mangling shell constructs.
23498   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23499     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
23500   fi
23501   # Extract the version number without leading zeros.
23502   cleaned_value=${BASH_REMATCH[1]}
23503   if test "x$cleaned_value" = x; then
23504     # Special case for zero
23505     cleaned_value=${BASH_REMATCH[2]}
23506   fi
23507 
23508   if test $cleaned_value -gt 255; then
23509     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
23510   fi
23511   if test "x$cleaned_value" != "x$with_version_security"; then
23512     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
23513 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
23514   fi
23515   VERSION_SECURITY=$cleaned_value
23516 
23517     fi
23518   else
23519     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23520       # Default is 0, if unspecified
23521       VERSION_SECURITY=0
23522     fi
23523   fi
23524 
23525 
23526 # Check whether --with-version-patch was given.
23527 if test "${with_version_patch+set}" = set; then :
23528   withval=$with_version_patch; with_version_patch_present=true
23529 else
23530   with_version_patch_present=false
23531 fi
23532 
23533 
23534   if test "x$with_version_patch_present" = xtrue; then
23535     if test "x$with_version_patch" = xyes; then
23536       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
23537     elif test "x$with_version_patch" = xno; then
23538       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
23539       VERSION_PATCH=0
23540     elif test "x$with_version_patch" = x; then
23541       VERSION_PATCH=0
23542     else
23543 
23544   # Additional [] needed to keep m4 from mangling shell constructs.
23545   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23546     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
23547   fi
23548   # Extract the version number without leading zeros.
23549   cleaned_value=${BASH_REMATCH[1]}
23550   if test "x$cleaned_value" = x; then
23551     # Special case for zero
23552     cleaned_value=${BASH_REMATCH[2]}
23553   fi
23554 
23555   if test $cleaned_value -gt 255; then
23556     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
23557   fi
23558   if test "x$cleaned_value" != "x$with_version_patch"; then
23559     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
23560 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
23561   fi
23562   VERSION_PATCH=$cleaned_value
23563 
23564     fi
23565   else
23566     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23567       # Default is 0, if unspecified
23568       VERSION_PATCH=0
23569     fi
23570   fi
23571 
23572   # Calculate derived version properties
23573 
23574   # Set VERSION_IS_GA based on if VERSION_PRE has a value
23575   if test "x$VERSION_PRE" = x; then
23576     VERSION_IS_GA=true
23577   else
23578     VERSION_IS_GA=false
23579   fi
23580 
23581   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
23582   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
23583 
23584   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
23585   # Strip trailing zeroes from stripped_version_number
23586   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
23587   VERSION_NUMBER=$stripped_version_number
23588 
23589   # The complete version string, with additional build information
23590   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
23591     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
23592   else
23593     # If either build or opt is set, we need a + separator
23594     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
23595   fi
23596 
23597   # The short version string, just VERSION_NUMBER and PRE, if present.
23598   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
23599 
23600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
23601 $as_echo_n "checking for version string... " >&6; }
23602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
23603 $as_echo "$VERSION_STRING" >&6; }
23604 
23605 
23606 
23607 
23608 
23609 
23610 
23611 
23612 
23613 
23614 
23615 
23616 
23617 
23618 
23619 ###############################################################################
23620 #
23621 # Setup BootJDK, used to bootstrap the build.
23622 #
23623 ###############################################################################
23624 
23625 
23626   BOOT_JDK_FOUND=no
23627 
23628 # Check whether --with-boot-jdk was given.
23629 if test "${with_boot_jdk+set}" = set; then :
23630   withval=$with_boot_jdk;
23631 fi
23632 
23633 
23634   # We look for the Boot JDK through various means, going from more certain to
23635   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
23636   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
23637   # must check if this is indeed valid; otherwise we'll continue looking.
23638 
23639   # Test: Is bootjdk explicitely set by command line arguments?
23640 
23641   if test "x$BOOT_JDK_FOUND" = xno; then
23642     # Now execute the test
23643 
23644   if test "x$with_boot_jdk" != x; then
23645     BOOT_JDK=$with_boot_jdk
23646     BOOT_JDK_FOUND=maybe
23647     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
23648 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
23649   fi
23650 
23651 
23652     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23653     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23654       # Do we have a bin/java?
23655       if test ! -x "$BOOT_JDK/bin/java"; then
23656         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23657 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23658         BOOT_JDK_FOUND=no
23659       else
23660         # Do we have a bin/javac?
23661         if test ! -x "$BOOT_JDK/bin/javac"; then
23662           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23663 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23664           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23665 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23666           BOOT_JDK_FOUND=no
23667         else
23668           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23669           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23670 
23671           # Extra M4 quote needed to protect [] in grep expression.
23672           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
23673           if test "x$FOUND_CORRECT_VERSION" = x; then
23674             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23675 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23676             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23677 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23678             BOOT_JDK_FOUND=no
23679           else
23680             # We're done! :-)
23681             BOOT_JDK_FOUND=yes
23682 
23683   # Only process if variable expands to non-empty
23684 
23685   if test "x$BOOT_JDK" != x; then
23686     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23687 
23688   # Input might be given as Windows format, start by converting to
23689   # unix format.
23690   path="$BOOT_JDK"
23691   new_path=`$CYGPATH -u "$path"`
23692 
23693   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23694   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23695   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23696   # "foo.exe" is OK but "foo" is an error.
23697   #
23698   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23699   # It is also a way to make sure we got the proper file name for the real test later on.
23700   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23701   if test "x$test_shortpath" = x; then
23702     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23703 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23704     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23705   fi
23706 
23707   # Call helper function which possibly converts this using DOS-style short mode.
23708   # If so, the updated path is stored in $new_path.
23709 
23710   input_path="$new_path"
23711   # Check if we need to convert this using DOS-style short mode. If the path
23712   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23713   # take no chances and rewrite it.
23714   # Note: m4 eats our [], so we need to use [ and ] instead.
23715   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23716   if test "x$has_forbidden_chars" != x; then
23717     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23718     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23719     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23720     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23721       # Going to short mode and back again did indeed matter. Since short mode is
23722       # case insensitive, let's make it lowercase to improve readability.
23723       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23724       # Now convert it back to Unix-style (cygpath)
23725       input_path=`$CYGPATH -u "$shortmode_path"`
23726       new_path="$input_path"
23727     fi
23728   fi
23729 
23730   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23731   if test "x$test_cygdrive_prefix" = x; then
23732     # As a simple fix, exclude /usr/bin since it's not a real path.
23733     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23734       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23735       # a path prefixed by /cygdrive for fixpath to work.
23736       new_path="$CYGWIN_ROOT_PATH$input_path"
23737     fi
23738   fi
23739 
23740 
23741   if test "x$path" != "x$new_path"; then
23742     BOOT_JDK="$new_path"
23743     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23744 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23745   fi
23746 
23747     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23748 
23749   path="$BOOT_JDK"
23750   has_colon=`$ECHO $path | $GREP ^.:`
23751   new_path="$path"
23752   if test "x$has_colon" = x; then
23753     # Not in mixed or Windows style, start by that.
23754     new_path=`cmd //c echo $path`
23755   fi
23756 
23757 
23758   input_path="$new_path"
23759   # Check if we need to convert this using DOS-style short mode. If the path
23760   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23761   # take no chances and rewrite it.
23762   # Note: m4 eats our [], so we need to use [ and ] instead.
23763   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23764   if test "x$has_forbidden_chars" != x; then
23765     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23766     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23767   fi
23768 
23769 
23770   windows_path="$new_path"
23771   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23772     unix_path=`$CYGPATH -u "$windows_path"`
23773     new_path="$unix_path"
23774   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23775     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23776     new_path="$unix_path"
23777   fi
23778 
23779   if test "x$path" != "x$new_path"; then
23780     BOOT_JDK="$new_path"
23781     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23782 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23783   fi
23784 
23785   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23786   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23787 
23788     else
23789       # We're on a unix platform. Hooray! :)
23790       path="$BOOT_JDK"
23791       has_space=`$ECHO "$path" | $GREP " "`
23792       if test "x$has_space" != x; then
23793         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23794 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23795         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23796       fi
23797 
23798       # Use eval to expand a potential ~
23799       eval path="$path"
23800       if test ! -f "$path" && test ! -d "$path"; then
23801         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23802       fi
23803 
23804       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23805     fi
23806   fi
23807 
23808             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23809 $as_echo_n "checking for Boot JDK... " >&6; }
23810             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23811 $as_echo "$BOOT_JDK" >&6; }
23812             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23813 $as_echo_n "checking Boot JDK version... " >&6; }
23814             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23815             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23816 $as_echo "$BOOT_JDK_VERSION" >&6; }
23817           fi # end check jdk version
23818         fi # end check javac
23819       fi # end check java
23820     fi # end check boot jdk found
23821   fi
23822 
23823   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
23824     # Having specified an argument which is incorrect will produce an instant failure;
23825     # we should not go on looking
23826     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
23827   fi
23828 
23829   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
23830 
23831   if test "x$BOOT_JDK_FOUND" = xno; then
23832     # Now execute the test
23833 
23834   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
23835     # First check at user selected default
23836 
23837   if test "x$BOOT_JDK_FOUND" = xno; then
23838     # Now execute the test
23839 
23840   if test -x /usr/libexec/java_home; then
23841     BOOT_JDK=`/usr/libexec/java_home `
23842     BOOT_JDK_FOUND=maybe
23843     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
23844 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
23845   fi
23846 
23847 
23848     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23849     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23850       # Do we have a bin/java?
23851       if test ! -x "$BOOT_JDK/bin/java"; then
23852         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23853 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23854         BOOT_JDK_FOUND=no
23855       else
23856         # Do we have a bin/javac?
23857         if test ! -x "$BOOT_JDK/bin/javac"; then
23858           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23859 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23860           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23861 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23862           BOOT_JDK_FOUND=no
23863         else
23864           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23865           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23866 
23867           # Extra M4 quote needed to protect [] in grep expression.
23868           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
23869           if test "x$FOUND_CORRECT_VERSION" = x; then
23870             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23871 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23872             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23873 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23874             BOOT_JDK_FOUND=no
23875           else
23876             # We're done! :-)
23877             BOOT_JDK_FOUND=yes
23878 
23879   # Only process if variable expands to non-empty
23880 
23881   if test "x$BOOT_JDK" != x; then
23882     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23883 
23884   # Input might be given as Windows format, start by converting to
23885   # unix format.
23886   path="$BOOT_JDK"
23887   new_path=`$CYGPATH -u "$path"`
23888 
23889   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23890   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23891   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23892   # "foo.exe" is OK but "foo" is an error.
23893   #
23894   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23895   # It is also a way to make sure we got the proper file name for the real test later on.
23896   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23897   if test "x$test_shortpath" = x; then
23898     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23899 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23900     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23901   fi
23902 
23903   # Call helper function which possibly converts this using DOS-style short mode.
23904   # If so, the updated path is stored in $new_path.
23905 
23906   input_path="$new_path"
23907   # Check if we need to convert this using DOS-style short mode. If the path
23908   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23909   # take no chances and rewrite it.
23910   # Note: m4 eats our [], so we need to use [ and ] instead.
23911   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23912   if test "x$has_forbidden_chars" != x; then
23913     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23914     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23915     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23916     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23917       # Going to short mode and back again did indeed matter. Since short mode is
23918       # case insensitive, let's make it lowercase to improve readability.
23919       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23920       # Now convert it back to Unix-style (cygpath)
23921       input_path=`$CYGPATH -u "$shortmode_path"`
23922       new_path="$input_path"
23923     fi
23924   fi
23925 
23926   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23927   if test "x$test_cygdrive_prefix" = x; then
23928     # As a simple fix, exclude /usr/bin since it's not a real path.
23929     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23930       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23931       # a path prefixed by /cygdrive for fixpath to work.
23932       new_path="$CYGWIN_ROOT_PATH$input_path"
23933     fi
23934   fi
23935 
23936 
23937   if test "x$path" != "x$new_path"; then
23938     BOOT_JDK="$new_path"
23939     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23940 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23941   fi
23942 
23943     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23944 
23945   path="$BOOT_JDK"
23946   has_colon=`$ECHO $path | $GREP ^.:`
23947   new_path="$path"
23948   if test "x$has_colon" = x; then
23949     # Not in mixed or Windows style, start by that.
23950     new_path=`cmd //c echo $path`
23951   fi
23952 
23953 
23954   input_path="$new_path"
23955   # Check if we need to convert this using DOS-style short mode. If the path
23956   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23957   # take no chances and rewrite it.
23958   # Note: m4 eats our [], so we need to use [ and ] instead.
23959   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23960   if test "x$has_forbidden_chars" != x; then
23961     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23962     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23963   fi
23964 
23965 
23966   windows_path="$new_path"
23967   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23968     unix_path=`$CYGPATH -u "$windows_path"`
23969     new_path="$unix_path"
23970   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23971     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23972     new_path="$unix_path"
23973   fi
23974 
23975   if test "x$path" != "x$new_path"; then
23976     BOOT_JDK="$new_path"
23977     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23978 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23979   fi
23980 
23981   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23982   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23983 
23984     else
23985       # We're on a unix platform. Hooray! :)
23986       path="$BOOT_JDK"
23987       has_space=`$ECHO "$path" | $GREP " "`
23988       if test "x$has_space" != x; then
23989         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23990 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23991         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23992       fi
23993 
23994       # Use eval to expand a potential ~
23995       eval path="$path"
23996       if test ! -f "$path" && test ! -d "$path"; then
23997         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23998       fi
23999 
24000       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24001     fi
24002   fi
24003 
24004             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24005 $as_echo_n "checking for Boot JDK... " >&6; }
24006             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24007 $as_echo "$BOOT_JDK" >&6; }
24008             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24009 $as_echo_n "checking Boot JDK version... " >&6; }
24010             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24011             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24012 $as_echo "$BOOT_JDK_VERSION" >&6; }
24013           fi # end check jdk version
24014         fi # end check javac
24015       fi # end check java
24016     fi # end check boot jdk found
24017   fi
24018 
24019     # If that did not work out (e.g. too old), try explicit versions instead
24020 
24021   if test "x$BOOT_JDK_FOUND" = xno; then
24022     # Now execute the test
24023 
24024   if test -x /usr/libexec/java_home; then
24025     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
24026     BOOT_JDK_FOUND=maybe
24027     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
24028 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
24029   fi
24030 
24031 
24032     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24033     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24034       # Do we have a bin/java?
24035       if test ! -x "$BOOT_JDK/bin/java"; then
24036         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24037 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24038         BOOT_JDK_FOUND=no
24039       else
24040         # Do we have a bin/javac?
24041         if test ! -x "$BOOT_JDK/bin/javac"; then
24042           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24043 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24044           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24045 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24046           BOOT_JDK_FOUND=no
24047         else
24048           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24049           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24050 
24051           # Extra M4 quote needed to protect [] in grep expression.
24052           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24053           if test "x$FOUND_CORRECT_VERSION" = x; then
24054             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24055 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24056             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24057 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24058             BOOT_JDK_FOUND=no
24059           else
24060             # We're done! :-)
24061             BOOT_JDK_FOUND=yes
24062 
24063   # Only process if variable expands to non-empty
24064 
24065   if test "x$BOOT_JDK" != x; then
24066     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24067 
24068   # Input might be given as Windows format, start by converting to
24069   # unix format.
24070   path="$BOOT_JDK"
24071   new_path=`$CYGPATH -u "$path"`
24072 
24073   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24074   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24075   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24076   # "foo.exe" is OK but "foo" is an error.
24077   #
24078   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24079   # It is also a way to make sure we got the proper file name for the real test later on.
24080   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24081   if test "x$test_shortpath" = x; then
24082     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24083 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24084     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24085   fi
24086 
24087   # Call helper function which possibly converts this using DOS-style short mode.
24088   # If so, the updated path is stored in $new_path.
24089 
24090   input_path="$new_path"
24091   # Check if we need to convert this using DOS-style short mode. If the path
24092   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24093   # take no chances and rewrite it.
24094   # Note: m4 eats our [], so we need to use [ and ] instead.
24095   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24096   if test "x$has_forbidden_chars" != x; then
24097     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24098     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24099     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24100     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24101       # Going to short mode and back again did indeed matter. Since short mode is
24102       # case insensitive, let's make it lowercase to improve readability.
24103       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24104       # Now convert it back to Unix-style (cygpath)
24105       input_path=`$CYGPATH -u "$shortmode_path"`
24106       new_path="$input_path"
24107     fi
24108   fi
24109 
24110   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24111   if test "x$test_cygdrive_prefix" = x; then
24112     # As a simple fix, exclude /usr/bin since it's not a real path.
24113     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24114       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24115       # a path prefixed by /cygdrive for fixpath to work.
24116       new_path="$CYGWIN_ROOT_PATH$input_path"
24117     fi
24118   fi
24119 
24120 
24121   if test "x$path" != "x$new_path"; then
24122     BOOT_JDK="$new_path"
24123     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24124 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24125   fi
24126 
24127     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24128 
24129   path="$BOOT_JDK"
24130   has_colon=`$ECHO $path | $GREP ^.:`
24131   new_path="$path"
24132   if test "x$has_colon" = x; then
24133     # Not in mixed or Windows style, start by that.
24134     new_path=`cmd //c echo $path`
24135   fi
24136 
24137 
24138   input_path="$new_path"
24139   # Check if we need to convert this using DOS-style short mode. If the path
24140   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24141   # take no chances and rewrite it.
24142   # Note: m4 eats our [], so we need to use [ and ] instead.
24143   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24144   if test "x$has_forbidden_chars" != x; then
24145     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24146     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24147   fi
24148 
24149 
24150   windows_path="$new_path"
24151   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24152     unix_path=`$CYGPATH -u "$windows_path"`
24153     new_path="$unix_path"
24154   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24155     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24156     new_path="$unix_path"
24157   fi
24158 
24159   if test "x$path" != "x$new_path"; then
24160     BOOT_JDK="$new_path"
24161     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24162 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24163   fi
24164 
24165   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24166   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24167 
24168     else
24169       # We're on a unix platform. Hooray! :)
24170       path="$BOOT_JDK"
24171       has_space=`$ECHO "$path" | $GREP " "`
24172       if test "x$has_space" != x; then
24173         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24174 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24175         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24176       fi
24177 
24178       # Use eval to expand a potential ~
24179       eval path="$path"
24180       if test ! -f "$path" && test ! -d "$path"; then
24181         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24182       fi
24183 
24184       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24185     fi
24186   fi
24187 
24188             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24189 $as_echo_n "checking for Boot JDK... " >&6; }
24190             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24191 $as_echo "$BOOT_JDK" >&6; }
24192             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24193 $as_echo_n "checking Boot JDK version... " >&6; }
24194             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24195             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24196 $as_echo "$BOOT_JDK_VERSION" >&6; }
24197           fi # end check jdk version
24198         fi # end check javac
24199       fi # end check java
24200     fi # end check boot jdk found
24201   fi
24202 
24203 
24204   if test "x$BOOT_JDK_FOUND" = xno; then
24205     # Now execute the test
24206 
24207   if test -x /usr/libexec/java_home; then
24208     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
24209     BOOT_JDK_FOUND=maybe
24210     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
24211 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
24212   fi
24213 
24214 
24215     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24216     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24217       # Do we have a bin/java?
24218       if test ! -x "$BOOT_JDK/bin/java"; then
24219         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24220 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24221         BOOT_JDK_FOUND=no
24222       else
24223         # Do we have a bin/javac?
24224         if test ! -x "$BOOT_JDK/bin/javac"; then
24225           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24226 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24227           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24228 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24229           BOOT_JDK_FOUND=no
24230         else
24231           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24232           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24233 
24234           # Extra M4 quote needed to protect [] in grep expression.
24235           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24236           if test "x$FOUND_CORRECT_VERSION" = x; then
24237             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24238 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24239             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24240 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24241             BOOT_JDK_FOUND=no
24242           else
24243             # We're done! :-)
24244             BOOT_JDK_FOUND=yes
24245 
24246   # Only process if variable expands to non-empty
24247 
24248   if test "x$BOOT_JDK" != x; then
24249     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24250 
24251   # Input might be given as Windows format, start by converting to
24252   # unix format.
24253   path="$BOOT_JDK"
24254   new_path=`$CYGPATH -u "$path"`
24255 
24256   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24257   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24258   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24259   # "foo.exe" is OK but "foo" is an error.
24260   #
24261   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24262   # It is also a way to make sure we got the proper file name for the real test later on.
24263   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24264   if test "x$test_shortpath" = x; then
24265     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24266 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24267     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24268   fi
24269 
24270   # Call helper function which possibly converts this using DOS-style short mode.
24271   # If so, the updated path is stored in $new_path.
24272 
24273   input_path="$new_path"
24274   # Check if we need to convert this using DOS-style short mode. If the path
24275   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24276   # take no chances and rewrite it.
24277   # Note: m4 eats our [], so we need to use [ and ] instead.
24278   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24279   if test "x$has_forbidden_chars" != x; then
24280     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24281     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24282     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24283     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24284       # Going to short mode and back again did indeed matter. Since short mode is
24285       # case insensitive, let's make it lowercase to improve readability.
24286       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24287       # Now convert it back to Unix-style (cygpath)
24288       input_path=`$CYGPATH -u "$shortmode_path"`
24289       new_path="$input_path"
24290     fi
24291   fi
24292 
24293   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24294   if test "x$test_cygdrive_prefix" = x; then
24295     # As a simple fix, exclude /usr/bin since it's not a real path.
24296     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24297       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24298       # a path prefixed by /cygdrive for fixpath to work.
24299       new_path="$CYGWIN_ROOT_PATH$input_path"
24300     fi
24301   fi
24302 
24303 
24304   if test "x$path" != "x$new_path"; then
24305     BOOT_JDK="$new_path"
24306     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24307 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24308   fi
24309 
24310     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24311 
24312   path="$BOOT_JDK"
24313   has_colon=`$ECHO $path | $GREP ^.:`
24314   new_path="$path"
24315   if test "x$has_colon" = x; then
24316     # Not in mixed or Windows style, start by that.
24317     new_path=`cmd //c echo $path`
24318   fi
24319 
24320 
24321   input_path="$new_path"
24322   # Check if we need to convert this using DOS-style short mode. If the path
24323   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24324   # take no chances and rewrite it.
24325   # Note: m4 eats our [], so we need to use [ and ] instead.
24326   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24327   if test "x$has_forbidden_chars" != x; then
24328     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24329     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24330   fi
24331 
24332 
24333   windows_path="$new_path"
24334   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24335     unix_path=`$CYGPATH -u "$windows_path"`
24336     new_path="$unix_path"
24337   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24338     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24339     new_path="$unix_path"
24340   fi
24341 
24342   if test "x$path" != "x$new_path"; then
24343     BOOT_JDK="$new_path"
24344     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24345 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24346   fi
24347 
24348   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24349   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24350 
24351     else
24352       # We're on a unix platform. Hooray! :)
24353       path="$BOOT_JDK"
24354       has_space=`$ECHO "$path" | $GREP " "`
24355       if test "x$has_space" != x; then
24356         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24357 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24358         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24359       fi
24360 
24361       # Use eval to expand a potential ~
24362       eval path="$path"
24363       if test ! -f "$path" && test ! -d "$path"; then
24364         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24365       fi
24366 
24367       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24368     fi
24369   fi
24370 
24371             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24372 $as_echo_n "checking for Boot JDK... " >&6; }
24373             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24374 $as_echo "$BOOT_JDK" >&6; }
24375             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24376 $as_echo_n "checking Boot JDK version... " >&6; }
24377             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24378             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24379 $as_echo "$BOOT_JDK_VERSION" >&6; }
24380           fi # end check jdk version
24381         fi # end check javac
24382       fi # end check java
24383     fi # end check boot jdk found
24384   fi
24385 
24386 
24387   if test "x$BOOT_JDK_FOUND" = xno; then
24388     # Now execute the test
24389 
24390   if test -x /usr/libexec/java_home; then
24391     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
24392     BOOT_JDK_FOUND=maybe
24393     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
24394 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
24395   fi
24396 
24397 
24398     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24399     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24400       # Do we have a bin/java?
24401       if test ! -x "$BOOT_JDK/bin/java"; then
24402         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24403 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24404         BOOT_JDK_FOUND=no
24405       else
24406         # Do we have a bin/javac?
24407         if test ! -x "$BOOT_JDK/bin/javac"; then
24408           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24409 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24410           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24411 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24412           BOOT_JDK_FOUND=no
24413         else
24414           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24415           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24416 
24417           # Extra M4 quote needed to protect [] in grep expression.
24418           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24419           if test "x$FOUND_CORRECT_VERSION" = x; then
24420             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24421 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24422             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24423 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24424             BOOT_JDK_FOUND=no
24425           else
24426             # We're done! :-)
24427             BOOT_JDK_FOUND=yes
24428 
24429   # Only process if variable expands to non-empty
24430 
24431   if test "x$BOOT_JDK" != x; then
24432     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24433 
24434   # Input might be given as Windows format, start by converting to
24435   # unix format.
24436   path="$BOOT_JDK"
24437   new_path=`$CYGPATH -u "$path"`
24438 
24439   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24440   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24441   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24442   # "foo.exe" is OK but "foo" is an error.
24443   #
24444   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24445   # It is also a way to make sure we got the proper file name for the real test later on.
24446   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24447   if test "x$test_shortpath" = x; then
24448     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24449 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24450     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24451   fi
24452 
24453   # Call helper function which possibly converts this using DOS-style short mode.
24454   # If so, the updated path is stored in $new_path.
24455 
24456   input_path="$new_path"
24457   # Check if we need to convert this using DOS-style short mode. If the path
24458   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24459   # take no chances and rewrite it.
24460   # Note: m4 eats our [], so we need to use [ and ] instead.
24461   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24462   if test "x$has_forbidden_chars" != x; then
24463     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24464     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24465     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24466     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24467       # Going to short mode and back again did indeed matter. Since short mode is
24468       # case insensitive, let's make it lowercase to improve readability.
24469       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24470       # Now convert it back to Unix-style (cygpath)
24471       input_path=`$CYGPATH -u "$shortmode_path"`
24472       new_path="$input_path"
24473     fi
24474   fi
24475 
24476   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24477   if test "x$test_cygdrive_prefix" = x; then
24478     # As a simple fix, exclude /usr/bin since it's not a real path.
24479     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24480       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24481       # a path prefixed by /cygdrive for fixpath to work.
24482       new_path="$CYGWIN_ROOT_PATH$input_path"
24483     fi
24484   fi
24485 
24486 
24487   if test "x$path" != "x$new_path"; then
24488     BOOT_JDK="$new_path"
24489     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24490 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24491   fi
24492 
24493     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24494 
24495   path="$BOOT_JDK"
24496   has_colon=`$ECHO $path | $GREP ^.:`
24497   new_path="$path"
24498   if test "x$has_colon" = x; then
24499     # Not in mixed or Windows style, start by that.
24500     new_path=`cmd //c echo $path`
24501   fi
24502 
24503 
24504   input_path="$new_path"
24505   # Check if we need to convert this using DOS-style short mode. If the path
24506   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24507   # take no chances and rewrite it.
24508   # Note: m4 eats our [], so we need to use [ and ] instead.
24509   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24510   if test "x$has_forbidden_chars" != x; then
24511     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24512     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24513   fi
24514 
24515 
24516   windows_path="$new_path"
24517   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24518     unix_path=`$CYGPATH -u "$windows_path"`
24519     new_path="$unix_path"
24520   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24521     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24522     new_path="$unix_path"
24523   fi
24524 
24525   if test "x$path" != "x$new_path"; then
24526     BOOT_JDK="$new_path"
24527     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24528 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24529   fi
24530 
24531   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24532   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24533 
24534     else
24535       # We're on a unix platform. Hooray! :)
24536       path="$BOOT_JDK"
24537       has_space=`$ECHO "$path" | $GREP " "`
24538       if test "x$has_space" != x; then
24539         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24540 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24541         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24542       fi
24543 
24544       # Use eval to expand a potential ~
24545       eval path="$path"
24546       if test ! -f "$path" && test ! -d "$path"; then
24547         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24548       fi
24549 
24550       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24551     fi
24552   fi
24553 
24554             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24555 $as_echo_n "checking for Boot JDK... " >&6; }
24556             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24557 $as_echo "$BOOT_JDK" >&6; }
24558             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24559 $as_echo_n "checking Boot JDK version... " >&6; }
24560             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24561             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24562 $as_echo "$BOOT_JDK_VERSION" >&6; }
24563           fi # end check jdk version
24564         fi # end check javac
24565       fi # end check java
24566     fi # end check boot jdk found
24567   fi
24568 
24569   fi
24570 
24571 
24572     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24573     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24574       # Do we have a bin/java?
24575       if test ! -x "$BOOT_JDK/bin/java"; then
24576         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24577 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24578         BOOT_JDK_FOUND=no
24579       else
24580         # Do we have a bin/javac?
24581         if test ! -x "$BOOT_JDK/bin/javac"; then
24582           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24583 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24584           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24585 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24586           BOOT_JDK_FOUND=no
24587         else
24588           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24589           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24590 
24591           # Extra M4 quote needed to protect [] in grep expression.
24592           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24593           if test "x$FOUND_CORRECT_VERSION" = x; then
24594             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24595 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24596             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24597 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24598             BOOT_JDK_FOUND=no
24599           else
24600             # We're done! :-)
24601             BOOT_JDK_FOUND=yes
24602 
24603   # Only process if variable expands to non-empty
24604 
24605   if test "x$BOOT_JDK" != x; then
24606     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24607 
24608   # Input might be given as Windows format, start by converting to
24609   # unix format.
24610   path="$BOOT_JDK"
24611   new_path=`$CYGPATH -u "$path"`
24612 
24613   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24614   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24615   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24616   # "foo.exe" is OK but "foo" is an error.
24617   #
24618   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24619   # It is also a way to make sure we got the proper file name for the real test later on.
24620   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24621   if test "x$test_shortpath" = x; then
24622     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24623 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24624     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24625   fi
24626 
24627   # Call helper function which possibly converts this using DOS-style short mode.
24628   # If so, the updated path is stored in $new_path.
24629 
24630   input_path="$new_path"
24631   # Check if we need to convert this using DOS-style short mode. If the path
24632   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24633   # take no chances and rewrite it.
24634   # Note: m4 eats our [], so we need to use [ and ] instead.
24635   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24636   if test "x$has_forbidden_chars" != x; then
24637     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24638     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24639     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24640     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24641       # Going to short mode and back again did indeed matter. Since short mode is
24642       # case insensitive, let's make it lowercase to improve readability.
24643       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24644       # Now convert it back to Unix-style (cygpath)
24645       input_path=`$CYGPATH -u "$shortmode_path"`
24646       new_path="$input_path"
24647     fi
24648   fi
24649 
24650   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24651   if test "x$test_cygdrive_prefix" = x; then
24652     # As a simple fix, exclude /usr/bin since it's not a real path.
24653     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24654       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24655       # a path prefixed by /cygdrive for fixpath to work.
24656       new_path="$CYGWIN_ROOT_PATH$input_path"
24657     fi
24658   fi
24659 
24660 
24661   if test "x$path" != "x$new_path"; then
24662     BOOT_JDK="$new_path"
24663     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24664 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24665   fi
24666 
24667     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24668 
24669   path="$BOOT_JDK"
24670   has_colon=`$ECHO $path | $GREP ^.:`
24671   new_path="$path"
24672   if test "x$has_colon" = x; then
24673     # Not in mixed or Windows style, start by that.
24674     new_path=`cmd //c echo $path`
24675   fi
24676 
24677 
24678   input_path="$new_path"
24679   # Check if we need to convert this using DOS-style short mode. If the path
24680   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24681   # take no chances and rewrite it.
24682   # Note: m4 eats our [], so we need to use [ and ] instead.
24683   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24684   if test "x$has_forbidden_chars" != x; then
24685     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24686     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24687   fi
24688 
24689 
24690   windows_path="$new_path"
24691   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24692     unix_path=`$CYGPATH -u "$windows_path"`
24693     new_path="$unix_path"
24694   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24695     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24696     new_path="$unix_path"
24697   fi
24698 
24699   if test "x$path" != "x$new_path"; then
24700     BOOT_JDK="$new_path"
24701     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24702 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24703   fi
24704 
24705   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24706   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24707 
24708     else
24709       # We're on a unix platform. Hooray! :)
24710       path="$BOOT_JDK"
24711       has_space=`$ECHO "$path" | $GREP " "`
24712       if test "x$has_space" != x; then
24713         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24714 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24715         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24716       fi
24717 
24718       # Use eval to expand a potential ~
24719       eval path="$path"
24720       if test ! -f "$path" && test ! -d "$path"; then
24721         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24722       fi
24723 
24724       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24725     fi
24726   fi
24727 
24728             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24729 $as_echo_n "checking for Boot JDK... " >&6; }
24730             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24731 $as_echo "$BOOT_JDK" >&6; }
24732             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24733 $as_echo_n "checking Boot JDK version... " >&6; }
24734             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24735             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24736 $as_echo "$BOOT_JDK_VERSION" >&6; }
24737           fi # end check jdk version
24738         fi # end check javac
24739       fi # end check java
24740     fi # end check boot jdk found
24741   fi
24742 
24743 
24744   # Test: Is $JAVA_HOME set?
24745 
24746   if test "x$BOOT_JDK_FOUND" = xno; then
24747     # Now execute the test
24748 
24749   if test "x$JAVA_HOME" != x; then
24750     JAVA_HOME_PROCESSED="$JAVA_HOME"
24751 
24752   # Only process if variable expands to non-empty
24753 
24754   if test "x$JAVA_HOME_PROCESSED" != x; then
24755     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24756 
24757   # Input might be given as Windows format, start by converting to
24758   # unix format.
24759   path="$JAVA_HOME_PROCESSED"
24760   new_path=`$CYGPATH -u "$path"`
24761 
24762   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24763   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24764   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24765   # "foo.exe" is OK but "foo" is an error.
24766   #
24767   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24768   # It is also a way to make sure we got the proper file name for the real test later on.
24769   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24770   if test "x$test_shortpath" = x; then
24771     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24772 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24773     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
24774   fi
24775 
24776   # Call helper function which possibly converts this using DOS-style short mode.
24777   # If so, the updated path is stored in $new_path.
24778 
24779   input_path="$new_path"
24780   # Check if we need to convert this using DOS-style short mode. If the path
24781   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24782   # take no chances and rewrite it.
24783   # Note: m4 eats our [], so we need to use [ and ] instead.
24784   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24785   if test "x$has_forbidden_chars" != x; then
24786     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24787     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24788     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24789     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24790       # Going to short mode and back again did indeed matter. Since short mode is
24791       # case insensitive, let's make it lowercase to improve readability.
24792       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24793       # Now convert it back to Unix-style (cygpath)
24794       input_path=`$CYGPATH -u "$shortmode_path"`
24795       new_path="$input_path"
24796     fi
24797   fi
24798 
24799   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24800   if test "x$test_cygdrive_prefix" = x; then
24801     # As a simple fix, exclude /usr/bin since it's not a real path.
24802     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24803       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24804       # a path prefixed by /cygdrive for fixpath to work.
24805       new_path="$CYGWIN_ROOT_PATH$input_path"
24806     fi
24807   fi
24808 
24809 
24810   if test "x$path" != "x$new_path"; then
24811     JAVA_HOME_PROCESSED="$new_path"
24812     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24813 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24814   fi
24815 
24816     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24817 
24818   path="$JAVA_HOME_PROCESSED"
24819   has_colon=`$ECHO $path | $GREP ^.:`
24820   new_path="$path"
24821   if test "x$has_colon" = x; then
24822     # Not in mixed or Windows style, start by that.
24823     new_path=`cmd //c echo $path`
24824   fi
24825 
24826 
24827   input_path="$new_path"
24828   # Check if we need to convert this using DOS-style short mode. If the path
24829   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24830   # take no chances and rewrite it.
24831   # Note: m4 eats our [], so we need to use [ and ] instead.
24832   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24833   if test "x$has_forbidden_chars" != x; then
24834     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24835     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24836   fi
24837 
24838 
24839   windows_path="$new_path"
24840   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24841     unix_path=`$CYGPATH -u "$windows_path"`
24842     new_path="$unix_path"
24843   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24844     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24845     new_path="$unix_path"
24846   fi
24847 
24848   if test "x$path" != "x$new_path"; then
24849     JAVA_HOME_PROCESSED="$new_path"
24850     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24851 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24852   fi
24853 
24854   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24855   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24856 
24857     else
24858       # We're on a unix platform. Hooray! :)
24859       path="$JAVA_HOME_PROCESSED"
24860       has_space=`$ECHO "$path" | $GREP " "`
24861       if test "x$has_space" != x; then
24862         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24863 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24864         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24865       fi
24866 
24867       # Use eval to expand a potential ~
24868       eval path="$path"
24869       if test ! -f "$path" && test ! -d "$path"; then
24870         as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
24871       fi
24872 
24873       JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
24874     fi
24875   fi
24876 
24877     if test ! -d "$JAVA_HOME_PROCESSED"; then
24878       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
24879 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
24880     else
24881       # Aha, the user has set a JAVA_HOME
24882       # let us use that as the Boot JDK.
24883       BOOT_JDK="$JAVA_HOME_PROCESSED"
24884       BOOT_JDK_FOUND=maybe
24885       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
24886 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
24887     fi
24888   fi
24889 
24890 
24891     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24892     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24893       # Do we have a bin/java?
24894       if test ! -x "$BOOT_JDK/bin/java"; then
24895         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24896 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24897         BOOT_JDK_FOUND=no
24898       else
24899         # Do we have a bin/javac?
24900         if test ! -x "$BOOT_JDK/bin/javac"; then
24901           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24902 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24903           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24904 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24905           BOOT_JDK_FOUND=no
24906         else
24907           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24908           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24909 
24910           # Extra M4 quote needed to protect [] in grep expression.
24911           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24912           if test "x$FOUND_CORRECT_VERSION" = x; then
24913             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24914 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24915             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24916 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24917             BOOT_JDK_FOUND=no
24918           else
24919             # We're done! :-)
24920             BOOT_JDK_FOUND=yes
24921 
24922   # Only process if variable expands to non-empty
24923 
24924   if test "x$BOOT_JDK" != x; then
24925     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24926 
24927   # Input might be given as Windows format, start by converting to
24928   # unix format.
24929   path="$BOOT_JDK"
24930   new_path=`$CYGPATH -u "$path"`
24931 
24932   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24933   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24934   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24935   # "foo.exe" is OK but "foo" is an error.
24936   #
24937   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24938   # It is also a way to make sure we got the proper file name for the real test later on.
24939   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24940   if test "x$test_shortpath" = x; then
24941     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24942 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24943     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24944   fi
24945 
24946   # Call helper function which possibly converts this using DOS-style short mode.
24947   # If so, the updated path is stored in $new_path.
24948 
24949   input_path="$new_path"
24950   # Check if we need to convert this using DOS-style short mode. If the path
24951   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24952   # take no chances and rewrite it.
24953   # Note: m4 eats our [], so we need to use [ and ] instead.
24954   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24955   if test "x$has_forbidden_chars" != x; then
24956     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24957     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24958     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24959     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24960       # Going to short mode and back again did indeed matter. Since short mode is
24961       # case insensitive, let's make it lowercase to improve readability.
24962       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24963       # Now convert it back to Unix-style (cygpath)
24964       input_path=`$CYGPATH -u "$shortmode_path"`
24965       new_path="$input_path"
24966     fi
24967   fi
24968 
24969   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24970   if test "x$test_cygdrive_prefix" = x; then
24971     # As a simple fix, exclude /usr/bin since it's not a real path.
24972     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24973       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24974       # a path prefixed by /cygdrive for fixpath to work.
24975       new_path="$CYGWIN_ROOT_PATH$input_path"
24976     fi
24977   fi
24978 
24979 
24980   if test "x$path" != "x$new_path"; then
24981     BOOT_JDK="$new_path"
24982     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24983 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24984   fi
24985 
24986     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24987 
24988   path="$BOOT_JDK"
24989   has_colon=`$ECHO $path | $GREP ^.:`
24990   new_path="$path"
24991   if test "x$has_colon" = x; then
24992     # Not in mixed or Windows style, start by that.
24993     new_path=`cmd //c echo $path`
24994   fi
24995 
24996 
24997   input_path="$new_path"
24998   # Check if we need to convert this using DOS-style short mode. If the path
24999   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25000   # take no chances and rewrite it.
25001   # Note: m4 eats our [], so we need to use [ and ] instead.
25002   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25003   if test "x$has_forbidden_chars" != x; then
25004     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25005     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25006   fi
25007 
25008 
25009   windows_path="$new_path"
25010   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25011     unix_path=`$CYGPATH -u "$windows_path"`
25012     new_path="$unix_path"
25013   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25014     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25015     new_path="$unix_path"
25016   fi
25017 
25018   if test "x$path" != "x$new_path"; then
25019     BOOT_JDK="$new_path"
25020     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25021 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25022   fi
25023 
25024   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25025   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25026 
25027     else
25028       # We're on a unix platform. Hooray! :)
25029       path="$BOOT_JDK"
25030       has_space=`$ECHO "$path" | $GREP " "`
25031       if test "x$has_space" != x; then
25032         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25033 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25034         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25035       fi
25036 
25037       # Use eval to expand a potential ~
25038       eval path="$path"
25039       if test ! -f "$path" && test ! -d "$path"; then
25040         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25041       fi
25042 
25043       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25044     fi
25045   fi
25046 
25047             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25048 $as_echo_n "checking for Boot JDK... " >&6; }
25049             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25050 $as_echo "$BOOT_JDK" >&6; }
25051             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25052 $as_echo_n "checking Boot JDK version... " >&6; }
25053             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25054             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25055 $as_echo "$BOOT_JDK_VERSION" >&6; }
25056           fi # end check jdk version
25057         fi # end check javac
25058       fi # end check java
25059     fi # end check boot jdk found
25060   fi
25061 
25062 
25063   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
25064 
25065   if test "x$BOOT_JDK_FOUND" = xno; then
25066     # Now execute the test
25067 
25068   # Extract the first word of "javac", so it can be a program name with args.
25069 set dummy javac; ac_word=$2
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25071 $as_echo_n "checking for $ac_word... " >&6; }
25072 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
25073   $as_echo_n "(cached) " >&6
25074 else
25075   case $JAVAC_CHECK in
25076   [\\/]* | ?:[\\/]*)
25077   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
25078   ;;
25079   *)
25080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25081 for as_dir in $PATH
25082 do
25083   IFS=$as_save_IFS
25084   test -z "$as_dir" && as_dir=.
25085     for ac_exec_ext in '' $ac_executable_extensions; do
25086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25087     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
25088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25089     break 2
25090   fi
25091 done
25092   done
25093 IFS=$as_save_IFS
25094 
25095   ;;
25096 esac
25097 fi
25098 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
25099 if test -n "$JAVAC_CHECK"; then
25100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
25101 $as_echo "$JAVAC_CHECK" >&6; }
25102 else
25103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25104 $as_echo "no" >&6; }
25105 fi
25106 
25107 
25108   # Extract the first word of "java", so it can be a program name with args.
25109 set dummy java; ac_word=$2
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25111 $as_echo_n "checking for $ac_word... " >&6; }
25112 if ${ac_cv_path_JAVA_CHECK+:} false; then :
25113   $as_echo_n "(cached) " >&6
25114 else
25115   case $JAVA_CHECK in
25116   [\\/]* | ?:[\\/]*)
25117   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
25118   ;;
25119   *)
25120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25121 for as_dir in $PATH
25122 do
25123   IFS=$as_save_IFS
25124   test -z "$as_dir" && as_dir=.
25125     for ac_exec_ext in '' $ac_executable_extensions; do
25126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25127     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
25128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25129     break 2
25130   fi
25131 done
25132   done
251