1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CFLAGS_CCACHE
 633 CCACHE
 634 USE_PRECOMPILED_HEADER
 635 BUILD_ICECC
 636 ICECC
 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 BOOTCYCLE_JVM_ARGS_BIG
 648 JAVA_FLAGS_BIG
 649 JAVA_FLAGS
 650 TEST_JOBS
 651 JOBS
 652 MEMORY_SIZE
 653 NUM_CORES
 654 ENABLE_GENERATE_CLASSLIST
 655 BUILD_FAILURE_HANDLER
 656 ENABLE_INTREE_EC
 657 VALID_JVM_FEATURES
 658 JVM_FEATURES_custom
 659 JVM_FEATURES_zero
 660 JVM_FEATURES_minimal
 661 JVM_FEATURES_core
 662 JVM_FEATURES_client
 663 JVM_FEATURES_server
 664 INCLUDE_GRAAL
 665 STLPORT_LIB
 666 LIBZIP_CAN_USE_MMAP
 667 LIBDL
 668 LIBM
 669 USE_EXTERNAL_LCMS
 670 LCMS_LIBS
 671 LCMS_CFLAGS
 672 USE_EXTERNAL_LIBZ
 673 USE_EXTERNAL_LIBPNG
 674 PNG_LIBS
 675 PNG_CFLAGS
 676 USE_EXTERNAL_LIBGIF
 677 USE_EXTERNAL_LIBJPEG
 678 LIBFFI_LIB_FILE
 679 ENABLE_LIBFFI_BUNDLING
 680 LIBFFI_LIBS
 681 LIBFFI_CFLAGS
 682 ALSA_LIBS
 683 ALSA_CFLAGS
 684 FREETYPE_LICENSE
 685 FREETYPE_BUNDLE_LIB_PATH
 686 FREETYPE_LIBS
 687 FREETYPE_CFLAGS
 688 FONTCONFIG_CFLAGS
 689 CUPS_CFLAGS
 690 X_EXTRA_LIBS
 691 X_LIBS
 692 X_PRE_LIBS
 693 X_CFLAGS
 694 XMKMF
 695 MSVCP_DLL
 696 MSVCR_DLL
 697 LIBCXX
 698 FIXPATH_DETACH_FLAG
 699 FIXPATH
 700 BUILD_GTEST
 701 ENABLE_CDS
 702 ENABLE_AOT
 703 ASAN_ENABLED
 704 GCOV_ENABLED
 705 ZIP_EXTERNAL_DEBUG_SYMBOLS
 706 COPY_DEBUG_SYMBOLS
 707 COMPILE_WITH_DEBUG_SYMBOLS
 708 CFLAGS_WARNINGS_ARE_ERRORS
 709 BUILD_CC_DISABLE_WARNING_PREFIX
 710 DISABLE_WARNING_PREFIX
 711 WARNINGS_AS_ERRORS
 712 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 713 LDFLAGS_TESTEXE
 714 LDFLAGS_TESTLIB
 715 CXXFLAGS_TESTEXE
 716 CXXFLAGS_TESTLIB
 717 CFLAGS_TESTEXE
 718 CFLAGS_TESTLIB
 719 OPENJDK_BUILD_JVM_LIBS
 720 OPENJDK_BUILD_JVM_ASFLAGS
 721 OPENJDK_BUILD_JVM_LDFLAGS
 722 OPENJDK_BUILD_JVM_CFLAGS
 723 OPENJDK_BUILD_LDFLAGS_NO_EXEC_STACK
 724 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 725 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 726 OPENJDK_BUILD_JDKEXE_LIBS
 727 OPENJDK_BUILD_JDKLIB_LIBS
 728 OPENJDK_BUILD_LDFLAGS_JDKEXE
 729 OPENJDK_BUILD_LDFLAGS_JDKLIB
 730 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 731 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 732 OPENJDK_BUILD_CFLAGS_JDKEXE
 733 OPENJDK_BUILD_CFLAGS_JDKLIB
 734 OPENJDK_BUILD_CXXSTD_CXXFLAG
 735 JVM_LIBS
 736 JVM_ASFLAGS
 737 JVM_LDFLAGS
 738 JVM_CFLAGS
 739 LDFLAGS_NO_EXEC_STACK
 740 LDFLAGS_HASH_STYLE
 741 LDFLAGS_CXX_JDK
 742 JDKEXE_LIBS
 743 JDKLIB_LIBS
 744 LDFLAGS_JDKEXE
 745 LDFLAGS_JDKLIB
 746 CXXFLAGS_JDKEXE
 747 CXXFLAGS_JDKLIB
 748 CFLAGS_JDKEXE
 749 CFLAGS_JDKLIB
 750 MACOSX_VERSION_MAX
 751 MACOSX_VERSION_MIN
 752 CXXSTD_CXXFLAG
 753 JDK_ARCH_ABI_PROP_NAME
 754 CXX_O_FLAG_SIZE
 755 CXX_O_FLAG_NONE
 756 CXX_O_FLAG_DEBUG
 757 CXX_O_FLAG_NORM
 758 CXX_O_FLAG_HI
 759 CXX_O_FLAG_HIGHEST
 760 CXX_O_FLAG_HIGHEST_JVM
 761 C_O_FLAG_SIZE
 762 C_O_FLAG_NONE
 763 C_O_FLAG_DEBUG
 764 C_O_FLAG_NORM
 765 C_O_FLAG_HI
 766 C_O_FLAG_HIGHEST
 767 C_O_FLAG_HIGHEST_JVM
 768 JVM_CFLAGS_SYMBOLS
 769 CXXFLAGS_DEBUG_SYMBOLS
 770 CFLAGS_DEBUG_SYMBOLS
 771 CXX_FLAG_DEPS
 772 C_FLAG_DEPS
 773 SHARED_LIBRARY_FLAGS
 774 SET_SHARED_LIBRARY_MAPFILE
 775 SET_SHARED_LIBRARY_NAME
 776 SET_SHARED_LIBRARY_ORIGIN
 777 SET_EXECUTABLE_ORIGIN
 778 CXX_FLAG_REORDER
 779 C_FLAG_REORDER
 780 JVM_RCFLAGS
 781 RC_FLAGS
 782 AR_OUT_OPTION
 783 LD_OUT_OPTION
 784 EXE_OUT_OPTION
 785 CC_OUT_OPTION
 786 STRIPFLAGS
 787 ARFLAGS
 788 COMPILER_BINDCMD_FILE_FLAG
 789 COMPILER_COMMAND_FILE_FLAG
 790 COMPILER_TARGET_BITS_FLAG
 791 JIB_JAR
 792 JT_HOME
 793 JTREGEXE
 794 HOTSPOT_TOOLCHAIN_TYPE
 795 USING_BROKEN_SUSE_LD
 796 PACKAGE_PATH
 797 BUILD_AS
 798 BUILD_LDCXX
 799 BUILD_LD
 800 BUILD_STRIP
 801 BUILD_OBJCOPY
 802 BUILD_AR
 803 BUILD_NM
 804 BUILD_CXX
 805 BUILD_CC
 806 BUILD_SYSROOT_LDFLAGS
 807 BUILD_SYSROOT_CFLAGS
 808 ac_ct_OBJDUMP
 809 OBJDUMP
 810 ac_ct_OBJCOPY
 811 OBJCOPY
 812 ac_ct_NM
 813 ac_ct_STRIP
 814 GNM
 815 NM
 816 STRIP
 817 MSBUILD
 818 DUMPBIN
 819 RC
 820 MT
 821 INSTALL_NAME_TOOL
 822 OTOOL
 823 LIPO
 824 ac_ct_AR
 825 AR
 826 AS
 827 LDCXX
 828 LD
 829 CXXCPP
 830 CPP
 831 CXX_VERSION_NUMBER
 832 CC_VERSION_NUMBER
 833 ac_ct_CXX
 834 CXXFLAGS
 835 CXX
 836 TOOLCHAIN_PATH_CXX
 837 POTENTIAL_CXX
 838 OBJEXT
 839 EXEEXT
 840 ac_ct_CC
 841 CPPFLAGS
 842 LDFLAGS
 843 CFLAGS
 844 CC
 845 TOOLCHAIN_PATH_CC
 846 POTENTIAL_CC
 847 TOOLCHAIN_VERSION
 848 VS_LIB
 849 VS_INCLUDE
 850 VS_PATH
 851 CYGWIN_LINK
 852 SYSROOT_LDFLAGS
 853 SYSROOT_CFLAGS
 854 EXTRA_LDFLAGS
 855 EXTRA_CXXFLAGS
 856 EXTRA_CFLAGS
 857 EXE_SUFFIX
 858 OBJ_SUFFIX
 859 STATIC_LIBRARY
 860 SHARED_LIBRARY
 861 STATIC_LIBRARY_SUFFIX
 862 SHARED_LIBRARY_SUFFIX
 863 LIBRARY_PREFIX
 864 TOOLCHAIN_TYPE
 865 STATIC_BUILD
 866 IMPORT_MODULES_MAKE
 867 IMPORT_MODULES_SRC
 868 IMPORT_MODULES_MAN
 869 IMPORT_MODULES_LEGAL
 870 IMPORT_MODULES_CONF
 871 IMPORT_MODULES_LIBS
 872 IMPORT_MODULES_CMDS
 873 IMPORT_MODULES_CLASSES
 874 EXTERNAL_BUILDJDK
 875 BUILD_JDK
 876 CREATE_BUILDJDK
 877 JLINK
 878 JMOD
 879 JAVAC_FLAGS
 880 BOOT_JDK_SOURCETARGET
 881 JARSIGNER
 882 JAR
 883 JAVADOC
 884 JAVAC
 885 JAVA
 886 BOOT_JDK
 887 JAVA_CHECK
 888 JAVAC_CHECK
 889 VERSION_CLASSFILE_MINOR
 890 VERSION_CLASSFILE_MAJOR
 891 VENDOR_VERSION_STRING
 892 VERSION_DATE
 893 VERSION_IS_GA
 894 VERSION_SHORT
 895 VERSION_STRING
 896 VERSION_NUMBER_FOUR_POSITIONS
 897 VERSION_NUMBER
 898 VERSION_OPT
 899 VERSION_BUILD
 900 VERSION_PRE
 901 VERSION_PATCH
 902 VERSION_UPDATE
 903 VERSION_INTERIM
 904 VERSION_FEATURE
 905 COMPANY_NAME
 906 MACOSX_BUNDLE_ID_BASE
 907 MACOSX_BUNDLE_NAME_BASE
 908 HOTSPOT_VM_DISTRO
 909 JDK_RC_PLATFORM_NAME
 910 PRODUCT_SUFFIX
 911 PRODUCT_NAME
 912 LAUNCHER_NAME
 913 JLINK_KEEP_PACKAGED_MODULES
 914 COPYRIGHT_YEAR
 915 COMPRESS_JARS
 916 INCLUDE_SA
 917 UNLIMITED_CRYPTO
 918 CACERTS_FILE
 919 ENABLE_FULL_DOCS
 920 ENABLE_HEADLESS_ONLY
 921 DEFAULT_MAKE_TARGET
 922 OS_VERSION_MICRO
 923 OS_VERSION_MINOR
 924 OS_VERSION_MAJOR
 925 PKG_CONFIG
 926 BASH_ARGS
 927 SETFILE
 928 CODESIGN
 929 XATTR
 930 DSYMUTIL
 931 IS_GNU_TIME
 932 PATCH
 933 DTRACE
 934 FLOCK
 935 TIME
 936 STAT
 937 HG
 938 DOT
 939 READELF
 940 LDD
 941 ZIPEXE
 942 UNZIP
 943 TAR_SUPPORTS_TRANSFORM
 944 TAR_INCLUDE_PARAM
 945 TAR_CREATE_EXTRA_PARAM
 946 TAR_TYPE
 947 FIND_DELETE
 948 OUTPUT_SYNC
 949 OUTPUT_SYNC_SUPPORTED
 950 CHECK_TOOLSDIR_MAKE
 951 CHECK_TOOLSDIR_GMAKE
 952 CHECK_MAKE
 953 CHECK_GMAKE
 954 MAKE
 955 PKGHANDLER
 956 CONFIGURESUPPORT_OUTPUTDIR
 957 OUTPUTDIR
 958 CONF_NAME
 959 SPEC
 960 SDKROOT
 961 XCODEBUILD
 962 DEVKIT_LIB_DIR
 963 JVM_VARIANT_MAIN
 964 VALID_JVM_VARIANTS
 965 JVM_VARIANTS
 966 DEBUG_LEVEL
 967 HOTSPOT_DEBUG_LEVEL
 968 JDK_VARIANT
 969 USERNAME
 970 TOPDIR
 971 PATH_SEP
 972 OPENJDK_BUILD_OS_INCLUDE_SUBDIR
 973 HOTSPOT_BUILD_CPU_DEFINE
 974 HOTSPOT_BUILD_CPU_ARCH
 975 HOTSPOT_BUILD_CPU
 976 HOTSPOT_BUILD_OS_TYPE
 977 HOTSPOT_BUILD_OS
 978 OPENJDK_BUILD_BUNDLE_PLATFORM
 979 OPENJDK_BUILD_CPU_OSARCH
 980 OPENJDK_BUILD_CPU_ISADIR
 981 OPENJDK_BUILD_CPU_LEGACY_LIB
 982 OPENJDK_BUILD_CPU_LEGACY
 983 OPENJDK_TARGET_OS_INCLUDE_SUBDIR
 984 HOTSPOT_TARGET_CPU_DEFINE
 985 HOTSPOT_TARGET_CPU_ARCH
 986 HOTSPOT_TARGET_CPU
 987 HOTSPOT_TARGET_OS_TYPE
 988 HOTSPOT_TARGET_OS
 989 DEFINE_CROSS_COMPILE_ARCH
 990 OPENJDK_TARGET_BUNDLE_PLATFORM
 991 OPENJDK_TARGET_CPU_OSARCH
 992 OPENJDK_TARGET_CPU_ISADIR
 993 OPENJDK_TARGET_CPU_LEGACY_LIB
 994 OPENJDK_TARGET_CPU_LEGACY
 995 RELEASE_FILE_OS_ARCH
 996 RELEASE_FILE_OS_NAME
 997 OPENJDK_MODULE_TARGET_PLATFORM
 998 COMPILE_TYPE
 999 OPENJDK_TARGET_CPU_ENDIAN
1000 OPENJDK_TARGET_CPU_BITS
1001 OPENJDK_TARGET_CPU_ARCH
1002 OPENJDK_TARGET_CPU
1003 OPENJDK_TARGET_OS_ENV
1004 OPENJDK_TARGET_OS_TYPE
1005 OPENJDK_TARGET_OS
1006 OPENJDK_BUILD_CPU_ENDIAN
1007 OPENJDK_BUILD_CPU_BITS
1008 OPENJDK_BUILD_CPU_ARCH
1009 OPENJDK_BUILD_CPU
1010 OPENJDK_BUILD_OS_ENV
1011 OPENJDK_BUILD_OS_TYPE
1012 OPENJDK_BUILD_OS
1013 OPENJDK_BUILD_AUTOCONF_NAME
1014 OPENJDK_TARGET_AUTOCONF_NAME
1015 target_os
1016 target_vendor
1017 target_cpu
1018 target
1019 host_os
1020 host_vendor
1021 host_cpu
1022 host
1023 build_os
1024 build_vendor
1025 build_cpu
1026 build
1027 PANDOC
1028 NICE
1029 CPIO
1030 DF
1031 READLINK
1032 CYGPATH
1033 SED
1034 FGREP
1035 EGREP
1036 GREP
1037 AWK
1038 XARGS
1039 WHICH
1040 WC
1041 UNIQ
1042 UNAME
1043 TR
1044 TOUCH
1045 TEE
1046 TAR
1047 TAIL
1048 SORT
1049 SH
1050 RMDIR
1051 RM
1052 PRINTF
1053 NAWK
1054 MV
1055 MKTEMP
1056 MKDIR
1057 LS
1058 LN
1059 GZIP
1060 GUNZIP
1061 HEAD
1062 FIND
1063 FILE
1064 EXPR
1065 ECHO
1066 DIRNAME
1067 DIFF
1068 DATE
1069 CUT
1070 CP
1071 COMM
1072 CMP
1073 CHMOD
1074 CAT
1075 BASH
1076 BASENAME
1077 DATE_WHEN_CONFIGURED
1078 ORIGINAL_PATH
1079 CONFIGURE_COMMAND_LINE
1080 target_alias
1081 host_alias
1082 build_alias
1083 LIBS
1084 ECHO_T
1085 ECHO_N
1086 ECHO_C
1087 DEFS
1088 mandir
1089 localedir
1090 libdir
1091 psdir
1092 pdfdir
1093 dvidir
1094 htmldir
1095 infodir
1096 docdir
1097 oldincludedir
1098 includedir
1099 runstatedir
1100 localstatedir
1101 sharedstatedir
1102 sysconfdir
1103 datadir
1104 datarootdir
1105 libexecdir
1106 sbindir
1107 bindir
1108 program_transform_name
1109 prefix
1110 exec_prefix
1111 PACKAGE_URL
1112 PACKAGE_BUGREPORT
1113 PACKAGE_STRING
1114 PACKAGE_VERSION
1115 PACKAGE_TARNAME
1116 PACKAGE_NAME
1117 PATH_SEPARATOR
1118 SHELL'
1119 ac_subst_files=''
1120 ac_user_opts='
1121 enable_option_checking
1122 with_target_bits
1123 enable_openjdk_only
1124 with_custom_make_dir
1125 with_jdk_variant
1126 enable_debug
1127 with_debug_level
1128 with_jvm_variants
1129 with_cpu_port
1130 with_devkit
1131 with_sys_root
1132 with_sysroot
1133 with_tools_dir
1134 with_toolchain_path
1135 with_extra_path
1136 with_sdk_name
1137 with_conf_name
1138 with_output_sync
1139 with_default_make_target
1140 enable_headless_only
1141 enable_full_docs
1142 with_cacerts_file
1143 enable_unlimited_crypto
1144 with_copyright_year
1145 enable_keep_packaged_modules
1146 with_milestone
1147 with_update_version
1148 with_user_release_suffix
1149 with_build_number
1150 with_version_major
1151 with_version_minor
1152 with_version_security
1153 with_vendor_name
1154 with_version_string
1155 with_version_pre
1156 with_version_opt
1157 with_version_build
1158 with_version_feature
1159 with_version_interim
1160 with_version_update
1161 with_version_patch
1162 with_version_date
1163 with_vendor_version_string
1164 with_boot_jdk
1165 with_build_jdk
1166 with_import_modules
1167 enable_static_build
1168 with_toolchain_type
1169 with_extra_cflags
1170 with_extra_cxxflags
1171 with_extra_ldflags
1172 with_toolchain_version
1173 with_build_devkit
1174 with_jtreg
1175 with_jib
1176 with_abi_profile
1177 with_macosx_version_max
1178 enable_warnings_as_errors
1179 with_native_debug_symbols
1180 enable_debug_symbols
1181 enable_zip_debug_info
1182 enable_native_coverage
1183 enable_asan
1184 enable_dtrace
1185 enable_aot
1186 enable_cds
1187 enable_hotspot_gtest
1188 with_stdc__lib
1189 with_msvcr_dll
1190 with_msvcp_dll
1191 with_x
1192 with_cups
1193 with_cups_include
1194 with_fontconfig
1195 with_fontconfig_include
1196 with_freetype
1197 with_freetype_include
1198 with_freetype_lib
1199 with_freetype_src
1200 enable_freetype_bundling
1201 with_freetype_license
1202 with_alsa
1203 with_alsa_include
1204 with_alsa_lib
1205 with_libffi
1206 with_libffi_include
1207 with_libffi_lib
1208 enable_libffi_bundling
1209 with_libjpeg
1210 with_giflib
1211 with_libpng
1212 with_zlib
1213 with_lcms
1214 with_dxsdk
1215 with_dxsdk_lib
1216 with_dxsdk_include
1217 with_jvm_features
1218 with_jvm_interpreter
1219 enable_jtreg_failure_handler
1220 enable_generate_classlist
1221 with_num_cores
1222 with_memory_size
1223 with_jobs
1224 with_test_jobs
1225 with_boot_jdk_jvmargs
1226 with_sjavac_server_java
1227 enable_sjavac
1228 enable_javac_server
1229 enable_icecc
1230 enable_precompiled_headers
1231 enable_ccache
1232 with_ccache_dir
1233 '
1234       ac_precious_vars='build_alias
1235 host_alias
1236 target_alias
1237 BASENAME
1238 BASH
1239 CAT
1240 CHMOD
1241 CMP
1242 COMM
1243 CP
1244 CUT
1245 DATE
1246 DIFF
1247 DIRNAME
1248 ECHO
1249 EXPR
1250 FILE
1251 FIND
1252 HEAD
1253 GUNZIP
1254 GZIP
1255 LN
1256 LS
1257 MKDIR
1258 MKTEMP
1259 MV
1260 NAWK
1261 PRINTF
1262 RM
1263 RMDIR
1264 SH
1265 SORT
1266 TAIL
1267 TAR
1268 TEE
1269 TOUCH
1270 TR
1271 UNAME
1272 UNIQ
1273 WC
1274 WHICH
1275 XARGS
1276 AWK
1277 GREP
1278 EGREP
1279 FGREP
1280 SED
1281 CYGPATH
1282 READLINK
1283 DF
1284 CPIO
1285 NICE
1286 PANDOC
1287 MAKE
1288 UNZIP
1289 ZIPEXE
1290 LDD
1291 READELF
1292 DOT
1293 HG
1294 STAT
1295 TIME
1296 FLOCK
1297 DTRACE
1298 PATCH
1299 DSYMUTIL
1300 XATTR
1301 CODESIGN
1302 SETFILE
1303 PKG_CONFIG
1304 JAVA
1305 JAVAC
1306 JAVADOC
1307 JAR
1308 JARSIGNER
1309 CC
1310 CFLAGS
1311 LDFLAGS
1312 LIBS
1313 CPPFLAGS
1314 CXX
1315 CXXFLAGS
1316 CCC
1317 CPP
1318 CXXCPP
1319 AS
1320 AR
1321 LIPO
1322 OTOOL
1323 INSTALL_NAME_TOOL
1324 STRIP
1325 NM
1326 GNM
1327 OBJCOPY
1328 OBJDUMP
1329 BUILD_CC
1330 BUILD_CXX
1331 BUILD_NM
1332 BUILD_AR
1333 BUILD_OBJCOPY
1334 BUILD_STRIP
1335 JTREGEXE
1336 XMKMF
1337 FREETYPE_CFLAGS
1338 FREETYPE_LIBS
1339 ALSA_CFLAGS
1340 ALSA_LIBS
1341 LIBFFI_CFLAGS
1342 LIBFFI_LIBS
1343 PNG_CFLAGS
1344 PNG_LIBS
1345 LCMS_CFLAGS
1346 LCMS_LIBS
1347 ICECC_CMD
1348 ICECC_CREATE_ENV
1349 ICECC_WRAPPER
1350 CCACHE'
1351 
1352 
1353 # Initialize some variables set by options.
1354 ac_init_help=
1355 ac_init_version=false
1356 ac_unrecognized_opts=
1357 ac_unrecognized_sep=
1358 # The variables have the same names as the options, with
1359 # dashes changed to underlines.
1360 cache_file=/dev/null
1361 exec_prefix=NONE
1362 no_create=
1363 no_recursion=
1364 prefix=NONE
1365 program_prefix=NONE
1366 program_suffix=NONE
1367 program_transform_name=s,x,x,
1368 silent=
1369 site=
1370 srcdir=
1371 verbose=
1372 x_includes=NONE
1373 x_libraries=NONE
1374 
1375 # Installation directory options.
1376 # These are left unexpanded so users can "make install exec_prefix=/foo"
1377 # and all the variables that are supposed to be based on exec_prefix
1378 # by default will actually change.
1379 # Use braces instead of parens because sh, perl, etc. also accept them.
1380 # (The list follows the same order as the GNU Coding Standards.)
1381 bindir='${exec_prefix}/bin'
1382 sbindir='${exec_prefix}/sbin'
1383 libexecdir='${exec_prefix}/libexec'
1384 datarootdir='${prefix}/share'
1385 datadir='${datarootdir}'
1386 sysconfdir='${prefix}/etc'
1387 sharedstatedir='${prefix}/com'
1388 localstatedir='${prefix}/var'
1389 runstatedir='${localstatedir}/run'
1390 includedir='${prefix}/include'
1391 oldincludedir='/usr/include'
1392 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1393 infodir='${datarootdir}/info'
1394 htmldir='${docdir}'
1395 dvidir='${docdir}'
1396 pdfdir='${docdir}'
1397 psdir='${docdir}'
1398 libdir='${exec_prefix}/lib'
1399 localedir='${datarootdir}/locale'
1400 mandir='${datarootdir}/man'
1401 
1402 ac_prev=
1403 ac_dashdash=
1404 for ac_option
1405 do
1406   # If the previous option needs an argument, assign it.
1407   if test -n "$ac_prev"; then
1408     eval $ac_prev=\$ac_option
1409     ac_prev=
1410     continue
1411   fi
1412 
1413   case $ac_option in
1414   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1415   *=)   ac_optarg= ;;
1416   *)    ac_optarg=yes ;;
1417   esac
1418 
1419   # Accept the important Cygnus configure options, so we can diagnose typos.
1420 
1421   case $ac_dashdash$ac_option in
1422   --)
1423     ac_dashdash=yes ;;
1424 
1425   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1426     ac_prev=bindir ;;
1427   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1428     bindir=$ac_optarg ;;
1429 
1430   -build | --build | --buil | --bui | --bu)
1431     ac_prev=build_alias ;;
1432   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1433     build_alias=$ac_optarg ;;
1434 
1435   -cache-file | --cache-file | --cache-fil | --cache-fi \
1436   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1437     ac_prev=cache_file ;;
1438   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1439   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1440     cache_file=$ac_optarg ;;
1441 
1442   --config-cache | -C)
1443     cache_file=config.cache ;;
1444 
1445   -datadir | --datadir | --datadi | --datad)
1446     ac_prev=datadir ;;
1447   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1448     datadir=$ac_optarg ;;
1449 
1450   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1451   | --dataroo | --dataro | --datar)
1452     ac_prev=datarootdir ;;
1453   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1454   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1455     datarootdir=$ac_optarg ;;
1456 
1457   -disable-* | --disable-*)
1458     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1459     # Reject names that are not valid shell variable names.
1460     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1461       as_fn_error $? "invalid feature name: $ac_useropt"
1462     ac_useropt_orig=$ac_useropt
1463     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1464     case $ac_user_opts in
1465       *"
1466 "enable_$ac_useropt"
1467 "*) ;;
1468       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1469          ac_unrecognized_sep=', ';;
1470     esac
1471     eval enable_$ac_useropt=no ;;
1472 
1473   -docdir | --docdir | --docdi | --doc | --do)
1474     ac_prev=docdir ;;
1475   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1476     docdir=$ac_optarg ;;
1477 
1478   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1479     ac_prev=dvidir ;;
1480   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1481     dvidir=$ac_optarg ;;
1482 
1483   -enable-* | --enable-*)
1484     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1485     # Reject names that are not valid shell variable names.
1486     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1487       as_fn_error $? "invalid feature name: $ac_useropt"
1488     ac_useropt_orig=$ac_useropt
1489     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1490     case $ac_user_opts in
1491       *"
1492 "enable_$ac_useropt"
1493 "*) ;;
1494       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1495          ac_unrecognized_sep=', ';;
1496     esac
1497     eval enable_$ac_useropt=\$ac_optarg ;;
1498 
1499   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1500   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1501   | --exec | --exe | --ex)
1502     ac_prev=exec_prefix ;;
1503   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1504   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1505   | --exec=* | --exe=* | --ex=*)
1506     exec_prefix=$ac_optarg ;;
1507 
1508   -gas | --gas | --ga | --g)
1509     # Obsolete; use --with-gas.
1510     with_gas=yes ;;
1511 
1512   -help | --help | --hel | --he | -h)
1513     ac_init_help=long ;;
1514   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1515     ac_init_help=recursive ;;
1516   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1517     ac_init_help=short ;;
1518 
1519   -host | --host | --hos | --ho)
1520     ac_prev=host_alias ;;
1521   -host=* | --host=* | --hos=* | --ho=*)
1522     host_alias=$ac_optarg ;;
1523 
1524   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1525     ac_prev=htmldir ;;
1526   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1527   | --ht=*)
1528     htmldir=$ac_optarg ;;
1529 
1530   -includedir | --includedir | --includedi | --included | --include \
1531   | --includ | --inclu | --incl | --inc)
1532     ac_prev=includedir ;;
1533   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1534   | --includ=* | --inclu=* | --incl=* | --inc=*)
1535     includedir=$ac_optarg ;;
1536 
1537   -infodir | --infodir | --infodi | --infod | --info | --inf)
1538     ac_prev=infodir ;;
1539   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1540     infodir=$ac_optarg ;;
1541 
1542   -libdir | --libdir | --libdi | --libd)
1543     ac_prev=libdir ;;
1544   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1545     libdir=$ac_optarg ;;
1546 
1547   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1548   | --libexe | --libex | --libe)
1549     ac_prev=libexecdir ;;
1550   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1551   | --libexe=* | --libex=* | --libe=*)
1552     libexecdir=$ac_optarg ;;
1553 
1554   -localedir | --localedir | --localedi | --localed | --locale)
1555     ac_prev=localedir ;;
1556   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1557     localedir=$ac_optarg ;;
1558 
1559   -localstatedir | --localstatedir | --localstatedi | --localstated \
1560   | --localstate | --localstat | --localsta | --localst | --locals)
1561     ac_prev=localstatedir ;;
1562   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1563   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1564     localstatedir=$ac_optarg ;;
1565 
1566   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1567     ac_prev=mandir ;;
1568   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1569     mandir=$ac_optarg ;;
1570 
1571   -nfp | --nfp | --nf)
1572     # Obsolete; use --without-fp.
1573     with_fp=no ;;
1574 
1575   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1576   | --no-cr | --no-c | -n)
1577     no_create=yes ;;
1578 
1579   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1580   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1581     no_recursion=yes ;;
1582 
1583   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1584   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1585   | --oldin | --oldi | --old | --ol | --o)
1586     ac_prev=oldincludedir ;;
1587   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1588   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1589   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1590     oldincludedir=$ac_optarg ;;
1591 
1592   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1593     ac_prev=prefix ;;
1594   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1595     prefix=$ac_optarg ;;
1596 
1597   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1598   | --program-pre | --program-pr | --program-p)
1599     ac_prev=program_prefix ;;
1600   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1601   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1602     program_prefix=$ac_optarg ;;
1603 
1604   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1605   | --program-suf | --program-su | --program-s)
1606     ac_prev=program_suffix ;;
1607   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1608   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1609     program_suffix=$ac_optarg ;;
1610 
1611   -program-transform-name | --program-transform-name \
1612   | --program-transform-nam | --program-transform-na \
1613   | --program-transform-n | --program-transform- \
1614   | --program-transform | --program-transfor \
1615   | --program-transfo | --program-transf \
1616   | --program-trans | --program-tran \
1617   | --progr-tra | --program-tr | --program-t)
1618     ac_prev=program_transform_name ;;
1619   -program-transform-name=* | --program-transform-name=* \
1620   | --program-transform-nam=* | --program-transform-na=* \
1621   | --program-transform-n=* | --program-transform-=* \
1622   | --program-transform=* | --program-transfor=* \
1623   | --program-transfo=* | --program-transf=* \
1624   | --program-trans=* | --program-tran=* \
1625   | --progr-tra=* | --program-tr=* | --program-t=*)
1626     program_transform_name=$ac_optarg ;;
1627 
1628   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1629     ac_prev=pdfdir ;;
1630   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1631     pdfdir=$ac_optarg ;;
1632 
1633   -psdir | --psdir | --psdi | --psd | --ps)
1634     ac_prev=psdir ;;
1635   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1636     psdir=$ac_optarg ;;
1637 
1638   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639   | -silent | --silent | --silen | --sile | --sil)
1640     silent=yes ;;
1641 
1642   -runstatedir | --runstatedir | --runstatedi | --runstated \
1643   | --runstate | --runstat | --runsta | --runst | --runs \
1644   | --run | --ru | --r)
1645     ac_prev=runstatedir ;;
1646   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1647   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1648   | --run=* | --ru=* | --r=*)
1649     runstatedir=$ac_optarg ;;
1650 
1651   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1652     ac_prev=sbindir ;;
1653   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1654   | --sbi=* | --sb=*)
1655     sbindir=$ac_optarg ;;
1656 
1657   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1658   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1659   | --sharedst | --shareds | --shared | --share | --shar \
1660   | --sha | --sh)
1661     ac_prev=sharedstatedir ;;
1662   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1663   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1664   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1665   | --sha=* | --sh=*)
1666     sharedstatedir=$ac_optarg ;;
1667 
1668   -site | --site | --sit)
1669     ac_prev=site ;;
1670   -site=* | --site=* | --sit=*)
1671     site=$ac_optarg ;;
1672 
1673   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1674     ac_prev=srcdir ;;
1675   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1676     srcdir=$ac_optarg ;;
1677 
1678   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1679   | --syscon | --sysco | --sysc | --sys | --sy)
1680     ac_prev=sysconfdir ;;
1681   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1682   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1683     sysconfdir=$ac_optarg ;;
1684 
1685   -target | --target | --targe | --targ | --tar | --ta | --t)
1686     ac_prev=target_alias ;;
1687   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1688     target_alias=$ac_optarg ;;
1689 
1690   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1691     verbose=yes ;;
1692 
1693   -version | --version | --versio | --versi | --vers | -V)
1694     ac_init_version=: ;;
1695 
1696   -with-* | --with-*)
1697     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1698     # Reject names that are not valid shell variable names.
1699     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1700       as_fn_error $? "invalid package name: $ac_useropt"
1701     ac_useropt_orig=$ac_useropt
1702     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1703     case $ac_user_opts in
1704       *"
1705 "with_$ac_useropt"
1706 "*) ;;
1707       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1708          ac_unrecognized_sep=', ';;
1709     esac
1710     eval with_$ac_useropt=\$ac_optarg ;;
1711 
1712   -without-* | --without-*)
1713     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1714     # Reject names that are not valid shell variable names.
1715     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1716       as_fn_error $? "invalid package name: $ac_useropt"
1717     ac_useropt_orig=$ac_useropt
1718     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1719     case $ac_user_opts in
1720       *"
1721 "with_$ac_useropt"
1722 "*) ;;
1723       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1724          ac_unrecognized_sep=', ';;
1725     esac
1726     eval with_$ac_useropt=no ;;
1727 
1728   --x)
1729     # Obsolete; use --with-x.
1730     with_x=yes ;;
1731 
1732   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1733   | --x-incl | --x-inc | --x-in | --x-i)
1734     ac_prev=x_includes ;;
1735   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1736   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1737     x_includes=$ac_optarg ;;
1738 
1739   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1740   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1741     ac_prev=x_libraries ;;
1742   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1743   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1744     x_libraries=$ac_optarg ;;
1745 
1746   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1747 Try \`$0 --help' for more information"
1748     ;;
1749 
1750   *=*)
1751     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1752     # Reject names that are not valid shell variable names.
1753     case $ac_envvar in #(
1754       '' | [0-9]* | *[!_$as_cr_alnum]* )
1755       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1756     esac
1757     eval $ac_envvar=\$ac_optarg
1758     export $ac_envvar ;;
1759 
1760   *)
1761     # FIXME: should be removed in autoconf 3.0.
1762     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1763     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1764       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1765     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1766     ;;
1767 
1768   esac
1769 done
1770 
1771 if test -n "$ac_prev"; then
1772   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1773   as_fn_error $? "missing argument to $ac_option"
1774 fi
1775 
1776 if test -n "$ac_unrecognized_opts"; then
1777   case $enable_option_checking in
1778     no) ;;
1779     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1780     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1781   esac
1782 fi
1783 
1784 # Check all directory arguments for consistency.
1785 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1786                 datadir sysconfdir sharedstatedir localstatedir includedir \
1787                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1788                 libdir localedir mandir runstatedir
1789 do
1790   eval ac_val=\$$ac_var
1791   # Remove trailing slashes.
1792   case $ac_val in
1793     */ )
1794       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1795       eval $ac_var=\$ac_val;;
1796   esac
1797   # Be sure to have absolute directory names.
1798   case $ac_val in
1799     [\\/$]* | ?:[\\/]* )  continue;;
1800     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1801   esac
1802   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1803 done
1804 
1805 # There might be people who depend on the old broken behavior: `$host'
1806 # used to hold the argument of --host etc.
1807 # FIXME: To remove some day.
1808 build=$build_alias
1809 host=$host_alias
1810 target=$target_alias
1811 
1812 # FIXME: To remove some day.
1813 if test "x$host_alias" != x; then
1814   if test "x$build_alias" = x; then
1815     cross_compiling=maybe
1816   elif test "x$build_alias" != "x$host_alias"; then
1817     cross_compiling=yes
1818   fi
1819 fi
1820 
1821 ac_tool_prefix=
1822 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1823 
1824 test "$silent" = yes && exec 6>/dev/null
1825 
1826 
1827 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1828 ac_ls_di=`ls -di .` &&
1829 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1830   as_fn_error $? "working directory cannot be determined"
1831 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1832   as_fn_error $? "pwd does not report name of working directory"
1833 
1834 
1835 # Find the source files, if location was not specified.
1836 if test -z "$srcdir"; then
1837   ac_srcdir_defaulted=yes
1838   # Try the directory containing this script, then the parent directory.
1839   ac_confdir=`$as_dirname -- "$as_myself" ||
1840 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1841          X"$as_myself" : 'X\(//\)[^/]' \| \
1842          X"$as_myself" : 'X\(//\)$' \| \
1843          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1844 $as_echo X"$as_myself" |
1845     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1846             s//\1/
1847             q
1848           }
1849           /^X\(\/\/\)[^/].*/{
1850             s//\1/
1851             q
1852           }
1853           /^X\(\/\/\)$/{
1854             s//\1/
1855             q
1856           }
1857           /^X\(\/\).*/{
1858             s//\1/
1859             q
1860           }
1861           s/.*/./; q'`
1862   srcdir=$ac_confdir
1863   if test ! -r "$srcdir/$ac_unique_file"; then
1864     srcdir=..
1865   fi
1866 else
1867   ac_srcdir_defaulted=no
1868 fi
1869 if test ! -r "$srcdir/$ac_unique_file"; then
1870   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1871   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1872 fi
1873 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1874 ac_abs_confdir=`(
1875         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1876         pwd)`
1877 # When building in place, set srcdir=.
1878 if test "$ac_abs_confdir" = "$ac_pwd"; then
1879   srcdir=.
1880 fi
1881 # Remove unnecessary trailing slashes from srcdir.
1882 # Double slashes in file names in object file debugging info
1883 # mess up M-x gdb in Emacs.
1884 case $srcdir in
1885 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1886 esac
1887 for ac_var in $ac_precious_vars; do
1888   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1889   eval ac_env_${ac_var}_value=\$${ac_var}
1890   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1891   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1892 done
1893 
1894 #
1895 # Report the --help message.
1896 #
1897 if test "$ac_init_help" = "long"; then
1898   # Omit some internal or obsolete options to make the list less imposing.
1899   # This message is too long to be a string in the A/UX 3.1 sh.
1900   cat <<_ACEOF
1901 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1902 
1903 Usage: $0 [OPTION]... [VAR=VALUE]...
1904 
1905 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1906 VAR=VALUE.  See below for descriptions of some of the useful variables.
1907 
1908 Defaults for the options are specified in brackets.
1909 
1910 Configuration:
1911   -h, --help              display this help and exit
1912       --help=short        display options specific to this package
1913       --help=recursive    display the short help of all the included packages
1914   -V, --version           display version information and exit
1915   -q, --quiet, --silent   do not print \`checking ...' messages
1916       --cache-file=FILE   cache test results in FILE [disabled]
1917   -C, --config-cache      alias for \`--cache-file=config.cache'
1918   -n, --no-create         do not create output files
1919       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1920 
1921 Installation directories:
1922   --prefix=PREFIX         install architecture-independent files in PREFIX
1923                           [$ac_default_prefix]
1924   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1925                           [PREFIX]
1926 
1927 By default, \`make install' will install all the files in
1928 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1929 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1930 for instance \`--prefix=\$HOME'.
1931 
1932 For better control, use the options below.
1933 
1934 Fine tuning of the installation directories:
1935   --bindir=DIR            user executables [EPREFIX/bin]
1936   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1937   --libexecdir=DIR        program executables [EPREFIX/libexec]
1938   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1939   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1940   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1941   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1942   --libdir=DIR            object code libraries [EPREFIX/lib]
1943   --includedir=DIR        C header files [PREFIX/include]
1944   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1945   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1946   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1947   --infodir=DIR           info documentation [DATAROOTDIR/info]
1948   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1949   --mandir=DIR            man documentation [DATAROOTDIR/man]
1950   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1951   --htmldir=DIR           html documentation [DOCDIR]
1952   --dvidir=DIR            dvi documentation [DOCDIR]
1953   --pdfdir=DIR            pdf documentation [DOCDIR]
1954   --psdir=DIR             ps documentation [DOCDIR]
1955 _ACEOF
1956 
1957   cat <<\_ACEOF
1958 
1959 X features:
1960   --x-includes=DIR    X include files are in DIR
1961   --x-libraries=DIR   X library files are in DIR
1962 
1963 System types:
1964   --build=BUILD     configure for building on BUILD [guessed]
1965   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1966   --target=TARGET   configure for building compilers for TARGET [HOST]
1967 _ACEOF
1968 fi
1969 
1970 if test -n "$ac_init_help"; then
1971   case $ac_init_help in
1972      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1973    esac
1974   cat <<\_ACEOF
1975 
1976 Optional Features:
1977   --disable-option-checking  ignore unrecognized --enable/--with options
1978   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1979   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1980   --enable-openjdk-only   suppress building custom source even if present
1981                           [disabled]
1982   --enable-debug          set the debug level to fastdebug (shorthand for
1983                           --with-debug-level=fastdebug) [disabled]
1984   --enable-headless-only  only build headless (no GUI) support [disabled]
1985   --enable-full-docs      build complete documentation [enabled if all tools
1986                           found]
1987   --disable-unlimited-crypto
1988                           Disable unlimited crypto policy [enabled]
1989   --disable-keep-packaged-modules
1990                           Do not keep packaged modules in jdk image [enable]
1991   --enable-static-build   enable static library build [disabled]
1992   --disable-warnings-as-errors
1993                           do not consider native warnings to be an error
1994                           [enabled]
1995   --enable-debug-symbols  Deprecated. Option is kept for backwards
1996                           compatibility and is ignored
1997   --enable-zip-debug-info Deprecated. Option is kept for backwards
1998                           compatibility and is ignored
1999   --enable-native-coverage
2000                           enable native compilation with code coverage
2001                           data[disabled]
2002   --enable-asan           enable AddressSanitizer if possible [disabled]
2003   --enable-dtrace[=yes/no/auto]
2004                           enable dtrace. Default is auto, where dtrace is
2005                           enabled if all dependencies are present.
2006   --enable-aot[=yes/no/auto]
2007                           enable ahead of time compilation feature. Default is
2008                           auto, where aot is enabled if all dependencies are
2009                           present.
2010   --enable-cds[=yes/no]   enable class data sharing feature in non-minimal VM.
2011                           Default is yes.
2012   --disable-hotspot-gtest Disables building of the Hotspot unit tests
2013                           [enabled]
2014   --disable-freetype-bundling
2015                           disable bundling of the freetype library with the
2016                           build result [enabled on Windows or when using
2017                           --with-freetype, disabled otherwise]
2018   --enable-libffi-bundling
2019                           enable bundling of libffi.so to make the built JDK
2020                           runnable on more systems
2021   --enable-jtreg-failure-handler
2022                           forces build of the jtreg failure handler to be
2023                           enabled, missing dependencies become fatal errors.
2024                           Default is auto, where the failure handler is built
2025                           if all dependencies are present and otherwise just
2026                           disabled.
2027   --disable-generate-classlist
2028                           forces enabling or disabling of the generation of a
2029                           CDS classlist at build time. Default is to generate
2030                           it when either the server or client JVMs are built
2031                           and enable-cds is true.
2032   --enable-sjavac         use sjavac to do fast incremental compiles
2033                           [disabled]
2034   --disable-javac-server  disable javac server [enabled]
2035   --enable-icecc          enable distribted compilation of native code using
2036                           icecc/icecream [disabled]
2037   --disable-precompiled-headers
2038                           disable using precompiled headers when compiling C++
2039                           [enabled]
2040   --enable-ccache         enable using ccache to speed up recompilations
2041                           [disabled]
2042 
2043 Optional Packages:
2044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2046   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2047                           support it), e.g. --with-target-bits=32 [guessed]
2048   --with-custom-make-dir  Deprecated. Option is kept for backwards
2049                           compatibility and is ignored
2050   --with-jdk-variant      JDK variant to build (normal) [normal]
2051   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2052                           optimized) [release]
2053   --with-jvm-variants     JVM variants (separated by commas) to build
2054                           (server,client,minimal,core,zero,custom) [server]
2055   --with-cpu-port         specify sources to use for Hotspot 64-bit ARM port
2056                           (arm64,aarch64) [aarch64]
2057   --with-devkit           use this devkit for compilers, tools and resources
2058   --with-sys-root         alias for --with-sysroot for backwards compatability
2059   --with-sysroot          use this directory as sysroot
2060   --with-tools-dir        alias for --with-toolchain-path for backwards
2061                           compatibility
2062   --with-toolchain-path   prepend these directories when searching for
2063                           toolchain binaries (compilers etc)
2064   --with-extra-path       prepend these directories to the default path
2065   --with-sdk-name         use the platform SDK of the given name. [macosx]
2066   --with-conf-name        use this as the name of the configuration [generated
2067                           from important configuration options]
2068   --with-output-sync      set make output sync type if supported by make.
2069                           [recurse]
2070   --with-default-make-target
2071                           set the default make target [exploded-image]
2072   --with-cacerts-file     specify alternative cacerts file
2073   --with-copyright-year   Set copyright year value for build [current year]
2074   --with-milestone        Deprecated. Option is kept for backwards
2075                           compatibility and is ignored
2076   --with-update-version   Deprecated. Option is kept for backwards
2077                           compatibility and is ignored
2078   --with-user-release-suffix
2079                           Deprecated. Option is kept for backwards
2080                           compatibility and is ignored
2081   --with-build-number     Deprecated. Option is kept for backwards
2082                           compatibility and is ignored
2083   --with-version-major    Deprecated. Option is kept for backwards
2084                           compatibility and is ignored
2085   --with-version-minor    Deprecated. Option is kept for backwards
2086                           compatibility and is ignored
2087   --with-version-security Deprecated. Option is kept for backwards
2088                           compatibility and is ignored
2089   --with-vendor-name      Set vendor name [not specified]
2090   --with-version-string   Set version string [calculated]
2091   --with-version-pre      Set the base part of the version 'PRE' field
2092                           (pre-release identifier) ['internal']
2093   --with-version-opt      Set version 'OPT' field (build metadata)
2094                           [<timestamp>.<user>.<dirname>]
2095   --with-version-build    Set version 'BUILD' field (build number) [not
2096                           specified]
2097   --with-version-feature  Set version 'FEATURE' field (first number) [current
2098                           source value]
2099   --with-version-interim  Set version 'INTERIM' field (second number) [current
2100                           source value]
2101   --with-version-update   Set version 'UPDATE' field (third number) [current
2102                           source value]
2103   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2104                           specified]
2105   --with-version-date     Set version date [current source value]
2106   --with-vendor-version-string
2107                           Set vendor version string [not specified]
2108   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2109   --with-build-jdk        path to JDK of same version as is being built[the
2110                           newly built JDK]
2111   --with-import-modules   import a set of prebuilt modules either as a zip
2112                           file or an exploded directory
2113   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2114                           to show possible values [platform dependent]
2115   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2116   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2117   --with-extra-ldflags    extra flags to be used when linking jdk
2118   --with-toolchain-version
2119                           the version of the toolchain to look for, use
2120                           '--help' to show possible values [platform
2121                           dependent]
2122   --with-build-devkit     Devkit to use for the build platform toolchain
2123   --with-jtreg            Regression Test Harness [probed]
2124   --with-jib              Jib dependency management tool [not used]
2125   --with-abi-profile      specify ABI profile for ARM builds
2126                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2127                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)
2128                           [toolchain dependent]
2129   --with-macosx-version-max
2130                           error on use of newer functionality. [macosx]
2131   --with-native-debug-symbols
2132                           set the native debug symbol configuration (none,
2133                           internal, external, zipped) [varying]
2134   --with-stdc++lib=<static>,<dynamic>,<default>
2135                           force linking of the C++ runtime on Linux to either
2136                           static or dynamic, default is static with dynamic as
2137                           fallback
2138   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2139                           (Windows only) [probed]
2140   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2141                           (Windows only) [probed]
2142   --with-x                use the X Window System
2143   --with-cups             specify prefix directory for the cups package
2144                           (expecting the headers under PATH/include)
2145   --with-cups-include     specify directory for the cups include files
2146   --with-fontconfig       specify prefix directory for the fontconfig package
2147                           (expecting the headers under PATH/include)
2148   --with-fontconfig-include
2149                           specify directory for the fontconfig include files
2150   --with-freetype         specify prefix directory for the freetype package
2151                           (expecting the libraries under PATH/lib and the
2152                           headers under PATH/include)
2153   --with-freetype-include specify directory for the freetype include files
2154   --with-freetype-lib     specify directory for the freetype library
2155   --with-freetype-src     specify directory with freetype sources to
2156                           automatically build the library (experimental,
2157                           Windows-only)
2158   --with-freetype-license if bundling freetype, also bundle this license file
2159   --with-alsa             specify prefix directory for the alsa package
2160                           (expecting the libraries under PATH/lib and the
2161                           headers under PATH/include)
2162   --with-alsa-include     specify directory for the alsa include files
2163   --with-alsa-lib         specify directory for the alsa library
2164   --with-libffi           specify prefix directory for the libffi package
2165                           (expecting the libraries under PATH/lib and the
2166                           headers under PATH/include)
2167   --with-libffi-include   specify directory for the libffi include files
2168   --with-libffi-lib       specify directory for the libffi library
2169   --with-libjpeg          use libjpeg from build system or OpenJDK source
2170                           (system, bundled) [bundled]
2171   --with-giflib           use giflib from build system or OpenJDK source
2172                           (system, bundled) [bundled]
2173   --with-libpng           use libpng from build system or OpenJDK source
2174                           (system, bundled) [bundled]
2175   --with-zlib             use zlib from build system or OpenJDK source
2176                           (system, bundled) [bundled]
2177   --with-lcms             use lcms2 from build system or OpenJDK source
2178                           (system, bundled) [bundled]
2179   --with-dxsdk            Deprecated. Option is kept for backwards
2180                           compatibility and is ignored
2181   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2182                           compatibility and is ignored
2183   --with-dxsdk-include    Deprecated. Option is kept for backwards
2184                           compatibility and is ignored
2185   --with-jvm-features     additional JVM features to enable (separated by
2186                           comma), use '--help' to show possible values [none]
2187   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2188                           compatibility and is ignored
2189   --with-num-cores        number of cores in the build system, e.g.
2190                           --with-num-cores=8 [probed]
2191   --with-memory-size      memory (in MB) available in the build system, e.g.
2192                           --with-memory-size=1024 [probed]
2193   --with-jobs             number of parallel jobs to let make run [calculated
2194                           based on cores and memory]
2195   --with-test-jobs        number of parallel tests jobs to run [based on build
2196                           jobs]
2197   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2198                           invocations of boot JDK, overriding the default
2199                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2200                           -enableassertions"
2201   --with-sjavac-server-java
2202                           use this java binary for running the sjavac
2203                           background server [Boot JDK java]
2204   --with-ccache-dir       where to store ccache files [~/.ccache]
2205 
2206 Some influential environment variables:
2207   BASENAME    Override default value for BASENAME
2208   BASH        Override default value for BASH
2209   CAT         Override default value for CAT
2210   CHMOD       Override default value for CHMOD
2211   CMP         Override default value for CMP
2212   COMM        Override default value for COMM
2213   CP          Override default value for CP
2214   CUT         Override default value for CUT
2215   DATE        Override default value for DATE
2216   DIFF        Override default value for DIFF
2217   DIRNAME     Override default value for DIRNAME
2218   ECHO        Override default value for ECHO
2219   EXPR        Override default value for EXPR
2220   FILE        Override default value for FILE
2221   FIND        Override default value for FIND
2222   HEAD        Override default value for HEAD
2223   GUNZIP      Override default value for GUNZIP
2224   GZIP        Override default value for GZIP
2225   LN          Override default value for LN
2226   LS          Override default value for LS
2227   MKDIR       Override default value for MKDIR
2228   MKTEMP      Override default value for MKTEMP
2229   MV          Override default value for MV
2230   NAWK        Override default value for NAWK
2231   PRINTF      Override default value for PRINTF
2232   RM          Override default value for RM
2233   RMDIR       Override default value for RMDIR
2234   SH          Override default value for SH
2235   SORT        Override default value for SORT
2236   TAIL        Override default value for TAIL
2237   TAR         Override default value for TAR
2238   TEE         Override default value for TEE
2239   TOUCH       Override default value for TOUCH
2240   TR          Override default value for TR
2241   UNAME       Override default value for UNAME
2242   UNIQ        Override default value for UNIQ
2243   WC          Override default value for WC
2244   WHICH       Override default value for WHICH
2245   XARGS       Override default value for XARGS
2246   AWK         Override default value for AWK
2247   GREP        Override default value for GREP
2248   EGREP       Override default value for EGREP
2249   FGREP       Override default value for FGREP
2250   SED         Override default value for SED
2251   CYGPATH     Override default value for CYGPATH
2252   READLINK    Override default value for READLINK
2253   DF          Override default value for DF
2254   CPIO        Override default value for CPIO
2255   NICE        Override default value for NICE
2256   PANDOC      Override default value for PANDOC
2257   MAKE        Override default value for MAKE
2258   UNZIP       Override default value for UNZIP
2259   ZIPEXE      Override default value for ZIPEXE
2260   LDD         Override default value for LDD
2261   READELF     Override default value for READELF
2262   DOT         Override default value for DOT
2263   HG          Override default value for HG
2264   STAT        Override default value for STAT
2265   TIME        Override default value for TIME
2266   FLOCK       Override default value for FLOCK
2267   DTRACE      Override default value for DTRACE
2268   PATCH       Override default value for PATCH
2269   DSYMUTIL    Override default value for DSYMUTIL
2270   XATTR       Override default value for XATTR
2271   CODESIGN    Override default value for CODESIGN
2272   SETFILE     Override default value for SETFILE
2273   PKG_CONFIG  path to pkg-config utility
2274   JAVA        Override default value for JAVA
2275   JAVAC       Override default value for JAVAC
2276   JAVADOC     Override default value for JAVADOC
2277   JAR         Override default value for JAR
2278   JARSIGNER   Override default value for JARSIGNER
2279   CC          C compiler command
2280   CFLAGS      C compiler flags
2281   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2282               nonstandard directory <lib dir>
2283   LIBS        libraries to pass to the linker, e.g. -l<library>
2284   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2285               you have headers in a nonstandard directory <include dir>
2286   CXX         C++ compiler command
2287   CXXFLAGS    C++ compiler flags
2288   CPP         C preprocessor
2289   CXXCPP      C++ preprocessor
2290   AS          Override default value for AS
2291   AR          Override default value for AR
2292   LIPO        Override default value for LIPO
2293   OTOOL       Override default value for OTOOL
2294   INSTALL_NAME_TOOL
2295               Override default value for INSTALL_NAME_TOOL
2296   STRIP       Override default value for STRIP
2297   NM          Override default value for NM
2298   GNM         Override default value for GNM
2299   OBJCOPY     Override default value for OBJCOPY
2300   OBJDUMP     Override default value for OBJDUMP
2301   BUILD_CC    Override default value for BUILD_CC
2302   BUILD_CXX   Override default value for BUILD_CXX
2303   BUILD_NM    Override default value for BUILD_NM
2304   BUILD_AR    Override default value for BUILD_AR
2305   BUILD_OBJCOPY
2306               Override default value for BUILD_OBJCOPY
2307   BUILD_STRIP Override default value for BUILD_STRIP
2308   JTREGEXE    Override default value for JTREGEXE
2309   XMKMF       Path to xmkmf, Makefile generator for X Window System
2310   FREETYPE_CFLAGS
2311               C compiler flags for FREETYPE, overriding pkg-config
2312   FREETYPE_LIBS
2313               linker flags for FREETYPE, overriding pkg-config
2314   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2315   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2316   LIBFFI_CFLAGS
2317               C compiler flags for LIBFFI, overriding pkg-config
2318   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2319   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2320   PNG_LIBS    linker flags for PNG, overriding pkg-config
2321   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2322   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2323   ICECC_CMD   Override default value for ICECC_CMD
2324   ICECC_CREATE_ENV
2325               Override default value for ICECC_CREATE_ENV
2326   ICECC_WRAPPER
2327               Override default value for ICECC_WRAPPER
2328   CCACHE      Override default value for CCACHE
2329 
2330 Use these variables to override the choices made by `configure' or to help
2331 it to find libraries and programs with nonstandard names/locations.
2332 
2333 Report bugs to <build-dev@openjdk.java.net>.
2334 OpenJDK home page: <http://openjdk.java.net>.
2335 _ACEOF
2336 ac_status=$?
2337 fi
2338 
2339 if test "$ac_init_help" = "recursive"; then
2340   # If there are subdirs, report their specific --help.
2341   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2342     test -d "$ac_dir" ||
2343       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2344       continue
2345     ac_builddir=.
2346 
2347 case "$ac_dir" in
2348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2349 *)
2350   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2351   # A ".." for each directory in $ac_dir_suffix.
2352   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2353   case $ac_top_builddir_sub in
2354   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2355   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2356   esac ;;
2357 esac
2358 ac_abs_top_builddir=$ac_pwd
2359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2360 # for backward compatibility:
2361 ac_top_builddir=$ac_top_build_prefix
2362 
2363 case $srcdir in
2364   .)  # We are building in place.
2365     ac_srcdir=.
2366     ac_top_srcdir=$ac_top_builddir_sub
2367     ac_abs_top_srcdir=$ac_pwd ;;
2368   [\\/]* | ?:[\\/]* )  # Absolute name.
2369     ac_srcdir=$srcdir$ac_dir_suffix;
2370     ac_top_srcdir=$srcdir
2371     ac_abs_top_srcdir=$srcdir ;;
2372   *) # Relative name.
2373     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2374     ac_top_srcdir=$ac_top_build_prefix$srcdir
2375     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2376 esac
2377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2378 
2379     cd "$ac_dir" || { ac_status=$?; continue; }
2380     # Check for guested configure.
2381     if test -f "$ac_srcdir/configure.gnu"; then
2382       echo &&
2383       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2384     elif test -f "$ac_srcdir/configure"; then
2385       echo &&
2386       $SHELL "$ac_srcdir/configure" --help=recursive
2387     else
2388       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2389     fi || ac_status=$?
2390     cd "$ac_pwd" || { ac_status=$?; break; }
2391   done
2392 fi
2393 
2394 test -n "$ac_init_help" && exit $ac_status
2395 if $ac_init_version; then
2396   cat <<\_ACEOF
2397 OpenJDK configure jdk9
2398 generated by GNU Autoconf 2.69
2399 
2400 Copyright (C) 2012 Free Software Foundation, Inc.
2401 This configure script is free software; the Free Software Foundation
2402 gives unlimited permission to copy, distribute and modify it.
2403 _ACEOF
2404   exit
2405 fi
2406 
2407 ## ------------------------ ##
2408 ## Autoconf initialization. ##
2409 ## ------------------------ ##
2410 
2411 # ac_fn_c_try_compile LINENO
2412 # --------------------------
2413 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2414 ac_fn_c_try_compile ()
2415 {
2416   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2417   rm -f conftest.$ac_objext
2418   if { { ac_try="$ac_compile"
2419 case "(($ac_try" in
2420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421   *) ac_try_echo=$ac_try;;
2422 esac
2423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2424 $as_echo "$ac_try_echo"; } >&5
2425   (eval "$ac_compile") 2>conftest.err
2426   ac_status=$?
2427   if test -s conftest.err; then
2428     grep -v '^ *+' conftest.err >conftest.er1
2429     cat conftest.er1 >&5
2430     mv -f conftest.er1 conftest.err
2431   fi
2432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2433   test $ac_status = 0; } && {
2434          test -z "$ac_c_werror_flag" ||
2435          test ! -s conftest.err
2436        } && test -s conftest.$ac_objext; then :
2437   ac_retval=0
2438 else
2439   $as_echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441 
2442         ac_retval=1
2443 fi
2444   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2445   as_fn_set_status $ac_retval
2446 
2447 } # ac_fn_c_try_compile
2448 
2449 # ac_fn_cxx_try_compile LINENO
2450 # ----------------------------
2451 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2452 ac_fn_cxx_try_compile ()
2453 {
2454   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455   rm -f conftest.$ac_objext
2456   if { { ac_try="$ac_compile"
2457 case "(($ac_try" in
2458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459   *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463   (eval "$ac_compile") 2>conftest.err
2464   ac_status=$?
2465   if test -s conftest.err; then
2466     grep -v '^ *+' conftest.err >conftest.er1
2467     cat conftest.er1 >&5
2468     mv -f conftest.er1 conftest.err
2469   fi
2470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471   test $ac_status = 0; } && {
2472          test -z "$ac_cxx_werror_flag" ||
2473          test ! -s conftest.err
2474        } && test -s conftest.$ac_objext; then :
2475   ac_retval=0
2476 else
2477   $as_echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479 
2480         ac_retval=1
2481 fi
2482   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2483   as_fn_set_status $ac_retval
2484 
2485 } # ac_fn_cxx_try_compile
2486 
2487 # ac_fn_c_try_cpp LINENO
2488 # ----------------------
2489 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2490 ac_fn_c_try_cpp ()
2491 {
2492   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493   if { { ac_try="$ac_cpp conftest.$ac_ext"
2494 case "(($ac_try" in
2495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496   *) ac_try_echo=$ac_try;;
2497 esac
2498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2499 $as_echo "$ac_try_echo"; } >&5
2500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2501   ac_status=$?
2502   if test -s conftest.err; then
2503     grep -v '^ *+' conftest.err >conftest.er1
2504     cat conftest.er1 >&5
2505     mv -f conftest.er1 conftest.err
2506   fi
2507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508   test $ac_status = 0; } > conftest.i && {
2509          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2510          test ! -s conftest.err
2511        }; then :
2512   ac_retval=0
2513 else
2514   $as_echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516 
2517     ac_retval=1
2518 fi
2519   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520   as_fn_set_status $ac_retval
2521 
2522 } # ac_fn_c_try_cpp
2523 
2524 # ac_fn_cxx_try_cpp LINENO
2525 # ------------------------
2526 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2527 ac_fn_cxx_try_cpp ()
2528 {
2529   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530   if { { ac_try="$ac_cpp conftest.$ac_ext"
2531 case "(($ac_try" in
2532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533   *) ac_try_echo=$ac_try;;
2534 esac
2535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2536 $as_echo "$ac_try_echo"; } >&5
2537   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2538   ac_status=$?
2539   if test -s conftest.err; then
2540     grep -v '^ *+' conftest.err >conftest.er1
2541     cat conftest.er1 >&5
2542     mv -f conftest.er1 conftest.err
2543   fi
2544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2545   test $ac_status = 0; } > conftest.i && {
2546          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2547          test ! -s conftest.err
2548        }; then :
2549   ac_retval=0
2550 else
2551   $as_echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553 
2554     ac_retval=1
2555 fi
2556   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557   as_fn_set_status $ac_retval
2558 
2559 } # ac_fn_cxx_try_cpp
2560 
2561 # ac_fn_c_try_link LINENO
2562 # -----------------------
2563 # Try to link conftest.$ac_ext, and return whether this succeeded.
2564 ac_fn_c_try_link ()
2565 {
2566   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567   rm -f conftest.$ac_objext conftest$ac_exeext
2568   if { { ac_try="$ac_link"
2569 case "(($ac_try" in
2570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571   *) ac_try_echo=$ac_try;;
2572 esac
2573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2574 $as_echo "$ac_try_echo"; } >&5
2575   (eval "$ac_link") 2>conftest.err
2576   ac_status=$?
2577   if test -s conftest.err; then
2578     grep -v '^ *+' conftest.err >conftest.er1
2579     cat conftest.er1 >&5
2580     mv -f conftest.er1 conftest.err
2581   fi
2582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2583   test $ac_status = 0; } && {
2584          test -z "$ac_c_werror_flag" ||
2585          test ! -s conftest.err
2586        } && test -s conftest$ac_exeext && {
2587          test "$cross_compiling" = yes ||
2588          test -x conftest$ac_exeext
2589        }; then :
2590   ac_retval=0
2591 else
2592   $as_echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2594 
2595         ac_retval=1
2596 fi
2597   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2598   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2599   # interfere with the next link command; also delete a directory that is
2600   # left behind by Apple's compiler.  We do this before executing the actions.
2601   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2602   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2603   as_fn_set_status $ac_retval
2604 
2605 } # ac_fn_c_try_link
2606 
2607 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2608 # ---------------------------------------------------------
2609 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2610 # the include files in INCLUDES and setting the cache variable VAR
2611 # accordingly.
2612 ac_fn_cxx_check_header_mongrel ()
2613 {
2614   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615   if eval \${$3+:} false; then :
2616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2617 $as_echo_n "checking for $2... " >&6; }
2618 if eval \${$3+:} false; then :
2619   $as_echo_n "(cached) " >&6
2620 fi
2621 eval ac_res=\$$3
2622                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2623 $as_echo "$ac_res" >&6; }
2624 else
2625   # Is the header compilable?
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2627 $as_echo_n "checking $2 usability... " >&6; }
2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629 /* end confdefs.h.  */
2630 $4
2631 #include <$2>
2632 _ACEOF
2633 if ac_fn_cxx_try_compile "$LINENO"; then :
2634   ac_header_compiler=yes
2635 else
2636   ac_header_compiler=no
2637 fi
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2640 $as_echo "$ac_header_compiler" >&6; }
2641 
2642 # Is the header present?
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2644 $as_echo_n "checking $2 presence... " >&6; }
2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646 /* end confdefs.h.  */
2647 #include <$2>
2648 _ACEOF
2649 if ac_fn_cxx_try_cpp "$LINENO"; then :
2650   ac_header_preproc=yes
2651 else
2652   ac_header_preproc=no
2653 fi
2654 rm -f conftest.err conftest.i conftest.$ac_ext
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2656 $as_echo "$ac_header_preproc" >&6; }
2657 
2658 # So?  What about this header?
2659 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2660   yes:no: )
2661     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2662 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2663     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2664 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2665     ;;
2666   no:yes:* )
2667     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2668 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2669     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2670 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2671     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2672 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2673     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2674 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2675     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2676 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2677 ( $as_echo "## ----------------------------------------- ##
2678 ## Report this to build-dev@openjdk.java.net ##
2679 ## ----------------------------------------- ##"
2680      ) | sed "s/^/$as_me: WARNING:     /" >&2
2681     ;;
2682 esac
2683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2684 $as_echo_n "checking for $2... " >&6; }
2685 if eval \${$3+:} false; then :
2686   $as_echo_n "(cached) " >&6
2687 else
2688   eval "$3=\$ac_header_compiler"
2689 fi
2690 eval ac_res=\$$3
2691                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 fi
2694   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 
2696 } # ac_fn_cxx_check_header_mongrel
2697 
2698 # ac_fn_cxx_try_run LINENO
2699 # ------------------------
2700 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2701 # that executables *can* be run.
2702 ac_fn_cxx_try_run ()
2703 {
2704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2705   if { { ac_try="$ac_link"
2706 case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2711 $as_echo "$ac_try_echo"; } >&5
2712   (eval "$ac_link") 2>&5
2713   ac_status=$?
2714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2715   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2716   { { case "(($ac_try" in
2717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718   *) ac_try_echo=$ac_try;;
2719 esac
2720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2721 $as_echo "$ac_try_echo"; } >&5
2722   (eval "$ac_try") 2>&5
2723   ac_status=$?
2724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2725   test $ac_status = 0; }; }; then :
2726   ac_retval=0
2727 else
2728   $as_echo "$as_me: program exited with status $ac_status" >&5
2729        $as_echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731 
2732        ac_retval=$ac_status
2733 fi
2734   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2735   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2736   as_fn_set_status $ac_retval
2737 
2738 } # ac_fn_cxx_try_run
2739 
2740 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2741 # ---------------------------------------------------------
2742 # Tests whether HEADER exists and can be compiled using the include files in
2743 # INCLUDES, setting the cache variable VAR accordingly.
2744 ac_fn_cxx_check_header_compile ()
2745 {
2746   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2748 $as_echo_n "checking for $2... " >&6; }
2749 if eval \${$3+:} false; then :
2750   $as_echo_n "(cached) " >&6
2751 else
2752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h.  */
2754 $4
2755 #include <$2>
2756 _ACEOF
2757 if ac_fn_cxx_try_compile "$LINENO"; then :
2758   eval "$3=yes"
2759 else
2760   eval "$3=no"
2761 fi
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763 fi
2764 eval ac_res=\$$3
2765                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2766 $as_echo "$ac_res" >&6; }
2767   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2768 
2769 } # ac_fn_cxx_check_header_compile
2770 
2771 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2772 # ----------------------------------------------
2773 # Tries to find the compile-time value of EXPR in a program that includes
2774 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2775 # computed
2776 ac_fn_cxx_compute_int ()
2777 {
2778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2779   if test "$cross_compiling" = yes; then
2780     # Depending upon the size, compute the lo and hi bounds.
2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h.  */
2783 $4
2784 int
2785 main ()
2786 {
2787 static int test_array [1 - 2 * !(($2) >= 0)];
2788 test_array [0] = 0;
2789 return test_array [0];
2790 
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 if ac_fn_cxx_try_compile "$LINENO"; then :
2796   ac_lo=0 ac_mid=0
2797   while :; do
2798     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799 /* end confdefs.h.  */
2800 $4
2801 int
2802 main ()
2803 {
2804 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2805 test_array [0] = 0;
2806 return test_array [0];
2807 
2808   ;
2809   return 0;
2810 }
2811 _ACEOF
2812 if ac_fn_cxx_try_compile "$LINENO"; then :
2813   ac_hi=$ac_mid; break
2814 else
2815   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2816                         if test $ac_lo -le $ac_mid; then
2817                           ac_lo= ac_hi=
2818                           break
2819                         fi
2820                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2821 fi
2822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2823   done
2824 else
2825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826 /* end confdefs.h.  */
2827 $4
2828 int
2829 main ()
2830 {
2831 static int test_array [1 - 2 * !(($2) < 0)];
2832 test_array [0] = 0;
2833 return test_array [0];
2834 
2835   ;
2836   return 0;
2837 }
2838 _ACEOF
2839 if ac_fn_cxx_try_compile "$LINENO"; then :
2840   ac_hi=-1 ac_mid=-1
2841   while :; do
2842     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h.  */
2844 $4
2845 int
2846 main ()
2847 {
2848 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2849 test_array [0] = 0;
2850 return test_array [0];
2851 
2852   ;
2853   return 0;
2854 }
2855 _ACEOF
2856 if ac_fn_cxx_try_compile "$LINENO"; then :
2857   ac_lo=$ac_mid; break
2858 else
2859   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2860                         if test $ac_mid -le $ac_hi; then
2861                           ac_lo= ac_hi=
2862                           break
2863                         fi
2864                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2865 fi
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867   done
2868 else
2869   ac_lo= ac_hi=
2870 fi
2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 fi
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874 # Binary search between lo and hi bounds.
2875 while test "x$ac_lo" != "x$ac_hi"; do
2876   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878 /* end confdefs.h.  */
2879 $4
2880 int
2881 main ()
2882 {
2883 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2884 test_array [0] = 0;
2885 return test_array [0];
2886 
2887   ;
2888   return 0;
2889 }
2890 _ACEOF
2891 if ac_fn_cxx_try_compile "$LINENO"; then :
2892   ac_hi=$ac_mid
2893 else
2894   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2895 fi
2896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897 done
2898 case $ac_lo in #((
2899 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2900 '') ac_retval=1 ;;
2901 esac
2902   else
2903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904 /* end confdefs.h.  */
2905 $4
2906 static long int longval () { return $2; }
2907 static unsigned long int ulongval () { return $2; }
2908 #include <stdio.h>
2909 #include <stdlib.h>
2910 int
2911 main ()
2912 {
2913 
2914   FILE *f = fopen ("conftest.val", "w");
2915   if (! f)
2916     return 1;
2917   if (($2) < 0)
2918     {
2919       long int i = longval ();
2920       if (i != ($2))
2921         return 1;
2922       fprintf (f, "%ld", i);
2923     }
2924   else
2925     {
2926       unsigned long int i = ulongval ();
2927       if (i != ($2))
2928         return 1;
2929       fprintf (f, "%lu", i);
2930     }
2931   /* Do not output a trailing newline, as this causes \r\n confusion
2932      on some platforms.  */
2933   return ferror (f) || fclose (f) != 0;
2934 
2935   ;
2936   return 0;
2937 }
2938 _ACEOF
2939 if ac_fn_cxx_try_run "$LINENO"; then :
2940   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2941 else
2942   ac_retval=1
2943 fi
2944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2945   conftest.$ac_objext conftest.beam conftest.$ac_ext
2946 rm -f conftest.val
2947 
2948   fi
2949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2950   as_fn_set_status $ac_retval
2951 
2952 } # ac_fn_cxx_compute_int
2953 
2954 # ac_fn_cxx_try_link LINENO
2955 # -------------------------
2956 # Try to link conftest.$ac_ext, and return whether this succeeded.
2957 ac_fn_cxx_try_link ()
2958 {
2959   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2960   rm -f conftest.$ac_objext conftest$ac_exeext
2961   if { { ac_try="$ac_link"
2962 case "(($ac_try" in
2963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964   *) ac_try_echo=$ac_try;;
2965 esac
2966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967 $as_echo "$ac_try_echo"; } >&5
2968   (eval "$ac_link") 2>conftest.err
2969   ac_status=$?
2970   if test -s conftest.err; then
2971     grep -v '^ *+' conftest.err >conftest.er1
2972     cat conftest.er1 >&5
2973     mv -f conftest.er1 conftest.err
2974   fi
2975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2976   test $ac_status = 0; } && {
2977          test -z "$ac_cxx_werror_flag" ||
2978          test ! -s conftest.err
2979        } && test -s conftest$ac_exeext && {
2980          test "$cross_compiling" = yes ||
2981          test -x conftest$ac_exeext
2982        }; then :
2983   ac_retval=0
2984 else
2985   $as_echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987 
2988         ac_retval=1
2989 fi
2990   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2991   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2992   # interfere with the next link command; also delete a directory that is
2993   # left behind by Apple's compiler.  We do this before executing the actions.
2994   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2995   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2996   as_fn_set_status $ac_retval
2997 
2998 } # ac_fn_cxx_try_link
2999 
3000 # ac_fn_cxx_check_func LINENO FUNC VAR
3001 # ------------------------------------
3002 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3003 ac_fn_cxx_check_func ()
3004 {
3005   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3007 $as_echo_n "checking for $2... " >&6; }
3008 if eval \${$3+:} false; then :
3009   $as_echo_n "(cached) " >&6
3010 else
3011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012 /* end confdefs.h.  */
3013 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3015 #define $2 innocuous_$2
3016 
3017 /* System header to define __stub macros and hopefully few prototypes,
3018     which can conflict with char $2 (); below.
3019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3020     <limits.h> exists even on freestanding compilers.  */
3021 
3022 #ifdef __STDC__
3023 # include <limits.h>
3024 #else
3025 # include <assert.h>
3026 #endif
3027 
3028 #undef $2
3029 
3030 /* Override any GCC internal prototype to avoid an error.
3031    Use char because int might match the return type of a GCC
3032    builtin and then its argument prototype would still apply.  */
3033 #ifdef __cplusplus
3034 extern "C"
3035 #endif
3036 char $2 ();
3037 /* The GNU C library defines this for functions which it implements
3038     to always fail with ENOSYS.  Some functions are actually named
3039     something starting with __ and the normal name is an alias.  */
3040 #if defined __stub_$2 || defined __stub___$2
3041 choke me
3042 #endif
3043 
3044 int
3045 main ()
3046 {
3047 return $2 ();
3048   ;
3049   return 0;
3050 }
3051 _ACEOF
3052 if ac_fn_cxx_try_link "$LINENO"; then :
3053   eval "$3=yes"
3054 else
3055   eval "$3=no"
3056 fi
3057 rm -f core conftest.err conftest.$ac_objext \
3058     conftest$ac_exeext conftest.$ac_ext
3059 fi
3060 eval ac_res=\$$3
3061                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3062 $as_echo "$ac_res" >&6; }
3063   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3064 
3065 } # ac_fn_cxx_check_func
3066 
3067 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3068 # -------------------------------------------------------
3069 # Tests whether HEADER exists and can be compiled using the include files in
3070 # INCLUDES, setting the cache variable VAR accordingly.
3071 ac_fn_c_check_header_compile ()
3072 {
3073   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3075 $as_echo_n "checking for $2... " >&6; }
3076 if eval \${$3+:} false; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h.  */
3081 $4
3082 #include <$2>
3083 _ACEOF
3084 if ac_fn_c_try_compile "$LINENO"; then :
3085   eval "$3=yes"
3086 else
3087   eval "$3=no"
3088 fi
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 fi
3091 eval ac_res=\$$3
3092                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3093 $as_echo "$ac_res" >&6; }
3094   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3095 
3096 } # ac_fn_c_check_header_compile
3097 cat >config.log <<_ACEOF
3098 This file contains any messages produced by compilers while
3099 running configure, to aid debugging if configure makes a mistake.
3100 
3101 It was created by OpenJDK $as_me jdk9, which was
3102 generated by GNU Autoconf 2.69.  Invocation command line was
3103 
3104   $ $0 $@
3105 
3106 _ACEOF
3107 exec 5>>config.log
3108 {
3109 cat <<_ASUNAME
3110 ## --------- ##
3111 ## Platform. ##
3112 ## --------- ##
3113 
3114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3115 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3116 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3117 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3118 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3119 
3120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3121 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3122 
3123 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3124 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3126 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3127 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3128 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3129 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3130 
3131 _ASUNAME
3132 
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136   IFS=$as_save_IFS
3137   test -z "$as_dir" && as_dir=.
3138     $as_echo "PATH: $as_dir"
3139   done
3140 IFS=$as_save_IFS
3141 
3142 } >&5
3143 
3144 cat >&5 <<_ACEOF
3145 
3146 
3147 ## ----------- ##
3148 ## Core tests. ##
3149 ## ----------- ##
3150 
3151 _ACEOF
3152 
3153 
3154 # Keep a trace of the command line.
3155 # Strip out --no-create and --no-recursion so they do not pile up.
3156 # Strip out --silent because we don't want to record it for future runs.
3157 # Also quote any args containing shell meta-characters.
3158 # Make two passes to allow for proper duplicate-argument suppression.
3159 ac_configure_args=
3160 ac_configure_args0=
3161 ac_configure_args1=
3162 ac_must_keep_next=false
3163 for ac_pass in 1 2
3164 do
3165   for ac_arg
3166   do
3167     case $ac_arg in
3168     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3169     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3170     | -silent | --silent | --silen | --sile | --sil)
3171       continue ;;
3172     *\'*)
3173       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3174     esac
3175     case $ac_pass in
3176     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3177     2)
3178       as_fn_append ac_configure_args1 " '$ac_arg'"
3179       if test $ac_must_keep_next = true; then
3180         ac_must_keep_next=false # Got value, back to normal.
3181       else
3182         case $ac_arg in
3183           *=* | --config-cache | -C | -disable-* | --disable-* \
3184           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3185           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3186           | -with-* | --with-* | -without-* | --without-* | --x)
3187             case "$ac_configure_args0 " in
3188               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3189             esac
3190             ;;
3191           -* ) ac_must_keep_next=true ;;
3192         esac
3193       fi
3194       as_fn_append ac_configure_args " '$ac_arg'"
3195       ;;
3196     esac
3197   done
3198 done
3199 { ac_configure_args0=; unset ac_configure_args0;}
3200 { ac_configure_args1=; unset ac_configure_args1;}
3201 
3202 # When interrupted or exit'd, cleanup temporary files, and complete
3203 # config.log.  We remove comments because anyway the quotes in there
3204 # would cause problems or look ugly.
3205 # WARNING: Use '\'' to represent an apostrophe within the trap.
3206 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3207 trap 'exit_status=$?
3208   # Save into config.log some information that might help in debugging.
3209   {
3210     echo
3211 
3212     $as_echo "## ---------------- ##
3213 ## Cache variables. ##
3214 ## ---------------- ##"
3215     echo
3216     # The following way of writing the cache mishandles newlines in values,
3217 (
3218   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3219     eval ac_val=\$$ac_var
3220     case $ac_val in #(
3221     *${as_nl}*)
3222       case $ac_var in #(
3223       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3224 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3225       esac
3226       case $ac_var in #(
3227       _ | IFS | as_nl) ;; #(
3228       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3229       *) { eval $ac_var=; unset $ac_var;} ;;
3230       esac ;;
3231     esac
3232   done
3233   (set) 2>&1 |
3234     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3235     *${as_nl}ac_space=\ *)
3236       sed -n \
3237         "s/'\''/'\''\\\\'\'''\''/g;
3238           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3239       ;; #(
3240     *)
3241       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3242       ;;
3243     esac |
3244     sort
3245 )
3246     echo
3247 
3248     $as_echo "## ----------------- ##
3249 ## Output variables. ##
3250 ## ----------------- ##"
3251     echo
3252     for ac_var in $ac_subst_vars
3253     do
3254       eval ac_val=\$$ac_var
3255       case $ac_val in
3256       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3257       esac
3258       $as_echo "$ac_var='\''$ac_val'\''"
3259     done | sort
3260     echo
3261 
3262     if test -n "$ac_subst_files"; then
3263       $as_echo "## ------------------- ##
3264 ## File substitutions. ##
3265 ## ------------------- ##"
3266       echo
3267       for ac_var in $ac_subst_files
3268       do
3269         eval ac_val=\$$ac_var
3270         case $ac_val in
3271         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3272         esac
3273         $as_echo "$ac_var='\''$ac_val'\''"
3274       done | sort
3275       echo
3276     fi
3277 
3278     if test -s confdefs.h; then
3279       $as_echo "## ----------- ##
3280 ## confdefs.h. ##
3281 ## ----------- ##"
3282       echo
3283       cat confdefs.h
3284       echo
3285     fi
3286     test "$ac_signal" != 0 &&
3287       $as_echo "$as_me: caught signal $ac_signal"
3288     $as_echo "$as_me: exit $exit_status"
3289   } >&5
3290   rm -f core *.core core.conftest.* &&
3291     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3292     exit $exit_status
3293 ' 0
3294 for ac_signal in 1 2 13 15; do
3295   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3296 done
3297 ac_signal=0
3298 
3299 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3300 rm -f -r conftest* confdefs.h
3301 
3302 $as_echo "/* confdefs.h */" > confdefs.h
3303 
3304 # Predefined preprocessor variables.
3305 
3306 cat >>confdefs.h <<_ACEOF
3307 #define PACKAGE_NAME "$PACKAGE_NAME"
3308 _ACEOF
3309 
3310 cat >>confdefs.h <<_ACEOF
3311 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3312 _ACEOF
3313 
3314 cat >>confdefs.h <<_ACEOF
3315 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3316 _ACEOF
3317 
3318 cat >>confdefs.h <<_ACEOF
3319 #define PACKAGE_STRING "$PACKAGE_STRING"
3320 _ACEOF
3321 
3322 cat >>confdefs.h <<_ACEOF
3323 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3324 _ACEOF
3325 
3326 cat >>confdefs.h <<_ACEOF
3327 #define PACKAGE_URL "$PACKAGE_URL"
3328 _ACEOF
3329 
3330 
3331 # Let the site file select an alternate cache file if it wants to.
3332 # Prefer an explicitly selected file to automatically selected ones.
3333 ac_site_file1=NONE
3334 ac_site_file2=NONE
3335 if test -n "$CONFIG_SITE"; then
3336   # We do not want a PATH search for config.site.
3337   case $CONFIG_SITE in #((
3338     -*)  ac_site_file1=./$CONFIG_SITE;;
3339     */*) ac_site_file1=$CONFIG_SITE;;
3340     *)   ac_site_file1=./$CONFIG_SITE;;
3341   esac
3342 elif test "x$prefix" != xNONE; then
3343   ac_site_file1=$prefix/share/config.site
3344   ac_site_file2=$prefix/etc/config.site
3345 else
3346   ac_site_file1=$ac_default_prefix/share/config.site
3347   ac_site_file2=$ac_default_prefix/etc/config.site
3348 fi
3349 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3350 do
3351   test "x$ac_site_file" = xNONE && continue
3352   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3353     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3354 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3355     sed 's/^/| /' "$ac_site_file" >&5
3356     . "$ac_site_file" \
3357       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error $? "failed to load site script $ac_site_file
3360 See \`config.log' for more details" "$LINENO" 5; }
3361   fi
3362 done
3363 
3364 if test -r "$cache_file"; then
3365   # Some versions of bash will fail to source /dev/null (special files
3366   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3367   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3368     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3369 $as_echo "$as_me: loading cache $cache_file" >&6;}
3370     case $cache_file in
3371       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3372       *)                      . "./$cache_file";;
3373     esac
3374   fi
3375 else
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3377 $as_echo "$as_me: creating cache $cache_file" >&6;}
3378   >$cache_file
3379 fi
3380 
3381 # Check that the precious variables saved in the cache have kept the same
3382 # value.
3383 ac_cache_corrupted=false
3384 for ac_var in $ac_precious_vars; do
3385   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3386   eval ac_new_set=\$ac_env_${ac_var}_set
3387   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3388   eval ac_new_val=\$ac_env_${ac_var}_value
3389   case $ac_old_set,$ac_new_set in
3390     set,)
3391       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3392 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3393       ac_cache_corrupted=: ;;
3394     ,set)
3395       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3396 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3397       ac_cache_corrupted=: ;;
3398     ,);;
3399     *)
3400       if test "x$ac_old_val" != "x$ac_new_val"; then
3401         # differences in whitespace do not lead to failure.
3402         ac_old_val_w=`echo x $ac_old_val`
3403         ac_new_val_w=`echo x $ac_new_val`
3404         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3405           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3406 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3407           ac_cache_corrupted=:
3408         else
3409           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3410 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3411           eval $ac_var=\$ac_old_val
3412         fi
3413         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3414 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3415         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3416 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3417       fi;;
3418   esac
3419   # Pass precious variables to config.status.
3420   if test "$ac_new_set" = set; then
3421     case $ac_new_val in
3422     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3423     *) ac_arg=$ac_var=$ac_new_val ;;
3424     esac
3425     case " $ac_configure_args " in
3426       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3427       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3428     esac
3429   fi
3430 done
3431 if $ac_cache_corrupted; then
3432   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3435 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3436   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3437 fi
3438 ## -------------------- ##
3439 ## Main body of script. ##
3440 ## -------------------- ##
3441 
3442 ac_ext=c
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 
3448 
3449 
3450 ac_aux_dir=
3451 for ac_dir in $TOPDIR/make/autoconf/build-aux "$srcdir"/$TOPDIR/make/autoconf/build-aux; do
3452   if test -f "$ac_dir/install-sh"; then
3453     ac_aux_dir=$ac_dir
3454     ac_install_sh="$ac_aux_dir/install-sh -c"
3455     break
3456   elif test -f "$ac_dir/install.sh"; then
3457     ac_aux_dir=$ac_dir
3458     ac_install_sh="$ac_aux_dir/install.sh -c"
3459     break
3460   elif test -f "$ac_dir/shtool"; then
3461     ac_aux_dir=$ac_dir
3462     ac_install_sh="$ac_aux_dir/shtool install -c"
3463     break
3464   fi
3465 done
3466 if test -z "$ac_aux_dir"; then
3467   as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/make/autoconf/build-aux \"$srcdir\"/$TOPDIR/make/autoconf/build-aux" "$LINENO" 5
3468 fi
3469 
3470 # These three variables are undocumented and unsupported,
3471 # and are intended to be withdrawn in a future Autoconf release.
3472 # They can cause serious problems if a builder's source tree is in a directory
3473 # whose full name contains unusual characters.
3474 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3475 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3476 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3477 
3478 
3479 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3480 
3481 #
3482 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3483 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3484 #
3485 # This code is free software; you can redistribute it and/or modify it
3486 # under the terms of the GNU General Public License version 2 only, as
3487 # published by the Free Software Foundation.  Oracle designates this
3488 # particular file as subject to the "Classpath" exception as provided
3489 # by Oracle in the LICENSE file that accompanied this code.
3490 #
3491 # This code is distributed in the hope that it will be useful, but WITHOUT
3492 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3493 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3494 # version 2 for more details (a copy is included in the LICENSE file that
3495 # accompanied this code).
3496 #
3497 # You should have received a copy of the GNU General Public License version
3498 # 2 along with this work; if not, write to the Free Software Foundation,
3499 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3500 #
3501 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3502 # or visit www.oracle.com if you need additional information or have any
3503 # questions.
3504 #
3505 
3506 #
3507 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3508 #
3509 # This program is free software; you can redistribute it and/or modify
3510 # it under the terms of the GNU General Public License as published by
3511 # the Free Software Foundation; either version 2 of the License, or
3512 # (at your option) any later version.
3513 #
3514 # This program is distributed in the hope that it will be useful, but
3515 # WITHOUT ANY WARRANTY; without even the implied warranty of
3516 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3517 # General Public License for more details.
3518 #
3519 # You should have received a copy of the GNU General Public License
3520 # along with this program; if not, write to the Free Software
3521 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3522 #
3523 # As a special exception to the GNU General Public License, if you
3524 # distribute this file as part of a program that contains a
3525 # configuration script generated by Autoconf, you may include it under
3526 # the same distribution terms that you use for the rest of that program.
3527 
3528 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3529 # ----------------------------------
3530 # PKG_PROG_PKG_CONFIG
3531 
3532 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3533 #
3534 # Check to see whether a particular set of modules exists.  Similar
3535 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3536 #
3537 #
3538 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3539 # this or PKG_CHECK_MODULES is called, or make sure to call
3540 # PKG_CHECK_EXISTS manually
3541 # --------------------------------------------------------------
3542 
3543 
3544 
3545 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3546 # ---------------------------------------------
3547 # _PKG_CONFIG
3548 
3549 # _PKG_SHORT_ERRORS_SUPPORTED
3550 # -----------------------------
3551 # _PKG_SHORT_ERRORS_SUPPORTED
3552 
3553 
3554 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3555 # [ACTION-IF-NOT-FOUND])
3556 #
3557 #
3558 # Note that if there is a possibility the first call to
3559 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3560 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3561 #
3562 #
3563 # --------------------------------------------------------------
3564 # PKG_CHECK_MODULES
3565 
3566 
3567 # Include these first...
3568 #
3569 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3570 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3571 #
3572 # This code is free software; you can redistribute it and/or modify it
3573 # under the terms of the GNU General Public License version 2 only, as
3574 # published by the Free Software Foundation.  Oracle designates this
3575 # particular file as subject to the "Classpath" exception as provided
3576 # by Oracle in the LICENSE file that accompanied this code.
3577 #
3578 # This code is distributed in the hope that it will be useful, but WITHOUT
3579 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3580 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3581 # version 2 for more details (a copy is included in the LICENSE file that
3582 # accompanied this code).
3583 #
3584 # You should have received a copy of the GNU General Public License version
3585 # 2 along with this work; if not, write to the Free Software Foundation,
3586 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3587 #
3588 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3589 # or visit www.oracle.com if you need additional information or have any
3590 # questions.
3591 #
3592 
3593 # Create a function/macro that takes a series of named arguments. The call is
3594 # similar to AC_DEFUN, but the setup of the function looks like this:
3595 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3596 # ... do something
3597 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3598 # ])
3599 # A star (*) in front of a named argument means that it is required and it's
3600 # presence will be verified. To pass e.g. the first value as a normal indexed
3601 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3602 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3603 # "ARG_FOO".
3604 #
3605 # The generated function can be called like this:
3606 # MYFUNC(FOO: [foo-val],
3607 #     BAR: [
3608 #         $ECHO hello world
3609 #     ])
3610 # Note that the argument value must start on the same line as the argument name.
3611 #
3612 # Argument 1: Name of the function to define
3613 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3614 # Argument 3: Argument array to treat as named, typically $@
3615 # Argument 4: The main function body
3616 
3617 
3618 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3619 # If so, then append $1 to $2 \
3620 # Also set JVM_ARG_OK to true/false depending on outcome.
3621 
3622 
3623 # Appends a string to a path variable, only adding the : when needed.
3624 
3625 
3626 # Prepends a string to a path variable, only adding the : when needed.
3627 
3628 
3629 # This will make sure the given variable points to a full and proper
3630 # path. This means:
3631 # 1) There will be no spaces in the path. On unix platforms,
3632 #    spaces in the path will result in an error. On Windows,
3633 #    the path will be rewritten using short-style to be space-free.
3634 # 2) The path will be absolute, and it will be in unix-style (on
3635 #     cygwin).
3636 # $1: The name of the variable to fix
3637 
3638 
3639 # This will make sure the given variable points to a executable
3640 # with a full and proper path. This means:
3641 # 1) There will be no spaces in the path. On unix platforms,
3642 #    spaces in the path will result in an error. On Windows,
3643 #    the path will be rewritten using short-style to be space-free.
3644 # 2) The path will be absolute, and it will be in unix-style (on
3645 #     cygwin).
3646 # Any arguments given to the executable is preserved.
3647 # If the input variable does not have a directory specification, then
3648 # it need to be in the PATH.
3649 # $1: The name of the variable to fix
3650 
3651 
3652 
3653 
3654 # Register a --with argument but mark it as deprecated
3655 # $1: The name of the with argument to deprecate, not including --with-
3656 
3657 
3658 # Register a --enable argument but mark it as deprecated
3659 # $1: The name of the with argument to deprecate, not including --enable-
3660 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3661 # $3: Messages to user.
3662 
3663 
3664 
3665 
3666 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3667 # $1: variable to check
3668 
3669 
3670 # Check that there are no unprocessed overridden variables left.
3671 # If so, they are an incorrect argument and we will exit with an error.
3672 
3673 
3674 # Setup a tool for the given variable. If correctly specified by the user,
3675 # use that value, otherwise search for the tool using the supplied code snippet.
3676 # $1: variable to set
3677 # $2: code snippet to call to look for the tool
3678 # $3: code snippet to call if variable was used to find tool
3679 
3680 
3681 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3682 # $1: variable to set
3683 # $2: executable name (or list of names) to look for
3684 # $3: [path]
3685 
3686 
3687 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3688 # $1: variable to set
3689 # $2: executable name (or list of names) to look for
3690 
3691 
3692 # Like BASIC_PATH_PROGS but fails if no tool was found.
3693 # $1: variable to set
3694 # $2: executable name (or list of names) to look for
3695 # $3: [path]
3696 
3697 
3698 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3699 # $1: variable to set
3700 # $2: autoconf macro to call to look for the special tool
3701 
3702 
3703 # Setup the most fundamental tools that relies on not much else to set up,
3704 # but is used by much of the early bootstrap code.
3705 
3706 
3707 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3708 
3709 
3710 # Evaluates platform specific overrides for devkit variables.
3711 # $1: Name of variable
3712 
3713 
3714 
3715 
3716 
3717 
3718 #%%% Simple tools %%%
3719 
3720 # Check if we have found a usable version of make
3721 # $1: the path to a potential make binary (or empty)
3722 # $2: the description on how we found this
3723 
3724 
3725 
3726 
3727 # Goes looking for a usable version of GNU make.
3728 
3729 
3730 
3731 
3732 
3733 
3734 
3735 
3736 
3737 
3738 # Check if build directory is on local disk. If not possible to determine,
3739 # we prefer to claim it's local.
3740 # Argument 1: directory to test
3741 # Argument 2: what to do if it is on local disk
3742 # Argument 3: what to do otherwise (remote disk or failure)
3743 
3744 
3745 # Check that source files have basic read permissions set. This might
3746 # not be the case in cygwin in certain conditions.
3747 
3748 
3749 
3750 
3751 # Check for support for specific options in bash
3752 
3753 
3754 ################################################################################
3755 #
3756 # Default make target
3757 #
3758 
3759 
3760 # Code to run after AC_OUTPUT
3761 
3762 
3763 #
3764 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3765 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3766 #
3767 # This code is free software; you can redistribute it and/or modify it
3768 # under the terms of the GNU General Public License version 2 only, as
3769 # published by the Free Software Foundation.  Oracle designates this
3770 # particular file as subject to the "Classpath" exception as provided
3771 # by Oracle in the LICENSE file that accompanied this code.
3772 #
3773 # This code is distributed in the hope that it will be useful, but WITHOUT
3774 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3775 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3776 # version 2 for more details (a copy is included in the LICENSE file that
3777 # accompanied this code).
3778 #
3779 # You should have received a copy of the GNU General Public License version
3780 # 2 along with this work; if not, write to the Free Software Foundation,
3781 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3782 #
3783 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3784 # or visit www.oracle.com if you need additional information or have any
3785 # questions.
3786 #
3787 
3788 
3789 
3790 
3791 
3792 # Helper function which possibly converts a path using DOS-style short mode.
3793 # If so, the updated path is stored in $new_path.
3794 # $1: The path to check
3795 
3796 
3797 # Helper function which possibly converts a path using DOS-style short mode.
3798 # If so, the updated path is stored in $new_path.
3799 # $1: The path to check
3800 
3801 
3802 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3803 # and could probably be heavily simplified. However, all changes in this
3804 # area tend to need lot of testing in different scenarios, and in lack of
3805 # proper unit testing, cleaning this up has not been deemed worth the effort
3806 # at the moment.
3807 
3808 
3809 
3810 
3811 
3812 
3813 
3814 
3815 
3816 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3817 
3818 
3819 
3820 
3821 # ... then the rest
3822 #
3823 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3824 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3825 #
3826 # This code is free software; you can redistribute it and/or modify it
3827 # under the terms of the GNU General Public License version 2 only, as
3828 # published by the Free Software Foundation.  Oracle designates this
3829 # particular file as subject to the "Classpath" exception as provided
3830 # by Oracle in the LICENSE file that accompanied this code.
3831 #
3832 # This code is distributed in the hope that it will be useful, but WITHOUT
3833 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3834 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3835 # version 2 for more details (a copy is included in the LICENSE file that
3836 # accompanied this code).
3837 #
3838 # You should have received a copy of the GNU General Public License version
3839 # 2 along with this work; if not, write to the Free Software Foundation,
3840 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3841 #
3842 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3843 # or visit www.oracle.com if you need additional information or have any
3844 # questions.
3845 #
3846 
3847 ########################################################################
3848 # This file handles detection of the Boot JDK. The Boot JDK detection
3849 # process has been developed as a response to solve a complex real-world
3850 # problem. Initially, it was simple, but it has grown as platform after
3851 # platform, idiosyncracy after idiosyncracy has been supported.
3852 #
3853 # The basic idea is this:
3854 # 1) You need an acceptable *) JDK to use as a Boot JDK
3855 # 2) There are several ways to locate a JDK, that are mostly platform
3856 #    dependent **)
3857 # 3) You can have multiple JDKs installed
3858 # 4) If possible, configure should try to dig out an acceptable JDK
3859 #    automatically, without having to resort to command-line options
3860 #
3861 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3862 #     javac) and not a JRE, etc.
3863 #
3864 # **) On Windows we typically use a well-known path.
3865 #     On MacOSX we typically use the tool java_home.
3866 #     On Linux we typically find javac in the $PATH, and then follow a
3867 #     chain of symlinks that often ends up in a real JDK.
3868 #
3869 # This leads to the code where we check in different ways to locate a
3870 # JDK, and if one is found, check if it is acceptable. If not, we print
3871 # our reasons for rejecting it (useful when debugging non-working
3872 # configure situations) and continue checking the next one.
3873 ########################################################################
3874 
3875 # Execute the check given as argument, and verify the result
3876 # If the Boot JDK was previously found, do nothing
3877 # $1 A command line (typically autoconf macro) to execute
3878 
3879 
3880 # Test: Is bootjdk explicitly set by command line arguments?
3881 
3882 
3883 # Test: Is $JAVA_HOME set?
3884 
3885 
3886 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3887 
3888 
3889 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3890 # $1: Argument to the java_home binary (optional)
3891 
3892 
3893 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3894 
3895 
3896 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3897 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3898 # $1 = Path to directory containing jdk installations.
3899 # $2 = String to append to the found JDK directory to get the proper JDK home
3900 
3901 
3902 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3903 # environmental variable as base for where to look.
3904 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3905 
3906 
3907 # Test: Is there a JDK installed in default, well-known locations?
3908 
3909 
3910 # Check that a command-line tool in the Boot JDK is correct
3911 # $1 = name of variable to assign
3912 # $2 = name of binary
3913 
3914 
3915 ###############################################################################
3916 #
3917 # We need a Boot JDK to bootstrap the build.
3918 #
3919 
3920 
3921 
3922 
3923 
3924 # BUILD_JDK: the location of the latest JDK that can run
3925 #   on the host system and supports the target class file version
3926 #   generated in this JDK build.  This variable should only be
3927 #   used after the launchers are built.
3928 #
3929 
3930 # Execute the check given as argument, and verify the result.
3931 # If the JDK was previously found, do nothing.
3932 # $1 A command line (typically autoconf macro) to execute
3933 
3934 
3935 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3936 # is different than the host system doing the build (e.g. cross-compilation),
3937 # a special BUILD_JDK is built as part of the build process.  An external
3938 # prebuilt BUILD_JDK can also be supplied.
3939 
3940 
3941 #
3942 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3943 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3944 #
3945 # This code is free software; you can redistribute it and/or modify it
3946 # under the terms of the GNU General Public License version 2 only, as
3947 # published by the Free Software Foundation.  Oracle designates this
3948 # particular file as subject to the "Classpath" exception as provided
3949 # by Oracle in the LICENSE file that accompanied this code.
3950 #
3951 # This code is distributed in the hope that it will be useful, but WITHOUT
3952 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3953 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3954 # version 2 for more details (a copy is included in the LICENSE file that
3955 # accompanied this code).
3956 #
3957 # You should have received a copy of the GNU General Public License version
3958 # 2 along with this work; if not, write to the Free Software Foundation,
3959 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3960 #
3961 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3962 # or visit www.oracle.com if you need additional information or have any
3963 # questions.
3964 #
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 
3976 
3977 
3978 
3979 
3980 
3981 
3982 ################################################################################
3983 #
3984 # Runs icecc-create-env once and prints the error if it fails
3985 #
3986 # $1: arguments to icecc-create-env
3987 # $2: log file
3988 #
3989 
3990 
3991 ################################################################################
3992 #
3993 # Optionally enable distributed compilation of native code using icecc/icecream
3994 #
3995 
3996 
3997 
3998 
3999 
4000 
4001 
4002 #
4003 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4004 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4005 #
4006 # This code is free software; you can redistribute it and/or modify it
4007 # under the terms of the GNU General Public License version 2 only, as
4008 # published by the Free Software Foundation.  Oracle designates this
4009 # particular file as subject to the "Classpath" exception as provided
4010 # by Oracle in the LICENSE file that accompanied this code.
4011 #
4012 # This code is distributed in the hope that it will be useful, but WITHOUT
4013 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4014 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4015 # version 2 for more details (a copy is included in the LICENSE file that
4016 # accompanied this code).
4017 #
4018 # You should have received a copy of the GNU General Public License version
4019 # 2 along with this work; if not, write to the Free Software Foundation,
4020 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4021 #
4022 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4023 # or visit www.oracle.com if you need additional information or have any
4024 # questions.
4025 #
4026 
4027 ################################################################################
4028 #
4029 # Setup ABI profile (for arm)
4030 #
4031 
4032 
4033 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4034 # corresponding configure arguments instead
4035 
4036 
4037 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4038 # that configure can use them while detecting compilers.
4039 # TOOLCHAIN_TYPE is available here.
4040 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4041 
4042 
4043 
4044 
4045 
4046 
4047 # Documentation on common flags used for solstudio in HIGHEST.
4048 #
4049 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4050 #          done with care, there are some assumptions below that need to
4051 #          be understood about the use of pointers, and IEEE behavior.
4052 #
4053 # -fns: Use non-standard floating point mode (not IEEE 754)
4054 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4055 # -fsingle: Use single precision floating point with 'float'
4056 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4057 #   (Source with excessing pointer casting and data access with mixed
4058 #    pointer types are not recommended)
4059 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4060 #   (If you expect perfect errno behavior, do not use this)
4061 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4062 # -xrestrict: Pointer parameters to functions do not overlap
4063 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4064 #    If you pass in multiple pointers to the same data, do not use this)
4065 # -xlibmil: Inline some library routines
4066 #   (If you expect perfect errno behavior, do not use this)
4067 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4068 #   (If you expect perfect errno behavior, do not use this)
4069 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4070 
4071     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4072     # Bug?
4073     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4074     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4075     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4076     #fi
4077 
4078 
4079 
4080 
4081 
4082 
4083 ################################################################################
4084 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4085 #      conditionals against.
4086 # $2 - Optional prefix for each variable defined.
4087 
4088 
4089 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4090 #                                  IF_FALSE: [RUN-IF-FALSE])
4091 # ------------------------------------------------------------
4092 # Check that the C compiler supports an argument
4093 
4094 
4095 
4096 
4097 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4098 #                                    IF_FALSE: [RUN-IF-FALSE])
4099 # ------------------------------------------------------------
4100 # Check that the C++ compiler supports an argument
4101 
4102 
4103 
4104 
4105 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4106 #                                IF_FALSE: [RUN-IF-FALSE])
4107 # ------------------------------------------------------------
4108 # Check that the C and C++ compilers support an argument
4109 
4110 
4111 
4112 
4113 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4114 #                                   IF_FALSE: [RUN-IF-FALSE])
4115 # ------------------------------------------------------------
4116 # Check that the linker support an argument
4117 
4118 
4119 
4120 
4121 
4122 
4123 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4124 # Arguments:
4125 # $1 - Optional prefix for each variable defined.
4126 
4127 
4128 #
4129 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4130 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4131 #
4132 # This code is free software; you can redistribute it and/or modify it
4133 # under the terms of the GNU General Public License version 2 only, as
4134 # published by the Free Software Foundation.  Oracle designates this
4135 # particular file as subject to the "Classpath" exception as provided
4136 # by Oracle in the LICENSE file that accompanied this code.
4137 #
4138 # This code is distributed in the hope that it will be useful, but WITHOUT
4139 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4140 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4141 # version 2 for more details (a copy is included in the LICENSE file that
4142 # accompanied this code).
4143 #
4144 # You should have received a copy of the GNU General Public License version
4145 # 2 along with this work; if not, write to the Free Software Foundation,
4146 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4147 #
4148 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4149 # or visit www.oracle.com if you need additional information or have any
4150 # questions.
4151 #
4152 
4153 
4154 
4155 
4156 
4157 cygwin_help() {
4158   case $1 in
4159     unzip)
4160       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4161       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4162       ;;
4163     zip)
4164       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4165       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4166       ;;
4167     make)
4168       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4169       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4170       ;;
4171     freetype)
4172       HELP_MSG="
4173 The freetype library can now be build during the configure process.
4174 Download the freetype sources and unpack them into an arbitrary directory:
4175 
4176 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4177 tar -xzf freetype-2.5.3.tar.gz
4178 
4179 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4180 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4181 builds or into '<freetype_src>/lib32' for 32-bit builds.
4182 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4183 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4184 
4185 Alternatively you can unpack the sources like this to use the default directory:
4186 
4187 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4188       ;;
4189   esac
4190 }
4191 
4192 msys_help() {
4193   PKGHANDLER_COMMAND=""
4194 }
4195 
4196 apt_help() {
4197   case $1 in
4198     reduced)
4199       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4200     devkit)
4201       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4202     openjdk)
4203       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4204     alsa)
4205       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4206     cups)
4207       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4208     fontconfig)
4209       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
4210     freetype)
4211       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4212     ffi)
4213       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4214     x11)
4215       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4216     ccache)
4217       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4218     dtrace)
4219       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4220   esac
4221 }
4222 
4223 yum_help() {
4224   case $1 in
4225     devkit)
4226       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4227     openjdk)
4228       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4229     alsa)
4230       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4231     cups)
4232       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4233     fontconfig)
4234       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
4235     freetype)
4236       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4237     x11)
4238       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4239     ccache)
4240       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4241   esac
4242 }
4243 
4244 brew_help() {
4245   case $1 in
4246     openjdk)
4247       PKGHANDLER_COMMAND="brew cask install java" ;;
4248     freetype)
4249       PKGHANDLER_COMMAND="brew install freetype" ;;
4250     ccache)
4251       PKGHANDLER_COMMAND="brew install ccache" ;;
4252   esac
4253 }
4254 
4255 port_help() {
4256   PKGHANDLER_COMMAND=""
4257 }
4258 
4259 pkgutil_help() {
4260   PKGHANDLER_COMMAND=""
4261 }
4262 
4263 pkgadd_help() {
4264   PKGHANDLER_COMMAND=""
4265 }
4266 
4267 # This function will check if we're called from the "configure" wrapper while
4268 # printing --help. If so, we will print out additional information that can
4269 # only be extracted within the autoconf script, and then exit. This must be
4270 # called at the very beginning in configure.ac.
4271 
4272 
4273 
4274 
4275 
4276 
4277 #
4278 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4279 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4280 #
4281 # This code is free software; you can redistribute it and/or modify it
4282 # under the terms of the GNU General Public License version 2 only, as
4283 # published by the Free Software Foundation.  Oracle designates this
4284 # particular file as subject to the "Classpath" exception as provided
4285 # by Oracle in the LICENSE file that accompanied this code.
4286 #
4287 # This code is distributed in the hope that it will be useful, but WITHOUT
4288 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4289 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4290 # version 2 for more details (a copy is included in the LICENSE file that
4291 # accompanied this code).
4292 #
4293 # You should have received a copy of the GNU General Public License version
4294 # 2 along with this work; if not, write to the Free Software Foundation,
4295 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4296 #
4297 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4298 # or visit www.oracle.com if you need additional information or have any
4299 # questions.
4300 #
4301 
4302 # All valid JVM features, regardless of platform
4303 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \
4304     graal vm-structs jni-check services management all-gcs nmt cds \
4305     static-build link-time-opt aot"
4306 
4307 # All valid JVM variants
4308 VALID_JVM_VARIANTS="server client minimal core zero custom"
4309 
4310 ###############################################################################
4311 # Check if the specified JVM variant should be built. To be used in shell if
4312 # constructs, like this:
4313 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4314 #
4315 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4316 
4317 # Definition kept in one line to allow inlining in if statements.
4318 # Additional [] needed to keep m4 from mangling shell constructs.
4319 
4320 
4321 ###############################################################################
4322 # Check if the specified JVM features are explicitly enabled. To be used in
4323 # shell if constructs, like this:
4324 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4325 #
4326 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4327 
4328 # Definition kept in one line to allow inlining in if statements.
4329 # Additional [] needed to keep m4 from mangling shell constructs.
4330 
4331 
4332 ###############################################################################
4333 # Check which variants of the JVM that we want to build. Available variants are:
4334 #   server: normal interpreter, and a tiered C1/C2 compiler
4335 #   client: normal interpreter, and C1 (no C2 compiler)
4336 #   minimal: reduced form of client with optional features stripped out
4337 #   core: normal interpreter only, no compiler
4338 #   zero: C++ based interpreter only, no compiler
4339 #   custom: baseline JVM with no default features
4340 #
4341 
4342 
4343 ###############################################################################
4344 # Check if dtrace should be enabled and has all prerequisites present.
4345 #
4346 
4347 
4348 ################################################################################
4349 # Check if AOT should be enabled
4350 #
4351 
4352 
4353 ################################################################################
4354 # Allow to disable CDS
4355 #
4356 
4357 
4358 ###############################################################################
4359 # Set up all JVM features for each JVM variant.
4360 #
4361 
4362 
4363 ###############################################################################
4364 # Validate JVM features once all setup is complete, including custom setup.
4365 #
4366 
4367 
4368 ################################################################################
4369 #
4370 # Specify which sources will be used to build the 64-bit ARM port
4371 #
4372 # --with-cpu-port=arm64   will use hotspot/src/cpu/arm
4373 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4374 #
4375 
4376 
4377 
4378 ################################################################################
4379 # Check if gtest should be built
4380 #
4381 
4382 
4383 #
4384 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4385 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4386 #
4387 # This code is free software; you can redistribute it and/or modify it
4388 # under the terms of the GNU General Public License version 2 only, as
4389 # published by the Free Software Foundation.  Oracle designates this
4390 # particular file as subject to the "Classpath" exception as provided
4391 # by Oracle in the LICENSE file that accompanied this code.
4392 #
4393 # This code is distributed in the hope that it will be useful, but WITHOUT
4394 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4395 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4396 # version 2 for more details (a copy is included in the LICENSE file that
4397 # accompanied this code).
4398 #
4399 # You should have received a copy of the GNU General Public License version
4400 # 2 along with this work; if not, write to the Free Software Foundation,
4401 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4402 #
4403 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4404 # or visit www.oracle.com if you need additional information or have any
4405 # questions.
4406 #
4407 
4408 ###############################################################################
4409 # Check which variant of the JDK that we want to build.
4410 # Currently we have:
4411 #    normal:   standard edition
4412 # but the custom make system may add other variants
4413 #
4414 # Effectively the JDK variant gives a name to a specific set of
4415 # modules to compile into the JDK.
4416 
4417 
4418 ###############################################################################
4419 # Set the debug level
4420 #    release: no debug information, all optimizations, no asserts.
4421 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4422 #    fastdebug: debug information (-g), all optimizations, all asserts
4423 #    slowdebug: debug information (-g), no optimizations, all asserts
4424 
4425 
4426 ###############################################################################
4427 #
4428 # Should we build only OpenJDK even if closed sources are present?
4429 #
4430 
4431 
4432 
4433 
4434 ###############################################################################
4435 #
4436 # Enable or disable the elliptic curve crypto implementation
4437 #
4438 
4439 
4440 
4441 
4442 ################################################################################
4443 #
4444 # Gcov coverage data for hotspot
4445 #
4446 
4447 
4448 ###############################################################################
4449 #
4450 # AddressSanitizer
4451 #
4452 
4453 
4454 ################################################################################
4455 #
4456 # Static build support.  When enabled will generate static
4457 # libraries instead of shared libraries for all JDK libs.
4458 #
4459 
4460 
4461 ################################################################################
4462 #
4463 # jlink options.
4464 # We always keep packaged modules in JDK image.
4465 #
4466 
4467 
4468 ################################################################################
4469 #
4470 # Check if building of the jtreg failure handler should be enabled.
4471 #
4472 
4473 
4474 ################################################################################
4475 #
4476 # Enable or disable generation of the classlist at build time
4477 #
4478 
4479 
4480 #
4481 # Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
4482 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4483 #
4484 # This code is free software; you can redistribute it and/or modify it
4485 # under the terms of the GNU General Public License version 2 only, as
4486 # published by the Free Software Foundation.  Oracle designates this
4487 # particular file as subject to the "Classpath" exception as provided
4488 # by Oracle in the LICENSE file that accompanied this code.
4489 #
4490 # This code is distributed in the hope that it will be useful, but WITHOUT
4491 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4492 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4493 # version 2 for more details (a copy is included in the LICENSE file that
4494 # accompanied this code).
4495 #
4496 # You should have received a copy of the GNU General Public License version
4497 # 2 along with this work; if not, write to the Free Software Foundation,
4498 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4499 #
4500 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4501 # or visit www.oracle.com if you need additional information or have any
4502 # questions.
4503 #
4504 
4505 ###############################################################################
4506 #
4507 # Setup version numbers
4508 #
4509 
4510 # Verify that a given string represents a valid version number, and assign it
4511 # to a variable.
4512 
4513 # Argument 1: the variable to assign to
4514 # Argument 2: the value given by the user
4515 
4516 
4517 
4518 
4519 #
4520 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4521 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4522 #
4523 # This code is free software; you can redistribute it and/or modify it
4524 # under the terms of the GNU General Public License version 2 only, as
4525 # published by the Free Software Foundation.  Oracle designates this
4526 # particular file as subject to the "Classpath" exception as provided
4527 # by Oracle in the LICENSE file that accompanied this code.
4528 #
4529 # This code is distributed in the hope that it will be useful, but WITHOUT
4530 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4531 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4532 # version 2 for more details (a copy is included in the LICENSE file that
4533 # accompanied this code).
4534 #
4535 # You should have received a copy of the GNU General Public License version
4536 # 2 along with this work; if not, write to the Free Software Foundation,
4537 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4538 #
4539 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4540 # or visit www.oracle.com if you need additional information or have any
4541 # questions.
4542 #
4543 
4544 # Major library component reside in separate files.
4545 #
4546 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4547 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4548 #
4549 # This code is free software; you can redistribute it and/or modify it
4550 # under the terms of the GNU General Public License version 2 only, as
4551 # published by the Free Software Foundation.  Oracle designates this
4552 # particular file as subject to the "Classpath" exception as provided
4553 # by Oracle in the LICENSE file that accompanied this code.
4554 #
4555 # This code is distributed in the hope that it will be useful, but WITHOUT
4556 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4557 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4558 # version 2 for more details (a copy is included in the LICENSE file that
4559 # accompanied this code).
4560 #
4561 # You should have received a copy of the GNU General Public License version
4562 # 2 along with this work; if not, write to the Free Software Foundation,
4563 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4564 #
4565 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4566 # or visit www.oracle.com if you need additional information or have any
4567 # questions.
4568 #
4569 
4570 ################################################################################
4571 # Setup alsa (Advanced Linux Sound Architecture)
4572 ################################################################################
4573 
4574 
4575 #
4576 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4577 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4578 #
4579 # This code is free software; you can redistribute it and/or modify it
4580 # under the terms of the GNU General Public License version 2 only, as
4581 # published by the Free Software Foundation.  Oracle designates this
4582 # particular file as subject to the "Classpath" exception as provided
4583 # by Oracle in the LICENSE file that accompanied this code.
4584 #
4585 # This code is distributed in the hope that it will be useful, but WITHOUT
4586 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4587 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4588 # version 2 for more details (a copy is included in the LICENSE file that
4589 # accompanied this code).
4590 #
4591 # You should have received a copy of the GNU General Public License version
4592 # 2 along with this work; if not, write to the Free Software Foundation,
4593 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4594 #
4595 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4596 # or visit www.oracle.com if you need additional information or have any
4597 # questions.
4598 #
4599 
4600 ################################################################################
4601 # Setup bundled libraries.
4602 #
4603 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4604 # OpenJDK repository. Default is to use these libraries as bundled, but they
4605 # might be replaced by en external version by the user.
4606 ################################################################################
4607 
4608 
4609 ################################################################################
4610 # Setup libjpeg
4611 ################################################################################
4612 
4613 
4614 ################################################################################
4615 # Setup giflib
4616 ################################################################################
4617 
4618 
4619 ################################################################################
4620 # Setup libpng
4621 ################################################################################
4622 
4623 
4624 ################################################################################
4625 # Setup zlib
4626 ################################################################################
4627 
4628 
4629 ################################################################################
4630 # Setup lcms (Little CMS)
4631 ################################################################################
4632 
4633 
4634 #
4635 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4636 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4637 #
4638 # This code is free software; you can redistribute it and/or modify it
4639 # under the terms of the GNU General Public License version 2 only, as
4640 # published by the Free Software Foundation.  Oracle designates this
4641 # particular file as subject to the "Classpath" exception as provided
4642 # by Oracle in the LICENSE file that accompanied this code.
4643 #
4644 # This code is distributed in the hope that it will be useful, but WITHOUT
4645 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4646 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4647 # version 2 for more details (a copy is included in the LICENSE file that
4648 # accompanied this code).
4649 #
4650 # You should have received a copy of the GNU General Public License version
4651 # 2 along with this work; if not, write to the Free Software Foundation,
4652 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4653 #
4654 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4655 # or visit www.oracle.com if you need additional information or have any
4656 # questions.
4657 #
4658 
4659 ################################################################################
4660 # Setup cups (Common Unix Printing System)
4661 ################################################################################
4662 
4663 
4664 #
4665 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4666 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4667 #
4668 # This code is free software; you can redistribute it and/or modify it
4669 # under the terms of the GNU General Public License version 2 only, as
4670 # published by the Free Software Foundation.  Oracle designates this
4671 # particular file as subject to the "Classpath" exception as provided
4672 # by Oracle in the LICENSE file that accompanied this code.
4673 #
4674 # This code is distributed in the hope that it will be useful, but WITHOUT
4675 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4676 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4677 # version 2 for more details (a copy is included in the LICENSE file that
4678 # accompanied this code).
4679 #
4680 # You should have received a copy of the GNU General Public License version
4681 # 2 along with this work; if not, write to the Free Software Foundation,
4682 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4683 #
4684 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4685 # or visit www.oracle.com if you need additional information or have any
4686 # questions.
4687 #
4688 
4689 ################################################################################
4690 # Setup libffi (Foreign Function Interface)
4691 ################################################################################
4692 
4693 
4694 #
4695 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4696 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4697 #
4698 # This code is free software; you can redistribute it and/or modify it
4699 # under the terms of the GNU General Public License version 2 only, as
4700 # published by the Free Software Foundation.  Oracle designates this
4701 # particular file as subject to the "Classpath" exception as provided
4702 # by Oracle in the LICENSE file that accompanied this code.
4703 #
4704 # This code is distributed in the hope that it will be useful, but WITHOUT
4705 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4706 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4707 # version 2 for more details (a copy is included in the LICENSE file that
4708 # accompanied this code).
4709 #
4710 # You should have received a copy of the GNU General Public License version
4711 # 2 along with this work; if not, write to the Free Software Foundation,
4712 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4713 #
4714 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4715 # or visit www.oracle.com if you need additional information or have any
4716 # questions.
4717 #
4718 
4719 ################################################################################
4720 # Build the freetype lib from source
4721 ################################################################################
4722 
4723 
4724 ################################################################################
4725 # Check if a potential freeype library match is correct and usable
4726 ################################################################################
4727 
4728 
4729 ################################################################################
4730 # Setup freetype (The FreeType2 font rendering library)
4731 ################################################################################
4732 
4733 
4734 #
4735 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4736 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4737 #
4738 # This code is free software; you can redistribute it and/or modify it
4739 # under the terms of the GNU General Public License version 2 only, as
4740 # published by the Free Software Foundation.  Oracle designates this
4741 # particular file as subject to the "Classpath" exception as provided
4742 # by Oracle in the LICENSE file that accompanied this code.
4743 #
4744 # This code is distributed in the hope that it will be useful, but WITHOUT
4745 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4746 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4747 # version 2 for more details (a copy is included in the LICENSE file that
4748 # accompanied this code).
4749 #
4750 # You should have received a copy of the GNU General Public License version
4751 # 2 along with this work; if not, write to the Free Software Foundation,
4752 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4753 #
4754 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4755 # or visit www.oracle.com if you need additional information or have any
4756 # questions.
4757 #
4758 
4759 ################################################################################
4760 # Setup the standard C/C++ runtime libraries.
4761 #
4762 # Most importantly, determine if stdc++ should be linked statically or
4763 # dynamically.
4764 ################################################################################
4765 
4766 
4767 #
4768 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4769 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4770 #
4771 # This code is free software; you can redistribute it and/or modify it
4772 # under the terms of the GNU General Public License version 2 only, as
4773 # published by the Free Software Foundation.  Oracle designates this
4774 # particular file as subject to the "Classpath" exception as provided
4775 # by Oracle in the LICENSE file that accompanied this code.
4776 #
4777 # This code is distributed in the hope that it will be useful, but WITHOUT
4778 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4779 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4780 # version 2 for more details (a copy is included in the LICENSE file that
4781 # accompanied this code).
4782 #
4783 # You should have received a copy of the GNU General Public License version
4784 # 2 along with this work; if not, write to the Free Software Foundation,
4785 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4786 #
4787 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4788 # or visit www.oracle.com if you need additional information or have any
4789 # questions.
4790 #
4791 
4792 ################################################################################
4793 # Setup X11 Windows system
4794 ################################################################################
4795 
4796 
4797 #
4798 # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
4799 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4800 #
4801 # This code is free software; you can redistribute it and/or modify it
4802 # under the terms of the GNU General Public License version 2 only, as
4803 # published by the Free Software Foundation.  Oracle designates this
4804 # particular file as subject to the "Classpath" exception as provided
4805 # by Oracle in the LICENSE file that accompanied this code.
4806 #
4807 # This code is distributed in the hope that it will be useful, but WITHOUT
4808 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4809 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4810 # version 2 for more details (a copy is included in the LICENSE file that
4811 # accompanied this code).
4812 #
4813 # You should have received a copy of the GNU General Public License version
4814 # 2 along with this work; if not, write to the Free Software Foundation,
4815 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4816 #
4817 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4818 # or visit www.oracle.com if you need additional information or have any
4819 # questions.
4820 #
4821 
4822 ################################################################################
4823 # Setup fontconfig
4824 ################################################################################
4825 
4826 
4827 
4828 ################################################################################
4829 # Determine which libraries are needed for this configuration
4830 ################################################################################
4831 
4832 
4833 ################################################################################
4834 # Parse library options, and setup needed libraries
4835 ################################################################################
4836 
4837 
4838 ################################################################################
4839 # Setup various libraries, typically small system libraries
4840 ################################################################################
4841 
4842 
4843 ################################################################################
4844 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4845 # redistribute it in the test image.
4846 ################################################################################
4847 
4848 
4849 
4850 #
4851 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4852 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4853 #
4854 # This code is free software; you can redistribute it and/or modify it
4855 # under the terms of the GNU General Public License version 2 only, as
4856 # published by the Free Software Foundation.  Oracle designates this
4857 # particular file as subject to the "Classpath" exception as provided
4858 # by Oracle in the LICENSE file that accompanied this code.
4859 #
4860 # This code is distributed in the hope that it will be useful, but WITHOUT
4861 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4862 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4863 # version 2 for more details (a copy is included in the LICENSE file that
4864 # accompanied this code).
4865 #
4866 # You should have received a copy of the GNU General Public License version
4867 # 2 along with this work; if not, write to the Free Software Foundation,
4868 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4869 #
4870 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4871 # or visit www.oracle.com if you need additional information or have any
4872 # questions.
4873 #
4874 
4875 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4876 # Converts autoconf style CPU name to OpenJDK style, into
4877 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4878 
4879 
4880 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4881 # Converts autoconf style OS name to OpenJDK style, into
4882 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4883 
4884 
4885 # Expects $host_os $host_cpu $build_os and $build_cpu
4886 # and $with_target_bits to have been setup!
4887 #
4888 # Translate the standard triplet(quadruplet) definition
4889 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4890 # OPENJDK_BUILD_OS, etc.
4891 
4892 
4893 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4894 # accordingly. Must be done after setting up build and target system, but before
4895 # doing anything else with these values.
4896 
4897 
4898 # Setup the legacy variables, for controlling the old makefiles.
4899 #
4900 
4901 
4902 # $1 - Either TARGET or BUILD to setup the variables for.
4903 
4904 
4905 
4906 
4907 
4908 
4909 #%%% Build and target systems %%%
4910 
4911 
4912 
4913 
4914 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4915 # Add -mX to various FLAGS variables.
4916 
4917 
4918 
4919 
4920 
4921 
4922 #
4923 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4924 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4925 #
4926 # This code is free software; you can redistribute it and/or modify it
4927 # under the terms of the GNU General Public License version 2 only, as
4928 # published by the Free Software Foundation.  Oracle designates this
4929 # particular file as subject to the "Classpath" exception as provided
4930 # by Oracle in the LICENSE file that accompanied this code.
4931 #
4932 # This code is distributed in the hope that it will be useful, but WITHOUT
4933 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4934 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4935 # version 2 for more details (a copy is included in the LICENSE file that
4936 # accompanied this code).
4937 #
4938 # You should have received a copy of the GNU General Public License version
4939 # 2 along with this work; if not, write to the Free Software Foundation,
4940 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4941 #
4942 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4943 # or visit www.oracle.com if you need additional information or have any
4944 # questions.
4945 #
4946 
4947 
4948 
4949 ################################################################################
4950 # Define a mechanism for importing extra prebuilt modules
4951 #
4952 
4953 
4954 
4955 #
4956 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4957 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4958 #
4959 # This code is free software; you can redistribute it and/or modify it
4960 # under the terms of the GNU General Public License version 2 only, as
4961 # published by the Free Software Foundation.  Oracle designates this
4962 # particular file as subject to the "Classpath" exception as provided
4963 # by Oracle in the LICENSE file that accompanied this code.
4964 #
4965 # This code is distributed in the hope that it will be useful, but WITHOUT
4966 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4967 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4968 # version 2 for more details (a copy is included in the LICENSE file that
4969 # accompanied this code).
4970 #
4971 # You should have received a copy of the GNU General Public License version
4972 # 2 along with this work; if not, write to the Free Software Foundation,
4973 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4974 #
4975 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4976 # or visit www.oracle.com if you need additional information or have any
4977 # questions.
4978 #
4979 
4980 ########################################################################
4981 # This file is responsible for detecting, verifying and setting up the
4982 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4983 # proper paths to the binaries, but it will not setup any flags.
4984 #
4985 # The binaries used is determined by the toolchain type, which is the family of
4986 # compilers and related tools that are used.
4987 ########################################################################
4988 
4989 
4990 # All valid toolchains, regardless of platform (used by help.m4)
4991 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4992 
4993 # These toolchains are valid on different platforms
4994 VALID_TOOLCHAINS_linux="gcc clang"
4995 VALID_TOOLCHAINS_solaris="solstudio"
4996 VALID_TOOLCHAINS_macosx="gcc clang"
4997 VALID_TOOLCHAINS_aix="xlc"
4998 VALID_TOOLCHAINS_windows="microsoft"
4999 
5000 # Toolchain descriptions
5001 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
5002 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
5003 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
5004 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
5005 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
5006 
5007 # Minimum supported versions, empty means unspecified
5008 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
5009 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7"
5010 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010
5011 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
5012 TOOLCHAIN_MINIMUM_VERSION_xlc=""
5013 
5014 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
5015 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
5016 # $1 - optional variable prefix for compiler and version variables (BUILD_)
5017 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
5018 
5019 
5020 # Check if the configured compiler (C and C++) is of a specific version or
5021 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
5022 #
5023 # Arguments:
5024 #   VERSION:   The version string to check against the found version
5025 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
5026 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
5027 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
5028 
5029 
5030 
5031 
5032 # Setup a number of variables describing how native output files are
5033 # named on this platform/toolchain.
5034 
5035 
5036 # Determine which toolchain type to use, and make sure it is valid for this
5037 # platform. Setup various information about the selected toolchain.
5038 
5039 
5040 # Before we start detecting the toolchain executables, we might need some
5041 # special setup, e.g. additional paths etc.
5042 
5043 
5044 # Restore path, etc
5045 
5046 
5047 # Check if a compiler is of the toolchain type we expect, and save the version
5048 # information from it. If the compiler does not match the expected type,
5049 # this function will abort using AC_MSG_ERROR. If it matches, the version will
5050 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
5051 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
5052 #
5053 # $1 = compiler to test (CC or CXX)
5054 # $2 = human readable name of compiler (C or C++)
5055 
5056 
5057 # Try to locate the given C or C++ compiler in the path, or otherwise.
5058 #
5059 # $1 = compiler to test (CC or CXX)
5060 # $2 = human readable name of compiler (C or C++)
5061 # $3 = compiler name to search for
5062 
5063 
5064 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
5065 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
5066 # archiver (AR). Verify that the compilers are correct according to the
5067 # toolchain type.
5068 
5069 
5070 # Setup additional tools that is considered a part of the toolchain, but not the
5071 # core part. Many of these are highly platform-specific and do not exist,
5072 # and/or are not needed on all platforms.
5073 
5074 
5075 # Setup the build tools (i.e, the compiler and linker used to build programs
5076 # that should be run on the build platform, not the target platform, as a build
5077 # helper). Since the non-cross-compile case uses the normal, target compilers
5078 # for this, we can only do this after these have been setup.
5079 
5080 
5081 # Do some additional checks on the detected tools.
5082 
5083 
5084 # Setup the JTReg Regression Test Harness.
5085 
5086 
5087 # Setup the JIB dependency resolver
5088 
5089 
5090 #
5091 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5092 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5093 #
5094 # This code is free software; you can redistribute it and/or modify it
5095 # under the terms of the GNU General Public License version 2 only, as
5096 # published by the Free Software Foundation.  Oracle designates this
5097 # particular file as subject to the "Classpath" exception as provided
5098 # by Oracle in the LICENSE file that accompanied this code.
5099 #
5100 # This code is distributed in the hope that it will be useful, but WITHOUT
5101 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5102 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5103 # version 2 for more details (a copy is included in the LICENSE file that
5104 # accompanied this code).
5105 #
5106 # You should have received a copy of the GNU General Public License version
5107 # 2 along with this work; if not, write to the Free Software Foundation,
5108 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5109 #
5110 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5111 # or visit www.oracle.com if you need additional information or have any
5112 # questions.
5113 #
5114 
5115 ################################################################################
5116 # The order of these defines the priority by which we try to find them.
5117 VALID_VS_VERSIONS="2013 2012 2010"
5118 
5119 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5120 VS_VERSION_INTERNAL_2010=100
5121 VS_MSVCR_2010=msvcr100.dll
5122 # We don't use msvcp on Visual Studio 2010
5123 #VS_MSVCP_2010=msvcp100.dll
5124 VS_ENVVAR_2010="VS100COMNTOOLS"
5125 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5126 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5127 VS_VS_PLATFORM_NAME_2010="v100"
5128 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5129 
5130 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5131 VS_VERSION_INTERNAL_2012=110
5132 VS_MSVCR_2012=msvcr110.dll
5133 VS_MSVCP_2012=msvcp110.dll
5134 VS_ENVVAR_2012="VS110COMNTOOLS"
5135 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5136 VS_SDK_INSTALLDIR_2012=
5137 VS_VS_PLATFORM_NAME_2012="v110"
5138 VS_SDK_PLATFORM_NAME_2012=
5139 
5140 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5141 VS_VERSION_INTERNAL_2013=120
5142 VS_MSVCR_2013=msvcr120.dll
5143 VS_MSVCP_2013=msvcp120.dll
5144 VS_ENVVAR_2013="VS120COMNTOOLS"
5145 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5146 VS_SDK_INSTALLDIR_2013=
5147 VS_VS_PLATFORM_NAME_2013="v120"
5148 VS_SDK_PLATFORM_NAME_2013=
5149 
5150 ################################################################################
5151 
5152 
5153 
5154 ################################################################################
5155 
5156 
5157 
5158 ################################################################################
5159 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5160 # build environment and assigns it to VS_ENV_CMD
5161 
5162 
5163 ################################################################################
5164 
5165 
5166 
5167 ################################################################################
5168 # Check if the VS env variables were setup prior to running configure.
5169 # If not, then find vcvarsall.bat and run it automatically, and integrate
5170 # the set env variables into the spec file.
5171 
5172 
5173 
5174 
5175 
5176 
5177 
5178 
5179 
5180 
5181 
5182 
5183 
5184 
5185 # This line needs to be here, verbatim, after all includes and the dummy hook
5186 # definitions. It is replaced with custom functionality when building
5187 # custom sources.
5188 #CUSTOM_AUTOCONF_INCLUDE
5189 
5190 # Do not change or remove the following line, it is needed for consistency checks:
5191 DATE_WHEN_GENERATED=1516716346
5192 
5193 ###############################################################################
5194 #
5195 # Initialization / Boot-strapping
5196 #
5197 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5198 # thus it jumps back and forth, each time gaining something needed later on.
5199 #
5200 ###############################################################################
5201 
5202 # If we are requested to print additional help, do that and then exit.
5203 # This must be the very first call.
5204 
5205   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5206 
5207     # Print available toolchains
5208     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5209     $PRINTF "Which are valid to use depends on the build platform.\n"
5210     for toolchain in $VALID_TOOLCHAINS_all; do
5211       # Use indirect variable referencing
5212       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5213       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5214       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5215     done
5216     $PRINTF "\n"
5217 
5218     # Print available jvm features
5219     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5220     $PRINTF "Which are valid to use depends on the target platform.\n  "
5221     $PRINTF "%s " $VALID_JVM_FEATURES
5222     $PRINTF "\n"
5223 
5224     # And now exit directly
5225     exit 0
5226   fi
5227 
5228 
5229 # Basic initialization that must happen first of all in the normal process.
5230 
5231   # Save the original command line. This is passed to us by the wrapper configure script.
5232 
5233   # Save the path variable before it gets changed
5234   ORIGINAL_PATH="$PATH"
5235 
5236   DATE_WHEN_CONFIGURED=`LANG=C date`
5237 
5238   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5239 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5241 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5242 
5243 
5244   # Start with tools that do not need have cross compilation support
5245   # and can be expected to be found in the default PATH. These tools are
5246   # used by configure.
5247 
5248   # First are all the simple required tools.
5249 
5250 
5251 
5252   # Publish this variable in the help.
5253 
5254 
5255   if [ -z "${BASENAME+x}" ]; then
5256     # The variable is not set by user, try to locate tool using the code snippet
5257     for ac_prog in basename
5258 do
5259   # Extract the first word of "$ac_prog", so it can be a program name with args.
5260 set dummy $ac_prog; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_path_BASENAME+:} false; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266   case $BASENAME in
5267   [\\/]* | ?:[\\/]*)
5268   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5269   ;;
5270   *)
5271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276     for ac_exec_ext in '' $ac_executable_extensions; do
5277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283   done
5284 IFS=$as_save_IFS
5285 
5286   ;;
5287 esac
5288 fi
5289 BASENAME=$ac_cv_path_BASENAME
5290 if test -n "$BASENAME"; then
5291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5292 $as_echo "$BASENAME" >&6; }
5293 else
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5296 fi
5297 
5298 
5299   test -n "$BASENAME" && break
5300 done
5301 
5302   else
5303     # The variable is set, but is it from the command line or the environment?
5304 
5305     # Try to remove the string !BASENAME! from our list.
5306     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5307     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5308       # If it failed, the variable was not from the command line. Ignore it,
5309       # but warn the user (except for BASH, which is always set by the calling BASH).
5310       if test "xBASENAME" != xBASH; then
5311         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5312 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5313       fi
5314       # Try to locate tool using the code snippet
5315       for ac_prog in basename
5316 do
5317   # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy $ac_prog; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if ${ac_cv_path_BASENAME+:} false; then :
5322   $as_echo_n "(cached) " >&6
5323 else
5324   case $BASENAME in
5325   [\\/]* | ?:[\\/]*)
5326   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5327   ;;
5328   *)
5329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332   IFS=$as_save_IFS
5333   test -z "$as_dir" && as_dir=.
5334     for ac_exec_ext in '' $ac_executable_extensions; do
5335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338     break 2
5339   fi
5340 done
5341   done
5342 IFS=$as_save_IFS
5343 
5344   ;;
5345 esac
5346 fi
5347 BASENAME=$ac_cv_path_BASENAME
5348 if test -n "$BASENAME"; then
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5350 $as_echo "$BASENAME" >&6; }
5351 else
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355 
5356 
5357   test -n "$BASENAME" && break
5358 done
5359 
5360     else
5361       # If it succeeded, then it was overridden by the user. We will use it
5362       # for the tool.
5363 
5364       # First remove it from the list of overridden variables, so we can test
5365       # for unknown variables in the end.
5366       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5367 
5368       # Check if we try to supply an empty value
5369       if test "x$BASENAME" = x; then
5370         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5371 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5373 $as_echo_n "checking for BASENAME... " >&6; }
5374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5375 $as_echo "disabled" >&6; }
5376       else
5377         # Check if the provided tool contains a complete path.
5378         tool_specified="$BASENAME"
5379         tool_basename="${tool_specified##*/}"
5380         if test "x$tool_basename" = "x$tool_specified"; then
5381           # A command without a complete path is provided, search $PATH.
5382           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5383 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5384           # Extract the first word of "$tool_basename", so it can be a program name with args.
5385 set dummy $tool_basename; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_path_BASENAME+:} false; then :
5389   $as_echo_n "(cached) " >&6
5390 else
5391   case $BASENAME in
5392   [\\/]* | ?:[\\/]*)
5393   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5394   ;;
5395   *)
5396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401     for ac_exec_ext in '' $ac_executable_extensions; do
5402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408   done
5409 IFS=$as_save_IFS
5410 
5411   ;;
5412 esac
5413 fi
5414 BASENAME=$ac_cv_path_BASENAME
5415 if test -n "$BASENAME"; then
5416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5417 $as_echo "$BASENAME" >&6; }
5418 else
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5421 fi
5422 
5423 
5424           if test "x$BASENAME" = x; then
5425             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5426           fi
5427         else
5428           # Otherwise we believe it is a complete path. Use it as it is.
5429           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5430 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5431           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5432 $as_echo_n "checking for BASENAME... " >&6; }
5433           if test ! -x "$tool_specified"; then
5434             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5435 $as_echo "not found" >&6; }
5436             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5437           fi
5438           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5439 $as_echo "$tool_specified" >&6; }
5440         fi
5441       fi
5442     fi
5443 
5444   fi
5445 
5446 
5447 
5448   if test "x$BASENAME" = x; then
5449     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5450   fi
5451 
5452 
5453 
5454 
5455 
5456   # Publish this variable in the help.
5457 
5458 
5459   if [ -z "${BASH+x}" ]; then
5460     # The variable is not set by user, try to locate tool using the code snippet
5461     for ac_prog in bash
5462 do
5463   # Extract the first word of "$ac_prog", so it can be a program name with args.
5464 set dummy $ac_prog; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_path_BASH+:} false; then :
5468   $as_echo_n "(cached) " >&6
5469 else
5470   case $BASH in
5471   [\\/]* | ?:[\\/]*)
5472   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5473   ;;
5474   *)
5475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478   IFS=$as_save_IFS
5479   test -z "$as_dir" && as_dir=.
5480     for ac_exec_ext in '' $ac_executable_extensions; do
5481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484     break 2
5485   fi
5486 done
5487   done
5488 IFS=$as_save_IFS
5489 
5490   ;;
5491 esac
5492 fi
5493 BASH=$ac_cv_path_BASH
5494 if test -n "$BASH"; then
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5496 $as_echo "$BASH" >&6; }
5497 else
5498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5500 fi
5501 
5502 
5503   test -n "$BASH" && break
5504 done
5505 
5506   else
5507     # The variable is set, but is it from the command line or the environment?
5508 
5509     # Try to remove the string !BASH! from our list.
5510     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5511     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5512       # If it failed, the variable was not from the command line. Ignore it,
5513       # but warn the user (except for BASH, which is always set by the calling BASH).
5514       if test "xBASH" != xBASH; then
5515         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5516 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5517       fi
5518       # Try to locate tool using the code snippet
5519       for ac_prog in bash
5520 do
5521   # Extract the first word of "$ac_prog", so it can be a program name with args.
5522 set dummy $ac_prog; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_path_BASH+:} false; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   case $BASH in
5529   [\\/]* | ?:[\\/]*)
5530   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5531   ;;
5532   *)
5533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536   IFS=$as_save_IFS
5537   test -z "$as_dir" && as_dir=.
5538     for ac_exec_ext in '' $ac_executable_extensions; do
5539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542     break 2
5543   fi
5544 done
5545   done
5546 IFS=$as_save_IFS
5547 
5548   ;;
5549 esac
5550 fi
5551 BASH=$ac_cv_path_BASH
5552 if test -n "$BASH"; then
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5554 $as_echo "$BASH" >&6; }
5555 else
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 fi
5559 
5560 
5561   test -n "$BASH" && break
5562 done
5563 
5564     else
5565       # If it succeeded, then it was overridden by the user. We will use it
5566       # for the tool.
5567 
5568       # First remove it from the list of overridden variables, so we can test
5569       # for unknown variables in the end.
5570       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5571 
5572       # Check if we try to supply an empty value
5573       if test "x$BASH" = x; then
5574         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5575 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5576         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5577 $as_echo_n "checking for BASH... " >&6; }
5578         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5579 $as_echo "disabled" >&6; }
5580       else
5581         # Check if the provided tool contains a complete path.
5582         tool_specified="$BASH"
5583         tool_basename="${tool_specified##*/}"
5584         if test "x$tool_basename" = "x$tool_specified"; then
5585           # A command without a complete path is provided, search $PATH.
5586           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5587 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5588           # Extract the first word of "$tool_basename", so it can be a program name with args.
5589 set dummy $tool_basename; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_path_BASH+:} false; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595   case $BASH in
5596   [\\/]* | ?:[\\/]*)
5597   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5598   ;;
5599   *)
5600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603   IFS=$as_save_IFS
5604   test -z "$as_dir" && as_dir=.
5605     for ac_exec_ext in '' $ac_executable_extensions; do
5606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609     break 2
5610   fi
5611 done
5612   done
5613 IFS=$as_save_IFS
5614 
5615   ;;
5616 esac
5617 fi
5618 BASH=$ac_cv_path_BASH
5619 if test -n "$BASH"; then
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5621 $as_echo "$BASH" >&6; }
5622 else
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626 
5627 
5628           if test "x$BASH" = x; then
5629             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5630           fi
5631         else
5632           # Otherwise we believe it is a complete path. Use it as it is.
5633           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5634 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5635           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5636 $as_echo_n "checking for BASH... " >&6; }
5637           if test ! -x "$tool_specified"; then
5638             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5639 $as_echo "not found" >&6; }
5640             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5641           fi
5642           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5643 $as_echo "$tool_specified" >&6; }
5644         fi
5645       fi
5646     fi
5647 
5648   fi
5649 
5650 
5651 
5652   if test "x$BASH" = x; then
5653     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5654   fi
5655 
5656 
5657 
5658 
5659 
5660   # Publish this variable in the help.
5661 
5662 
5663   if [ -z "${CAT+x}" ]; then
5664     # The variable is not set by user, try to locate tool using the code snippet
5665     for ac_prog in cat
5666 do
5667   # Extract the first word of "$ac_prog", so it can be a program name with args.
5668 set dummy $ac_prog; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if ${ac_cv_path_CAT+:} false; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   case $CAT in
5675   [\\/]* | ?:[\\/]*)
5676   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5677   ;;
5678   *)
5679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682   IFS=$as_save_IFS
5683   test -z "$as_dir" && as_dir=.
5684     for ac_exec_ext in '' $ac_executable_extensions; do
5685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688     break 2
5689   fi
5690 done
5691   done
5692 IFS=$as_save_IFS
5693 
5694   ;;
5695 esac
5696 fi
5697 CAT=$ac_cv_path_CAT
5698 if test -n "$CAT"; then
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5700 $as_echo "$CAT" >&6; }
5701 else
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5704 fi
5705 
5706 
5707   test -n "$CAT" && break
5708 done
5709 
5710   else
5711     # The variable is set, but is it from the command line or the environment?
5712 
5713     # Try to remove the string !CAT! from our list.
5714     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5715     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5716       # If it failed, the variable was not from the command line. Ignore it,
5717       # but warn the user (except for BASH, which is always set by the calling BASH).
5718       if test "xCAT" != xBASH; then
5719         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5720 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5721       fi
5722       # Try to locate tool using the code snippet
5723       for ac_prog in cat
5724 do
5725   # Extract the first word of "$ac_prog", so it can be a program name with args.
5726 set dummy $ac_prog; ac_word=$2
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728 $as_echo_n "checking for $ac_word... " >&6; }
5729 if ${ac_cv_path_CAT+:} false; then :
5730   $as_echo_n "(cached) " >&6
5731 else
5732   case $CAT in
5733   [\\/]* | ?:[\\/]*)
5734   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5735   ;;
5736   *)
5737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742     for ac_exec_ext in '' $ac_executable_extensions; do
5743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749   done
5750 IFS=$as_save_IFS
5751 
5752   ;;
5753 esac
5754 fi
5755 CAT=$ac_cv_path_CAT
5756 if test -n "$CAT"; then
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5758 $as_echo "$CAT" >&6; }
5759 else
5760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5762 fi
5763 
5764 
5765   test -n "$CAT" && break
5766 done
5767 
5768     else
5769       # If it succeeded, then it was overridden by the user. We will use it
5770       # for the tool.
5771 
5772       # First remove it from the list of overridden variables, so we can test
5773       # for unknown variables in the end.
5774       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5775 
5776       # Check if we try to supply an empty value
5777       if test "x$CAT" = x; then
5778         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5779 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5780         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5781 $as_echo_n "checking for CAT... " >&6; }
5782         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5783 $as_echo "disabled" >&6; }
5784       else
5785         # Check if the provided tool contains a complete path.
5786         tool_specified="$CAT"
5787         tool_basename="${tool_specified##*/}"
5788         if test "x$tool_basename" = "x$tool_specified"; then
5789           # A command without a complete path is provided, search $PATH.
5790           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5791 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5792           # Extract the first word of "$tool_basename", so it can be a program name with args.
5793 set dummy $tool_basename; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_path_CAT+:} false; then :
5797   $as_echo_n "(cached) " >&6
5798 else
5799   case $CAT in
5800   [\\/]* | ?:[\\/]*)
5801   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5802   ;;
5803   *)
5804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809     for ac_exec_ext in '' $ac_executable_extensions; do
5810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816   done
5817 IFS=$as_save_IFS
5818 
5819   ;;
5820 esac
5821 fi
5822 CAT=$ac_cv_path_CAT
5823 if test -n "$CAT"; then
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5825 $as_echo "$CAT" >&6; }
5826 else
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830 
5831 
5832           if test "x$CAT" = x; then
5833             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5834           fi
5835         else
5836           # Otherwise we believe it is a complete path. Use it as it is.
5837           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5838 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5839           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5840 $as_echo_n "checking for CAT... " >&6; }
5841           if test ! -x "$tool_specified"; then
5842             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5843 $as_echo "not found" >&6; }
5844             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5845           fi
5846           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5847 $as_echo "$tool_specified" >&6; }
5848         fi
5849       fi
5850     fi
5851 
5852   fi
5853 
5854 
5855 
5856   if test "x$CAT" = x; then
5857     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5858   fi
5859 
5860 
5861 
5862 
5863 
5864   # Publish this variable in the help.
5865 
5866 
5867   if [ -z "${CHMOD+x}" ]; then
5868     # The variable is not set by user, try to locate tool using the code snippet
5869     for ac_prog in chmod
5870 do
5871   # Extract the first word of "$ac_prog", so it can be a program name with args.
5872 set dummy $ac_prog; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if ${ac_cv_path_CHMOD+:} false; then :
5876   $as_echo_n "(cached) " >&6
5877 else
5878   case $CHMOD in
5879   [\\/]* | ?:[\\/]*)
5880   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5881   ;;
5882   *)
5883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888     for ac_exec_ext in '' $ac_executable_extensions; do
5889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895   done
5896 IFS=$as_save_IFS
5897 
5898   ;;
5899 esac
5900 fi
5901 CHMOD=$ac_cv_path_CHMOD
5902 if test -n "$CHMOD"; then
5903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5904 $as_echo "$CHMOD" >&6; }
5905 else
5906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5908 fi
5909 
5910 
5911   test -n "$CHMOD" && break
5912 done
5913 
5914   else
5915     # The variable is set, but is it from the command line or the environment?
5916 
5917     # Try to remove the string !CHMOD! from our list.
5918     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5919     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5920       # If it failed, the variable was not from the command line. Ignore it,
5921       # but warn the user (except for BASH, which is always set by the calling BASH).
5922       if test "xCHMOD" != xBASH; then
5923         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5924 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5925       fi
5926       # Try to locate tool using the code snippet
5927       for ac_prog in chmod
5928 do
5929   # Extract the first word of "$ac_prog", so it can be a program name with args.
5930 set dummy $ac_prog; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if ${ac_cv_path_CHMOD+:} false; then :
5934   $as_echo_n "(cached) " >&6
5935 else
5936   case $CHMOD in
5937   [\\/]* | ?:[\\/]*)
5938   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5939   ;;
5940   *)
5941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946     for ac_exec_ext in '' $ac_executable_extensions; do
5947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953   done
5954 IFS=$as_save_IFS
5955 
5956   ;;
5957 esac
5958 fi
5959 CHMOD=$ac_cv_path_CHMOD
5960 if test -n "$CHMOD"; then
5961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5962 $as_echo "$CHMOD" >&6; }
5963 else
5964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5966 fi
5967 
5968 
5969   test -n "$CHMOD" && break
5970 done
5971 
5972     else
5973       # If it succeeded, then it was overridden by the user. We will use it
5974       # for the tool.
5975 
5976       # First remove it from the list of overridden variables, so we can test
5977       # for unknown variables in the end.
5978       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5979 
5980       # Check if we try to supply an empty value
5981       if test "x$CHMOD" = x; then
5982         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5983 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5984         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5985 $as_echo_n "checking for CHMOD... " >&6; }
5986         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5987 $as_echo "disabled" >&6; }
5988       else
5989         # Check if the provided tool contains a complete path.
5990         tool_specified="$CHMOD"
5991         tool_basename="${tool_specified##*/}"
5992         if test "x$tool_basename" = "x$tool_specified"; then
5993           # A command without a complete path is provided, search $PATH.
5994           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5995 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5996           # Extract the first word of "$tool_basename", so it can be a program name with args.
5997 set dummy $tool_basename; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if ${ac_cv_path_CHMOD+:} false; then :
6001   $as_echo_n "(cached) " >&6
6002 else
6003   case $CHMOD in
6004   [\\/]* | ?:[\\/]*)
6005   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
6006   ;;
6007   *)
6008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013     for ac_exec_ext in '' $ac_executable_extensions; do
6014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6015     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
6016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020   done
6021 IFS=$as_save_IFS
6022 
6023   ;;
6024 esac
6025 fi
6026 CHMOD=$ac_cv_path_CHMOD
6027 if test -n "$CHMOD"; then
6028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6029 $as_echo "$CHMOD" >&6; }
6030 else
6031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034 
6035 
6036           if test "x$CHMOD" = x; then
6037             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6038           fi
6039         else
6040           # Otherwise we believe it is a complete path. Use it as it is.
6041           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
6042 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
6043           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
6044 $as_echo_n "checking for CHMOD... " >&6; }
6045           if test ! -x "$tool_specified"; then
6046             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6047 $as_echo "not found" >&6; }
6048             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
6049           fi
6050           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6051 $as_echo "$tool_specified" >&6; }
6052         fi
6053       fi
6054     fi
6055 
6056   fi
6057 
6058 
6059 
6060   if test "x$CHMOD" = x; then
6061     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
6062   fi
6063 
6064 
6065 
6066 
6067 
6068   # Publish this variable in the help.
6069 
6070 
6071   if [ -z "${CMP+x}" ]; then
6072     # The variable is not set by user, try to locate tool using the code snippet
6073     for ac_prog in cmp
6074 do
6075   # Extract the first word of "$ac_prog", so it can be a program name with args.
6076 set dummy $ac_prog; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_path_CMP+:} false; then :
6080   $as_echo_n "(cached) " >&6
6081 else
6082   case $CMP in
6083   [\\/]* | ?:[\\/]*)
6084   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6085   ;;
6086   *)
6087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090   IFS=$as_save_IFS
6091   test -z "$as_dir" && as_dir=.
6092     for ac_exec_ext in '' $ac_executable_extensions; do
6093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096     break 2
6097   fi
6098 done
6099   done
6100 IFS=$as_save_IFS
6101 
6102   ;;
6103 esac
6104 fi
6105 CMP=$ac_cv_path_CMP
6106 if test -n "$CMP"; then
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6108 $as_echo "$CMP" >&6; }
6109 else
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113 
6114 
6115   test -n "$CMP" && break
6116 done
6117 
6118   else
6119     # The variable is set, but is it from the command line or the environment?
6120 
6121     # Try to remove the string !CMP! from our list.
6122     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6123     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6124       # If it failed, the variable was not from the command line. Ignore it,
6125       # but warn the user (except for BASH, which is always set by the calling BASH).
6126       if test "xCMP" != xBASH; then
6127         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6128 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6129       fi
6130       # Try to locate tool using the code snippet
6131       for ac_prog in cmp
6132 do
6133   # Extract the first word of "$ac_prog", so it can be a program name with args.
6134 set dummy $ac_prog; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_path_CMP+:} false; then :
6138   $as_echo_n "(cached) " >&6
6139 else
6140   case $CMP in
6141   [\\/]* | ?:[\\/]*)
6142   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6143   ;;
6144   *)
6145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150     for ac_exec_ext in '' $ac_executable_extensions; do
6151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157   done
6158 IFS=$as_save_IFS
6159 
6160   ;;
6161 esac
6162 fi
6163 CMP=$ac_cv_path_CMP
6164 if test -n "$CMP"; then
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6166 $as_echo "$CMP" >&6; }
6167 else
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171 
6172 
6173   test -n "$CMP" && break
6174 done
6175 
6176     else
6177       # If it succeeded, then it was overridden by the user. We will use it
6178       # for the tool.
6179 
6180       # First remove it from the list of overridden variables, so we can test
6181       # for unknown variables in the end.
6182       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6183 
6184       # Check if we try to supply an empty value
6185       if test "x$CMP" = x; then
6186         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6187 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6188         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6189 $as_echo_n "checking for CMP... " >&6; }
6190         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6191 $as_echo "disabled" >&6; }
6192       else
6193         # Check if the provided tool contains a complete path.
6194         tool_specified="$CMP"
6195         tool_basename="${tool_specified##*/}"
6196         if test "x$tool_basename" = "x$tool_specified"; then
6197           # A command without a complete path is provided, search $PATH.
6198           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6199 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6200           # Extract the first word of "$tool_basename", so it can be a program name with args.
6201 set dummy $tool_basename; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if ${ac_cv_path_CMP+:} false; then :
6205   $as_echo_n "(cached) " >&6
6206 else
6207   case $CMP in
6208   [\\/]* | ?:[\\/]*)
6209   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6210   ;;
6211   *)
6212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215   IFS=$as_save_IFS
6216   test -z "$as_dir" && as_dir=.
6217     for ac_exec_ext in '' $ac_executable_extensions; do
6218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221     break 2
6222   fi
6223 done
6224   done
6225 IFS=$as_save_IFS
6226 
6227   ;;
6228 esac
6229 fi
6230 CMP=$ac_cv_path_CMP
6231 if test -n "$CMP"; then
6232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6233 $as_echo "$CMP" >&6; }
6234 else
6235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6237 fi
6238 
6239 
6240           if test "x$CMP" = x; then
6241             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6242           fi
6243         else
6244           # Otherwise we believe it is a complete path. Use it as it is.
6245           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6246 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6247           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6248 $as_echo_n "checking for CMP... " >&6; }
6249           if test ! -x "$tool_specified"; then
6250             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6251 $as_echo "not found" >&6; }
6252             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6253           fi
6254           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6255 $as_echo "$tool_specified" >&6; }
6256         fi
6257       fi
6258     fi
6259 
6260   fi
6261 
6262 
6263 
6264   if test "x$CMP" = x; then
6265     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6266   fi
6267 
6268 
6269 
6270 
6271 
6272   # Publish this variable in the help.
6273 
6274 
6275   if [ -z "${COMM+x}" ]; then
6276     # The variable is not set by user, try to locate tool using the code snippet
6277     for ac_prog in comm
6278 do
6279   # Extract the first word of "$ac_prog", so it can be a program name with args.
6280 set dummy $ac_prog; ac_word=$2
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282 $as_echo_n "checking for $ac_word... " >&6; }
6283 if ${ac_cv_path_COMM+:} false; then :
6284   $as_echo_n "(cached) " >&6
6285 else
6286   case $COMM in
6287   [\\/]* | ?:[\\/]*)
6288   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6289   ;;
6290   *)
6291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294   IFS=$as_save_IFS
6295   test -z "$as_dir" && as_dir=.
6296     for ac_exec_ext in '' $ac_executable_extensions; do
6297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300     break 2
6301   fi
6302 done
6303   done
6304 IFS=$as_save_IFS
6305 
6306   ;;
6307 esac
6308 fi
6309 COMM=$ac_cv_path_COMM
6310 if test -n "$COMM"; then
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6312 $as_echo "$COMM" >&6; }
6313 else
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317 
6318 
6319   test -n "$COMM" && break
6320 done
6321 
6322   else
6323     # The variable is set, but is it from the command line or the environment?
6324 
6325     # Try to remove the string !COMM! from our list.
6326     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6327     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6328       # If it failed, the variable was not from the command line. Ignore it,
6329       # but warn the user (except for BASH, which is always set by the calling BASH).
6330       if test "xCOMM" != xBASH; then
6331         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6332 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6333       fi
6334       # Try to locate tool using the code snippet
6335       for ac_prog in comm
6336 do
6337   # Extract the first word of "$ac_prog", so it can be a program name with args.
6338 set dummy $ac_prog; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_path_COMM+:} false; then :
6342   $as_echo_n "(cached) " >&6
6343 else
6344   case $COMM in
6345   [\\/]* | ?:[\\/]*)
6346   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6347   ;;
6348   *)
6349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352   IFS=$as_save_IFS
6353   test -z "$as_dir" && as_dir=.
6354     for ac_exec_ext in '' $ac_executable_extensions; do
6355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358     break 2
6359   fi
6360 done
6361   done
6362 IFS=$as_save_IFS
6363 
6364   ;;
6365 esac
6366 fi
6367 COMM=$ac_cv_path_COMM
6368 if test -n "$COMM"; then
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6370 $as_echo "$COMM" >&6; }
6371 else
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375 
6376 
6377   test -n "$COMM" && break
6378 done
6379 
6380     else
6381       # If it succeeded, then it was overridden by the user. We will use it
6382       # for the tool.
6383 
6384       # First remove it from the list of overridden variables, so we can test
6385       # for unknown variables in the end.
6386       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6387 
6388       # Check if we try to supply an empty value
6389       if test "x$COMM" = x; then
6390         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6391 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6392         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6393 $as_echo_n "checking for COMM... " >&6; }
6394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6395 $as_echo "disabled" >&6; }
6396       else
6397         # Check if the provided tool contains a complete path.
6398         tool_specified="$COMM"
6399         tool_basename="${tool_specified##*/}"
6400         if test "x$tool_basename" = "x$tool_specified"; then
6401           # A command without a complete path is provided, search $PATH.
6402           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6403 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6404           # Extract the first word of "$tool_basename", so it can be a program name with args.
6405 set dummy $tool_basename; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_path_COMM+:} false; then :
6409   $as_echo_n "(cached) " >&6
6410 else
6411   case $COMM in
6412   [\\/]* | ?:[\\/]*)
6413   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6414   ;;
6415   *)
6416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430 
6431   ;;
6432 esac
6433 fi
6434 COMM=$ac_cv_path_COMM
6435 if test -n "$COMM"; then
6436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6437 $as_echo "$COMM" >&6; }
6438 else
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6441 fi
6442 
6443 
6444           if test "x$COMM" = x; then
6445             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6446           fi
6447         else
6448           # Otherwise we believe it is a complete path. Use it as it is.
6449           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6450 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6451           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6452 $as_echo_n "checking for COMM... " >&6; }
6453           if test ! -x "$tool_specified"; then
6454             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6455 $as_echo "not found" >&6; }
6456             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6457           fi
6458           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6459 $as_echo "$tool_specified" >&6; }
6460         fi
6461       fi
6462     fi
6463 
6464   fi
6465 
6466 
6467 
6468   if test "x$COMM" = x; then
6469     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6470   fi
6471 
6472 
6473 
6474 
6475 
6476   # Publish this variable in the help.
6477 
6478 
6479   if [ -z "${CP+x}" ]; then
6480     # The variable is not set by user, try to locate tool using the code snippet
6481     for ac_prog in cp
6482 do
6483   # Extract the first word of "$ac_prog", so it can be a program name with args.
6484 set dummy $ac_prog; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_path_CP+:} false; then :
6488   $as_echo_n "(cached) " >&6
6489 else
6490   case $CP in
6491   [\\/]* | ?:[\\/]*)
6492   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6493   ;;
6494   *)
6495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498   IFS=$as_save_IFS
6499   test -z "$as_dir" && as_dir=.
6500     for ac_exec_ext in '' $ac_executable_extensions; do
6501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6502     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504     break 2
6505   fi
6506 done
6507   done
6508 IFS=$as_save_IFS
6509 
6510   ;;
6511 esac
6512 fi
6513 CP=$ac_cv_path_CP
6514 if test -n "$CP"; then
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6516 $as_echo "$CP" >&6; }
6517 else
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521 
6522 
6523   test -n "$CP" && break
6524 done
6525 
6526   else
6527     # The variable is set, but is it from the command line or the environment?
6528 
6529     # Try to remove the string !CP! from our list.
6530     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6531     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6532       # If it failed, the variable was not from the command line. Ignore it,
6533       # but warn the user (except for BASH, which is always set by the calling BASH).
6534       if test "xCP" != xBASH; then
6535         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6536 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6537       fi
6538       # Try to locate tool using the code snippet
6539       for ac_prog in cp
6540 do
6541   # Extract the first word of "$ac_prog", so it can be a program name with args.
6542 set dummy $ac_prog; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if ${ac_cv_path_CP+:} false; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   case $CP in
6549   [\\/]* | ?:[\\/]*)
6550   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6551   ;;
6552   *)
6553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558     for ac_exec_ext in '' $ac_executable_extensions; do
6559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565   done
6566 IFS=$as_save_IFS
6567 
6568   ;;
6569 esac
6570 fi
6571 CP=$ac_cv_path_CP
6572 if test -n "$CP"; then
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6574 $as_echo "$CP" >&6; }
6575 else
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6578 fi
6579 
6580 
6581   test -n "$CP" && break
6582 done
6583 
6584     else
6585       # If it succeeded, then it was overridden by the user. We will use it
6586       # for the tool.
6587 
6588       # First remove it from the list of overridden variables, so we can test
6589       # for unknown variables in the end.
6590       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6591 
6592       # Check if we try to supply an empty value
6593       if test "x$CP" = x; then
6594         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6595 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6596         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6597 $as_echo_n "checking for CP... " >&6; }
6598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6599 $as_echo "disabled" >&6; }
6600       else
6601         # Check if the provided tool contains a complete path.
6602         tool_specified="$CP"
6603         tool_basename="${tool_specified##*/}"
6604         if test "x$tool_basename" = "x$tool_specified"; then
6605           # A command without a complete path is provided, search $PATH.
6606           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6607 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6608           # Extract the first word of "$tool_basename", so it can be a program name with args.
6609 set dummy $tool_basename; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_path_CP+:} false; then :
6613   $as_echo_n "(cached) " >&6
6614 else
6615   case $CP in
6616   [\\/]* | ?:[\\/]*)
6617   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6618   ;;
6619   *)
6620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623   IFS=$as_save_IFS
6624   test -z "$as_dir" && as_dir=.
6625     for ac_exec_ext in '' $ac_executable_extensions; do
6626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6627     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632   done
6633 IFS=$as_save_IFS
6634 
6635   ;;
6636 esac
6637 fi
6638 CP=$ac_cv_path_CP
6639 if test -n "$CP"; then
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6641 $as_echo "$CP" >&6; }
6642 else
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6645 fi
6646 
6647 
6648           if test "x$CP" = x; then
6649             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6650           fi
6651         else
6652           # Otherwise we believe it is a complete path. Use it as it is.
6653           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6654 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6655           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6656 $as_echo_n "checking for CP... " >&6; }
6657           if test ! -x "$tool_specified"; then
6658             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6659 $as_echo "not found" >&6; }
6660             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6661           fi
6662           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6663 $as_echo "$tool_specified" >&6; }
6664         fi
6665       fi
6666     fi
6667 
6668   fi
6669 
6670 
6671 
6672   if test "x$CP" = x; then
6673     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6674   fi
6675 
6676 
6677 
6678 
6679 
6680   # Publish this variable in the help.
6681 
6682 
6683   if [ -z "${CUT+x}" ]; then
6684     # The variable is not set by user, try to locate tool using the code snippet
6685     for ac_prog in cut
6686 do
6687   # Extract the first word of "$ac_prog", so it can be a program name with args.
6688 set dummy $ac_prog; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if ${ac_cv_path_CUT+:} false; then :
6692   $as_echo_n "(cached) " >&6
6693 else
6694   case $CUT in
6695   [\\/]* | ?:[\\/]*)
6696   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6697   ;;
6698   *)
6699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704     for ac_exec_ext in '' $ac_executable_extensions; do
6705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711   done
6712 IFS=$as_save_IFS
6713 
6714   ;;
6715 esac
6716 fi
6717 CUT=$ac_cv_path_CUT
6718 if test -n "$CUT"; then
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6720 $as_echo "$CUT" >&6; }
6721 else
6722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6724 fi
6725 
6726 
6727   test -n "$CUT" && break
6728 done
6729 
6730   else
6731     # The variable is set, but is it from the command line or the environment?
6732 
6733     # Try to remove the string !CUT! from our list.
6734     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6735     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6736       # If it failed, the variable was not from the command line. Ignore it,
6737       # but warn the user (except for BASH, which is always set by the calling BASH).
6738       if test "xCUT" != xBASH; then
6739         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6740 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6741       fi
6742       # Try to locate tool using the code snippet
6743       for ac_prog in cut
6744 do
6745   # Extract the first word of "$ac_prog", so it can be a program name with args.
6746 set dummy $ac_prog; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_path_CUT+:} false; then :
6750   $as_echo_n "(cached) " >&6
6751 else
6752   case $CUT in
6753   [\\/]* | ?:[\\/]*)
6754   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6755   ;;
6756   *)
6757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762     for ac_exec_ext in '' $ac_executable_extensions; do
6763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769   done
6770 IFS=$as_save_IFS
6771 
6772   ;;
6773 esac
6774 fi
6775 CUT=$ac_cv_path_CUT
6776 if test -n "$CUT"; then
6777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6778 $as_echo "$CUT" >&6; }
6779 else
6780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783 
6784 
6785   test -n "$CUT" && break
6786 done
6787 
6788     else
6789       # If it succeeded, then it was overridden by the user. We will use it
6790       # for the tool.
6791 
6792       # First remove it from the list of overridden variables, so we can test
6793       # for unknown variables in the end.
6794       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6795 
6796       # Check if we try to supply an empty value
6797       if test "x$CUT" = x; then
6798         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6799 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6800         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6801 $as_echo_n "checking for CUT... " >&6; }
6802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6803 $as_echo "disabled" >&6; }
6804       else
6805         # Check if the provided tool contains a complete path.
6806         tool_specified="$CUT"
6807         tool_basename="${tool_specified##*/}"
6808         if test "x$tool_basename" = "x$tool_specified"; then
6809           # A command without a complete path is provided, search $PATH.
6810           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6811 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6812           # Extract the first word of "$tool_basename", so it can be a program name with args.
6813 set dummy $tool_basename; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_path_CUT+:} false; then :
6817   $as_echo_n "(cached) " >&6
6818 else
6819   case $CUT in
6820   [\\/]* | ?:[\\/]*)
6821   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6822   ;;
6823   *)
6824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829     for ac_exec_ext in '' $ac_executable_extensions; do
6830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836   done
6837 IFS=$as_save_IFS
6838 
6839   ;;
6840 esac
6841 fi
6842 CUT=$ac_cv_path_CUT
6843 if test -n "$CUT"; then
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6845 $as_echo "$CUT" >&6; }
6846 else
6847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6849 fi
6850 
6851 
6852           if test "x$CUT" = x; then
6853             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6854           fi
6855         else
6856           # Otherwise we believe it is a complete path. Use it as it is.
6857           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6858 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6859           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6860 $as_echo_n "checking for CUT... " >&6; }
6861           if test ! -x "$tool_specified"; then
6862             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6863 $as_echo "not found" >&6; }
6864             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6865           fi
6866           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6867 $as_echo "$tool_specified" >&6; }
6868         fi
6869       fi
6870     fi
6871 
6872   fi
6873 
6874 
6875 
6876   if test "x$CUT" = x; then
6877     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6878   fi
6879 
6880 
6881 
6882 
6883 
6884   # Publish this variable in the help.
6885 
6886 
6887   if [ -z "${DATE+x}" ]; then
6888     # The variable is not set by user, try to locate tool using the code snippet
6889     for ac_prog in date
6890 do
6891   # Extract the first word of "$ac_prog", so it can be a program name with args.
6892 set dummy $ac_prog; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_path_DATE+:} false; then :
6896   $as_echo_n "(cached) " >&6
6897 else
6898   case $DATE in
6899   [\\/]* | ?:[\\/]*)
6900   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6901   ;;
6902   *)
6903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906   IFS=$as_save_IFS
6907   test -z "$as_dir" && as_dir=.
6908     for ac_exec_ext in '' $ac_executable_extensions; do
6909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912     break 2
6913   fi
6914 done
6915   done
6916 IFS=$as_save_IFS
6917 
6918   ;;
6919 esac
6920 fi
6921 DATE=$ac_cv_path_DATE
6922 if test -n "$DATE"; then
6923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6924 $as_echo "$DATE" >&6; }
6925 else
6926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927 $as_echo "no" >&6; }
6928 fi
6929 
6930 
6931   test -n "$DATE" && break
6932 done
6933 
6934   else
6935     # The variable is set, but is it from the command line or the environment?
6936 
6937     # Try to remove the string !DATE! from our list.
6938     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6939     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6940       # If it failed, the variable was not from the command line. Ignore it,
6941       # but warn the user (except for BASH, which is always set by the calling BASH).
6942       if test "xDATE" != xBASH; then
6943         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6944 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6945       fi
6946       # Try to locate tool using the code snippet
6947       for ac_prog in date
6948 do
6949   # Extract the first word of "$ac_prog", so it can be a program name with args.
6950 set dummy $ac_prog; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_path_DATE+:} false; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   case $DATE in
6957   [\\/]* | ?:[\\/]*)
6958   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6959   ;;
6960   *)
6961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966     for ac_exec_ext in '' $ac_executable_extensions; do
6967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973   done
6974 IFS=$as_save_IFS
6975 
6976   ;;
6977 esac
6978 fi
6979 DATE=$ac_cv_path_DATE
6980 if test -n "$DATE"; then
6981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6982 $as_echo "$DATE" >&6; }
6983 else
6984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6986 fi
6987 
6988 
6989   test -n "$DATE" && break
6990 done
6991 
6992     else
6993       # If it succeeded, then it was overridden by the user. We will use it
6994       # for the tool.
6995 
6996       # First remove it from the list of overridden variables, so we can test
6997       # for unknown variables in the end.
6998       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6999 
7000       # Check if we try to supply an empty value
7001       if test "x$DATE" = x; then
7002         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
7003 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
7004         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7005 $as_echo_n "checking for DATE... " >&6; }
7006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7007 $as_echo "disabled" >&6; }
7008       else
7009         # Check if the provided tool contains a complete path.
7010         tool_specified="$DATE"
7011         tool_basename="${tool_specified##*/}"
7012         if test "x$tool_basename" = "x$tool_specified"; then
7013           # A command without a complete path is provided, search $PATH.
7014           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
7015 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
7016           # Extract the first word of "$tool_basename", so it can be a program name with args.
7017 set dummy $tool_basename; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if ${ac_cv_path_DATE+:} false; then :
7021   $as_echo_n "(cached) " >&6
7022 else
7023   case $DATE in
7024   [\\/]* | ?:[\\/]*)
7025   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7026   ;;
7027   *)
7028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033     for ac_exec_ext in '' $ac_executable_extensions; do
7034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040   done
7041 IFS=$as_save_IFS
7042 
7043   ;;
7044 esac
7045 fi
7046 DATE=$ac_cv_path_DATE
7047 if test -n "$DATE"; then
7048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
7049 $as_echo "$DATE" >&6; }
7050 else
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7053 fi
7054 
7055 
7056           if test "x$DATE" = x; then
7057             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7058           fi
7059         else
7060           # Otherwise we believe it is a complete path. Use it as it is.
7061           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
7062 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
7063           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7064 $as_echo_n "checking for DATE... " >&6; }
7065           if test ! -x "$tool_specified"; then
7066             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7067 $as_echo "not found" >&6; }
7068             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
7069           fi
7070           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7071 $as_echo "$tool_specified" >&6; }
7072         fi
7073       fi
7074     fi
7075 
7076   fi
7077 
7078 
7079 
7080   if test "x$DATE" = x; then
7081     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
7082   fi
7083 
7084 
7085 
7086 
7087 
7088   # Publish this variable in the help.
7089 
7090 
7091   if [ -z "${DIFF+x}" ]; then
7092     # The variable is not set by user, try to locate tool using the code snippet
7093     for ac_prog in gdiff diff
7094 do
7095   # Extract the first word of "$ac_prog", so it can be a program name with args.
7096 set dummy $ac_prog; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_path_DIFF+:} false; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   case $DIFF in
7103   [\\/]* | ?:[\\/]*)
7104   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7105   ;;
7106   *)
7107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110   IFS=$as_save_IFS
7111   test -z "$as_dir" && as_dir=.
7112     for ac_exec_ext in '' $ac_executable_extensions; do
7113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116     break 2
7117   fi
7118 done
7119   done
7120 IFS=$as_save_IFS
7121 
7122   ;;
7123 esac
7124 fi
7125 DIFF=$ac_cv_path_DIFF
7126 if test -n "$DIFF"; then
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7128 $as_echo "$DIFF" >&6; }
7129 else
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133 
7134 
7135   test -n "$DIFF" && break
7136 done
7137 
7138   else
7139     # The variable is set, but is it from the command line or the environment?
7140 
7141     # Try to remove the string !DIFF! from our list.
7142     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7143     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7144       # If it failed, the variable was not from the command line. Ignore it,
7145       # but warn the user (except for BASH, which is always set by the calling BASH).
7146       if test "xDIFF" != xBASH; then
7147         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7148 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7149       fi
7150       # Try to locate tool using the code snippet
7151       for ac_prog in gdiff diff
7152 do
7153   # Extract the first word of "$ac_prog", so it can be a program name with args.
7154 set dummy $ac_prog; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_path_DIFF+:} false; then :
7158   $as_echo_n "(cached) " >&6
7159 else
7160   case $DIFF in
7161   [\\/]* | ?:[\\/]*)
7162   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7163   ;;
7164   *)
7165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168   IFS=$as_save_IFS
7169   test -z "$as_dir" && as_dir=.
7170     for ac_exec_ext in '' $ac_executable_extensions; do
7171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7174     break 2
7175   fi
7176 done
7177   done
7178 IFS=$as_save_IFS
7179 
7180   ;;
7181 esac
7182 fi
7183 DIFF=$ac_cv_path_DIFF
7184 if test -n "$DIFF"; then
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7186 $as_echo "$DIFF" >&6; }
7187 else
7188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7190 fi
7191 
7192 
7193   test -n "$DIFF" && break
7194 done
7195 
7196     else
7197       # If it succeeded, then it was overridden by the user. We will use it
7198       # for the tool.
7199 
7200       # First remove it from the list of overridden variables, so we can test
7201       # for unknown variables in the end.
7202       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7203 
7204       # Check if we try to supply an empty value
7205       if test "x$DIFF" = x; then
7206         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7207 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7208         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7209 $as_echo_n "checking for DIFF... " >&6; }
7210         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7211 $as_echo "disabled" >&6; }
7212       else
7213         # Check if the provided tool contains a complete path.
7214         tool_specified="$DIFF"
7215         tool_basename="${tool_specified##*/}"
7216         if test "x$tool_basename" = "x$tool_specified"; then
7217           # A command without a complete path is provided, search $PATH.
7218           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7219 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7220           # Extract the first word of "$tool_basename", so it can be a program name with args.
7221 set dummy $tool_basename; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_path_DIFF+:} false; then :
7225   $as_echo_n "(cached) " >&6
7226 else
7227   case $DIFF in
7228   [\\/]* | ?:[\\/]*)
7229   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7230   ;;
7231   *)
7232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237     for ac_exec_ext in '' $ac_executable_extensions; do
7238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244   done
7245 IFS=$as_save_IFS
7246 
7247   ;;
7248 esac
7249 fi
7250 DIFF=$ac_cv_path_DIFF
7251 if test -n "$DIFF"; then
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7253 $as_echo "$DIFF" >&6; }
7254 else
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7257 fi
7258 
7259 
7260           if test "x$DIFF" = x; then
7261             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7262           fi
7263         else
7264           # Otherwise we believe it is a complete path. Use it as it is.
7265           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7266 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7267           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7268 $as_echo_n "checking for DIFF... " >&6; }
7269           if test ! -x "$tool_specified"; then
7270             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7271 $as_echo "not found" >&6; }
7272             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7273           fi
7274           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7275 $as_echo "$tool_specified" >&6; }
7276         fi
7277       fi
7278     fi
7279 
7280   fi
7281 
7282 
7283 
7284   if test "x$DIFF" = x; then
7285     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7286   fi
7287 
7288 
7289 
7290 
7291 
7292   # Publish this variable in the help.
7293 
7294 
7295   if [ -z "${DIRNAME+x}" ]; then
7296     # The variable is not set by user, try to locate tool using the code snippet
7297     for ac_prog in dirname
7298 do
7299   # Extract the first word of "$ac_prog", so it can be a program name with args.
7300 set dummy $ac_prog; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if ${ac_cv_path_DIRNAME+:} false; then :
7304   $as_echo_n "(cached) " >&6
7305 else
7306   case $DIRNAME in
7307   [\\/]* | ?:[\\/]*)
7308   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7309   ;;
7310   *)
7311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316     for ac_exec_ext in '' $ac_executable_extensions; do
7317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323   done
7324 IFS=$as_save_IFS
7325 
7326   ;;
7327 esac
7328 fi
7329 DIRNAME=$ac_cv_path_DIRNAME
7330 if test -n "$DIRNAME"; then
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7332 $as_echo "$DIRNAME" >&6; }
7333 else
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7336 fi
7337 
7338 
7339   test -n "$DIRNAME" && break
7340 done
7341 
7342   else
7343     # The variable is set, but is it from the command line or the environment?
7344 
7345     # Try to remove the string !DIRNAME! from our list.
7346     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7347     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7348       # If it failed, the variable was not from the command line. Ignore it,
7349       # but warn the user (except for BASH, which is always set by the calling BASH).
7350       if test "xDIRNAME" != xBASH; then
7351         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7352 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7353       fi
7354       # Try to locate tool using the code snippet
7355       for ac_prog in dirname
7356 do
7357   # Extract the first word of "$ac_prog", so it can be a program name with args.
7358 set dummy $ac_prog; ac_word=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if ${ac_cv_path_DIRNAME+:} false; then :
7362   $as_echo_n "(cached) " >&6
7363 else
7364   case $DIRNAME in
7365   [\\/]* | ?:[\\/]*)
7366   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7367   ;;
7368   *)
7369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372   IFS=$as_save_IFS
7373   test -z "$as_dir" && as_dir=.
7374     for ac_exec_ext in '' $ac_executable_extensions; do
7375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378     break 2
7379   fi
7380 done
7381   done
7382 IFS=$as_save_IFS
7383 
7384   ;;
7385 esac
7386 fi
7387 DIRNAME=$ac_cv_path_DIRNAME
7388 if test -n "$DIRNAME"; then
7389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7390 $as_echo "$DIRNAME" >&6; }
7391 else
7392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7394 fi
7395 
7396 
7397   test -n "$DIRNAME" && break
7398 done
7399 
7400     else
7401       # If it succeeded, then it was overridden by the user. We will use it
7402       # for the tool.
7403 
7404       # First remove it from the list of overridden variables, so we can test
7405       # for unknown variables in the end.
7406       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7407 
7408       # Check if we try to supply an empty value
7409       if test "x$DIRNAME" = x; then
7410         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7411 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7412         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7413 $as_echo_n "checking for DIRNAME... " >&6; }
7414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7415 $as_echo "disabled" >&6; }
7416       else
7417         # Check if the provided tool contains a complete path.
7418         tool_specified="$DIRNAME"
7419         tool_basename="${tool_specified##*/}"
7420         if test "x$tool_basename" = "x$tool_specified"; then
7421           # A command without a complete path is provided, search $PATH.
7422           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7423 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7424           # Extract the first word of "$tool_basename", so it can be a program name with args.
7425 set dummy $tool_basename; ac_word=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427 $as_echo_n "checking for $ac_word... " >&6; }
7428 if ${ac_cv_path_DIRNAME+:} false; then :
7429   $as_echo_n "(cached) " >&6
7430 else
7431   case $DIRNAME in
7432   [\\/]* | ?:[\\/]*)
7433   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7434   ;;
7435   *)
7436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439   IFS=$as_save_IFS
7440   test -z "$as_dir" && as_dir=.
7441     for ac_exec_ext in '' $ac_executable_extensions; do
7442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445     break 2
7446   fi
7447 done
7448   done
7449 IFS=$as_save_IFS
7450 
7451   ;;
7452 esac
7453 fi
7454 DIRNAME=$ac_cv_path_DIRNAME
7455 if test -n "$DIRNAME"; then
7456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7457 $as_echo "$DIRNAME" >&6; }
7458 else
7459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7461 fi
7462 
7463 
7464           if test "x$DIRNAME" = x; then
7465             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7466           fi
7467         else
7468           # Otherwise we believe it is a complete path. Use it as it is.
7469           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7470 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7471           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7472 $as_echo_n "checking for DIRNAME... " >&6; }
7473           if test ! -x "$tool_specified"; then
7474             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7475 $as_echo "not found" >&6; }
7476             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7477           fi
7478           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7479 $as_echo "$tool_specified" >&6; }
7480         fi
7481       fi
7482     fi
7483 
7484   fi
7485 
7486 
7487 
7488   if test "x$DIRNAME" = x; then
7489     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7490   fi
7491 
7492 
7493 
7494 
7495 
7496   # Publish this variable in the help.
7497 
7498 
7499   if [ -z "${ECHO+x}" ]; then
7500     # The variable is not set by user, try to locate tool using the code snippet
7501     for ac_prog in echo
7502 do
7503   # Extract the first word of "$ac_prog", so it can be a program name with args.
7504 set dummy $ac_prog; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if ${ac_cv_path_ECHO+:} false; then :
7508   $as_echo_n "(cached) " >&6
7509 else
7510   case $ECHO in
7511   [\\/]* | ?:[\\/]*)
7512   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7513   ;;
7514   *)
7515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520     for ac_exec_ext in '' $ac_executable_extensions; do
7521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527   done
7528 IFS=$as_save_IFS
7529 
7530   ;;
7531 esac
7532 fi
7533 ECHO=$ac_cv_path_ECHO
7534 if test -n "$ECHO"; then
7535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7536 $as_echo "$ECHO" >&6; }
7537 else
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7540 fi
7541 
7542 
7543   test -n "$ECHO" && break
7544 done
7545 
7546   else
7547     # The variable is set, but is it from the command line or the environment?
7548 
7549     # Try to remove the string !ECHO! from our list.
7550     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7551     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7552       # If it failed, the variable was not from the command line. Ignore it,
7553       # but warn the user (except for BASH, which is always set by the calling BASH).
7554       if test "xECHO" != xBASH; then
7555         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7556 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7557       fi
7558       # Try to locate tool using the code snippet
7559       for ac_prog in echo
7560 do
7561   # Extract the first word of "$ac_prog", so it can be a program name with args.
7562 set dummy $ac_prog; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if ${ac_cv_path_ECHO+:} false; then :
7566   $as_echo_n "(cached) " >&6
7567 else
7568   case $ECHO in
7569   [\\/]* | ?:[\\/]*)
7570   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7571   ;;
7572   *)
7573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 for as_dir in $PATH
7575 do
7576   IFS=$as_save_IFS
7577   test -z "$as_dir" && as_dir=.
7578     for ac_exec_ext in '' $ac_executable_extensions; do
7579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582     break 2
7583   fi
7584 done
7585   done
7586 IFS=$as_save_IFS
7587 
7588   ;;
7589 esac
7590 fi
7591 ECHO=$ac_cv_path_ECHO
7592 if test -n "$ECHO"; then
7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7594 $as_echo "$ECHO" >&6; }
7595 else
7596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7598 fi
7599 
7600 
7601   test -n "$ECHO" && break
7602 done
7603 
7604     else
7605       # If it succeeded, then it was overridden by the user. We will use it
7606       # for the tool.
7607 
7608       # First remove it from the list of overridden variables, so we can test
7609       # for unknown variables in the end.
7610       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7611 
7612       # Check if we try to supply an empty value
7613       if test "x$ECHO" = x; then
7614         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7615 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7616         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7617 $as_echo_n "checking for ECHO... " >&6; }
7618         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7619 $as_echo "disabled" >&6; }
7620       else
7621         # Check if the provided tool contains a complete path.
7622         tool_specified="$ECHO"
7623         tool_basename="${tool_specified##*/}"
7624         if test "x$tool_basename" = "x$tool_specified"; then
7625           # A command without a complete path is provided, search $PATH.
7626           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7627 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7628           # Extract the first word of "$tool_basename", so it can be a program name with args.
7629 set dummy $tool_basename; ac_word=$2
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if ${ac_cv_path_ECHO+:} false; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   case $ECHO in
7636   [\\/]* | ?:[\\/]*)
7637   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7638   ;;
7639   *)
7640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643   IFS=$as_save_IFS
7644   test -z "$as_dir" && as_dir=.
7645     for ac_exec_ext in '' $ac_executable_extensions; do
7646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649     break 2
7650   fi
7651 done
7652   done
7653 IFS=$as_save_IFS
7654 
7655   ;;
7656 esac
7657 fi
7658 ECHO=$ac_cv_path_ECHO
7659 if test -n "$ECHO"; then
7660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7661 $as_echo "$ECHO" >&6; }
7662 else
7663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7665 fi
7666 
7667 
7668           if test "x$ECHO" = x; then
7669             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7670           fi
7671         else
7672           # Otherwise we believe it is a complete path. Use it as it is.
7673           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7674 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7675           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7676 $as_echo_n "checking for ECHO... " >&6; }
7677           if test ! -x "$tool_specified"; then
7678             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7679 $as_echo "not found" >&6; }
7680             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7681           fi
7682           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7683 $as_echo "$tool_specified" >&6; }
7684         fi
7685       fi
7686     fi
7687 
7688   fi
7689 
7690 
7691 
7692   if test "x$ECHO" = x; then
7693     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7694   fi
7695 
7696 
7697 
7698 
7699 
7700   # Publish this variable in the help.
7701 
7702 
7703   if [ -z "${EXPR+x}" ]; then
7704     # The variable is not set by user, try to locate tool using the code snippet
7705     for ac_prog in expr
7706 do
7707   # Extract the first word of "$ac_prog", so it can be a program name with args.
7708 set dummy $ac_prog; ac_word=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if ${ac_cv_path_EXPR+:} false; then :
7712   $as_echo_n "(cached) " >&6
7713 else
7714   case $EXPR in
7715   [\\/]* | ?:[\\/]*)
7716   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7717   ;;
7718   *)
7719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722   IFS=$as_save_IFS
7723   test -z "$as_dir" && as_dir=.
7724     for ac_exec_ext in '' $ac_executable_extensions; do
7725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728     break 2
7729   fi
7730 done
7731   done
7732 IFS=$as_save_IFS
7733 
7734   ;;
7735 esac
7736 fi
7737 EXPR=$ac_cv_path_EXPR
7738 if test -n "$EXPR"; then
7739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7740 $as_echo "$EXPR" >&6; }
7741 else
7742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745 
7746 
7747   test -n "$EXPR" && break
7748 done
7749 
7750   else
7751     # The variable is set, but is it from the command line or the environment?
7752 
7753     # Try to remove the string !EXPR! from our list.
7754     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7755     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7756       # If it failed, the variable was not from the command line. Ignore it,
7757       # but warn the user (except for BASH, which is always set by the calling BASH).
7758       if test "xEXPR" != xBASH; then
7759         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7760 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7761       fi
7762       # Try to locate tool using the code snippet
7763       for ac_prog in expr
7764 do
7765   # Extract the first word of "$ac_prog", so it can be a program name with args.
7766 set dummy $ac_prog; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if ${ac_cv_path_EXPR+:} false; then :
7770   $as_echo_n "(cached) " >&6
7771 else
7772   case $EXPR in
7773   [\\/]* | ?:[\\/]*)
7774   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7775   ;;
7776   *)
7777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780   IFS=$as_save_IFS
7781   test -z "$as_dir" && as_dir=.
7782     for ac_exec_ext in '' $ac_executable_extensions; do
7783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7784     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786     break 2
7787   fi
7788 done
7789   done
7790 IFS=$as_save_IFS
7791 
7792   ;;
7793 esac
7794 fi
7795 EXPR=$ac_cv_path_EXPR
7796 if test -n "$EXPR"; then
7797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7798 $as_echo "$EXPR" >&6; }
7799 else
7800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7802 fi
7803 
7804 
7805   test -n "$EXPR" && break
7806 done
7807 
7808     else
7809       # If it succeeded, then it was overridden by the user. We will use it
7810       # for the tool.
7811 
7812       # First remove it from the list of overridden variables, so we can test
7813       # for unknown variables in the end.
7814       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7815 
7816       # Check if we try to supply an empty value
7817       if test "x$EXPR" = x; then
7818         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7819 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7820         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7821 $as_echo_n "checking for EXPR... " >&6; }
7822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7823 $as_echo "disabled" >&6; }
7824       else
7825         # Check if the provided tool contains a complete path.
7826         tool_specified="$EXPR"
7827         tool_basename="${tool_specified##*/}"
7828         if test "x$tool_basename" = "x$tool_specified"; then
7829           # A command without a complete path is provided, search $PATH.
7830           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7831 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7832           # Extract the first word of "$tool_basename", so it can be a program name with args.
7833 set dummy $tool_basename; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if ${ac_cv_path_EXPR+:} false; then :
7837   $as_echo_n "(cached) " >&6
7838 else
7839   case $EXPR in
7840   [\\/]* | ?:[\\/]*)
7841   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7842   ;;
7843   *)
7844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849     for ac_exec_ext in '' $ac_executable_extensions; do
7850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853     break 2
7854   fi
7855 done
7856   done
7857 IFS=$as_save_IFS
7858 
7859   ;;
7860 esac
7861 fi
7862 EXPR=$ac_cv_path_EXPR
7863 if test -n "$EXPR"; then
7864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7865 $as_echo "$EXPR" >&6; }
7866 else
7867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7869 fi
7870 
7871 
7872           if test "x$EXPR" = x; then
7873             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7874           fi
7875         else
7876           # Otherwise we believe it is a complete path. Use it as it is.
7877           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7878 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7879           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7880 $as_echo_n "checking for EXPR... " >&6; }
7881           if test ! -x "$tool_specified"; then
7882             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7883 $as_echo "not found" >&6; }
7884             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7885           fi
7886           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7887 $as_echo "$tool_specified" >&6; }
7888         fi
7889       fi
7890     fi
7891 
7892   fi
7893 
7894 
7895 
7896   if test "x$EXPR" = x; then
7897     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7898   fi
7899 
7900 
7901 
7902 
7903 
7904   # Publish this variable in the help.
7905 
7906 
7907   if [ -z "${FILE+x}" ]; then
7908     # The variable is not set by user, try to locate tool using the code snippet
7909     for ac_prog in file
7910 do
7911   # Extract the first word of "$ac_prog", so it can be a program name with args.
7912 set dummy $ac_prog; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if ${ac_cv_path_FILE+:} false; then :
7916   $as_echo_n "(cached) " >&6
7917 else
7918   case $FILE in
7919   [\\/]* | ?:[\\/]*)
7920   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7921   ;;
7922   *)
7923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7925 do
7926   IFS=$as_save_IFS
7927   test -z "$as_dir" && as_dir=.
7928     for ac_exec_ext in '' $ac_executable_extensions; do
7929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7932     break 2
7933   fi
7934 done
7935   done
7936 IFS=$as_save_IFS
7937 
7938   ;;
7939 esac
7940 fi
7941 FILE=$ac_cv_path_FILE
7942 if test -n "$FILE"; then
7943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7944 $as_echo "$FILE" >&6; }
7945 else
7946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949 
7950 
7951   test -n "$FILE" && break
7952 done
7953 
7954   else
7955     # The variable is set, but is it from the command line or the environment?
7956 
7957     # Try to remove the string !FILE! from our list.
7958     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7959     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7960       # If it failed, the variable was not from the command line. Ignore it,
7961       # but warn the user (except for BASH, which is always set by the calling BASH).
7962       if test "xFILE" != xBASH; then
7963         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7964 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7965       fi
7966       # Try to locate tool using the code snippet
7967       for ac_prog in file
7968 do
7969   # Extract the first word of "$ac_prog", so it can be a program name with args.
7970 set dummy $ac_prog; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if ${ac_cv_path_FILE+:} false; then :
7974   $as_echo_n "(cached) " >&6
7975 else
7976   case $FILE in
7977   [\\/]* | ?:[\\/]*)
7978   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7979   ;;
7980   *)
7981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984   IFS=$as_save_IFS
7985   test -z "$as_dir" && as_dir=.
7986     for ac_exec_ext in '' $ac_executable_extensions; do
7987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990     break 2
7991   fi
7992 done
7993   done
7994 IFS=$as_save_IFS
7995 
7996   ;;
7997 esac
7998 fi
7999 FILE=$ac_cv_path_FILE
8000 if test -n "$FILE"; then
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8002 $as_echo "$FILE" >&6; }
8003 else
8004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8006 fi
8007 
8008 
8009   test -n "$FILE" && break
8010 done
8011 
8012     else
8013       # If it succeeded, then it was overridden by the user. We will use it
8014       # for the tool.
8015 
8016       # First remove it from the list of overridden variables, so we can test
8017       # for unknown variables in the end.
8018       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8019 
8020       # Check if we try to supply an empty value
8021       if test "x$FILE" = x; then
8022         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
8023 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
8024         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8025 $as_echo_n "checking for FILE... " >&6; }
8026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8027 $as_echo "disabled" >&6; }
8028       else
8029         # Check if the provided tool contains a complete path.
8030         tool_specified="$FILE"
8031         tool_basename="${tool_specified##*/}"
8032         if test "x$tool_basename" = "x$tool_specified"; then
8033           # A command without a complete path is provided, search $PATH.
8034           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
8035 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
8036           # Extract the first word of "$tool_basename", so it can be a program name with args.
8037 set dummy $tool_basename; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_path_FILE+:} false; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   case $FILE in
8044   [\\/]* | ?:[\\/]*)
8045   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
8046   ;;
8047   *)
8048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051   IFS=$as_save_IFS
8052   test -z "$as_dir" && as_dir=.
8053     for ac_exec_ext in '' $ac_executable_extensions; do
8054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8055     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
8056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057     break 2
8058   fi
8059 done
8060   done
8061 IFS=$as_save_IFS
8062 
8063   ;;
8064 esac
8065 fi
8066 FILE=$ac_cv_path_FILE
8067 if test -n "$FILE"; then
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8069 $as_echo "$FILE" >&6; }
8070 else
8071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072 $as_echo "no" >&6; }
8073 fi
8074 
8075 
8076           if test "x$FILE" = x; then
8077             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8078           fi
8079         else
8080           # Otherwise we believe it is a complete path. Use it as it is.
8081           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
8082 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
8083           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8084 $as_echo_n "checking for FILE... " >&6; }
8085           if test ! -x "$tool_specified"; then
8086             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8087 $as_echo "not found" >&6; }
8088             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
8089           fi
8090           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8091 $as_echo "$tool_specified" >&6; }
8092         fi
8093       fi
8094     fi
8095 
8096   fi
8097 
8098 
8099 
8100   if test "x$FILE" = x; then
8101     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8102   fi
8103 
8104 
8105 
8106 
8107 
8108   # Publish this variable in the help.
8109 
8110 
8111   if [ -z "${FIND+x}" ]; then
8112     # The variable is not set by user, try to locate tool using the code snippet
8113     for ac_prog in find
8114 do
8115   # Extract the first word of "$ac_prog", so it can be a program name with args.
8116 set dummy $ac_prog; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if ${ac_cv_path_FIND+:} false; then :
8120   $as_echo_n "(cached) " >&6
8121 else
8122   case $FIND in
8123   [\\/]* | ?:[\\/]*)
8124   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8125   ;;
8126   *)
8127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8129 do
8130   IFS=$as_save_IFS
8131   test -z "$as_dir" && as_dir=.
8132     for ac_exec_ext in '' $ac_executable_extensions; do
8133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8134     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136     break 2
8137   fi
8138 done
8139   done
8140 IFS=$as_save_IFS
8141 
8142   ;;
8143 esac
8144 fi
8145 FIND=$ac_cv_path_FIND
8146 if test -n "$FIND"; then
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8148 $as_echo "$FIND" >&6; }
8149 else
8150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }
8152 fi
8153 
8154 
8155   test -n "$FIND" && break
8156 done
8157 
8158   else
8159     # The variable is set, but is it from the command line or the environment?
8160 
8161     # Try to remove the string !FIND! from our list.
8162     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8163     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8164       # If it failed, the variable was not from the command line. Ignore it,
8165       # but warn the user (except for BASH, which is always set by the calling BASH).
8166       if test "xFIND" != xBASH; then
8167         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8168 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8169       fi
8170       # Try to locate tool using the code snippet
8171       for ac_prog in find
8172 do
8173   # Extract the first word of "$ac_prog", so it can be a program name with args.
8174 set dummy $ac_prog; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if ${ac_cv_path_FIND+:} false; then :
8178   $as_echo_n "(cached) " >&6
8179 else
8180   case $FIND in
8181   [\\/]* | ?:[\\/]*)
8182   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8183   ;;
8184   *)
8185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8187 do
8188   IFS=$as_save_IFS
8189   test -z "$as_dir" && as_dir=.
8190     for ac_exec_ext in '' $ac_executable_extensions; do
8191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8192     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194     break 2
8195   fi
8196 done
8197   done
8198 IFS=$as_save_IFS
8199 
8200   ;;
8201 esac
8202 fi
8203 FIND=$ac_cv_path_FIND
8204 if test -n "$FIND"; then
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8206 $as_echo "$FIND" >&6; }
8207 else
8208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8210 fi
8211 
8212 
8213   test -n "$FIND" && break
8214 done
8215 
8216     else
8217       # If it succeeded, then it was overridden by the user. We will use it
8218       # for the tool.
8219 
8220       # First remove it from the list of overridden variables, so we can test
8221       # for unknown variables in the end.
8222       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8223 
8224       # Check if we try to supply an empty value
8225       if test "x$FIND" = x; then
8226         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8227 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8228         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8229 $as_echo_n "checking for FIND... " >&6; }
8230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8231 $as_echo "disabled" >&6; }
8232       else
8233         # Check if the provided tool contains a complete path.
8234         tool_specified="$FIND"
8235         tool_basename="${tool_specified##*/}"
8236         if test "x$tool_basename" = "x$tool_specified"; then
8237           # A command without a complete path is provided, search $PATH.
8238           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8239 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8240           # Extract the first word of "$tool_basename", so it can be a program name with args.
8241 set dummy $tool_basename; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if ${ac_cv_path_FIND+:} false; then :
8245   $as_echo_n "(cached) " >&6
8246 else
8247   case $FIND in
8248   [\\/]* | ?:[\\/]*)
8249   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8250   ;;
8251   *)
8252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253 for as_dir in $PATH
8254 do
8255   IFS=$as_save_IFS
8256   test -z "$as_dir" && as_dir=.
8257     for ac_exec_ext in '' $ac_executable_extensions; do
8258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8259     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8261     break 2
8262   fi
8263 done
8264   done
8265 IFS=$as_save_IFS
8266 
8267   ;;
8268 esac
8269 fi
8270 FIND=$ac_cv_path_FIND
8271 if test -n "$FIND"; then
8272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8273 $as_echo "$FIND" >&6; }
8274 else
8275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8277 fi
8278 
8279 
8280           if test "x$FIND" = x; then
8281             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8282           fi
8283         else
8284           # Otherwise we believe it is a complete path. Use it as it is.
8285           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8286 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8287           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8288 $as_echo_n "checking for FIND... " >&6; }
8289           if test ! -x "$tool_specified"; then
8290             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8291 $as_echo "not found" >&6; }
8292             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8293           fi
8294           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8295 $as_echo "$tool_specified" >&6; }
8296         fi
8297       fi
8298     fi
8299 
8300   fi
8301 
8302 
8303 
8304   if test "x$FIND" = x; then
8305     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8306   fi
8307 
8308 
8309 
8310 
8311 
8312   # Publish this variable in the help.
8313 
8314 
8315   if [ -z "${HEAD+x}" ]; then
8316     # The variable is not set by user, try to locate tool using the code snippet
8317     for ac_prog in head
8318 do
8319   # Extract the first word of "$ac_prog", so it can be a program name with args.
8320 set dummy $ac_prog; ac_word=$2
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 $as_echo_n "checking for $ac_word... " >&6; }
8323 if ${ac_cv_path_HEAD+:} false; then :
8324   $as_echo_n "(cached) " >&6
8325 else
8326   case $HEAD in
8327   [\\/]* | ?:[\\/]*)
8328   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8329   ;;
8330   *)
8331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332 for as_dir in $PATH
8333 do
8334   IFS=$as_save_IFS
8335   test -z "$as_dir" && as_dir=.
8336     for ac_exec_ext in '' $ac_executable_extensions; do
8337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8338     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8340     break 2
8341   fi
8342 done
8343   done
8344 IFS=$as_save_IFS
8345 
8346   ;;
8347 esac
8348 fi
8349 HEAD=$ac_cv_path_HEAD
8350 if test -n "$HEAD"; then
8351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8352 $as_echo "$HEAD" >&6; }
8353 else
8354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8356 fi
8357 
8358 
8359   test -n "$HEAD" && break
8360 done
8361 
8362   else
8363     # The variable is set, but is it from the command line or the environment?
8364 
8365     # Try to remove the string !HEAD! from our list.
8366     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8367     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8368       # If it failed, the variable was not from the command line. Ignore it,
8369       # but warn the user (except for BASH, which is always set by the calling BASH).
8370       if test "xHEAD" != xBASH; then
8371         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8372 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8373       fi
8374       # Try to locate tool using the code snippet
8375       for ac_prog in head
8376 do
8377   # Extract the first word of "$ac_prog", so it can be a program name with args.
8378 set dummy $ac_prog; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_path_HEAD+:} false; then :
8382   $as_echo_n "(cached) " >&6
8383 else
8384   case $HEAD in
8385   [\\/]* | ?:[\\/]*)
8386   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8387   ;;
8388   *)
8389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8391 do
8392   IFS=$as_save_IFS
8393   test -z "$as_dir" && as_dir=.
8394     for ac_exec_ext in '' $ac_executable_extensions; do
8395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8396     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398     break 2
8399   fi
8400 done
8401   done
8402 IFS=$as_save_IFS
8403 
8404   ;;
8405 esac
8406 fi
8407 HEAD=$ac_cv_path_HEAD
8408 if test -n "$HEAD"; then
8409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8410 $as_echo "$HEAD" >&6; }
8411 else
8412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8414 fi
8415 
8416 
8417   test -n "$HEAD" && break
8418 done
8419 
8420     else
8421       # If it succeeded, then it was overridden by the user. We will use it
8422       # for the tool.
8423 
8424       # First remove it from the list of overridden variables, so we can test
8425       # for unknown variables in the end.
8426       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8427 
8428       # Check if we try to supply an empty value
8429       if test "x$HEAD" = x; then
8430         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8431 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8432         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8433 $as_echo_n "checking for HEAD... " >&6; }
8434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8435 $as_echo "disabled" >&6; }
8436       else
8437         # Check if the provided tool contains a complete path.
8438         tool_specified="$HEAD"
8439         tool_basename="${tool_specified##*/}"
8440         if test "x$tool_basename" = "x$tool_specified"; then
8441           # A command without a complete path is provided, search $PATH.
8442           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8443 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8444           # Extract the first word of "$tool_basename", so it can be a program name with args.
8445 set dummy $tool_basename; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447 $as_echo_n "checking for $ac_word... " >&6; }
8448 if ${ac_cv_path_HEAD+:} false; then :
8449   $as_echo_n "(cached) " >&6
8450 else
8451   case $HEAD in
8452   [\\/]* | ?:[\\/]*)
8453   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8454   ;;
8455   *)
8456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8458 do
8459   IFS=$as_save_IFS
8460   test -z "$as_dir" && as_dir=.
8461     for ac_exec_ext in '' $ac_executable_extensions; do
8462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8463     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8465     break 2
8466   fi
8467 done
8468   done
8469 IFS=$as_save_IFS
8470 
8471   ;;
8472 esac
8473 fi
8474 HEAD=$ac_cv_path_HEAD
8475 if test -n "$HEAD"; then
8476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8477 $as_echo "$HEAD" >&6; }
8478 else
8479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8481 fi
8482 
8483 
8484           if test "x$HEAD" = x; then
8485             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8486           fi
8487         else
8488           # Otherwise we believe it is a complete path. Use it as it is.
8489           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8490 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8491           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8492 $as_echo_n "checking for HEAD... " >&6; }
8493           if test ! -x "$tool_specified"; then
8494             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8495 $as_echo "not found" >&6; }
8496             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8497           fi
8498           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8499 $as_echo "$tool_specified" >&6; }
8500         fi
8501       fi
8502     fi
8503 
8504   fi
8505 
8506 
8507 
8508   if test "x$HEAD" = x; then
8509     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8510   fi
8511 
8512 
8513 
8514 
8515 
8516   # Publish this variable in the help.
8517 
8518 
8519   if [ -z "${GUNZIP+x}" ]; then
8520     # The variable is not set by user, try to locate tool using the code snippet
8521     for ac_prog in gunzip
8522 do
8523   # Extract the first word of "$ac_prog", so it can be a program name with args.
8524 set dummy $ac_prog; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if ${ac_cv_path_GUNZIP+:} false; then :
8528   $as_echo_n "(cached) " >&6
8529 else
8530   case $GUNZIP in
8531   [\\/]* | ?:[\\/]*)
8532   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8533   ;;
8534   *)
8535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 for as_dir in $PATH
8537 do
8538   IFS=$as_save_IFS
8539   test -z "$as_dir" && as_dir=.
8540     for ac_exec_ext in '' $ac_executable_extensions; do
8541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8542     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544     break 2
8545   fi
8546 done
8547   done
8548 IFS=$as_save_IFS
8549 
8550   ;;
8551 esac
8552 fi
8553 GUNZIP=$ac_cv_path_GUNZIP
8554 if test -n "$GUNZIP"; then
8555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8556 $as_echo "$GUNZIP" >&6; }
8557 else
8558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559 $as_echo "no" >&6; }
8560 fi
8561 
8562 
8563   test -n "$GUNZIP" && break
8564 done
8565 
8566   else
8567     # The variable is set, but is it from the command line or the environment?
8568 
8569     # Try to remove the string !GUNZIP! from our list.
8570     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8571     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8572       # If it failed, the variable was not from the command line. Ignore it,
8573       # but warn the user (except for BASH, which is always set by the calling BASH).
8574       if test "xGUNZIP" != xBASH; then
8575         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8576 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8577       fi
8578       # Try to locate tool using the code snippet
8579       for ac_prog in gunzip
8580 do
8581   # Extract the first word of "$ac_prog", so it can be a program name with args.
8582 set dummy $ac_prog; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if ${ac_cv_path_GUNZIP+:} false; then :
8586   $as_echo_n "(cached) " >&6
8587 else
8588   case $GUNZIP in
8589   [\\/]* | ?:[\\/]*)
8590   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8591   ;;
8592   *)
8593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8595 do
8596   IFS=$as_save_IFS
8597   test -z "$as_dir" && as_dir=.
8598     for ac_exec_ext in '' $ac_executable_extensions; do
8599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8600     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602     break 2
8603   fi
8604 done
8605   done
8606 IFS=$as_save_IFS
8607 
8608   ;;
8609 esac
8610 fi
8611 GUNZIP=$ac_cv_path_GUNZIP
8612 if test -n "$GUNZIP"; then
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8614 $as_echo "$GUNZIP" >&6; }
8615 else
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8618 fi
8619 
8620 
8621   test -n "$GUNZIP" && break
8622 done
8623 
8624     else
8625       # If it succeeded, then it was overridden by the user. We will use it
8626       # for the tool.
8627 
8628       # First remove it from the list of overridden variables, so we can test
8629       # for unknown variables in the end.
8630       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8631 
8632       # Check if we try to supply an empty value
8633       if test "x$GUNZIP" = x; then
8634         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8635 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8637 $as_echo_n "checking for GUNZIP... " >&6; }
8638         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8639 $as_echo "disabled" >&6; }
8640       else
8641         # Check if the provided tool contains a complete path.
8642         tool_specified="$GUNZIP"
8643         tool_basename="${tool_specified##*/}"
8644         if test "x$tool_basename" = "x$tool_specified"; then
8645           # A command without a complete path is provided, search $PATH.
8646           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8647 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8648           # Extract the first word of "$tool_basename", so it can be a program name with args.
8649 set dummy $tool_basename; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_path_GUNZIP+:} false; then :
8653   $as_echo_n "(cached) " >&6
8654 else
8655   case $GUNZIP in
8656   [\\/]* | ?:[\\/]*)
8657   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8658   ;;
8659   *)
8660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 for as_dir in $PATH
8662 do
8663   IFS=$as_save_IFS
8664   test -z "$as_dir" && as_dir=.
8665     for ac_exec_ext in '' $ac_executable_extensions; do
8666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8667     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669     break 2
8670   fi
8671 done
8672   done
8673 IFS=$as_save_IFS
8674 
8675   ;;
8676 esac
8677 fi
8678 GUNZIP=$ac_cv_path_GUNZIP
8679 if test -n "$GUNZIP"; then
8680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8681 $as_echo "$GUNZIP" >&6; }
8682 else
8683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8685 fi
8686 
8687 
8688           if test "x$GUNZIP" = x; then
8689             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8690           fi
8691         else
8692           # Otherwise we believe it is a complete path. Use it as it is.
8693           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8694 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8695           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8696 $as_echo_n "checking for GUNZIP... " >&6; }
8697           if test ! -x "$tool_specified"; then
8698             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8699 $as_echo "not found" >&6; }
8700             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8701           fi
8702           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8703 $as_echo "$tool_specified" >&6; }
8704         fi
8705       fi
8706     fi
8707 
8708   fi
8709 
8710 
8711 
8712   if test "x$GUNZIP" = x; then
8713     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8714   fi
8715 
8716 
8717 
8718 
8719 
8720   # Publish this variable in the help.
8721 
8722 
8723   if [ -z "${GZIP+x}" ]; then
8724     # The variable is not set by user, try to locate tool using the code snippet
8725     for ac_prog in pigz gzip
8726 do
8727   # Extract the first word of "$ac_prog", so it can be a program name with args.
8728 set dummy $ac_prog; ac_word=$2
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 $as_echo_n "checking for $ac_word... " >&6; }
8731 if ${ac_cv_path_GZIP+:} false; then :
8732   $as_echo_n "(cached) " >&6
8733 else
8734   case $GZIP in
8735   [\\/]* | ?:[\\/]*)
8736   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8737   ;;
8738   *)
8739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 for as_dir in $PATH
8741 do
8742   IFS=$as_save_IFS
8743   test -z "$as_dir" && as_dir=.
8744     for ac_exec_ext in '' $ac_executable_extensions; do
8745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8746     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8748     break 2
8749   fi
8750 done
8751   done
8752 IFS=$as_save_IFS
8753 
8754   ;;
8755 esac
8756 fi
8757 GZIP=$ac_cv_path_GZIP
8758 if test -n "$GZIP"; then
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8760 $as_echo "$GZIP" >&6; }
8761 else
8762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8764 fi
8765 
8766 
8767   test -n "$GZIP" && break
8768 done
8769 
8770   else
8771     # The variable is set, but is it from the command line or the environment?
8772 
8773     # Try to remove the string !GZIP! from our list.
8774     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8775     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8776       # If it failed, the variable was not from the command line. Ignore it,
8777       # but warn the user (except for BASH, which is always set by the calling BASH).
8778       if test "xGZIP" != xBASH; then
8779         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8780 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8781       fi
8782       # Try to locate tool using the code snippet
8783       for ac_prog in pigz gzip
8784 do
8785   # Extract the first word of "$ac_prog", so it can be a program name with args.
8786 set dummy $ac_prog; ac_word=$2
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788 $as_echo_n "checking for $ac_word... " >&6; }
8789 if ${ac_cv_path_GZIP+:} false; then :
8790   $as_echo_n "(cached) " >&6
8791 else
8792   case $GZIP in
8793   [\\/]* | ?:[\\/]*)
8794   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8795   ;;
8796   *)
8797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798 for as_dir in $PATH
8799 do
8800   IFS=$as_save_IFS
8801   test -z "$as_dir" && as_dir=.
8802     for ac_exec_ext in '' $ac_executable_extensions; do
8803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8804     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8806     break 2
8807   fi
8808 done
8809   done
8810 IFS=$as_save_IFS
8811 
8812   ;;
8813 esac
8814 fi
8815 GZIP=$ac_cv_path_GZIP
8816 if test -n "$GZIP"; then
8817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8818 $as_echo "$GZIP" >&6; }
8819 else
8820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821 $as_echo "no" >&6; }
8822 fi
8823 
8824 
8825   test -n "$GZIP" && break
8826 done
8827 
8828     else
8829       # If it succeeded, then it was overridden by the user. We will use it
8830       # for the tool.
8831 
8832       # First remove it from the list of overridden variables, so we can test
8833       # for unknown variables in the end.
8834       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8835 
8836       # Check if we try to supply an empty value
8837       if test "x$GZIP" = x; then
8838         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8839 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8840         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8841 $as_echo_n "checking for GZIP... " >&6; }
8842         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8843 $as_echo "disabled" >&6; }
8844       else
8845         # Check if the provided tool contains a complete path.
8846         tool_specified="$GZIP"
8847         tool_basename="${tool_specified##*/}"
8848         if test "x$tool_basename" = "x$tool_specified"; then
8849           # A command without a complete path is provided, search $PATH.
8850           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8851 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8852           # Extract the first word of "$tool_basename", so it can be a program name with args.
8853 set dummy $tool_basename; ac_word=$2
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8855 $as_echo_n "checking for $ac_word... " >&6; }
8856 if ${ac_cv_path_GZIP+:} false; then :
8857   $as_echo_n "(cached) " >&6
8858 else
8859   case $GZIP in
8860   [\\/]* | ?:[\\/]*)
8861   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8862   ;;
8863   *)
8864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 for as_dir in $PATH
8866 do
8867   IFS=$as_save_IFS
8868   test -z "$as_dir" && as_dir=.
8869     for ac_exec_ext in '' $ac_executable_extensions; do
8870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8871     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8873     break 2
8874   fi
8875 done
8876   done
8877 IFS=$as_save_IFS
8878 
8879   ;;
8880 esac
8881 fi
8882 GZIP=$ac_cv_path_GZIP
8883 if test -n "$GZIP"; then
8884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8885 $as_echo "$GZIP" >&6; }
8886 else
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888 $as_echo "no" >&6; }
8889 fi
8890 
8891 
8892           if test "x$GZIP" = x; then
8893             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8894           fi
8895         else
8896           # Otherwise we believe it is a complete path. Use it as it is.
8897           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8898 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8899           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8900 $as_echo_n "checking for GZIP... " >&6; }
8901           if test ! -x "$tool_specified"; then
8902             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8903 $as_echo "not found" >&6; }
8904             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8905           fi
8906           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8907 $as_echo "$tool_specified" >&6; }
8908         fi
8909       fi
8910     fi
8911 
8912   fi
8913 
8914 
8915 
8916   if test "x$GZIP" = x; then
8917     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8918   fi
8919 
8920 
8921 
8922 
8923 
8924   # Publish this variable in the help.
8925 
8926 
8927   if [ -z "${LN+x}" ]; then
8928     # The variable is not set by user, try to locate tool using the code snippet
8929     for ac_prog in ln
8930 do
8931   # Extract the first word of "$ac_prog", so it can be a program name with args.
8932 set dummy $ac_prog; ac_word=$2
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934 $as_echo_n "checking for $ac_word... " >&6; }
8935 if ${ac_cv_path_LN+:} false; then :
8936   $as_echo_n "(cached) " >&6
8937 else
8938   case $LN in
8939   [\\/]* | ?:[\\/]*)
8940   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8941   ;;
8942   *)
8943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944 for as_dir in $PATH
8945 do
8946   IFS=$as_save_IFS
8947   test -z "$as_dir" && as_dir=.
8948     for ac_exec_ext in '' $ac_executable_extensions; do
8949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8950     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8952     break 2
8953   fi
8954 done
8955   done
8956 IFS=$as_save_IFS
8957 
8958   ;;
8959 esac
8960 fi
8961 LN=$ac_cv_path_LN
8962 if test -n "$LN"; then
8963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8964 $as_echo "$LN" >&6; }
8965 else
8966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8968 fi
8969 
8970 
8971   test -n "$LN" && break
8972 done
8973 
8974   else
8975     # The variable is set, but is it from the command line or the environment?
8976 
8977     # Try to remove the string !LN! from our list.
8978     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8979     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8980       # If it failed, the variable was not from the command line. Ignore it,
8981       # but warn the user (except for BASH, which is always set by the calling BASH).
8982       if test "xLN" != xBASH; then
8983         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8984 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8985       fi
8986       # Try to locate tool using the code snippet
8987       for ac_prog in ln
8988 do
8989   # Extract the first word of "$ac_prog", so it can be a program name with args.
8990 set dummy $ac_prog; ac_word=$2
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8992 $as_echo_n "checking for $ac_word... " >&6; }
8993 if ${ac_cv_path_LN+:} false; then :
8994   $as_echo_n "(cached) " >&6
8995 else
8996   case $LN in
8997   [\\/]* | ?:[\\/]*)
8998   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8999   ;;
9000   *)
9001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 for as_dir in $PATH
9003 do
9004   IFS=$as_save_IFS
9005   test -z "$as_dir" && as_dir=.
9006     for ac_exec_ext in '' $ac_executable_extensions; do
9007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9008     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9010     break 2
9011   fi
9012 done
9013   done
9014 IFS=$as_save_IFS
9015 
9016   ;;
9017 esac
9018 fi
9019 LN=$ac_cv_path_LN
9020 if test -n "$LN"; then
9021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9022 $as_echo "$LN" >&6; }
9023 else
9024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 $as_echo "no" >&6; }
9026 fi
9027 
9028 
9029   test -n "$LN" && break
9030 done
9031 
9032     else
9033       # If it succeeded, then it was overridden by the user. We will use it
9034       # for the tool.
9035 
9036       # First remove it from the list of overridden variables, so we can test
9037       # for unknown variables in the end.
9038       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9039 
9040       # Check if we try to supply an empty value
9041       if test "x$LN" = x; then
9042         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
9043 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
9044         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9045 $as_echo_n "checking for LN... " >&6; }
9046         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9047 $as_echo "disabled" >&6; }
9048       else
9049         # Check if the provided tool contains a complete path.
9050         tool_specified="$LN"
9051         tool_basename="${tool_specified##*/}"
9052         if test "x$tool_basename" = "x$tool_specified"; then
9053           # A command without a complete path is provided, search $PATH.
9054           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
9055 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
9056           # Extract the first word of "$tool_basename", so it can be a program name with args.
9057 set dummy $tool_basename; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if ${ac_cv_path_LN+:} false; then :
9061   $as_echo_n "(cached) " >&6
9062 else
9063   case $LN in
9064   [\\/]* | ?:[\\/]*)
9065   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9066   ;;
9067   *)
9068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 for as_dir in $PATH
9070 do
9071   IFS=$as_save_IFS
9072   test -z "$as_dir" && as_dir=.
9073     for ac_exec_ext in '' $ac_executable_extensions; do
9074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9075     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9077     break 2
9078   fi
9079 done
9080   done
9081 IFS=$as_save_IFS
9082 
9083   ;;
9084 esac
9085 fi
9086 LN=$ac_cv_path_LN
9087 if test -n "$LN"; then
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9089 $as_echo "$LN" >&6; }
9090 else
9091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9093 fi
9094 
9095 
9096           if test "x$LN" = x; then
9097             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9098           fi
9099         else
9100           # Otherwise we believe it is a complete path. Use it as it is.
9101           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9102 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9103           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9104 $as_echo_n "checking for LN... " >&6; }
9105           if test ! -x "$tool_specified"; then
9106             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9107 $as_echo "not found" >&6; }
9108             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9109           fi
9110           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9111 $as_echo "$tool_specified" >&6; }
9112         fi
9113       fi
9114     fi
9115 
9116   fi
9117 
9118 
9119 
9120   if test "x$LN" = x; then
9121     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9122   fi
9123 
9124 
9125 
9126 
9127 
9128   # Publish this variable in the help.
9129 
9130 
9131   if [ -z "${LS+x}" ]; then
9132     # The variable is not set by user, try to locate tool using the code snippet
9133     for ac_prog in ls
9134 do
9135   # Extract the first word of "$ac_prog", so it can be a program name with args.
9136 set dummy $ac_prog; ac_word=$2
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9138 $as_echo_n "checking for $ac_word... " >&6; }
9139 if ${ac_cv_path_LS+:} false; then :
9140   $as_echo_n "(cached) " >&6
9141 else
9142   case $LS in
9143   [\\/]* | ?:[\\/]*)
9144   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9145   ;;
9146   *)
9147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 for as_dir in $PATH
9149 do
9150   IFS=$as_save_IFS
9151   test -z "$as_dir" && as_dir=.
9152     for ac_exec_ext in '' $ac_executable_extensions; do
9153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9154     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9156     break 2
9157   fi
9158 done
9159   done
9160 IFS=$as_save_IFS
9161 
9162   ;;
9163 esac
9164 fi
9165 LS=$ac_cv_path_LS
9166 if test -n "$LS"; then
9167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9168 $as_echo "$LS" >&6; }
9169 else
9170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171 $as_echo "no" >&6; }
9172 fi
9173 
9174 
9175   test -n "$LS" && break
9176 done
9177 
9178   else
9179     # The variable is set, but is it from the command line or the environment?
9180 
9181     # Try to remove the string !LS! from our list.
9182     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9183     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9184       # If it failed, the variable was not from the command line. Ignore it,
9185       # but warn the user (except for BASH, which is always set by the calling BASH).
9186       if test "xLS" != xBASH; then
9187         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9188 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9189       fi
9190       # Try to locate tool using the code snippet
9191       for ac_prog in ls
9192 do
9193   # Extract the first word of "$ac_prog", so it can be a program name with args.
9194 set dummy $ac_prog; ac_word=$2
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9196 $as_echo_n "checking for $ac_word... " >&6; }
9197 if ${ac_cv_path_LS+:} false; then :
9198   $as_echo_n "(cached) " >&6
9199 else
9200   case $LS in
9201   [\\/]* | ?:[\\/]*)
9202   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9203   ;;
9204   *)
9205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9206 for as_dir in $PATH
9207 do
9208   IFS=$as_save_IFS
9209   test -z "$as_dir" && as_dir=.
9210     for ac_exec_ext in '' $ac_executable_extensions; do
9211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9212     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9214     break 2
9215   fi
9216 done
9217   done
9218 IFS=$as_save_IFS
9219 
9220   ;;
9221 esac
9222 fi
9223 LS=$ac_cv_path_LS
9224 if test -n "$LS"; then
9225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9226 $as_echo "$LS" >&6; }
9227 else
9228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229 $as_echo "no" >&6; }
9230 fi
9231 
9232 
9233   test -n "$LS" && break
9234 done
9235 
9236     else
9237       # If it succeeded, then it was overridden by the user. We will use it
9238       # for the tool.
9239 
9240       # First remove it from the list of overridden variables, so we can test
9241       # for unknown variables in the end.
9242       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9243 
9244       # Check if we try to supply an empty value
9245       if test "x$LS" = x; then
9246         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9247 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9248         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9249 $as_echo_n "checking for LS... " >&6; }
9250         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9251 $as_echo "disabled" >&6; }
9252       else
9253         # Check if the provided tool contains a complete path.
9254         tool_specified="$LS"
9255         tool_basename="${tool_specified##*/}"
9256         if test "x$tool_basename" = "x$tool_specified"; then
9257           # A command without a complete path is provided, search $PATH.
9258           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9259 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9260           # Extract the first word of "$tool_basename", so it can be a program name with args.
9261 set dummy $tool_basename; ac_word=$2
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9263 $as_echo_n "checking for $ac_word... " >&6; }
9264 if ${ac_cv_path_LS+:} false; then :
9265   $as_echo_n "(cached) " >&6
9266 else
9267   case $LS in
9268   [\\/]* | ?:[\\/]*)
9269   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9270   ;;
9271   *)
9272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9273 for as_dir in $PATH
9274 do
9275   IFS=$as_save_IFS
9276   test -z "$as_dir" && as_dir=.
9277     for ac_exec_ext in '' $ac_executable_extensions; do
9278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9279     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9281     break 2
9282   fi
9283 done
9284   done
9285 IFS=$as_save_IFS
9286 
9287   ;;
9288 esac
9289 fi
9290 LS=$ac_cv_path_LS
9291 if test -n "$LS"; then
9292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9293 $as_echo "$LS" >&6; }
9294 else
9295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9297 fi
9298 
9299 
9300           if test "x$LS" = x; then
9301             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9302           fi
9303         else
9304           # Otherwise we believe it is a complete path. Use it as it is.
9305           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9306 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9307           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9308 $as_echo_n "checking for LS... " >&6; }
9309           if test ! -x "$tool_specified"; then
9310             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9311 $as_echo "not found" >&6; }
9312             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9313           fi
9314           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9315 $as_echo "$tool_specified" >&6; }
9316         fi
9317       fi
9318     fi
9319 
9320   fi
9321 
9322 
9323 
9324   if test "x$LS" = x; then
9325     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9326   fi
9327 
9328 
9329 
9330 
9331 
9332   # Publish this variable in the help.
9333 
9334 
9335   if [ -z "${MKDIR+x}" ]; then
9336     # The variable is not set by user, try to locate tool using the code snippet
9337     for ac_prog in mkdir
9338 do
9339   # Extract the first word of "$ac_prog", so it can be a program name with args.
9340 set dummy $ac_prog; ac_word=$2
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9342 $as_echo_n "checking for $ac_word... " >&6; }
9343 if ${ac_cv_path_MKDIR+:} false; then :
9344   $as_echo_n "(cached) " >&6
9345 else
9346   case $MKDIR in
9347   [\\/]* | ?:[\\/]*)
9348   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9349   ;;
9350   *)
9351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9352 for as_dir in $PATH
9353 do
9354   IFS=$as_save_IFS
9355   test -z "$as_dir" && as_dir=.
9356     for ac_exec_ext in '' $ac_executable_extensions; do
9357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9358     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9360     break 2
9361   fi
9362 done
9363   done
9364 IFS=$as_save_IFS
9365 
9366   ;;
9367 esac
9368 fi
9369 MKDIR=$ac_cv_path_MKDIR
9370 if test -n "$MKDIR"; then
9371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9372 $as_echo "$MKDIR" >&6; }
9373 else
9374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375 $as_echo "no" >&6; }
9376 fi
9377 
9378 
9379   test -n "$MKDIR" && break
9380 done
9381 
9382   else
9383     # The variable is set, but is it from the command line or the environment?
9384 
9385     # Try to remove the string !MKDIR! from our list.
9386     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9387     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9388       # If it failed, the variable was not from the command line. Ignore it,
9389       # but warn the user (except for BASH, which is always set by the calling BASH).
9390       if test "xMKDIR" != xBASH; then
9391         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9392 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9393       fi
9394       # Try to locate tool using the code snippet
9395       for ac_prog in mkdir
9396 do
9397   # Extract the first word of "$ac_prog", so it can be a program name with args.
9398 set dummy $ac_prog; ac_word=$2
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9400 $as_echo_n "checking for $ac_word... " >&6; }
9401 if ${ac_cv_path_MKDIR+:} false; then :
9402   $as_echo_n "(cached) " >&6
9403 else
9404   case $MKDIR in
9405   [\\/]* | ?:[\\/]*)
9406   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9407   ;;
9408   *)
9409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410 for as_dir in $PATH
9411 do
9412   IFS=$as_save_IFS
9413   test -z "$as_dir" && as_dir=.
9414     for ac_exec_ext in '' $ac_executable_extensions; do
9415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9416     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9418     break 2
9419   fi
9420 done
9421   done
9422 IFS=$as_save_IFS
9423 
9424   ;;
9425 esac
9426 fi
9427 MKDIR=$ac_cv_path_MKDIR
9428 if test -n "$MKDIR"; then
9429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9430 $as_echo "$MKDIR" >&6; }
9431 else
9432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 $as_echo "no" >&6; }
9434 fi
9435 
9436 
9437   test -n "$MKDIR" && break
9438 done
9439 
9440     else
9441       # If it succeeded, then it was overridden by the user. We will use it
9442       # for the tool.
9443 
9444       # First remove it from the list of overridden variables, so we can test
9445       # for unknown variables in the end.
9446       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9447 
9448       # Check if we try to supply an empty value
9449       if test "x$MKDIR" = x; then
9450         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9451 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9452         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9453 $as_echo_n "checking for MKDIR... " >&6; }
9454         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9455 $as_echo "disabled" >&6; }
9456       else
9457         # Check if the provided tool contains a complete path.
9458         tool_specified="$MKDIR"
9459         tool_basename="${tool_specified##*/}"
9460         if test "x$tool_basename" = "x$tool_specified"; then
9461           # A command without a complete path is provided, search $PATH.
9462           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9463 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9464           # Extract the first word of "$tool_basename", so it can be a program name with args.
9465 set dummy $tool_basename; ac_word=$2
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467 $as_echo_n "checking for $ac_word... " >&6; }
9468 if ${ac_cv_path_MKDIR+:} false; then :
9469   $as_echo_n "(cached) " >&6
9470 else
9471   case $MKDIR in
9472   [\\/]* | ?:[\\/]*)
9473   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9474   ;;
9475   *)
9476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 for as_dir in $PATH
9478 do
9479   IFS=$as_save_IFS
9480   test -z "$as_dir" && as_dir=.
9481     for ac_exec_ext in '' $ac_executable_extensions; do
9482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9483     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9485     break 2
9486   fi
9487 done
9488   done
9489 IFS=$as_save_IFS
9490 
9491   ;;
9492 esac
9493 fi
9494 MKDIR=$ac_cv_path_MKDIR
9495 if test -n "$MKDIR"; then
9496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9497 $as_echo "$MKDIR" >&6; }
9498 else
9499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9501 fi
9502 
9503 
9504           if test "x$MKDIR" = x; then
9505             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9506           fi
9507         else
9508           # Otherwise we believe it is a complete path. Use it as it is.
9509           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9510 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9511           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9512 $as_echo_n "checking for MKDIR... " >&6; }
9513           if test ! -x "$tool_specified"; then
9514             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9515 $as_echo "not found" >&6; }
9516             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9517           fi
9518           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9519 $as_echo "$tool_specified" >&6; }
9520         fi
9521       fi
9522     fi
9523 
9524   fi
9525 
9526 
9527 
9528   if test "x$MKDIR" = x; then
9529     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9530   fi
9531 
9532 
9533 
9534 
9535 
9536   # Publish this variable in the help.
9537 
9538 
9539   if [ -z "${MKTEMP+x}" ]; then
9540     # The variable is not set by user, try to locate tool using the code snippet
9541     for ac_prog in mktemp
9542 do
9543   # Extract the first word of "$ac_prog", so it can be a program name with args.
9544 set dummy $ac_prog; ac_word=$2
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9546 $as_echo_n "checking for $ac_word... " >&6; }
9547 if ${ac_cv_path_MKTEMP+:} false; then :
9548   $as_echo_n "(cached) " >&6
9549 else
9550   case $MKTEMP in
9551   [\\/]* | ?:[\\/]*)
9552   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9553   ;;
9554   *)
9555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556 for as_dir in $PATH
9557 do
9558   IFS=$as_save_IFS
9559   test -z "$as_dir" && as_dir=.
9560     for ac_exec_ext in '' $ac_executable_extensions; do
9561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9562     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9564     break 2
9565   fi
9566 done
9567   done
9568 IFS=$as_save_IFS
9569 
9570   ;;
9571 esac
9572 fi
9573 MKTEMP=$ac_cv_path_MKTEMP
9574 if test -n "$MKTEMP"; then
9575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9576 $as_echo "$MKTEMP" >&6; }
9577 else
9578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9579 $as_echo "no" >&6; }
9580 fi
9581 
9582 
9583   test -n "$MKTEMP" && break
9584 done
9585 
9586   else
9587     # The variable is set, but is it from the command line or the environment?
9588 
9589     # Try to remove the string !MKTEMP! from our list.
9590     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9591     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9592       # If it failed, the variable was not from the command line. Ignore it,
9593       # but warn the user (except for BASH, which is always set by the calling BASH).
9594       if test "xMKTEMP" != xBASH; then
9595         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9596 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9597       fi
9598       # Try to locate tool using the code snippet
9599       for ac_prog in mktemp
9600 do
9601   # Extract the first word of "$ac_prog", so it can be a program name with args.
9602 set dummy $ac_prog; ac_word=$2
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9604 $as_echo_n "checking for $ac_word... " >&6; }
9605 if ${ac_cv_path_MKTEMP+:} false; then :
9606   $as_echo_n "(cached) " >&6
9607 else
9608   case $MKTEMP in
9609   [\\/]* | ?:[\\/]*)
9610   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9611   ;;
9612   *)
9613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9614 for as_dir in $PATH
9615 do
9616   IFS=$as_save_IFS
9617   test -z "$as_dir" && as_dir=.
9618     for ac_exec_ext in '' $ac_executable_extensions; do
9619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9620     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9622     break 2
9623   fi
9624 done
9625   done
9626 IFS=$as_save_IFS
9627 
9628   ;;
9629 esac
9630 fi
9631 MKTEMP=$ac_cv_path_MKTEMP
9632 if test -n "$MKTEMP"; then
9633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9634 $as_echo "$MKTEMP" >&6; }
9635 else
9636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 $as_echo "no" >&6; }
9638 fi
9639 
9640 
9641   test -n "$MKTEMP" && break
9642 done
9643 
9644     else
9645       # If it succeeded, then it was overridden by the user. We will use it
9646       # for the tool.
9647 
9648       # First remove it from the list of overridden variables, so we can test
9649       # for unknown variables in the end.
9650       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9651 
9652       # Check if we try to supply an empty value
9653       if test "x$MKTEMP" = x; then
9654         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9655 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9656         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9657 $as_echo_n "checking for MKTEMP... " >&6; }
9658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9659 $as_echo "disabled" >&6; }
9660       else
9661         # Check if the provided tool contains a complete path.
9662         tool_specified="$MKTEMP"
9663         tool_basename="${tool_specified##*/}"
9664         if test "x$tool_basename" = "x$tool_specified"; then
9665           # A command without a complete path is provided, search $PATH.
9666           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9667 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9668           # Extract the first word of "$tool_basename", so it can be a program name with args.
9669 set dummy $tool_basename; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if ${ac_cv_path_MKTEMP+:} false; then :
9673   $as_echo_n "(cached) " >&6
9674 else
9675   case $MKTEMP in
9676   [\\/]* | ?:[\\/]*)
9677   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9678   ;;
9679   *)
9680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 for as_dir in $PATH
9682 do
9683   IFS=$as_save_IFS
9684   test -z "$as_dir" && as_dir=.
9685     for ac_exec_ext in '' $ac_executable_extensions; do
9686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9687     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9689     break 2
9690   fi
9691 done
9692   done
9693 IFS=$as_save_IFS
9694 
9695   ;;
9696 esac
9697 fi
9698 MKTEMP=$ac_cv_path_MKTEMP
9699 if test -n "$MKTEMP"; then
9700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9701 $as_echo "$MKTEMP" >&6; }
9702 else
9703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9705 fi
9706 
9707 
9708           if test "x$MKTEMP" = x; then
9709             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9710           fi
9711         else
9712           # Otherwise we believe it is a complete path. Use it as it is.
9713           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9714 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9715           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9716 $as_echo_n "checking for MKTEMP... " >&6; }
9717           if test ! -x "$tool_specified"; then
9718             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9719 $as_echo "not found" >&6; }
9720             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9721           fi
9722           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9723 $as_echo "$tool_specified" >&6; }
9724         fi
9725       fi
9726     fi
9727 
9728   fi
9729 
9730 
9731 
9732   if test "x$MKTEMP" = x; then
9733     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9734   fi
9735 
9736 
9737 
9738 
9739 
9740   # Publish this variable in the help.
9741 
9742 
9743   if [ -z "${MV+x}" ]; then
9744     # The variable is not set by user, try to locate tool using the code snippet
9745     for ac_prog in mv
9746 do
9747   # Extract the first word of "$ac_prog", so it can be a program name with args.
9748 set dummy $ac_prog; ac_word=$2
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9750 $as_echo_n "checking for $ac_word... " >&6; }
9751 if ${ac_cv_path_MV+:} false; then :
9752   $as_echo_n "(cached) " >&6
9753 else
9754   case $MV in
9755   [\\/]* | ?:[\\/]*)
9756   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9757   ;;
9758   *)
9759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760 for as_dir in $PATH
9761 do
9762   IFS=$as_save_IFS
9763   test -z "$as_dir" && as_dir=.
9764     for ac_exec_ext in '' $ac_executable_extensions; do
9765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9766     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768     break 2
9769   fi
9770 done
9771   done
9772 IFS=$as_save_IFS
9773 
9774   ;;
9775 esac
9776 fi
9777 MV=$ac_cv_path_MV
9778 if test -n "$MV"; then
9779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9780 $as_echo "$MV" >&6; }
9781 else
9782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9784 fi
9785 
9786 
9787   test -n "$MV" && break
9788 done
9789 
9790   else
9791     # The variable is set, but is it from the command line or the environment?
9792 
9793     # Try to remove the string !MV! from our list.
9794     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9795     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9796       # If it failed, the variable was not from the command line. Ignore it,
9797       # but warn the user (except for BASH, which is always set by the calling BASH).
9798       if test "xMV" != xBASH; then
9799         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9800 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9801       fi
9802       # Try to locate tool using the code snippet
9803       for ac_prog in mv
9804 do
9805   # Extract the first word of "$ac_prog", so it can be a program name with args.
9806 set dummy $ac_prog; ac_word=$2
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808 $as_echo_n "checking for $ac_word... " >&6; }
9809 if ${ac_cv_path_MV+:} false; then :
9810   $as_echo_n "(cached) " >&6
9811 else
9812   case $MV in
9813   [\\/]* | ?:[\\/]*)
9814   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9815   ;;
9816   *)
9817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818 for as_dir in $PATH
9819 do
9820   IFS=$as_save_IFS
9821   test -z "$as_dir" && as_dir=.
9822     for ac_exec_ext in '' $ac_executable_extensions; do
9823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9826     break 2
9827   fi
9828 done
9829   done
9830 IFS=$as_save_IFS
9831 
9832   ;;
9833 esac
9834 fi
9835 MV=$ac_cv_path_MV
9836 if test -n "$MV"; then
9837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9838 $as_echo "$MV" >&6; }
9839 else
9840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841 $as_echo "no" >&6; }
9842 fi
9843 
9844 
9845   test -n "$MV" && break
9846 done
9847 
9848     else
9849       # If it succeeded, then it was overridden by the user. We will use it
9850       # for the tool.
9851 
9852       # First remove it from the list of overridden variables, so we can test
9853       # for unknown variables in the end.
9854       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9855 
9856       # Check if we try to supply an empty value
9857       if test "x$MV" = x; then
9858         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9859 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9860         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9861 $as_echo_n "checking for MV... " >&6; }
9862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9863 $as_echo "disabled" >&6; }
9864       else
9865         # Check if the provided tool contains a complete path.
9866         tool_specified="$MV"
9867         tool_basename="${tool_specified##*/}"
9868         if test "x$tool_basename" = "x$tool_specified"; then
9869           # A command without a complete path is provided, search $PATH.
9870           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9871 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9872           # Extract the first word of "$tool_basename", so it can be a program name with args.
9873 set dummy $tool_basename; ac_word=$2
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9875 $as_echo_n "checking for $ac_word... " >&6; }
9876 if ${ac_cv_path_MV+:} false; then :
9877   $as_echo_n "(cached) " >&6
9878 else
9879   case $MV in
9880   [\\/]* | ?:[\\/]*)
9881   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9882   ;;
9883   *)
9884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885 for as_dir in $PATH
9886 do
9887   IFS=$as_save_IFS
9888   test -z "$as_dir" && as_dir=.
9889     for ac_exec_ext in '' $ac_executable_extensions; do
9890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9891     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9893     break 2
9894   fi
9895 done
9896   done
9897 IFS=$as_save_IFS
9898 
9899   ;;
9900 esac
9901 fi
9902 MV=$ac_cv_path_MV
9903 if test -n "$MV"; then
9904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9905 $as_echo "$MV" >&6; }
9906 else
9907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }
9909 fi
9910 
9911 
9912           if test "x$MV" = x; then
9913             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9914           fi
9915         else
9916           # Otherwise we believe it is a complete path. Use it as it is.
9917           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9918 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9919           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9920 $as_echo_n "checking for MV... " >&6; }
9921           if test ! -x "$tool_specified"; then
9922             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9923 $as_echo "not found" >&6; }
9924             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9925           fi
9926           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9927 $as_echo "$tool_specified" >&6; }
9928         fi
9929       fi
9930     fi
9931 
9932   fi
9933 
9934 
9935 
9936   if test "x$MV" = x; then
9937     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9938   fi
9939 
9940 
9941 
9942 
9943 
9944   # Publish this variable in the help.
9945 
9946 
9947   if [ -z "${NAWK+x}" ]; then
9948     # The variable is not set by user, try to locate tool using the code snippet
9949     for ac_prog in nawk gawk awk
9950 do
9951   # Extract the first word of "$ac_prog", so it can be a program name with args.
9952 set dummy $ac_prog; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_path_NAWK+:} false; then :
9956   $as_echo_n "(cached) " >&6
9957 else
9958   case $NAWK in
9959   [\\/]* | ?:[\\/]*)
9960   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9961   ;;
9962   *)
9963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964 for as_dir in $PATH
9965 do
9966   IFS=$as_save_IFS
9967   test -z "$as_dir" && as_dir=.
9968     for ac_exec_ext in '' $ac_executable_extensions; do
9969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9970     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9972     break 2
9973   fi
9974 done
9975   done
9976 IFS=$as_save_IFS
9977 
9978   ;;
9979 esac
9980 fi
9981 NAWK=$ac_cv_path_NAWK
9982 if test -n "$NAWK"; then
9983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9984 $as_echo "$NAWK" >&6; }
9985 else
9986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; }
9988 fi
9989 
9990 
9991   test -n "$NAWK" && break
9992 done
9993 
9994   else
9995     # The variable is set, but is it from the command line or the environment?
9996 
9997     # Try to remove the string !NAWK! from our list.
9998     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9999     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10000       # If it failed, the variable was not from the command line. Ignore it,
10001       # but warn the user (except for BASH, which is always set by the calling BASH).
10002       if test "xNAWK" != xBASH; then
10003         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
10004 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
10005       fi
10006       # Try to locate tool using the code snippet
10007       for ac_prog in nawk gawk awk
10008 do
10009   # Extract the first word of "$ac_prog", so it can be a program name with args.
10010 set dummy $ac_prog; ac_word=$2
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012 $as_echo_n "checking for $ac_word... " >&6; }
10013 if ${ac_cv_path_NAWK+:} false; then :
10014   $as_echo_n "(cached) " >&6
10015 else
10016   case $NAWK in
10017   [\\/]* | ?:[\\/]*)
10018   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10019   ;;
10020   *)
10021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022 for as_dir in $PATH
10023 do
10024   IFS=$as_save_IFS
10025   test -z "$as_dir" && as_dir=.
10026     for ac_exec_ext in '' $ac_executable_extensions; do
10027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10028     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10030     break 2
10031   fi
10032 done
10033   done
10034 IFS=$as_save_IFS
10035 
10036   ;;
10037 esac
10038 fi
10039 NAWK=$ac_cv_path_NAWK
10040 if test -n "$NAWK"; then
10041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10042 $as_echo "$NAWK" >&6; }
10043 else
10044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045 $as_echo "no" >&6; }
10046 fi
10047 
10048 
10049   test -n "$NAWK" && break
10050 done
10051 
10052     else
10053       # If it succeeded, then it was overridden by the user. We will use it
10054       # for the tool.
10055 
10056       # First remove it from the list of overridden variables, so we can test
10057       # for unknown variables in the end.
10058       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10059 
10060       # Check if we try to supply an empty value
10061       if test "x$NAWK" = x; then
10062         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
10063 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
10064         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10065 $as_echo_n "checking for NAWK... " >&6; }
10066         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10067 $as_echo "disabled" >&6; }
10068       else
10069         # Check if the provided tool contains a complete path.
10070         tool_specified="$NAWK"
10071         tool_basename="${tool_specified##*/}"
10072         if test "x$tool_basename" = "x$tool_specified"; then
10073           # A command without a complete path is provided, search $PATH.
10074           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
10075 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
10076           # Extract the first word of "$tool_basename", so it can be a program name with args.
10077 set dummy $tool_basename; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if ${ac_cv_path_NAWK+:} false; then :
10081   $as_echo_n "(cached) " >&6
10082 else
10083   case $NAWK in
10084   [\\/]* | ?:[\\/]*)
10085   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10086   ;;
10087   *)
10088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10090 do
10091   IFS=$as_save_IFS
10092   test -z "$as_dir" && as_dir=.
10093     for ac_exec_ext in '' $ac_executable_extensions; do
10094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10095     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097     break 2
10098   fi
10099 done
10100   done
10101 IFS=$as_save_IFS
10102 
10103   ;;
10104 esac
10105 fi
10106 NAWK=$ac_cv_path_NAWK
10107 if test -n "$NAWK"; then
10108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10109 $as_echo "$NAWK" >&6; }
10110 else
10111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10113 fi
10114 
10115 
10116           if test "x$NAWK" = x; then
10117             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10118           fi
10119         else
10120           # Otherwise we believe it is a complete path. Use it as it is.
10121           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10122 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10123           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10124 $as_echo_n "checking for NAWK... " >&6; }
10125           if test ! -x "$tool_specified"; then
10126             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10127 $as_echo "not found" >&6; }
10128             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10129           fi
10130           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10131 $as_echo "$tool_specified" >&6; }
10132         fi
10133       fi
10134     fi
10135 
10136   fi
10137 
10138 
10139 
10140   if test "x$NAWK" = x; then
10141     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10142   fi
10143 
10144 
10145 
10146 
10147 
10148   # Publish this variable in the help.
10149 
10150 
10151   if [ -z "${PRINTF+x}" ]; then
10152     # The variable is not set by user, try to locate tool using the code snippet
10153     for ac_prog in printf
10154 do
10155   # Extract the first word of "$ac_prog", so it can be a program name with args.
10156 set dummy $ac_prog; ac_word=$2
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10158 $as_echo_n "checking for $ac_word... " >&6; }
10159 if ${ac_cv_path_PRINTF+:} false; then :
10160   $as_echo_n "(cached) " >&6
10161 else
10162   case $PRINTF in
10163   [\\/]* | ?:[\\/]*)
10164   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10165   ;;
10166   *)
10167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10169 do
10170   IFS=$as_save_IFS
10171   test -z "$as_dir" && as_dir=.
10172     for ac_exec_ext in '' $ac_executable_extensions; do
10173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10174     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10176     break 2
10177   fi
10178 done
10179   done
10180 IFS=$as_save_IFS
10181 
10182   ;;
10183 esac
10184 fi
10185 PRINTF=$ac_cv_path_PRINTF
10186 if test -n "$PRINTF"; then
10187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10188 $as_echo "$PRINTF" >&6; }
10189 else
10190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10191 $as_echo "no" >&6; }
10192 fi
10193 
10194 
10195   test -n "$PRINTF" && break
10196 done
10197 
10198   else
10199     # The variable is set, but is it from the command line or the environment?
10200 
10201     # Try to remove the string !PRINTF! from our list.
10202     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10203     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10204       # If it failed, the variable was not from the command line. Ignore it,
10205       # but warn the user (except for BASH, which is always set by the calling BASH).
10206       if test "xPRINTF" != xBASH; then
10207         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10208 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10209       fi
10210       # Try to locate tool using the code snippet
10211       for ac_prog in printf
10212 do
10213   # Extract the first word of "$ac_prog", so it can be a program name with args.
10214 set dummy $ac_prog; ac_word=$2
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10216 $as_echo_n "checking for $ac_word... " >&6; }
10217 if ${ac_cv_path_PRINTF+:} false; then :
10218   $as_echo_n "(cached) " >&6
10219 else
10220   case $PRINTF in
10221   [\\/]* | ?:[\\/]*)
10222   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10223   ;;
10224   *)
10225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in $PATH
10227 do
10228   IFS=$as_save_IFS
10229   test -z "$as_dir" && as_dir=.
10230     for ac_exec_ext in '' $ac_executable_extensions; do
10231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10232     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10234     break 2
10235   fi
10236 done
10237   done
10238 IFS=$as_save_IFS
10239 
10240   ;;
10241 esac
10242 fi
10243 PRINTF=$ac_cv_path_PRINTF
10244 if test -n "$PRINTF"; then
10245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10246 $as_echo "$PRINTF" >&6; }
10247 else
10248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; }
10250 fi
10251 
10252 
10253   test -n "$PRINTF" && break
10254 done
10255 
10256     else
10257       # If it succeeded, then it was overridden by the user. We will use it
10258       # for the tool.
10259 
10260       # First remove it from the list of overridden variables, so we can test
10261       # for unknown variables in the end.
10262       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10263 
10264       # Check if we try to supply an empty value
10265       if test "x$PRINTF" = x; then
10266         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10267 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10268         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10269 $as_echo_n "checking for PRINTF... " >&6; }
10270         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10271 $as_echo "disabled" >&6; }
10272       else
10273         # Check if the provided tool contains a complete path.
10274         tool_specified="$PRINTF"
10275         tool_basename="${tool_specified##*/}"
10276         if test "x$tool_basename" = "x$tool_specified"; then
10277           # A command without a complete path is provided, search $PATH.
10278           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10279 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10280           # Extract the first word of "$tool_basename", so it can be a program name with args.
10281 set dummy $tool_basename; ac_word=$2
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283 $as_echo_n "checking for $ac_word... " >&6; }
10284 if ${ac_cv_path_PRINTF+:} false; then :
10285   $as_echo_n "(cached) " >&6
10286 else
10287   case $PRINTF in
10288   [\\/]* | ?:[\\/]*)
10289   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10290   ;;
10291   *)
10292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10293 for as_dir in $PATH
10294 do
10295   IFS=$as_save_IFS
10296   test -z "$as_dir" && as_dir=.
10297     for ac_exec_ext in '' $ac_executable_extensions; do
10298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10299     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10301     break 2
10302   fi
10303 done
10304   done
10305 IFS=$as_save_IFS
10306 
10307   ;;
10308 esac
10309 fi
10310 PRINTF=$ac_cv_path_PRINTF
10311 if test -n "$PRINTF"; then
10312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10313 $as_echo "$PRINTF" >&6; }
10314 else
10315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316 $as_echo "no" >&6; }
10317 fi
10318 
10319 
10320           if test "x$PRINTF" = x; then
10321             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10322           fi
10323         else
10324           # Otherwise we believe it is a complete path. Use it as it is.
10325           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10326 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10327           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10328 $as_echo_n "checking for PRINTF... " >&6; }
10329           if test ! -x "$tool_specified"; then
10330             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10331 $as_echo "not found" >&6; }
10332             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10333           fi
10334           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10335 $as_echo "$tool_specified" >&6; }
10336         fi
10337       fi
10338     fi
10339 
10340   fi
10341 
10342 
10343 
10344   if test "x$PRINTF" = x; then
10345     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10346   fi
10347 
10348 
10349 
10350 
10351 
10352   # Publish this variable in the help.
10353 
10354 
10355   if [ -z "${RM+x}" ]; then
10356     # The variable is not set by user, try to locate tool using the code snippet
10357     for ac_prog in rm
10358 do
10359   # Extract the first word of "$ac_prog", so it can be a program name with args.
10360 set dummy $ac_prog; ac_word=$2
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362 $as_echo_n "checking for $ac_word... " >&6; }
10363 if ${ac_cv_path_RM+:} false; then :
10364   $as_echo_n "(cached) " >&6
10365 else
10366   case $RM in
10367   [\\/]* | ?:[\\/]*)
10368   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10369   ;;
10370   *)
10371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10372 for as_dir in $PATH
10373 do
10374   IFS=$as_save_IFS
10375   test -z "$as_dir" && as_dir=.
10376     for ac_exec_ext in '' $ac_executable_extensions; do
10377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10378     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10380     break 2
10381   fi
10382 done
10383   done
10384 IFS=$as_save_IFS
10385 
10386   ;;
10387 esac
10388 fi
10389 RM=$ac_cv_path_RM
10390 if test -n "$RM"; then
10391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10392 $as_echo "$RM" >&6; }
10393 else
10394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395 $as_echo "no" >&6; }
10396 fi
10397 
10398 
10399   test -n "$RM" && break
10400 done
10401 
10402   else
10403     # The variable is set, but is it from the command line or the environment?
10404 
10405     # Try to remove the string !RM! from our list.
10406     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10407     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10408       # If it failed, the variable was not from the command line. Ignore it,
10409       # but warn the user (except for BASH, which is always set by the calling BASH).
10410       if test "xRM" != xBASH; then
10411         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10412 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10413       fi
10414       # Try to locate tool using the code snippet
10415       for ac_prog in rm
10416 do
10417   # Extract the first word of "$ac_prog", so it can be a program name with args.
10418 set dummy $ac_prog; ac_word=$2
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10420 $as_echo_n "checking for $ac_word... " >&6; }
10421 if ${ac_cv_path_RM+:} false; then :
10422   $as_echo_n "(cached) " >&6
10423 else
10424   case $RM in
10425   [\\/]* | ?:[\\/]*)
10426   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10427   ;;
10428   *)
10429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430 for as_dir in $PATH
10431 do
10432   IFS=$as_save_IFS
10433   test -z "$as_dir" && as_dir=.
10434     for ac_exec_ext in '' $ac_executable_extensions; do
10435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10436     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10438     break 2
10439   fi
10440 done
10441   done
10442 IFS=$as_save_IFS
10443 
10444   ;;
10445 esac
10446 fi
10447 RM=$ac_cv_path_RM
10448 if test -n "$RM"; then
10449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10450 $as_echo "$RM" >&6; }
10451 else
10452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 $as_echo "no" >&6; }
10454 fi
10455 
10456 
10457   test -n "$RM" && break
10458 done
10459 
10460     else
10461       # If it succeeded, then it was overridden by the user. We will use it
10462       # for the tool.
10463 
10464       # First remove it from the list of overridden variables, so we can test
10465       # for unknown variables in the end.
10466       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10467 
10468       # Check if we try to supply an empty value
10469       if test "x$RM" = x; then
10470         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10471 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10472         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10473 $as_echo_n "checking for RM... " >&6; }
10474         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10475 $as_echo "disabled" >&6; }
10476       else
10477         # Check if the provided tool contains a complete path.
10478         tool_specified="$RM"
10479         tool_basename="${tool_specified##*/}"
10480         if test "x$tool_basename" = "x$tool_specified"; then
10481           # A command without a complete path is provided, search $PATH.
10482           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10483 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10484           # Extract the first word of "$tool_basename", so it can be a program name with args.
10485 set dummy $tool_basename; ac_word=$2
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487 $as_echo_n "checking for $ac_word... " >&6; }
10488 if ${ac_cv_path_RM+:} false; then :
10489   $as_echo_n "(cached) " >&6
10490 else
10491   case $RM in
10492   [\\/]* | ?:[\\/]*)
10493   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10494   ;;
10495   *)
10496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10498 do
10499   IFS=$as_save_IFS
10500   test -z "$as_dir" && as_dir=.
10501     for ac_exec_ext in '' $ac_executable_extensions; do
10502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505     break 2
10506   fi
10507 done
10508   done
10509 IFS=$as_save_IFS
10510 
10511   ;;
10512 esac
10513 fi
10514 RM=$ac_cv_path_RM
10515 if test -n "$RM"; then
10516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10517 $as_echo "$RM" >&6; }
10518 else
10519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 $as_echo "no" >&6; }
10521 fi
10522 
10523 
10524           if test "x$RM" = x; then
10525             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10526           fi
10527         else
10528           # Otherwise we believe it is a complete path. Use it as it is.
10529           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10530 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10531           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10532 $as_echo_n "checking for RM... " >&6; }
10533           if test ! -x "$tool_specified"; then
10534             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10535 $as_echo "not found" >&6; }
10536             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10537           fi
10538           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10539 $as_echo "$tool_specified" >&6; }
10540         fi
10541       fi
10542     fi
10543 
10544   fi
10545 
10546 
10547 
10548   if test "x$RM" = x; then
10549     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10550   fi
10551 
10552 
10553 
10554 
10555 
10556   # Publish this variable in the help.
10557 
10558 
10559   if [ -z "${RMDIR+x}" ]; then
10560     # The variable is not set by user, try to locate tool using the code snippet
10561     for ac_prog in rmdir
10562 do
10563   # Extract the first word of "$ac_prog", so it can be a program name with args.
10564 set dummy $ac_prog; ac_word=$2
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10566 $as_echo_n "checking for $ac_word... " >&6; }
10567 if ${ac_cv_path_RMDIR+:} false; then :
10568   $as_echo_n "(cached) " >&6
10569 else
10570   case $RMDIR in
10571   [\\/]* | ?:[\\/]*)
10572   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10573   ;;
10574   *)
10575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576 for as_dir in $PATH
10577 do
10578   IFS=$as_save_IFS
10579   test -z "$as_dir" && as_dir=.
10580     for ac_exec_ext in '' $ac_executable_extensions; do
10581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10582     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10584     break 2
10585   fi
10586 done
10587   done
10588 IFS=$as_save_IFS
10589 
10590   ;;
10591 esac
10592 fi
10593 RMDIR=$ac_cv_path_RMDIR
10594 if test -n "$RMDIR"; then
10595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10596 $as_echo "$RMDIR" >&6; }
10597 else
10598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; }
10600 fi
10601 
10602 
10603   test -n "$RMDIR" && break
10604 done
10605 
10606   else
10607     # The variable is set, but is it from the command line or the environment?
10608 
10609     # Try to remove the string !RMDIR! from our list.
10610     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10611     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10612       # If it failed, the variable was not from the command line. Ignore it,
10613       # but warn the user (except for BASH, which is always set by the calling BASH).
10614       if test "xRMDIR" != xBASH; then
10615         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10616 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10617       fi
10618       # Try to locate tool using the code snippet
10619       for ac_prog in rmdir
10620 do
10621   # Extract the first word of "$ac_prog", so it can be a program name with args.
10622 set dummy $ac_prog; ac_word=$2
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10624 $as_echo_n "checking for $ac_word... " >&6; }
10625 if ${ac_cv_path_RMDIR+:} false; then :
10626   $as_echo_n "(cached) " >&6
10627 else
10628   case $RMDIR in
10629   [\\/]* | ?:[\\/]*)
10630   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10631   ;;
10632   *)
10633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10635 do
10636   IFS=$as_save_IFS
10637   test -z "$as_dir" && as_dir=.
10638     for ac_exec_ext in '' $ac_executable_extensions; do
10639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642     break 2
10643   fi
10644 done
10645   done
10646 IFS=$as_save_IFS
10647 
10648   ;;
10649 esac
10650 fi
10651 RMDIR=$ac_cv_path_RMDIR
10652 if test -n "$RMDIR"; then
10653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10654 $as_echo "$RMDIR" >&6; }
10655 else
10656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10658 fi
10659 
10660 
10661   test -n "$RMDIR" && break
10662 done
10663 
10664     else
10665       # If it succeeded, then it was overridden by the user. We will use it
10666       # for the tool.
10667 
10668       # First remove it from the list of overridden variables, so we can test
10669       # for unknown variables in the end.
10670       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10671 
10672       # Check if we try to supply an empty value
10673       if test "x$RMDIR" = x; then
10674         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10675 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10676         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10677 $as_echo_n "checking for RMDIR... " >&6; }
10678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10679 $as_echo "disabled" >&6; }
10680       else
10681         # Check if the provided tool contains a complete path.
10682         tool_specified="$RMDIR"
10683         tool_basename="${tool_specified##*/}"
10684         if test "x$tool_basename" = "x$tool_specified"; then
10685           # A command without a complete path is provided, search $PATH.
10686           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10687 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10688           # Extract the first word of "$tool_basename", so it can be a program name with args.
10689 set dummy $tool_basename; ac_word=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691 $as_echo_n "checking for $ac_word... " >&6; }
10692 if ${ac_cv_path_RMDIR+:} false; then :
10693   $as_echo_n "(cached) " >&6
10694 else
10695   case $RMDIR in
10696   [\\/]* | ?:[\\/]*)
10697   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10698   ;;
10699   *)
10700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in $PATH
10702 do
10703   IFS=$as_save_IFS
10704   test -z "$as_dir" && as_dir=.
10705     for ac_exec_ext in '' $ac_executable_extensions; do
10706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10709     break 2
10710   fi
10711 done
10712   done
10713 IFS=$as_save_IFS
10714 
10715   ;;
10716 esac
10717 fi
10718 RMDIR=$ac_cv_path_RMDIR
10719 if test -n "$RMDIR"; then
10720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10721 $as_echo "$RMDIR" >&6; }
10722 else
10723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10725 fi
10726 
10727 
10728           if test "x$RMDIR" = x; then
10729             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10730           fi
10731         else
10732           # Otherwise we believe it is a complete path. Use it as it is.
10733           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10734 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10735           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10736 $as_echo_n "checking for RMDIR... " >&6; }
10737           if test ! -x "$tool_specified"; then
10738             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10739 $as_echo "not found" >&6; }
10740             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10741           fi
10742           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10743 $as_echo "$tool_specified" >&6; }
10744         fi
10745       fi
10746     fi
10747 
10748   fi
10749 
10750 
10751 
10752   if test "x$RMDIR" = x; then
10753     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10754   fi
10755 
10756 
10757 
10758 
10759 
10760   # Publish this variable in the help.
10761 
10762 
10763   if [ -z "${SH+x}" ]; then
10764     # The variable is not set by user, try to locate tool using the code snippet
10765     for ac_prog in sh
10766 do
10767   # Extract the first word of "$ac_prog", so it can be a program name with args.
10768 set dummy $ac_prog; ac_word=$2
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10770 $as_echo_n "checking for $ac_word... " >&6; }
10771 if ${ac_cv_path_SH+:} false; then :
10772   $as_echo_n "(cached) " >&6
10773 else
10774   case $SH in
10775   [\\/]* | ?:[\\/]*)
10776   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10777   ;;
10778   *)
10779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780 for as_dir in $PATH
10781 do
10782   IFS=$as_save_IFS
10783   test -z "$as_dir" && as_dir=.
10784     for ac_exec_ext in '' $ac_executable_extensions; do
10785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10786     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10788     break 2
10789   fi
10790 done
10791   done
10792 IFS=$as_save_IFS
10793 
10794   ;;
10795 esac
10796 fi
10797 SH=$ac_cv_path_SH
10798 if test -n "$SH"; then
10799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10800 $as_echo "$SH" >&6; }
10801 else
10802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803 $as_echo "no" >&6; }
10804 fi
10805 
10806 
10807   test -n "$SH" && break
10808 done
10809 
10810   else
10811     # The variable is set, but is it from the command line or the environment?
10812 
10813     # Try to remove the string !SH! from our list.
10814     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10815     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10816       # If it failed, the variable was not from the command line. Ignore it,
10817       # but warn the user (except for BASH, which is always set by the calling BASH).
10818       if test "xSH" != xBASH; then
10819         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10820 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10821       fi
10822       # Try to locate tool using the code snippet
10823       for ac_prog in sh
10824 do
10825   # Extract the first word of "$ac_prog", so it can be a program name with args.
10826 set dummy $ac_prog; ac_word=$2
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828 $as_echo_n "checking for $ac_word... " >&6; }
10829 if ${ac_cv_path_SH+:} false; then :
10830   $as_echo_n "(cached) " >&6
10831 else
10832   case $SH in
10833   [\\/]* | ?:[\\/]*)
10834   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10835   ;;
10836   *)
10837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838 for as_dir in $PATH
10839 do
10840   IFS=$as_save_IFS
10841   test -z "$as_dir" && as_dir=.
10842     for ac_exec_ext in '' $ac_executable_extensions; do
10843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10844     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846     break 2
10847   fi
10848 done
10849   done
10850 IFS=$as_save_IFS
10851 
10852   ;;
10853 esac
10854 fi
10855 SH=$ac_cv_path_SH
10856 if test -n "$SH"; then
10857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10858 $as_echo "$SH" >&6; }
10859 else
10860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861 $as_echo "no" >&6; }
10862 fi
10863 
10864 
10865   test -n "$SH" && break
10866 done
10867 
10868     else
10869       # If it succeeded, then it was overridden by the user. We will use it
10870       # for the tool.
10871 
10872       # First remove it from the list of overridden variables, so we can test
10873       # for unknown variables in the end.
10874       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10875 
10876       # Check if we try to supply an empty value
10877       if test "x$SH" = x; then
10878         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10879 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10880         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10881 $as_echo_n "checking for SH... " >&6; }
10882         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10883 $as_echo "disabled" >&6; }
10884       else
10885         # Check if the provided tool contains a complete path.
10886         tool_specified="$SH"
10887         tool_basename="${tool_specified##*/}"
10888         if test "x$tool_basename" = "x$tool_specified"; then
10889           # A command without a complete path is provided, search $PATH.
10890           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10891 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10892           # Extract the first word of "$tool_basename", so it can be a program name with args.
10893 set dummy $tool_basename; ac_word=$2
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10895 $as_echo_n "checking for $ac_word... " >&6; }
10896 if ${ac_cv_path_SH+:} false; then :
10897   $as_echo_n "(cached) " >&6
10898 else
10899   case $SH in
10900   [\\/]* | ?:[\\/]*)
10901   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10902   ;;
10903   *)
10904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10905 for as_dir in $PATH
10906 do
10907   IFS=$as_save_IFS
10908   test -z "$as_dir" && as_dir=.
10909     for ac_exec_ext in '' $ac_executable_extensions; do
10910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10911     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10913     break 2
10914   fi
10915 done
10916   done
10917 IFS=$as_save_IFS
10918 
10919   ;;
10920 esac
10921 fi
10922 SH=$ac_cv_path_SH
10923 if test -n "$SH"; then
10924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10925 $as_echo "$SH" >&6; }
10926 else
10927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928 $as_echo "no" >&6; }
10929 fi
10930 
10931 
10932           if test "x$SH" = x; then
10933             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10934           fi
10935         else
10936           # Otherwise we believe it is a complete path. Use it as it is.
10937           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10938 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10939           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10940 $as_echo_n "checking for SH... " >&6; }
10941           if test ! -x "$tool_specified"; then
10942             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10943 $as_echo "not found" >&6; }
10944             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10945           fi
10946           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10947 $as_echo "$tool_specified" >&6; }
10948         fi
10949       fi
10950     fi
10951 
10952   fi
10953 
10954 
10955 
10956   if test "x$SH" = x; then
10957     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10958   fi
10959 
10960 
10961 
10962 
10963 
10964   # Publish this variable in the help.
10965 
10966 
10967   if [ -z "${SORT+x}" ]; then
10968     # The variable is not set by user, try to locate tool using the code snippet
10969     for ac_prog in sort
10970 do
10971   # Extract the first word of "$ac_prog", so it can be a program name with args.
10972 set dummy $ac_prog; ac_word=$2
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974 $as_echo_n "checking for $ac_word... " >&6; }
10975 if ${ac_cv_path_SORT+:} false; then :
10976   $as_echo_n "(cached) " >&6
10977 else
10978   case $SORT in
10979   [\\/]* | ?:[\\/]*)
10980   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10981   ;;
10982   *)
10983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10985 do
10986   IFS=$as_save_IFS
10987   test -z "$as_dir" && as_dir=.
10988     for ac_exec_ext in '' $ac_executable_extensions; do
10989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10990     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992     break 2
10993   fi
10994 done
10995   done
10996 IFS=$as_save_IFS
10997 
10998   ;;
10999 esac
11000 fi
11001 SORT=$ac_cv_path_SORT
11002 if test -n "$SORT"; then
11003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11004 $as_echo "$SORT" >&6; }
11005 else
11006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11008 fi
11009 
11010 
11011   test -n "$SORT" && break
11012 done
11013 
11014   else
11015     # The variable is set, but is it from the command line or the environment?
11016 
11017     # Try to remove the string !SORT! from our list.
11018     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
11019     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11020       # If it failed, the variable was not from the command line. Ignore it,
11021       # but warn the user (except for BASH, which is always set by the calling BASH).
11022       if test "xSORT" != xBASH; then
11023         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
11024 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
11025       fi
11026       # Try to locate tool using the code snippet
11027       for ac_prog in sort
11028 do
11029   # Extract the first word of "$ac_prog", so it can be a program name with args.
11030 set dummy $ac_prog; ac_word=$2
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 $as_echo_n "checking for $ac_word... " >&6; }
11033 if ${ac_cv_path_SORT+:} false; then :
11034   $as_echo_n "(cached) " >&6
11035 else
11036   case $SORT in
11037   [\\/]* | ?:[\\/]*)
11038   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11039   ;;
11040   *)
11041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11043 do
11044   IFS=$as_save_IFS
11045   test -z "$as_dir" && as_dir=.
11046     for ac_exec_ext in '' $ac_executable_extensions; do
11047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11048     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11050     break 2
11051   fi
11052 done
11053   done
11054 IFS=$as_save_IFS
11055 
11056   ;;
11057 esac
11058 fi
11059 SORT=$ac_cv_path_SORT
11060 if test -n "$SORT"; then
11061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11062 $as_echo "$SORT" >&6; }
11063 else
11064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065 $as_echo "no" >&6; }
11066 fi
11067 
11068 
11069   test -n "$SORT" && break
11070 done
11071 
11072     else
11073       # If it succeeded, then it was overridden by the user. We will use it
11074       # for the tool.
11075 
11076       # First remove it from the list of overridden variables, so we can test
11077       # for unknown variables in the end.
11078       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11079 
11080       # Check if we try to supply an empty value
11081       if test "x$SORT" = x; then
11082         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
11083 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
11084         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11085 $as_echo_n "checking for SORT... " >&6; }
11086         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11087 $as_echo "disabled" >&6; }
11088       else
11089         # Check if the provided tool contains a complete path.
11090         tool_specified="$SORT"
11091         tool_basename="${tool_specified##*/}"
11092         if test "x$tool_basename" = "x$tool_specified"; then
11093           # A command without a complete path is provided, search $PATH.
11094           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11095 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11096           # Extract the first word of "$tool_basename", so it can be a program name with args.
11097 set dummy $tool_basename; ac_word=$2
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if ${ac_cv_path_SORT+:} false; then :
11101   $as_echo_n "(cached) " >&6
11102 else
11103   case $SORT in
11104   [\\/]* | ?:[\\/]*)
11105   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11106   ;;
11107   *)
11108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109 for as_dir in $PATH
11110 do
11111   IFS=$as_save_IFS
11112   test -z "$as_dir" && as_dir=.
11113     for ac_exec_ext in '' $ac_executable_extensions; do
11114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11115     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11117     break 2
11118   fi
11119 done
11120   done
11121 IFS=$as_save_IFS
11122 
11123   ;;
11124 esac
11125 fi
11126 SORT=$ac_cv_path_SORT
11127 if test -n "$SORT"; then
11128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11129 $as_echo "$SORT" >&6; }
11130 else
11131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132 $as_echo "no" >&6; }
11133 fi
11134 
11135 
11136           if test "x$SORT" = x; then
11137             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11138           fi
11139         else
11140           # Otherwise we believe it is a complete path. Use it as it is.
11141           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11142 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11143           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11144 $as_echo_n "checking for SORT... " >&6; }
11145           if test ! -x "$tool_specified"; then
11146             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11147 $as_echo "not found" >&6; }
11148             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11149           fi
11150           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11151 $as_echo "$tool_specified" >&6; }
11152         fi
11153       fi
11154     fi
11155 
11156   fi
11157 
11158 
11159 
11160   if test "x$SORT" = x; then
11161     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11162   fi
11163 
11164 
11165 
11166 
11167 
11168   # Publish this variable in the help.
11169 
11170 
11171   if [ -z "${TAIL+x}" ]; then
11172     # The variable is not set by user, try to locate tool using the code snippet
11173     for ac_prog in tail
11174 do
11175   # Extract the first word of "$ac_prog", so it can be a program name with args.
11176 set dummy $ac_prog; ac_word=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 $as_echo_n "checking for $ac_word... " >&6; }
11179 if ${ac_cv_path_TAIL+:} false; then :
11180   $as_echo_n "(cached) " >&6
11181 else
11182   case $TAIL in
11183   [\\/]* | ?:[\\/]*)
11184   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11185   ;;
11186   *)
11187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11189 do
11190   IFS=$as_save_IFS
11191   test -z "$as_dir" && as_dir=.
11192     for ac_exec_ext in '' $ac_executable_extensions; do
11193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11194     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196     break 2
11197   fi
11198 done
11199   done
11200 IFS=$as_save_IFS
11201 
11202   ;;
11203 esac
11204 fi
11205 TAIL=$ac_cv_path_TAIL
11206 if test -n "$TAIL"; then
11207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11208 $as_echo "$TAIL" >&6; }
11209 else
11210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11212 fi
11213 
11214 
11215   test -n "$TAIL" && break
11216 done
11217 
11218   else
11219     # The variable is set, but is it from the command line or the environment?
11220 
11221     # Try to remove the string !TAIL! from our list.
11222     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11223     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11224       # If it failed, the variable was not from the command line. Ignore it,
11225       # but warn the user (except for BASH, which is always set by the calling BASH).
11226       if test "xTAIL" != xBASH; then
11227         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11228 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11229       fi
11230       # Try to locate tool using the code snippet
11231       for ac_prog in tail
11232 do
11233   # Extract the first word of "$ac_prog", so it can be a program name with args.
11234 set dummy $ac_prog; ac_word=$2
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11236 $as_echo_n "checking for $ac_word... " >&6; }
11237 if ${ac_cv_path_TAIL+:} false; then :
11238   $as_echo_n "(cached) " >&6
11239 else
11240   case $TAIL in
11241   [\\/]* | ?:[\\/]*)
11242   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11243   ;;
11244   *)
11245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246 for as_dir in $PATH
11247 do
11248   IFS=$as_save_IFS
11249   test -z "$as_dir" && as_dir=.
11250     for ac_exec_ext in '' $ac_executable_extensions; do
11251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11252     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254     break 2
11255   fi
11256 done
11257   done
11258 IFS=$as_save_IFS
11259 
11260   ;;
11261 esac
11262 fi
11263 TAIL=$ac_cv_path_TAIL
11264 if test -n "$TAIL"; then
11265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11266 $as_echo "$TAIL" >&6; }
11267 else
11268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11270 fi
11271 
11272 
11273   test -n "$TAIL" && break
11274 done
11275 
11276     else
11277       # If it succeeded, then it was overridden by the user. We will use it
11278       # for the tool.
11279 
11280       # First remove it from the list of overridden variables, so we can test
11281       # for unknown variables in the end.
11282       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11283 
11284       # Check if we try to supply an empty value
11285       if test "x$TAIL" = x; then
11286         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11287 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11289 $as_echo_n "checking for TAIL... " >&6; }
11290         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11291 $as_echo "disabled" >&6; }
11292       else
11293         # Check if the provided tool contains a complete path.
11294         tool_specified="$TAIL"
11295         tool_basename="${tool_specified##*/}"
11296         if test "x$tool_basename" = "x$tool_specified"; then
11297           # A command without a complete path is provided, search $PATH.
11298           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11299 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11300           # Extract the first word of "$tool_basename", so it can be a program name with args.
11301 set dummy $tool_basename; ac_word=$2
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11303 $as_echo_n "checking for $ac_word... " >&6; }
11304 if ${ac_cv_path_TAIL+:} false; then :
11305   $as_echo_n "(cached) " >&6
11306 else
11307   case $TAIL in
11308   [\\/]* | ?:[\\/]*)
11309   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11310   ;;
11311   *)
11312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313 for as_dir in $PATH
11314 do
11315   IFS=$as_save_IFS
11316   test -z "$as_dir" && as_dir=.
11317     for ac_exec_ext in '' $ac_executable_extensions; do
11318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11319     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11321     break 2
11322   fi
11323 done
11324   done
11325 IFS=$as_save_IFS
11326 
11327   ;;
11328 esac
11329 fi
11330 TAIL=$ac_cv_path_TAIL
11331 if test -n "$TAIL"; then
11332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11333 $as_echo "$TAIL" >&6; }
11334 else
11335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336 $as_echo "no" >&6; }
11337 fi
11338 
11339 
11340           if test "x$TAIL" = x; then
11341             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11342           fi
11343         else
11344           # Otherwise we believe it is a complete path. Use it as it is.
11345           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11346 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11347           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11348 $as_echo_n "checking for TAIL... " >&6; }
11349           if test ! -x "$tool_specified"; then
11350             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11351 $as_echo "not found" >&6; }
11352             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11353           fi
11354           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11355 $as_echo "$tool_specified" >&6; }
11356         fi
11357       fi
11358     fi
11359 
11360   fi
11361 
11362 
11363 
11364   if test "x$TAIL" = x; then
11365     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11366   fi
11367 
11368 
11369 
11370 
11371 
11372   # Publish this variable in the help.
11373 
11374 
11375   if [ -z "${TAR+x}" ]; then
11376     # The variable is not set by user, try to locate tool using the code snippet
11377     for ac_prog in gtar tar
11378 do
11379   # Extract the first word of "$ac_prog", so it can be a program name with args.
11380 set dummy $ac_prog; ac_word=$2
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if ${ac_cv_path_TAR+:} false; then :
11384   $as_echo_n "(cached) " >&6
11385 else
11386   case $TAR in
11387   [\\/]* | ?:[\\/]*)
11388   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11389   ;;
11390   *)
11391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394   IFS=$as_save_IFS
11395   test -z "$as_dir" && as_dir=.
11396     for ac_exec_ext in '' $ac_executable_extensions; do
11397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11398     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400     break 2
11401   fi
11402 done
11403   done
11404 IFS=$as_save_IFS
11405 
11406   ;;
11407 esac
11408 fi
11409 TAR=$ac_cv_path_TAR
11410 if test -n "$TAR"; then
11411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11412 $as_echo "$TAR" >&6; }
11413 else
11414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415 $as_echo "no" >&6; }
11416 fi
11417 
11418 
11419   test -n "$TAR" && break
11420 done
11421 
11422   else
11423     # The variable is set, but is it from the command line or the environment?
11424 
11425     # Try to remove the string !TAR! from our list.
11426     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11427     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11428       # If it failed, the variable was not from the command line. Ignore it,
11429       # but warn the user (except for BASH, which is always set by the calling BASH).
11430       if test "xTAR" != xBASH; then
11431         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11432 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11433       fi
11434       # Try to locate tool using the code snippet
11435       for ac_prog in gtar tar
11436 do
11437   # Extract the first word of "$ac_prog", so it can be a program name with args.
11438 set dummy $ac_prog; ac_word=$2
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11440 $as_echo_n "checking for $ac_word... " >&6; }
11441 if ${ac_cv_path_TAR+:} false; then :
11442   $as_echo_n "(cached) " >&6
11443 else
11444   case $TAR in
11445   [\\/]* | ?:[\\/]*)
11446   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11447   ;;
11448   *)
11449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450 for as_dir in $PATH
11451 do
11452   IFS=$as_save_IFS
11453   test -z "$as_dir" && as_dir=.
11454     for ac_exec_ext in '' $ac_executable_extensions; do
11455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11456     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11458     break 2
11459   fi
11460 done
11461   done
11462 IFS=$as_save_IFS
11463 
11464   ;;
11465 esac
11466 fi
11467 TAR=$ac_cv_path_TAR
11468 if test -n "$TAR"; then
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11470 $as_echo "$TAR" >&6; }
11471 else
11472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11474 fi
11475 
11476 
11477   test -n "$TAR" && break
11478 done
11479 
11480     else
11481       # If it succeeded, then it was overridden by the user. We will use it
11482       # for the tool.
11483 
11484       # First remove it from the list of overridden variables, so we can test
11485       # for unknown variables in the end.
11486       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11487 
11488       # Check if we try to supply an empty value
11489       if test "x$TAR" = x; then
11490         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11491 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11492         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11493 $as_echo_n "checking for TAR... " >&6; }
11494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11495 $as_echo "disabled" >&6; }
11496       else
11497         # Check if the provided tool contains a complete path.
11498         tool_specified="$TAR"
11499         tool_basename="${tool_specified##*/}"
11500         if test "x$tool_basename" = "x$tool_specified"; then
11501           # A command without a complete path is provided, search $PATH.
11502           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11503 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11504           # Extract the first word of "$tool_basename", so it can be a program name with args.
11505 set dummy $tool_basename; ac_word=$2
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507 $as_echo_n "checking for $ac_word... " >&6; }
11508 if ${ac_cv_path_TAR+:} false; then :
11509   $as_echo_n "(cached) " >&6
11510 else
11511   case $TAR in
11512   [\\/]* | ?:[\\/]*)
11513   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11514   ;;
11515   *)
11516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517 for as_dir in $PATH
11518 do
11519   IFS=$as_save_IFS
11520   test -z "$as_dir" && as_dir=.
11521     for ac_exec_ext in '' $ac_executable_extensions; do
11522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11523     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11525     break 2
11526   fi
11527 done
11528   done
11529 IFS=$as_save_IFS
11530 
11531   ;;
11532 esac
11533 fi
11534 TAR=$ac_cv_path_TAR
11535 if test -n "$TAR"; then
11536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11537 $as_echo "$TAR" >&6; }
11538 else
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540 $as_echo "no" >&6; }
11541 fi
11542 
11543 
11544           if test "x$TAR" = x; then
11545             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11546           fi
11547         else
11548           # Otherwise we believe it is a complete path. Use it as it is.
11549           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11550 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11551           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11552 $as_echo_n "checking for TAR... " >&6; }
11553           if test ! -x "$tool_specified"; then
11554             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11555 $as_echo "not found" >&6; }
11556             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11557           fi
11558           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11559 $as_echo "$tool_specified" >&6; }
11560         fi
11561       fi
11562     fi
11563 
11564   fi
11565 
11566 
11567 
11568   if test "x$TAR" = x; then
11569     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11570   fi
11571 
11572 
11573 
11574 
11575 
11576   # Publish this variable in the help.
11577 
11578 
11579   if [ -z "${TEE+x}" ]; then
11580     # The variable is not set by user, try to locate tool using the code snippet
11581     for ac_prog in tee
11582 do
11583   # Extract the first word of "$ac_prog", so it can be a program name with args.
11584 set dummy $ac_prog; ac_word=$2
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11586 $as_echo_n "checking for $ac_word... " >&6; }
11587 if ${ac_cv_path_TEE+:} false; then :
11588   $as_echo_n "(cached) " >&6
11589 else
11590   case $TEE in
11591   [\\/]* | ?:[\\/]*)
11592   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11593   ;;
11594   *)
11595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in $PATH
11597 do
11598   IFS=$as_save_IFS
11599   test -z "$as_dir" && as_dir=.
11600     for ac_exec_ext in '' $ac_executable_extensions; do
11601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11602     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11604     break 2
11605   fi
11606 done
11607   done
11608 IFS=$as_save_IFS
11609 
11610   ;;
11611 esac
11612 fi
11613 TEE=$ac_cv_path_TEE
11614 if test -n "$TEE"; then
11615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11616 $as_echo "$TEE" >&6; }
11617 else
11618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11620 fi
11621 
11622 
11623   test -n "$TEE" && break
11624 done
11625 
11626   else
11627     # The variable is set, but is it from the command line or the environment?
11628 
11629     # Try to remove the string !TEE! from our list.
11630     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11631     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11632       # If it failed, the variable was not from the command line. Ignore it,
11633       # but warn the user (except for BASH, which is always set by the calling BASH).
11634       if test "xTEE" != xBASH; then
11635         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11636 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11637       fi
11638       # Try to locate tool using the code snippet
11639       for ac_prog in tee
11640 do
11641   # Extract the first word of "$ac_prog", so it can be a program name with args.
11642 set dummy $ac_prog; ac_word=$2
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11644 $as_echo_n "checking for $ac_word... " >&6; }
11645 if ${ac_cv_path_TEE+:} false; then :
11646   $as_echo_n "(cached) " >&6
11647 else
11648   case $TEE in
11649   [\\/]* | ?:[\\/]*)
11650   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11651   ;;
11652   *)
11653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11654 for as_dir in $PATH
11655 do
11656   IFS=$as_save_IFS
11657   test -z "$as_dir" && as_dir=.
11658     for ac_exec_ext in '' $ac_executable_extensions; do
11659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11660     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11662     break 2
11663   fi
11664 done
11665   done
11666 IFS=$as_save_IFS
11667 
11668   ;;
11669 esac
11670 fi
11671 TEE=$ac_cv_path_TEE
11672 if test -n "$TEE"; then
11673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11674 $as_echo "$TEE" >&6; }
11675 else
11676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677 $as_echo "no" >&6; }
11678 fi
11679 
11680 
11681   test -n "$TEE" && break
11682 done
11683 
11684     else
11685       # If it succeeded, then it was overridden by the user. We will use it
11686       # for the tool.
11687 
11688       # First remove it from the list of overridden variables, so we can test
11689       # for unknown variables in the end.
11690       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11691 
11692       # Check if we try to supply an empty value
11693       if test "x$TEE" = x; then
11694         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11695 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11696         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11697 $as_echo_n "checking for TEE... " >&6; }
11698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11699 $as_echo "disabled" >&6; }
11700       else
11701         # Check if the provided tool contains a complete path.
11702         tool_specified="$TEE"
11703         tool_basename="${tool_specified##*/}"
11704         if test "x$tool_basename" = "x$tool_specified"; then
11705           # A command without a complete path is provided, search $PATH.
11706           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11707 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11708           # Extract the first word of "$tool_basename", so it can be a program name with args.
11709 set dummy $tool_basename; ac_word=$2
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711 $as_echo_n "checking for $ac_word... " >&6; }
11712 if ${ac_cv_path_TEE+:} false; then :
11713   $as_echo_n "(cached) " >&6
11714 else
11715   case $TEE in
11716   [\\/]* | ?:[\\/]*)
11717   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11718   ;;
11719   *)
11720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721 for as_dir in $PATH
11722 do
11723   IFS=$as_save_IFS
11724   test -z "$as_dir" && as_dir=.
11725     for ac_exec_ext in '' $ac_executable_extensions; do
11726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11727     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11729     break 2
11730   fi
11731 done
11732   done
11733 IFS=$as_save_IFS
11734 
11735   ;;
11736 esac
11737 fi
11738 TEE=$ac_cv_path_TEE
11739 if test -n "$TEE"; then
11740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11741 $as_echo "$TEE" >&6; }
11742 else
11743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11745 fi
11746 
11747 
11748           if test "x$TEE" = x; then
11749             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11750           fi
11751         else
11752           # Otherwise we believe it is a complete path. Use it as it is.
11753           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11754 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11755           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11756 $as_echo_n "checking for TEE... " >&6; }
11757           if test ! -x "$tool_specified"; then
11758             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11759 $as_echo "not found" >&6; }
11760             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11761           fi
11762           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11763 $as_echo "$tool_specified" >&6; }
11764         fi
11765       fi
11766     fi
11767 
11768   fi
11769 
11770 
11771 
11772   if test "x$TEE" = x; then
11773     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11774   fi
11775 
11776 
11777 
11778 
11779 
11780   # Publish this variable in the help.
11781 
11782 
11783   if [ -z "${TOUCH+x}" ]; then
11784     # The variable is not set by user, try to locate tool using the code snippet
11785     for ac_prog in touch
11786 do
11787   # Extract the first word of "$ac_prog", so it can be a program name with args.
11788 set dummy $ac_prog; ac_word=$2
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11790 $as_echo_n "checking for $ac_word... " >&6; }
11791 if ${ac_cv_path_TOUCH+:} false; then :
11792   $as_echo_n "(cached) " >&6
11793 else
11794   case $TOUCH in
11795   [\\/]* | ?:[\\/]*)
11796   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11797   ;;
11798   *)
11799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800 for as_dir in $PATH
11801 do
11802   IFS=$as_save_IFS
11803   test -z "$as_dir" && as_dir=.
11804     for ac_exec_ext in '' $ac_executable_extensions; do
11805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11806     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11808     break 2
11809   fi
11810 done
11811   done
11812 IFS=$as_save_IFS
11813 
11814   ;;
11815 esac
11816 fi
11817 TOUCH=$ac_cv_path_TOUCH
11818 if test -n "$TOUCH"; then
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11820 $as_echo "$TOUCH" >&6; }
11821 else
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11824 fi
11825 
11826 
11827   test -n "$TOUCH" && break
11828 done
11829 
11830   else
11831     # The variable is set, but is it from the command line or the environment?
11832 
11833     # Try to remove the string !TOUCH! from our list.
11834     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11835     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11836       # If it failed, the variable was not from the command line. Ignore it,
11837       # but warn the user (except for BASH, which is always set by the calling BASH).
11838       if test "xTOUCH" != xBASH; then
11839         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11840 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11841       fi
11842       # Try to locate tool using the code snippet
11843       for ac_prog in touch
11844 do
11845   # Extract the first word of "$ac_prog", so it can be a program name with args.
11846 set dummy $ac_prog; ac_word=$2
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848 $as_echo_n "checking for $ac_word... " >&6; }
11849 if ${ac_cv_path_TOUCH+:} false; then :
11850   $as_echo_n "(cached) " >&6
11851 else
11852   case $TOUCH in
11853   [\\/]* | ?:[\\/]*)
11854   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11855   ;;
11856   *)
11857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11859 do
11860   IFS=$as_save_IFS
11861   test -z "$as_dir" && as_dir=.
11862     for ac_exec_ext in '' $ac_executable_extensions; do
11863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11864     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866     break 2
11867   fi
11868 done
11869   done
11870 IFS=$as_save_IFS
11871 
11872   ;;
11873 esac
11874 fi
11875 TOUCH=$ac_cv_path_TOUCH
11876 if test -n "$TOUCH"; then
11877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11878 $as_echo "$TOUCH" >&6; }
11879 else
11880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11882 fi
11883 
11884 
11885   test -n "$TOUCH" && break
11886 done
11887 
11888     else
11889       # If it succeeded, then it was overridden by the user. We will use it
11890       # for the tool.
11891 
11892       # First remove it from the list of overridden variables, so we can test
11893       # for unknown variables in the end.
11894       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11895 
11896       # Check if we try to supply an empty value
11897       if test "x$TOUCH" = x; then
11898         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11899 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11901 $as_echo_n "checking for TOUCH... " >&6; }
11902         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11903 $as_echo "disabled" >&6; }
11904       else
11905         # Check if the provided tool contains a complete path.
11906         tool_specified="$TOUCH"
11907         tool_basename="${tool_specified##*/}"
11908         if test "x$tool_basename" = "x$tool_specified"; then
11909           # A command without a complete path is provided, search $PATH.
11910           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11911 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11912           # Extract the first word of "$tool_basename", so it can be a program name with args.
11913 set dummy $tool_basename; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if ${ac_cv_path_TOUCH+:} false; then :
11917   $as_echo_n "(cached) " >&6
11918 else
11919   case $TOUCH in
11920   [\\/]* | ?:[\\/]*)
11921   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11922   ;;
11923   *)
11924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 for as_dir in $PATH
11926 do
11927   IFS=$as_save_IFS
11928   test -z "$as_dir" && as_dir=.
11929     for ac_exec_ext in '' $ac_executable_extensions; do
11930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11931     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933     break 2
11934   fi
11935 done
11936   done
11937 IFS=$as_save_IFS
11938 
11939   ;;
11940 esac
11941 fi
11942 TOUCH=$ac_cv_path_TOUCH
11943 if test -n "$TOUCH"; then
11944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11945 $as_echo "$TOUCH" >&6; }
11946 else
11947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 $as_echo "no" >&6; }
11949 fi
11950 
11951 
11952           if test "x$TOUCH" = x; then
11953             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11954           fi
11955         else
11956           # Otherwise we believe it is a complete path. Use it as it is.
11957           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11958 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11959           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11960 $as_echo_n "checking for TOUCH... " >&6; }
11961           if test ! -x "$tool_specified"; then
11962             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11963 $as_echo "not found" >&6; }
11964             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11965           fi
11966           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11967 $as_echo "$tool_specified" >&6; }
11968         fi
11969       fi
11970     fi
11971 
11972   fi
11973 
11974 
11975 
11976   if test "x$TOUCH" = x; then
11977     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11978   fi
11979 
11980 
11981 
11982 
11983 
11984   # Publish this variable in the help.
11985 
11986 
11987   if [ -z "${TR+x}" ]; then
11988     # The variable is not set by user, try to locate tool using the code snippet
11989     for ac_prog in tr
11990 do
11991   # Extract the first word of "$ac_prog", so it can be a program name with args.
11992 set dummy $ac_prog; ac_word=$2
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994 $as_echo_n "checking for $ac_word... " >&6; }
11995 if ${ac_cv_path_TR+:} false; then :
11996   $as_echo_n "(cached) " >&6
11997 else
11998   case $TR in
11999   [\\/]* | ?:[\\/]*)
12000   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12001   ;;
12002   *)
12003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $PATH
12005 do
12006   IFS=$as_save_IFS
12007   test -z "$as_dir" && as_dir=.
12008     for ac_exec_ext in '' $ac_executable_extensions; do
12009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12010     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012     break 2
12013   fi
12014 done
12015   done
12016 IFS=$as_save_IFS
12017 
12018   ;;
12019 esac
12020 fi
12021 TR=$ac_cv_path_TR
12022 if test -n "$TR"; then
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12024 $as_echo "$TR" >&6; }
12025 else
12026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12028 fi
12029 
12030 
12031   test -n "$TR" && break
12032 done
12033 
12034   else
12035     # The variable is set, but is it from the command line or the environment?
12036 
12037     # Try to remove the string !TR! from our list.
12038     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
12039     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12040       # If it failed, the variable was not from the command line. Ignore it,
12041       # but warn the user (except for BASH, which is always set by the calling BASH).
12042       if test "xTR" != xBASH; then
12043         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
12044 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
12045       fi
12046       # Try to locate tool using the code snippet
12047       for ac_prog in tr
12048 do
12049   # Extract the first word of "$ac_prog", so it can be a program name with args.
12050 set dummy $ac_prog; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_path_TR+:} false; then :
12054   $as_echo_n "(cached) " >&6
12055 else
12056   case $TR in
12057   [\\/]* | ?:[\\/]*)
12058   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12059   ;;
12060   *)
12061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12063 do
12064   IFS=$as_save_IFS
12065   test -z "$as_dir" && as_dir=.
12066     for ac_exec_ext in '' $ac_executable_extensions; do
12067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12068     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070     break 2
12071   fi
12072 done
12073   done
12074 IFS=$as_save_IFS
12075 
12076   ;;
12077 esac
12078 fi
12079 TR=$ac_cv_path_TR
12080 if test -n "$TR"; then
12081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12082 $as_echo "$TR" >&6; }
12083 else
12084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12086 fi
12087 
12088 
12089   test -n "$TR" && break
12090 done
12091 
12092     else
12093       # If it succeeded, then it was overridden by the user. We will use it
12094       # for the tool.
12095 
12096       # First remove it from the list of overridden variables, so we can test
12097       # for unknown variables in the end.
12098       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12099 
12100       # Check if we try to supply an empty value
12101       if test "x$TR" = x; then
12102         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12103 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12104         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12105 $as_echo_n "checking for TR... " >&6; }
12106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12107 $as_echo "disabled" >&6; }
12108       else
12109         # Check if the provided tool contains a complete path.
12110         tool_specified="$TR"
12111         tool_basename="${tool_specified##*/}"
12112         if test "x$tool_basename" = "x$tool_specified"; then
12113           # A command without a complete path is provided, search $PATH.
12114           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12115 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12116           # Extract the first word of "$tool_basename", so it can be a program name with args.
12117 set dummy $tool_basename; ac_word=$2
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119 $as_echo_n "checking for $ac_word... " >&6; }
12120 if ${ac_cv_path_TR+:} false; then :
12121   $as_echo_n "(cached) " >&6
12122 else
12123   case $TR in
12124   [\\/]* | ?:[\\/]*)
12125   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12126   ;;
12127   *)
12128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129 for as_dir in $PATH
12130 do
12131   IFS=$as_save_IFS
12132   test -z "$as_dir" && as_dir=.
12133     for ac_exec_ext in '' $ac_executable_extensions; do
12134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12135     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12137     break 2
12138   fi
12139 done
12140   done
12141 IFS=$as_save_IFS
12142 
12143   ;;
12144 esac
12145 fi
12146 TR=$ac_cv_path_TR
12147 if test -n "$TR"; then
12148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12149 $as_echo "$TR" >&6; }
12150 else
12151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152 $as_echo "no" >&6; }
12153 fi
12154 
12155 
12156           if test "x$TR" = x; then
12157             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12158           fi
12159         else
12160           # Otherwise we believe it is a complete path. Use it as it is.
12161           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12162 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12163           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12164 $as_echo_n "checking for TR... " >&6; }
12165           if test ! -x "$tool_specified"; then
12166             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12167 $as_echo "not found" >&6; }
12168             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12169           fi
12170           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12171 $as_echo "$tool_specified" >&6; }
12172         fi
12173       fi
12174     fi
12175 
12176   fi
12177 
12178 
12179 
12180   if test "x$TR" = x; then
12181     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12182   fi
12183 
12184 
12185 
12186 
12187 
12188   # Publish this variable in the help.
12189 
12190 
12191   if [ -z "${UNAME+x}" ]; then
12192     # The variable is not set by user, try to locate tool using the code snippet
12193     for ac_prog in uname
12194 do
12195   # Extract the first word of "$ac_prog", so it can be a program name with args.
12196 set dummy $ac_prog; ac_word=$2
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12198 $as_echo_n "checking for $ac_word... " >&6; }
12199 if ${ac_cv_path_UNAME+:} false; then :
12200   $as_echo_n "(cached) " >&6
12201 else
12202   case $UNAME in
12203   [\\/]* | ?:[\\/]*)
12204   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12205   ;;
12206   *)
12207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12208 for as_dir in $PATH
12209 do
12210   IFS=$as_save_IFS
12211   test -z "$as_dir" && as_dir=.
12212     for ac_exec_ext in '' $ac_executable_extensions; do
12213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12214     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12216     break 2
12217   fi
12218 done
12219   done
12220 IFS=$as_save_IFS
12221 
12222   ;;
12223 esac
12224 fi
12225 UNAME=$ac_cv_path_UNAME
12226 if test -n "$UNAME"; then
12227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12228 $as_echo "$UNAME" >&6; }
12229 else
12230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231 $as_echo "no" >&6; }
12232 fi
12233 
12234 
12235   test -n "$UNAME" && break
12236 done
12237 
12238   else
12239     # The variable is set, but is it from the command line or the environment?
12240 
12241     # Try to remove the string !UNAME! from our list.
12242     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12243     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12244       # If it failed, the variable was not from the command line. Ignore it,
12245       # but warn the user (except for BASH, which is always set by the calling BASH).
12246       if test "xUNAME" != xBASH; then
12247         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12248 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12249       fi
12250       # Try to locate tool using the code snippet
12251       for ac_prog in uname
12252 do
12253   # Extract the first word of "$ac_prog", so it can be a program name with args.
12254 set dummy $ac_prog; ac_word=$2
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256 $as_echo_n "checking for $ac_word... " >&6; }
12257 if ${ac_cv_path_UNAME+:} false; then :
12258   $as_echo_n "(cached) " >&6
12259 else
12260   case $UNAME in
12261   [\\/]* | ?:[\\/]*)
12262   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12263   ;;
12264   *)
12265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266 for as_dir in $PATH
12267 do
12268   IFS=$as_save_IFS
12269   test -z "$as_dir" && as_dir=.
12270     for ac_exec_ext in '' $ac_executable_extensions; do
12271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12272     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12274     break 2
12275   fi
12276 done
12277   done
12278 IFS=$as_save_IFS
12279 
12280   ;;
12281 esac
12282 fi
12283 UNAME=$ac_cv_path_UNAME
12284 if test -n "$UNAME"; then
12285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12286 $as_echo "$UNAME" >&6; }
12287 else
12288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12290 fi
12291 
12292 
12293   test -n "$UNAME" && break
12294 done
12295 
12296     else
12297       # If it succeeded, then it was overridden by the user. We will use it
12298       # for the tool.
12299 
12300       # First remove it from the list of overridden variables, so we can test
12301       # for unknown variables in the end.
12302       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12303 
12304       # Check if we try to supply an empty value
12305       if test "x$UNAME" = x; then
12306         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12307 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12308         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12309 $as_echo_n "checking for UNAME... " >&6; }
12310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12311 $as_echo "disabled" >&6; }
12312       else
12313         # Check if the provided tool contains a complete path.
12314         tool_specified="$UNAME"
12315         tool_basename="${tool_specified##*/}"
12316         if test "x$tool_basename" = "x$tool_specified"; then
12317           # A command without a complete path is provided, search $PATH.
12318           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12319 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12320           # Extract the first word of "$tool_basename", so it can be a program name with args.
12321 set dummy $tool_basename; ac_word=$2
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323 $as_echo_n "checking for $ac_word... " >&6; }
12324 if ${ac_cv_path_UNAME+:} false; then :
12325   $as_echo_n "(cached) " >&6
12326 else
12327   case $UNAME in
12328   [\\/]* | ?:[\\/]*)
12329   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12330   ;;
12331   *)
12332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $PATH
12334 do
12335   IFS=$as_save_IFS
12336   test -z "$as_dir" && as_dir=.
12337     for ac_exec_ext in '' $ac_executable_extensions; do
12338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12339     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341     break 2
12342   fi
12343 done
12344   done
12345 IFS=$as_save_IFS
12346 
12347   ;;
12348 esac
12349 fi
12350 UNAME=$ac_cv_path_UNAME
12351 if test -n "$UNAME"; then
12352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12353 $as_echo "$UNAME" >&6; }
12354 else
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12357 fi
12358 
12359 
12360           if test "x$UNAME" = x; then
12361             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12362           fi
12363         else
12364           # Otherwise we believe it is a complete path. Use it as it is.
12365           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12366 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12367           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12368 $as_echo_n "checking for UNAME... " >&6; }
12369           if test ! -x "$tool_specified"; then
12370             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12371 $as_echo "not found" >&6; }
12372             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12373           fi
12374           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12375 $as_echo "$tool_specified" >&6; }
12376         fi
12377       fi
12378     fi
12379 
12380   fi
12381 
12382 
12383 
12384   if test "x$UNAME" = x; then
12385     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12386   fi
12387 
12388 
12389 
12390 
12391 
12392   # Publish this variable in the help.
12393 
12394 
12395   if [ -z "${UNIQ+x}" ]; then
12396     # The variable is not set by user, try to locate tool using the code snippet
12397     for ac_prog in uniq
12398 do
12399   # Extract the first word of "$ac_prog", so it can be a program name with args.
12400 set dummy $ac_prog; ac_word=$2
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402 $as_echo_n "checking for $ac_word... " >&6; }
12403 if ${ac_cv_path_UNIQ+:} false; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406   case $UNIQ in
12407   [\\/]* | ?:[\\/]*)
12408   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12409   ;;
12410   *)
12411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412 for as_dir in $PATH
12413 do
12414   IFS=$as_save_IFS
12415   test -z "$as_dir" && as_dir=.
12416     for ac_exec_ext in '' $ac_executable_extensions; do
12417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12418     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12420     break 2
12421   fi
12422 done
12423   done
12424 IFS=$as_save_IFS
12425 
12426   ;;
12427 esac
12428 fi
12429 UNIQ=$ac_cv_path_UNIQ
12430 if test -n "$UNIQ"; then
12431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12432 $as_echo "$UNIQ" >&6; }
12433 else
12434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; }
12436 fi
12437 
12438 
12439   test -n "$UNIQ" && break
12440 done
12441 
12442   else
12443     # The variable is set, but is it from the command line or the environment?
12444 
12445     # Try to remove the string !UNIQ! from our list.
12446     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12447     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12448       # If it failed, the variable was not from the command line. Ignore it,
12449       # but warn the user (except for BASH, which is always set by the calling BASH).
12450       if test "xUNIQ" != xBASH; then
12451         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12452 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12453       fi
12454       # Try to locate tool using the code snippet
12455       for ac_prog in uniq
12456 do
12457   # Extract the first word of "$ac_prog", so it can be a program name with args.
12458 set dummy $ac_prog; ac_word=$2
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12460 $as_echo_n "checking for $ac_word... " >&6; }
12461 if ${ac_cv_path_UNIQ+:} false; then :
12462   $as_echo_n "(cached) " >&6
12463 else
12464   case $UNIQ in
12465   [\\/]* | ?:[\\/]*)
12466   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12467   ;;
12468   *)
12469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12470 for as_dir in $PATH
12471 do
12472   IFS=$as_save_IFS
12473   test -z "$as_dir" && as_dir=.
12474     for ac_exec_ext in '' $ac_executable_extensions; do
12475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12476     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12478     break 2
12479   fi
12480 done
12481   done
12482 IFS=$as_save_IFS
12483 
12484   ;;
12485 esac
12486 fi
12487 UNIQ=$ac_cv_path_UNIQ
12488 if test -n "$UNIQ"; then
12489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12490 $as_echo "$UNIQ" >&6; }
12491 else
12492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12494 fi
12495 
12496 
12497   test -n "$UNIQ" && break
12498 done
12499 
12500     else
12501       # If it succeeded, then it was overridden by the user. We will use it
12502       # for the tool.
12503 
12504       # First remove it from the list of overridden variables, so we can test
12505       # for unknown variables in the end.
12506       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12507 
12508       # Check if we try to supply an empty value
12509       if test "x$UNIQ" = x; then
12510         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12511 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12512         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12513 $as_echo_n "checking for UNIQ... " >&6; }
12514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12515 $as_echo "disabled" >&6; }
12516       else
12517         # Check if the provided tool contains a complete path.
12518         tool_specified="$UNIQ"
12519         tool_basename="${tool_specified##*/}"
12520         if test "x$tool_basename" = "x$tool_specified"; then
12521           # A command without a complete path is provided, search $PATH.
12522           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12523 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12524           # Extract the first word of "$tool_basename", so it can be a program name with args.
12525 set dummy $tool_basename; ac_word=$2
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12527 $as_echo_n "checking for $ac_word... " >&6; }
12528 if ${ac_cv_path_UNIQ+:} false; then :
12529   $as_echo_n "(cached) " >&6
12530 else
12531   case $UNIQ in
12532   [\\/]* | ?:[\\/]*)
12533   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12534   ;;
12535   *)
12536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH
12538 do
12539   IFS=$as_save_IFS
12540   test -z "$as_dir" && as_dir=.
12541     for ac_exec_ext in '' $ac_executable_extensions; do
12542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12543     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12545     break 2
12546   fi
12547 done
12548   done
12549 IFS=$as_save_IFS
12550 
12551   ;;
12552 esac
12553 fi
12554 UNIQ=$ac_cv_path_UNIQ
12555 if test -n "$UNIQ"; then
12556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12557 $as_echo "$UNIQ" >&6; }
12558 else
12559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560 $as_echo "no" >&6; }
12561 fi
12562 
12563 
12564           if test "x$UNIQ" = x; then
12565             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12566           fi
12567         else
12568           # Otherwise we believe it is a complete path. Use it as it is.
12569           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12570 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12571           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12572 $as_echo_n "checking for UNIQ... " >&6; }
12573           if test ! -x "$tool_specified"; then
12574             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12575 $as_echo "not found" >&6; }
12576             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12577           fi
12578           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12579 $as_echo "$tool_specified" >&6; }
12580         fi
12581       fi
12582     fi
12583 
12584   fi
12585 
12586 
12587 
12588   if test "x$UNIQ" = x; then
12589     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12590   fi
12591 
12592 
12593 
12594 
12595 
12596   # Publish this variable in the help.
12597 
12598 
12599   if [ -z "${WC+x}" ]; then
12600     # The variable is not set by user, try to locate tool using the code snippet
12601     for ac_prog in wc
12602 do
12603   # Extract the first word of "$ac_prog", so it can be a program name with args.
12604 set dummy $ac_prog; ac_word=$2
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606 $as_echo_n "checking for $ac_word... " >&6; }
12607 if ${ac_cv_path_WC+:} false; then :
12608   $as_echo_n "(cached) " >&6
12609 else
12610   case $WC in
12611   [\\/]* | ?:[\\/]*)
12612   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12613   ;;
12614   *)
12615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616 for as_dir in $PATH
12617 do
12618   IFS=$as_save_IFS
12619   test -z "$as_dir" && as_dir=.
12620     for ac_exec_ext in '' $ac_executable_extensions; do
12621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12622     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12624     break 2
12625   fi
12626 done
12627   done
12628 IFS=$as_save_IFS
12629 
12630   ;;
12631 esac
12632 fi
12633 WC=$ac_cv_path_WC
12634 if test -n "$WC"; then
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12636 $as_echo "$WC" >&6; }
12637 else
12638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639 $as_echo "no" >&6; }
12640 fi
12641 
12642 
12643   test -n "$WC" && break
12644 done
12645 
12646   else
12647     # The variable is set, but is it from the command line or the environment?
12648 
12649     # Try to remove the string !WC! from our list.
12650     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12651     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12652       # If it failed, the variable was not from the command line. Ignore it,
12653       # but warn the user (except for BASH, which is always set by the calling BASH).
12654       if test "xWC" != xBASH; then
12655         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12656 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12657       fi
12658       # Try to locate tool using the code snippet
12659       for ac_prog in wc
12660 do
12661   # Extract the first word of "$ac_prog", so it can be a program name with args.
12662 set dummy $ac_prog; ac_word=$2
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664 $as_echo_n "checking for $ac_word... " >&6; }
12665 if ${ac_cv_path_WC+:} false; then :
12666   $as_echo_n "(cached) " >&6
12667 else
12668   case $WC in
12669   [\\/]* | ?:[\\/]*)
12670   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12671   ;;
12672   *)
12673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12674 for as_dir in $PATH
12675 do
12676   IFS=$as_save_IFS
12677   test -z "$as_dir" && as_dir=.
12678     for ac_exec_ext in '' $ac_executable_extensions; do
12679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12680     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12682     break 2
12683   fi
12684 done
12685   done
12686 IFS=$as_save_IFS
12687 
12688   ;;
12689 esac
12690 fi
12691 WC=$ac_cv_path_WC
12692 if test -n "$WC"; then
12693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12694 $as_echo "$WC" >&6; }
12695 else
12696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697 $as_echo "no" >&6; }
12698 fi
12699 
12700 
12701   test -n "$WC" && break
12702 done
12703 
12704     else
12705       # If it succeeded, then it was overridden by the user. We will use it
12706       # for the tool.
12707 
12708       # First remove it from the list of overridden variables, so we can test
12709       # for unknown variables in the end.
12710       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12711 
12712       # Check if we try to supply an empty value
12713       if test "x$WC" = x; then
12714         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12715 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12716         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12717 $as_echo_n "checking for WC... " >&6; }
12718         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12719 $as_echo "disabled" >&6; }
12720       else
12721         # Check if the provided tool contains a complete path.
12722         tool_specified="$WC"
12723         tool_basename="${tool_specified##*/}"
12724         if test "x$tool_basename" = "x$tool_specified"; then
12725           # A command without a complete path is provided, search $PATH.
12726           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12727 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12728           # Extract the first word of "$tool_basename", so it can be a program name with args.
12729 set dummy $tool_basename; ac_word=$2
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731 $as_echo_n "checking for $ac_word... " >&6; }
12732 if ${ac_cv_path_WC+:} false; then :
12733   $as_echo_n "(cached) " >&6
12734 else
12735   case $WC in
12736   [\\/]* | ?:[\\/]*)
12737   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12738   ;;
12739   *)
12740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741 for as_dir in $PATH
12742 do
12743   IFS=$as_save_IFS
12744   test -z "$as_dir" && as_dir=.
12745     for ac_exec_ext in '' $ac_executable_extensions; do
12746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12747     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749     break 2
12750   fi
12751 done
12752   done
12753 IFS=$as_save_IFS
12754 
12755   ;;
12756 esac
12757 fi
12758 WC=$ac_cv_path_WC
12759 if test -n "$WC"; then
12760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12761 $as_echo "$WC" >&6; }
12762 else
12763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12765 fi
12766 
12767 
12768           if test "x$WC" = x; then
12769             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12770           fi
12771         else
12772           # Otherwise we believe it is a complete path. Use it as it is.
12773           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12774 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12775           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12776 $as_echo_n "checking for WC... " >&6; }
12777           if test ! -x "$tool_specified"; then
12778             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12779 $as_echo "not found" >&6; }
12780             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12781           fi
12782           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12783 $as_echo "$tool_specified" >&6; }
12784         fi
12785       fi
12786     fi
12787 
12788   fi
12789 
12790 
12791 
12792   if test "x$WC" = x; then
12793     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12794   fi
12795 
12796 
12797 
12798 
12799 
12800   # Publish this variable in the help.
12801 
12802 
12803   if [ -z "${WHICH+x}" ]; then
12804     # The variable is not set by user, try to locate tool using the code snippet
12805     for ac_prog in which
12806 do
12807   # Extract the first word of "$ac_prog", so it can be a program name with args.
12808 set dummy $ac_prog; ac_word=$2
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810 $as_echo_n "checking for $ac_word... " >&6; }
12811 if ${ac_cv_path_WHICH+:} false; then :
12812   $as_echo_n "(cached) " >&6
12813 else
12814   case $WHICH in
12815   [\\/]* | ?:[\\/]*)
12816   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12817   ;;
12818   *)
12819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12820 for as_dir in $PATH
12821 do
12822   IFS=$as_save_IFS
12823   test -z "$as_dir" && as_dir=.
12824     for ac_exec_ext in '' $ac_executable_extensions; do
12825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12826     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12828     break 2
12829   fi
12830 done
12831   done
12832 IFS=$as_save_IFS
12833 
12834   ;;
12835 esac
12836 fi
12837 WHICH=$ac_cv_path_WHICH
12838 if test -n "$WHICH"; then
12839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12840 $as_echo "$WHICH" >&6; }
12841 else
12842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843 $as_echo "no" >&6; }
12844 fi
12845 
12846 
12847   test -n "$WHICH" && break
12848 done
12849 
12850   else
12851     # The variable is set, but is it from the command line or the environment?
12852 
12853     # Try to remove the string !WHICH! from our list.
12854     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12855     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12856       # If it failed, the variable was not from the command line. Ignore it,
12857       # but warn the user (except for BASH, which is always set by the calling BASH).
12858       if test "xWHICH" != xBASH; then
12859         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12860 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12861       fi
12862       # Try to locate tool using the code snippet
12863       for ac_prog in which
12864 do
12865   # Extract the first word of "$ac_prog", so it can be a program name with args.
12866 set dummy $ac_prog; ac_word=$2
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868 $as_echo_n "checking for $ac_word... " >&6; }
12869 if ${ac_cv_path_WHICH+:} false; then :
12870   $as_echo_n "(cached) " >&6
12871 else
12872   case $WHICH in
12873   [\\/]* | ?:[\\/]*)
12874   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12875   ;;
12876   *)
12877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12878 for as_dir in $PATH
12879 do
12880   IFS=$as_save_IFS
12881   test -z "$as_dir" && as_dir=.
12882     for ac_exec_ext in '' $ac_executable_extensions; do
12883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12884     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12886     break 2
12887   fi
12888 done
12889   done
12890 IFS=$as_save_IFS
12891 
12892   ;;
12893 esac
12894 fi
12895 WHICH=$ac_cv_path_WHICH
12896 if test -n "$WHICH"; then
12897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12898 $as_echo "$WHICH" >&6; }
12899 else
12900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901 $as_echo "no" >&6; }
12902 fi
12903 
12904 
12905   test -n "$WHICH" && break
12906 done
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$WHICH" = x; then
12918         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12919 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12920         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12921 $as_echo_n "checking for WHICH... " >&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="$WHICH"
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 WHICH=$tool_basename" >&5
12931 $as_echo "$as_me: Will search for user supplied tool WHICH=$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_WHICH+:} false; then :
12937   $as_echo_n "(cached) " >&6
12938 else
12939   case $WHICH in
12940   [\\/]* | ?:[\\/]*)
12941   ac_cv_path_WHICH="$WHICH" # 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_WHICH="$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 WHICH=$ac_cv_path_WHICH
12963 if test -n "$WHICH"; then
12964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12965 $as_echo "$WHICH" >&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$WHICH" = 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 WHICH=$tool_specified" >&5
12978 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12979           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12980 $as_echo_n "checking for WHICH... " >&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 WHICH=$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 
12996   if test "x$WHICH" = x; then
12997     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12998   fi
12999 
13000 
13001 
13002 
13003 
13004   # Publish this variable in the help.
13005 
13006 
13007   if [ -z "${XARGS+x}" ]; then
13008     # The variable is not set by user, try to locate tool using the code snippet
13009     for ac_prog in xargs
13010 do
13011   # Extract the first word of "$ac_prog", so it can be a program name with args.
13012 set dummy $ac_prog; ac_word=$2
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13014 $as_echo_n "checking for $ac_word... " >&6; }
13015 if ${ac_cv_path_XARGS+:} false; then :
13016   $as_echo_n "(cached) " >&6
13017 else
13018   case $XARGS in
13019   [\\/]* | ?:[\\/]*)
13020   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13021   ;;
13022   *)
13023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13025 do
13026   IFS=$as_save_IFS
13027   test -z "$as_dir" && as_dir=.
13028     for ac_exec_ext in '' $ac_executable_extensions; do
13029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13030     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13032     break 2
13033   fi
13034 done
13035   done
13036 IFS=$as_save_IFS
13037 
13038   ;;
13039 esac
13040 fi
13041 XARGS=$ac_cv_path_XARGS
13042 if test -n "$XARGS"; then
13043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13044 $as_echo "$XARGS" >&6; }
13045 else
13046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13048 fi
13049 
13050 
13051   test -n "$XARGS" && break
13052 done
13053 
13054   else
13055     # The variable is set, but is it from the command line or the environment?
13056 
13057     # Try to remove the string !XARGS! from our list.
13058     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
13059     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13060       # If it failed, the variable was not from the command line. Ignore it,
13061       # but warn the user (except for BASH, which is always set by the calling BASH).
13062       if test "xXARGS" != xBASH; then
13063         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
13064 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
13065       fi
13066       # Try to locate tool using the code snippet
13067       for ac_prog in xargs
13068 do
13069   # Extract the first word of "$ac_prog", so it can be a program name with args.
13070 set dummy $ac_prog; ac_word=$2
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13072 $as_echo_n "checking for $ac_word... " >&6; }
13073 if ${ac_cv_path_XARGS+:} false; then :
13074   $as_echo_n "(cached) " >&6
13075 else
13076   case $XARGS in
13077   [\\/]* | ?:[\\/]*)
13078   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13079   ;;
13080   *)
13081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13082 for as_dir in $PATH
13083 do
13084   IFS=$as_save_IFS
13085   test -z "$as_dir" && as_dir=.
13086     for ac_exec_ext in '' $ac_executable_extensions; do
13087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13088     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13090     break 2
13091   fi
13092 done
13093   done
13094 IFS=$as_save_IFS
13095 
13096   ;;
13097 esac
13098 fi
13099 XARGS=$ac_cv_path_XARGS
13100 if test -n "$XARGS"; then
13101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13102 $as_echo "$XARGS" >&6; }
13103 else
13104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105 $as_echo "no" >&6; }
13106 fi
13107 
13108 
13109   test -n "$XARGS" && break
13110 done
13111 
13112     else
13113       # If it succeeded, then it was overridden by the user. We will use it
13114       # for the tool.
13115 
13116       # First remove it from the list of overridden variables, so we can test
13117       # for unknown variables in the end.
13118       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13119 
13120       # Check if we try to supply an empty value
13121       if test "x$XARGS" = x; then
13122         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13123 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13124         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13125 $as_echo_n "checking for XARGS... " >&6; }
13126         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13127 $as_echo "disabled" >&6; }
13128       else
13129         # Check if the provided tool contains a complete path.
13130         tool_specified="$XARGS"
13131         tool_basename="${tool_specified##*/}"
13132         if test "x$tool_basename" = "x$tool_specified"; then
13133           # A command without a complete path is provided, search $PATH.
13134           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13135 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13136           # Extract the first word of "$tool_basename", so it can be a program name with args.
13137 set dummy $tool_basename; ac_word=$2
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13139 $as_echo_n "checking for $ac_word... " >&6; }
13140 if ${ac_cv_path_XARGS+:} false; then :
13141   $as_echo_n "(cached) " >&6
13142 else
13143   case $XARGS in
13144   [\\/]* | ?:[\\/]*)
13145   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13146   ;;
13147   *)
13148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13149 for as_dir in $PATH
13150 do
13151   IFS=$as_save_IFS
13152   test -z "$as_dir" && as_dir=.
13153     for ac_exec_ext in '' $ac_executable_extensions; do
13154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13155     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13157     break 2
13158   fi
13159 done
13160   done
13161 IFS=$as_save_IFS
13162 
13163   ;;
13164 esac
13165 fi
13166 XARGS=$ac_cv_path_XARGS
13167 if test -n "$XARGS"; then
13168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13169 $as_echo "$XARGS" >&6; }
13170 else
13171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13173 fi
13174 
13175 
13176           if test "x$XARGS" = x; then
13177             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13178           fi
13179         else
13180           # Otherwise we believe it is a complete path. Use it as it is.
13181           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13182 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13183           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13184 $as_echo_n "checking for XARGS... " >&6; }
13185           if test ! -x "$tool_specified"; then
13186             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13187 $as_echo "not found" >&6; }
13188             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13189           fi
13190           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13191 $as_echo "$tool_specified" >&6; }
13192         fi
13193       fi
13194     fi
13195 
13196   fi
13197 
13198 
13199 
13200   if test "x$XARGS" = x; then
13201     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13202   fi
13203 
13204 
13205 
13206   # Then required tools that require some special treatment.
13207 
13208 
13209   # Publish this variable in the help.
13210 
13211 
13212   if [ -z "${AWK+x}" ]; then
13213     # The variable is not set by user, try to locate tool using the code snippet
13214     for ac_prog in gawk mawk nawk awk
13215 do
13216   # Extract the first word of "$ac_prog", so it can be a program name with args.
13217 set dummy $ac_prog; ac_word=$2
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219 $as_echo_n "checking for $ac_word... " >&6; }
13220 if ${ac_cv_prog_AWK+:} false; then :
13221   $as_echo_n "(cached) " >&6
13222 else
13223   if test -n "$AWK"; then
13224   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13225 else
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $PATH
13228 do
13229   IFS=$as_save_IFS
13230   test -z "$as_dir" && as_dir=.
13231     for ac_exec_ext in '' $ac_executable_extensions; do
13232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13233     ac_cv_prog_AWK="$ac_prog"
13234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235     break 2
13236   fi
13237 done
13238   done
13239 IFS=$as_save_IFS
13240 
13241 fi
13242 fi
13243 AWK=$ac_cv_prog_AWK
13244 if test -n "$AWK"; then
13245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13246 $as_echo "$AWK" >&6; }
13247 else
13248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13250 fi
13251 
13252 
13253   test -n "$AWK" && break
13254 done
13255 
13256   else
13257     # The variable is set, but is it from the command line or the environment?
13258 
13259     # Try to remove the string !AWK! from our list.
13260     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13261     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13262       # If it failed, the variable was not from the command line. Ignore it,
13263       # but warn the user (except for BASH, which is always set by the calling BASH).
13264       if test "xAWK" != xBASH; then
13265         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13266 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13267       fi
13268       # Try to locate tool using the code snippet
13269       for ac_prog in gawk mawk nawk awk
13270 do
13271   # Extract the first word of "$ac_prog", so it can be a program name with args.
13272 set dummy $ac_prog; ac_word=$2
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274 $as_echo_n "checking for $ac_word... " >&6; }
13275 if ${ac_cv_prog_AWK+:} false; then :
13276   $as_echo_n "(cached) " >&6
13277 else
13278   if test -n "$AWK"; then
13279   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13280 else
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $PATH
13283 do
13284   IFS=$as_save_IFS
13285   test -z "$as_dir" && as_dir=.
13286     for ac_exec_ext in '' $ac_executable_extensions; do
13287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13288     ac_cv_prog_AWK="$ac_prog"
13289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13290     break 2
13291   fi
13292 done
13293   done
13294 IFS=$as_save_IFS
13295 
13296 fi
13297 fi
13298 AWK=$ac_cv_prog_AWK
13299 if test -n "$AWK"; then
13300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13301 $as_echo "$AWK" >&6; }
13302 else
13303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13305 fi
13306 
13307 
13308   test -n "$AWK" && break
13309 done
13310 
13311     else
13312       # If it succeeded, then it was overridden by the user. We will use it
13313       # for the tool.
13314 
13315       # First remove it from the list of overridden variables, so we can test
13316       # for unknown variables in the end.
13317       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13318 
13319       # Check if we try to supply an empty value
13320       if test "x$AWK" = x; then
13321         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13322 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13323         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13324 $as_echo_n "checking for AWK... " >&6; }
13325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13326 $as_echo "disabled" >&6; }
13327       else
13328         # Check if the provided tool contains a complete path.
13329         tool_specified="$AWK"
13330         tool_basename="${tool_specified##*/}"
13331         if test "x$tool_basename" = "x$tool_specified"; then
13332           # A command without a complete path is provided, search $PATH.
13333           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13334 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13335           # Extract the first word of "$tool_basename", so it can be a program name with args.
13336 set dummy $tool_basename; ac_word=$2
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13338 $as_echo_n "checking for $ac_word... " >&6; }
13339 if ${ac_cv_path_AWK+:} false; then :
13340   $as_echo_n "(cached) " >&6
13341 else
13342   case $AWK in
13343   [\\/]* | ?:[\\/]*)
13344   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13345   ;;
13346   *)
13347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13348 for as_dir in $PATH
13349 do
13350   IFS=$as_save_IFS
13351   test -z "$as_dir" && as_dir=.
13352     for ac_exec_ext in '' $ac_executable_extensions; do
13353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13354     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13356     break 2
13357   fi
13358 done
13359   done
13360 IFS=$as_save_IFS
13361 
13362   ;;
13363 esac
13364 fi
13365 AWK=$ac_cv_path_AWK
13366 if test -n "$AWK"; then
13367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13368 $as_echo "$AWK" >&6; }
13369 else
13370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371 $as_echo "no" >&6; }
13372 fi
13373 
13374 
13375           if test "x$AWK" = x; then
13376             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13377           fi
13378         else
13379           # Otherwise we believe it is a complete path. Use it as it is.
13380           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13381 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13382           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13383 $as_echo_n "checking for AWK... " >&6; }
13384           if test ! -x "$tool_specified"; then
13385             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13386 $as_echo "not found" >&6; }
13387             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13388           fi
13389           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13390 $as_echo "$tool_specified" >&6; }
13391         fi
13392       fi
13393     fi
13394 
13395   fi
13396 
13397 
13398   if test "x$AWK" = x; then
13399     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13400   fi
13401 
13402 
13403 
13404 
13405   # Publish this variable in the help.
13406 
13407 
13408   if [ -z "${GREP+x}" ]; then
13409     # The variable is not set by user, try to locate tool using the code snippet
13410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13411 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13412 if ${ac_cv_path_GREP+:} false; then :
13413   $as_echo_n "(cached) " >&6
13414 else
13415   if test -z "$GREP"; then
13416   ac_path_GREP_found=false
13417   # Loop through the user's path and test for each of PROGNAME-LIST
13418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13420 do
13421   IFS=$as_save_IFS
13422   test -z "$as_dir" && as_dir=.
13423     for ac_prog in grep ggrep; do
13424     for ac_exec_ext in '' $ac_executable_extensions; do
13425       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13426       as_fn_executable_p "$ac_path_GREP" || continue
13427 # Check for GNU ac_path_GREP and select it if it is found.
13428   # Check for GNU $ac_path_GREP
13429 case `"$ac_path_GREP" --version 2>&1` in
13430 *GNU*)
13431   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13432 *)
13433   ac_count=0
13434   $as_echo_n 0123456789 >"conftest.in"
13435   while :
13436   do
13437     cat "conftest.in" "conftest.in" >"conftest.tmp"
13438     mv "conftest.tmp" "conftest.in"
13439     cp "conftest.in" "conftest.nl"
13440     $as_echo 'GREP' >> "conftest.nl"
13441     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13442     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13443     as_fn_arith $ac_count + 1 && ac_count=$as_val
13444     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13445       # Best one so far, save it but keep looking for a better one
13446       ac_cv_path_GREP="$ac_path_GREP"
13447       ac_path_GREP_max=$ac_count
13448     fi
13449     # 10*(2^10) chars as input seems more than enough
13450     test $ac_count -gt 10 && break
13451   done
13452   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13453 esac
13454 
13455       $ac_path_GREP_found && break 3
13456     done
13457   done
13458   done
13459 IFS=$as_save_IFS
13460   if test -z "$ac_cv_path_GREP"; then
13461     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13462   fi
13463 else
13464   ac_cv_path_GREP=$GREP
13465 fi
13466 
13467 fi
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13469 $as_echo "$ac_cv_path_GREP" >&6; }
13470  GREP="$ac_cv_path_GREP"
13471 
13472 
13473   else
13474     # The variable is set, but is it from the command line or the environment?
13475 
13476     # Try to remove the string !GREP! from our list.
13477     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13478     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13479       # If it failed, the variable was not from the command line. Ignore it,
13480       # but warn the user (except for BASH, which is always set by the calling BASH).
13481       if test "xGREP" != xBASH; then
13482         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13483 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13484       fi
13485       # Try to locate tool using the code snippet
13486       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13487 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13488 if ${ac_cv_path_GREP+:} false; then :
13489   $as_echo_n "(cached) " >&6
13490 else
13491   if test -z "$GREP"; then
13492   ac_path_GREP_found=false
13493   # Loop through the user's path and test for each of PROGNAME-LIST
13494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13496 do
13497   IFS=$as_save_IFS
13498   test -z "$as_dir" && as_dir=.
13499     for ac_prog in grep ggrep; do
13500     for ac_exec_ext in '' $ac_executable_extensions; do
13501       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13502       as_fn_executable_p "$ac_path_GREP" || continue
13503 # Check for GNU ac_path_GREP and select it if it is found.
13504   # Check for GNU $ac_path_GREP
13505 case `"$ac_path_GREP" --version 2>&1` in
13506 *GNU*)
13507   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13508 *)
13509   ac_count=0
13510   $as_echo_n 0123456789 >"conftest.in"
13511   while :
13512   do
13513     cat "conftest.in" "conftest.in" >"conftest.tmp"
13514     mv "conftest.tmp" "conftest.in"
13515     cp "conftest.in" "conftest.nl"
13516     $as_echo 'GREP' >> "conftest.nl"
13517     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13518     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13519     as_fn_arith $ac_count + 1 && ac_count=$as_val
13520     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13521       # Best one so far, save it but keep looking for a better one
13522       ac_cv_path_GREP="$ac_path_GREP"
13523       ac_path_GREP_max=$ac_count
13524     fi
13525     # 10*(2^10) chars as input seems more than enough
13526     test $ac_count -gt 10 && break
13527   done
13528   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13529 esac
13530 
13531       $ac_path_GREP_found && break 3
13532     done
13533   done
13534   done
13535 IFS=$as_save_IFS
13536   if test -z "$ac_cv_path_GREP"; then
13537     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13538   fi
13539 else
13540   ac_cv_path_GREP=$GREP
13541 fi
13542 
13543 fi
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13545 $as_echo "$ac_cv_path_GREP" >&6; }
13546  GREP="$ac_cv_path_GREP"
13547 
13548 
13549     else
13550       # If it succeeded, then it was overridden by the user. We will use it
13551       # for the tool.
13552 
13553       # First remove it from the list of overridden variables, so we can test
13554       # for unknown variables in the end.
13555       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13556 
13557       # Check if we try to supply an empty value
13558       if test "x$GREP" = x; then
13559         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13560 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13562 $as_echo_n "checking for GREP... " >&6; }
13563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13564 $as_echo "disabled" >&6; }
13565       else
13566         # Check if the provided tool contains a complete path.
13567         tool_specified="$GREP"
13568         tool_basename="${tool_specified##*/}"
13569         if test "x$tool_basename" = "x$tool_specified"; then
13570           # A command without a complete path is provided, search $PATH.
13571           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13572 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13573           # Extract the first word of "$tool_basename", so it can be a program name with args.
13574 set dummy $tool_basename; ac_word=$2
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13576 $as_echo_n "checking for $ac_word... " >&6; }
13577 if ${ac_cv_path_GREP+:} false; then :
13578   $as_echo_n "(cached) " >&6
13579 else
13580   case $GREP in
13581   [\\/]* | ?:[\\/]*)
13582   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13583   ;;
13584   *)
13585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586 for as_dir in $PATH
13587 do
13588   IFS=$as_save_IFS
13589   test -z "$as_dir" && as_dir=.
13590     for ac_exec_ext in '' $ac_executable_extensions; do
13591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13592     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13594     break 2
13595   fi
13596 done
13597   done
13598 IFS=$as_save_IFS
13599 
13600   ;;
13601 esac
13602 fi
13603 GREP=$ac_cv_path_GREP
13604 if test -n "$GREP"; then
13605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13606 $as_echo "$GREP" >&6; }
13607 else
13608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13610 fi
13611 
13612 
13613           if test "x$GREP" = x; then
13614             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13615           fi
13616         else
13617           # Otherwise we believe it is a complete path. Use it as it is.
13618           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13619 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13620           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13621 $as_echo_n "checking for GREP... " >&6; }
13622           if test ! -x "$tool_specified"; then
13623             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13624 $as_echo "not found" >&6; }
13625             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13626           fi
13627           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13628 $as_echo "$tool_specified" >&6; }
13629         fi
13630       fi
13631     fi
13632 
13633   fi
13634 
13635 
13636   if test "x$GREP" = x; then
13637     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13638   fi
13639 
13640 
13641 
13642 
13643   # Publish this variable in the help.
13644 
13645 
13646   if [ -z "${EGREP+x}" ]; then
13647     # The variable is not set by user, try to locate tool using the code snippet
13648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13649 $as_echo_n "checking for egrep... " >&6; }
13650 if ${ac_cv_path_EGREP+:} false; then :
13651   $as_echo_n "(cached) " >&6
13652 else
13653   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13654    then ac_cv_path_EGREP="$GREP -E"
13655    else
13656      if test -z "$EGREP"; then
13657   ac_path_EGREP_found=false
13658   # Loop through the user's path and test for each of PROGNAME-LIST
13659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13661 do
13662   IFS=$as_save_IFS
13663   test -z "$as_dir" && as_dir=.
13664     for ac_prog in egrep; do
13665     for ac_exec_ext in '' $ac_executable_extensions; do
13666       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13667       as_fn_executable_p "$ac_path_EGREP" || continue
13668 # Check for GNU ac_path_EGREP and select it if it is found.
13669   # Check for GNU $ac_path_EGREP
13670 case `"$ac_path_EGREP" --version 2>&1` in
13671 *GNU*)
13672   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13673 *)
13674   ac_count=0
13675   $as_echo_n 0123456789 >"conftest.in"
13676   while :
13677   do
13678     cat "conftest.in" "conftest.in" >"conftest.tmp"
13679     mv "conftest.tmp" "conftest.in"
13680     cp "conftest.in" "conftest.nl"
13681     $as_echo 'EGREP' >> "conftest.nl"
13682     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13683     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13684     as_fn_arith $ac_count + 1 && ac_count=$as_val
13685     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13686       # Best one so far, save it but keep looking for a better one
13687       ac_cv_path_EGREP="$ac_path_EGREP"
13688       ac_path_EGREP_max=$ac_count
13689     fi
13690     # 10*(2^10) chars as input seems more than enough
13691     test $ac_count -gt 10 && break
13692   done
13693   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13694 esac
13695 
13696       $ac_path_EGREP_found && break 3
13697     done
13698   done
13699   done
13700 IFS=$as_save_IFS
13701   if test -z "$ac_cv_path_EGREP"; then
13702     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13703   fi
13704 else
13705   ac_cv_path_EGREP=$EGREP
13706 fi
13707 
13708    fi
13709 fi
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13711 $as_echo "$ac_cv_path_EGREP" >&6; }
13712  EGREP="$ac_cv_path_EGREP"
13713 
13714 
13715   else
13716     # The variable is set, but is it from the command line or the environment?
13717 
13718     # Try to remove the string !EGREP! from our list.
13719     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13720     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13721       # If it failed, the variable was not from the command line. Ignore it,
13722       # but warn the user (except for BASH, which is always set by the calling BASH).
13723       if test "xEGREP" != xBASH; then
13724         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13725 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13726       fi
13727       # Try to locate tool using the code snippet
13728       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13729 $as_echo_n "checking for egrep... " >&6; }
13730 if ${ac_cv_path_EGREP+:} false; then :
13731   $as_echo_n "(cached) " >&6
13732 else
13733   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13734    then ac_cv_path_EGREP="$GREP -E"
13735    else
13736      if test -z "$EGREP"; then
13737   ac_path_EGREP_found=false
13738   # Loop through the user's path and test for each of PROGNAME-LIST
13739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13741 do
13742   IFS=$as_save_IFS
13743   test -z "$as_dir" && as_dir=.
13744     for ac_prog in egrep; do
13745     for ac_exec_ext in '' $ac_executable_extensions; do
13746       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13747       as_fn_executable_p "$ac_path_EGREP" || continue
13748 # Check for GNU ac_path_EGREP and select it if it is found.
13749   # Check for GNU $ac_path_EGREP
13750 case `"$ac_path_EGREP" --version 2>&1` in
13751 *GNU*)
13752   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13753 *)
13754   ac_count=0
13755   $as_echo_n 0123456789 >"conftest.in"
13756   while :
13757   do
13758     cat "conftest.in" "conftest.in" >"conftest.tmp"
13759     mv "conftest.tmp" "conftest.in"
13760     cp "conftest.in" "conftest.nl"
13761     $as_echo 'EGREP' >> "conftest.nl"
13762     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13763     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13764     as_fn_arith $ac_count + 1 && ac_count=$as_val
13765     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13766       # Best one so far, save it but keep looking for a better one
13767       ac_cv_path_EGREP="$ac_path_EGREP"
13768       ac_path_EGREP_max=$ac_count
13769     fi
13770     # 10*(2^10) chars as input seems more than enough
13771     test $ac_count -gt 10 && break
13772   done
13773   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13774 esac
13775 
13776       $ac_path_EGREP_found && break 3
13777     done
13778   done
13779   done
13780 IFS=$as_save_IFS
13781   if test -z "$ac_cv_path_EGREP"; then
13782     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13783   fi
13784 else
13785   ac_cv_path_EGREP=$EGREP
13786 fi
13787 
13788    fi
13789 fi
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13791 $as_echo "$ac_cv_path_EGREP" >&6; }
13792  EGREP="$ac_cv_path_EGREP"
13793 
13794 
13795     else
13796       # If it succeeded, then it was overridden by the user. We will use it
13797       # for the tool.
13798 
13799       # First remove it from the list of overridden variables, so we can test
13800       # for unknown variables in the end.
13801       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13802 
13803       # Check if we try to supply an empty value
13804       if test "x$EGREP" = x; then
13805         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13806 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13807         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13808 $as_echo_n "checking for EGREP... " >&6; }
13809         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13810 $as_echo "disabled" >&6; }
13811       else
13812         # Check if the provided tool contains a complete path.
13813         tool_specified="$EGREP"
13814         tool_basename="${tool_specified##*/}"
13815         if test "x$tool_basename" = "x$tool_specified"; then
13816           # A command without a complete path is provided, search $PATH.
13817           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13818 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13819           # Extract the first word of "$tool_basename", so it can be a program name with args.
13820 set dummy $tool_basename; ac_word=$2
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13822 $as_echo_n "checking for $ac_word... " >&6; }
13823 if ${ac_cv_path_EGREP+:} false; then :
13824   $as_echo_n "(cached) " >&6
13825 else
13826   case $EGREP in
13827   [\\/]* | ?:[\\/]*)
13828   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13829   ;;
13830   *)
13831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13832 for as_dir in $PATH
13833 do
13834   IFS=$as_save_IFS
13835   test -z "$as_dir" && as_dir=.
13836     for ac_exec_ext in '' $ac_executable_extensions; do
13837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13838     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13840     break 2
13841   fi
13842 done
13843   done
13844 IFS=$as_save_IFS
13845 
13846   ;;
13847 esac
13848 fi
13849 EGREP=$ac_cv_path_EGREP
13850 if test -n "$EGREP"; then
13851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13852 $as_echo "$EGREP" >&6; }
13853 else
13854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13855 $as_echo "no" >&6; }
13856 fi
13857 
13858 
13859           if test "x$EGREP" = x; then
13860             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13861           fi
13862         else
13863           # Otherwise we believe it is a complete path. Use it as it is.
13864           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13865 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13866           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13867 $as_echo_n "checking for EGREP... " >&6; }
13868           if test ! -x "$tool_specified"; then
13869             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13870 $as_echo "not found" >&6; }
13871             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13872           fi
13873           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13874 $as_echo "$tool_specified" >&6; }
13875         fi
13876       fi
13877     fi
13878 
13879   fi
13880 
13881 
13882   if test "x$EGREP" = x; then
13883     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13884   fi
13885 
13886 
13887 
13888 
13889   # Publish this variable in the help.
13890 
13891 
13892   if [ -z "${FGREP+x}" ]; then
13893     # The variable is not set by user, try to locate tool using the code snippet
13894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13895 $as_echo_n "checking for fgrep... " >&6; }
13896 if ${ac_cv_path_FGREP+:} false; then :
13897   $as_echo_n "(cached) " >&6
13898 else
13899   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13900    then ac_cv_path_FGREP="$GREP -F"
13901    else
13902      if test -z "$FGREP"; then
13903   ac_path_FGREP_found=false
13904   # Loop through the user's path and test for each of PROGNAME-LIST
13905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13907 do
13908   IFS=$as_save_IFS
13909   test -z "$as_dir" && as_dir=.
13910     for ac_prog in fgrep; do
13911     for ac_exec_ext in '' $ac_executable_extensions; do
13912       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13913       as_fn_executable_p "$ac_path_FGREP" || continue
13914 # Check for GNU ac_path_FGREP and select it if it is found.
13915   # Check for GNU $ac_path_FGREP
13916 case `"$ac_path_FGREP" --version 2>&1` in
13917 *GNU*)
13918   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13919 *)
13920   ac_count=0
13921   $as_echo_n 0123456789 >"conftest.in"
13922   while :
13923   do
13924     cat "conftest.in" "conftest.in" >"conftest.tmp"
13925     mv "conftest.tmp" "conftest.in"
13926     cp "conftest.in" "conftest.nl"
13927     $as_echo 'FGREP' >> "conftest.nl"
13928     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13929     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13930     as_fn_arith $ac_count + 1 && ac_count=$as_val
13931     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13932       # Best one so far, save it but keep looking for a better one
13933       ac_cv_path_FGREP="$ac_path_FGREP"
13934       ac_path_FGREP_max=$ac_count
13935     fi
13936     # 10*(2^10) chars as input seems more than enough
13937     test $ac_count -gt 10 && break
13938   done
13939   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13940 esac
13941 
13942       $ac_path_FGREP_found && break 3
13943     done
13944   done
13945   done
13946 IFS=$as_save_IFS
13947   if test -z "$ac_cv_path_FGREP"; then
13948     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13949   fi
13950 else
13951   ac_cv_path_FGREP=$FGREP
13952 fi
13953 
13954    fi
13955 fi
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13957 $as_echo "$ac_cv_path_FGREP" >&6; }
13958  FGREP="$ac_cv_path_FGREP"
13959 
13960 
13961   else
13962     # The variable is set, but is it from the command line or the environment?
13963 
13964     # Try to remove the string !FGREP! from our list.
13965     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13966     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13967       # If it failed, the variable was not from the command line. Ignore it,
13968       # but warn the user (except for BASH, which is always set by the calling BASH).
13969       if test "xFGREP" != xBASH; then
13970         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13971 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13972       fi
13973       # Try to locate tool using the code snippet
13974       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13975 $as_echo_n "checking for fgrep... " >&6; }
13976 if ${ac_cv_path_FGREP+:} false; then :
13977   $as_echo_n "(cached) " >&6
13978 else
13979   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13980    then ac_cv_path_FGREP="$GREP -F"
13981    else
13982      if test -z "$FGREP"; then
13983   ac_path_FGREP_found=false
13984   # Loop through the user's path and test for each of PROGNAME-LIST
13985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13987 do
13988   IFS=$as_save_IFS
13989   test -z "$as_dir" && as_dir=.
13990     for ac_prog in fgrep; do
13991     for ac_exec_ext in '' $ac_executable_extensions; do
13992       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13993       as_fn_executable_p "$ac_path_FGREP" || continue
13994 # Check for GNU ac_path_FGREP and select it if it is found.
13995   # Check for GNU $ac_path_FGREP
13996 case `"$ac_path_FGREP" --version 2>&1` in
13997 *GNU*)
13998   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13999 *)
14000   ac_count=0
14001   $as_echo_n 0123456789 >"conftest.in"
14002   while :
14003   do
14004     cat "conftest.in" "conftest.in" >"conftest.tmp"
14005     mv "conftest.tmp" "conftest.in"
14006     cp "conftest.in" "conftest.nl"
14007     $as_echo 'FGREP' >> "conftest.nl"
14008     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14009     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14010     as_fn_arith $ac_count + 1 && ac_count=$as_val
14011     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14012       # Best one so far, save it but keep looking for a better one
14013       ac_cv_path_FGREP="$ac_path_FGREP"
14014       ac_path_FGREP_max=$ac_count
14015     fi
14016     # 10*(2^10) chars as input seems more than enough
14017     test $ac_count -gt 10 && break
14018   done
14019   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14020 esac
14021 
14022       $ac_path_FGREP_found && break 3
14023     done
14024   done
14025   done
14026 IFS=$as_save_IFS
14027   if test -z "$ac_cv_path_FGREP"; then
14028     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14029   fi
14030 else
14031   ac_cv_path_FGREP=$FGREP
14032 fi
14033 
14034    fi
14035 fi
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14037 $as_echo "$ac_cv_path_FGREP" >&6; }
14038  FGREP="$ac_cv_path_FGREP"
14039 
14040 
14041     else
14042       # If it succeeded, then it was overridden by the user. We will use it
14043       # for the tool.
14044 
14045       # First remove it from the list of overridden variables, so we can test
14046       # for unknown variables in the end.
14047       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14048 
14049       # Check if we try to supply an empty value
14050       if test "x$FGREP" = x; then
14051         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
14052 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
14053         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14054 $as_echo_n "checking for FGREP... " >&6; }
14055         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14056 $as_echo "disabled" >&6; }
14057       else
14058         # Check if the provided tool contains a complete path.
14059         tool_specified="$FGREP"
14060         tool_basename="${tool_specified##*/}"
14061         if test "x$tool_basename" = "x$tool_specified"; then
14062           # A command without a complete path is provided, search $PATH.
14063           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
14064 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
14065           # Extract the first word of "$tool_basename", so it can be a program name with args.
14066 set dummy $tool_basename; ac_word=$2
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14068 $as_echo_n "checking for $ac_word... " >&6; }
14069 if ${ac_cv_path_FGREP+:} false; then :
14070   $as_echo_n "(cached) " >&6
14071 else
14072   case $FGREP in
14073   [\\/]* | ?:[\\/]*)
14074   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
14075   ;;
14076   *)
14077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078 for as_dir in $PATH
14079 do
14080   IFS=$as_save_IFS
14081   test -z "$as_dir" && as_dir=.
14082     for ac_exec_ext in '' $ac_executable_extensions; do
14083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14084     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
14085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14086     break 2
14087   fi
14088 done
14089   done
14090 IFS=$as_save_IFS
14091 
14092   ;;
14093 esac
14094 fi
14095 FGREP=$ac_cv_path_FGREP
14096 if test -n "$FGREP"; then
14097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14098 $as_echo "$FGREP" >&6; }
14099 else
14100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101 $as_echo "no" >&6; }
14102 fi
14103 
14104 
14105           if test "x$FGREP" = x; then
14106             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14107           fi
14108         else
14109           # Otherwise we believe it is a complete path. Use it as it is.
14110           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14111 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14112           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14113 $as_echo_n "checking for FGREP... " >&6; }
14114           if test ! -x "$tool_specified"; then
14115             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14116 $as_echo "not found" >&6; }
14117             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14118           fi
14119           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14120 $as_echo "$tool_specified" >&6; }
14121         fi
14122       fi
14123     fi
14124 
14125   fi
14126 
14127 
14128   if test "x$FGREP" = x; then
14129     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14130   fi
14131 
14132 
14133 
14134 
14135   # Publish this variable in the help.
14136 
14137 
14138   if [ -z "${SED+x}" ]; then
14139     # The variable is not set by user, try to locate tool using the code snippet
14140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14141 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14142 if ${ac_cv_path_SED+:} false; then :
14143   $as_echo_n "(cached) " >&6
14144 else
14145             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14146      for ac_i in 1 2 3 4 5 6 7; do
14147        ac_script="$ac_script$as_nl$ac_script"
14148      done
14149      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14150      { ac_script=; unset ac_script;}
14151      if test -z "$SED"; then
14152   ac_path_SED_found=false
14153   # Loop through the user's path and test for each of PROGNAME-LIST
14154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155 for as_dir in $PATH
14156 do
14157   IFS=$as_save_IFS
14158   test -z "$as_dir" && as_dir=.
14159     for ac_prog in sed gsed; do
14160     for ac_exec_ext in '' $ac_executable_extensions; do
14161       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14162       as_fn_executable_p "$ac_path_SED" || continue
14163 # Check for GNU ac_path_SED and select it if it is found.
14164   # Check for GNU $ac_path_SED
14165 case `"$ac_path_SED" --version 2>&1` in
14166 *GNU*)
14167   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14168 *)
14169   ac_count=0
14170   $as_echo_n 0123456789 >"conftest.in"
14171   while :
14172   do
14173     cat "conftest.in" "conftest.in" >"conftest.tmp"
14174     mv "conftest.tmp" "conftest.in"
14175     cp "conftest.in" "conftest.nl"
14176     $as_echo '' >> "conftest.nl"
14177     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14178     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14179     as_fn_arith $ac_count + 1 && ac_count=$as_val
14180     if test $ac_count -gt ${ac_path_SED_max-0}; then
14181       # Best one so far, save it but keep looking for a better one
14182       ac_cv_path_SED="$ac_path_SED"
14183       ac_path_SED_max=$ac_count
14184     fi
14185     # 10*(2^10) chars as input seems more than enough
14186     test $ac_count -gt 10 && break
14187   done
14188   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14189 esac
14190 
14191       $ac_path_SED_found && break 3
14192     done
14193   done
14194   done
14195 IFS=$as_save_IFS
14196   if test -z "$ac_cv_path_SED"; then
14197     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14198   fi
14199 else
14200   ac_cv_path_SED=$SED
14201 fi
14202 
14203 fi
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14205 $as_echo "$ac_cv_path_SED" >&6; }
14206  SED="$ac_cv_path_SED"
14207   rm -f conftest.sed
14208 
14209   else
14210     # The variable is set, but is it from the command line or the environment?
14211 
14212     # Try to remove the string !SED! from our list.
14213     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14214     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14215       # If it failed, the variable was not from the command line. Ignore it,
14216       # but warn the user (except for BASH, which is always set by the calling BASH).
14217       if test "xSED" != xBASH; then
14218         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14219 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14220       fi
14221       # Try to locate tool using the code snippet
14222       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14223 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14224 if ${ac_cv_path_SED+:} false; then :
14225   $as_echo_n "(cached) " >&6
14226 else
14227             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14228      for ac_i in 1 2 3 4 5 6 7; do
14229        ac_script="$ac_script$as_nl$ac_script"
14230      done
14231      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14232      { ac_script=; unset ac_script;}
14233      if test -z "$SED"; then
14234   ac_path_SED_found=false
14235   # Loop through the user's path and test for each of PROGNAME-LIST
14236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14237 for as_dir in $PATH
14238 do
14239   IFS=$as_save_IFS
14240   test -z "$as_dir" && as_dir=.
14241     for ac_prog in sed gsed; do
14242     for ac_exec_ext in '' $ac_executable_extensions; do
14243       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14244       as_fn_executable_p "$ac_path_SED" || continue
14245 # Check for GNU ac_path_SED and select it if it is found.
14246   # Check for GNU $ac_path_SED
14247 case `"$ac_path_SED" --version 2>&1` in
14248 *GNU*)
14249   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14250 *)
14251   ac_count=0
14252   $as_echo_n 0123456789 >"conftest.in"
14253   while :
14254   do
14255     cat "conftest.in" "conftest.in" >"conftest.tmp"
14256     mv "conftest.tmp" "conftest.in"
14257     cp "conftest.in" "conftest.nl"
14258     $as_echo '' >> "conftest.nl"
14259     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14260     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14261     as_fn_arith $ac_count + 1 && ac_count=$as_val
14262     if test $ac_count -gt ${ac_path_SED_max-0}; then
14263       # Best one so far, save it but keep looking for a better one
14264       ac_cv_path_SED="$ac_path_SED"
14265       ac_path_SED_max=$ac_count
14266     fi
14267     # 10*(2^10) chars as input seems more than enough
14268     test $ac_count -gt 10 && break
14269   done
14270   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14271 esac
14272 
14273       $ac_path_SED_found && break 3
14274     done
14275   done
14276   done
14277 IFS=$as_save_IFS
14278   if test -z "$ac_cv_path_SED"; then
14279     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14280   fi
14281 else
14282   ac_cv_path_SED=$SED
14283 fi
14284 
14285 fi
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14287 $as_echo "$ac_cv_path_SED" >&6; }
14288  SED="$ac_cv_path_SED"
14289   rm -f conftest.sed
14290 
14291     else
14292       # If it succeeded, then it was overridden by the user. We will use it
14293       # for the tool.
14294 
14295       # First remove it from the list of overridden variables, so we can test
14296       # for unknown variables in the end.
14297       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14298 
14299       # Check if we try to supply an empty value
14300       if test "x$SED" = x; then
14301         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14302 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14304 $as_echo_n "checking for SED... " >&6; }
14305         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14306 $as_echo "disabled" >&6; }
14307       else
14308         # Check if the provided tool contains a complete path.
14309         tool_specified="$SED"
14310         tool_basename="${tool_specified##*/}"
14311         if test "x$tool_basename" = "x$tool_specified"; then
14312           # A command without a complete path is provided, search $PATH.
14313           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14314 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14315           # Extract the first word of "$tool_basename", so it can be a program name with args.
14316 set dummy $tool_basename; ac_word=$2
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14318 $as_echo_n "checking for $ac_word... " >&6; }
14319 if ${ac_cv_path_SED+:} false; then :
14320   $as_echo_n "(cached) " >&6
14321 else
14322   case $SED in
14323   [\\/]* | ?:[\\/]*)
14324   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14325   ;;
14326   *)
14327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14328 for as_dir in $PATH
14329 do
14330   IFS=$as_save_IFS
14331   test -z "$as_dir" && as_dir=.
14332     for ac_exec_ext in '' $ac_executable_extensions; do
14333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14334     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14336     break 2
14337   fi
14338 done
14339   done
14340 IFS=$as_save_IFS
14341 
14342   ;;
14343 esac
14344 fi
14345 SED=$ac_cv_path_SED
14346 if test -n "$SED"; then
14347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14348 $as_echo "$SED" >&6; }
14349 else
14350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14352 fi
14353 
14354 
14355           if test "x$SED" = x; then
14356             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14357           fi
14358         else
14359           # Otherwise we believe it is a complete path. Use it as it is.
14360           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14361 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14362           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14363 $as_echo_n "checking for SED... " >&6; }
14364           if test ! -x "$tool_specified"; then
14365             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14366 $as_echo "not found" >&6; }
14367             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14368           fi
14369           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14370 $as_echo "$tool_specified" >&6; }
14371         fi
14372       fi
14373     fi
14374 
14375   fi
14376 
14377 
14378   if test "x$SED" = x; then
14379     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14380   fi
14381 
14382 
14383 
14384   # Always force rm.
14385   RM="$RM -f"
14386 
14387   # pwd behaves differently on various platforms and some don't support the -L flag.
14388   # Always use the bash builtin pwd to get uniform behavior.
14389   THEPWDCMD=pwd
14390 
14391   # These are not required on all platforms
14392 
14393 
14394   # Publish this variable in the help.
14395 
14396 
14397   if [ -z "${CYGPATH+x}" ]; then
14398     # The variable is not set by user, try to locate tool using the code snippet
14399     for ac_prog in cygpath
14400 do
14401   # Extract the first word of "$ac_prog", so it can be a program name with args.
14402 set dummy $ac_prog; ac_word=$2
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14404 $as_echo_n "checking for $ac_word... " >&6; }
14405 if ${ac_cv_path_CYGPATH+:} false; then :
14406   $as_echo_n "(cached) " >&6
14407 else
14408   case $CYGPATH in
14409   [\\/]* | ?:[\\/]*)
14410   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14411   ;;
14412   *)
14413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14414 for as_dir in $PATH
14415 do
14416   IFS=$as_save_IFS
14417   test -z "$as_dir" && as_dir=.
14418     for ac_exec_ext in '' $ac_executable_extensions; do
14419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14420     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14422     break 2
14423   fi
14424 done
14425   done
14426 IFS=$as_save_IFS
14427 
14428   ;;
14429 esac
14430 fi
14431 CYGPATH=$ac_cv_path_CYGPATH
14432 if test -n "$CYGPATH"; then
14433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14434 $as_echo "$CYGPATH" >&6; }
14435 else
14436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14437 $as_echo "no" >&6; }
14438 fi
14439 
14440 
14441   test -n "$CYGPATH" && break
14442 done
14443 
14444   else
14445     # The variable is set, but is it from the command line or the environment?
14446 
14447     # Try to remove the string !CYGPATH! from our list.
14448     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14449     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14450       # If it failed, the variable was not from the command line. Ignore it,
14451       # but warn the user (except for BASH, which is always set by the calling BASH).
14452       if test "xCYGPATH" != xBASH; then
14453         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14454 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14455       fi
14456       # Try to locate tool using the code snippet
14457       for ac_prog in cygpath
14458 do
14459   # Extract the first word of "$ac_prog", so it can be a program name with args.
14460 set dummy $ac_prog; ac_word=$2
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14462 $as_echo_n "checking for $ac_word... " >&6; }
14463 if ${ac_cv_path_CYGPATH+:} false; then :
14464   $as_echo_n "(cached) " >&6
14465 else
14466   case $CYGPATH in
14467   [\\/]* | ?:[\\/]*)
14468   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14469   ;;
14470   *)
14471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14472 for as_dir in $PATH
14473 do
14474   IFS=$as_save_IFS
14475   test -z "$as_dir" && as_dir=.
14476     for ac_exec_ext in '' $ac_executable_extensions; do
14477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14478     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14480     break 2
14481   fi
14482 done
14483   done
14484 IFS=$as_save_IFS
14485 
14486   ;;
14487 esac
14488 fi
14489 CYGPATH=$ac_cv_path_CYGPATH
14490 if test -n "$CYGPATH"; then
14491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14492 $as_echo "$CYGPATH" >&6; }
14493 else
14494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14495 $as_echo "no" >&6; }
14496 fi
14497 
14498 
14499   test -n "$CYGPATH" && break
14500 done
14501 
14502     else
14503       # If it succeeded, then it was overridden by the user. We will use it
14504       # for the tool.
14505 
14506       # First remove it from the list of overridden variables, so we can test
14507       # for unknown variables in the end.
14508       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14509 
14510       # Check if we try to supply an empty value
14511       if test "x$CYGPATH" = x; then
14512         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14513 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14514         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14515 $as_echo_n "checking for CYGPATH... " >&6; }
14516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14517 $as_echo "disabled" >&6; }
14518       else
14519         # Check if the provided tool contains a complete path.
14520         tool_specified="$CYGPATH"
14521         tool_basename="${tool_specified##*/}"
14522         if test "x$tool_basename" = "x$tool_specified"; then
14523           # A command without a complete path is provided, search $PATH.
14524           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14525 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14526           # Extract the first word of "$tool_basename", so it can be a program name with args.
14527 set dummy $tool_basename; ac_word=$2
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14529 $as_echo_n "checking for $ac_word... " >&6; }
14530 if ${ac_cv_path_CYGPATH+:} false; then :
14531   $as_echo_n "(cached) " >&6
14532 else
14533   case $CYGPATH in
14534   [\\/]* | ?:[\\/]*)
14535   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14536   ;;
14537   *)
14538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539 for as_dir in $PATH
14540 do
14541   IFS=$as_save_IFS
14542   test -z "$as_dir" && as_dir=.
14543     for ac_exec_ext in '' $ac_executable_extensions; do
14544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14545     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14547     break 2
14548   fi
14549 done
14550   done
14551 IFS=$as_save_IFS
14552 
14553   ;;
14554 esac
14555 fi
14556 CYGPATH=$ac_cv_path_CYGPATH
14557 if test -n "$CYGPATH"; then
14558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14559 $as_echo "$CYGPATH" >&6; }
14560 else
14561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14562 $as_echo "no" >&6; }
14563 fi
14564 
14565 
14566           if test "x$CYGPATH" = x; then
14567             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14568           fi
14569         else
14570           # Otherwise we believe it is a complete path. Use it as it is.
14571           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14572 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14573           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14574 $as_echo_n "checking for CYGPATH... " >&6; }
14575           if test ! -x "$tool_specified"; then
14576             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14577 $as_echo "not found" >&6; }
14578             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14579           fi
14580           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14581 $as_echo "$tool_specified" >&6; }
14582         fi
14583       fi
14584     fi
14585 
14586   fi
14587 
14588 
14589 
14590 
14591   # Publish this variable in the help.
14592 
14593 
14594   if [ -z "${READLINK+x}" ]; then
14595     # The variable is not set by user, try to locate tool using the code snippet
14596     for ac_prog in greadlink readlink
14597 do
14598   # Extract the first word of "$ac_prog", so it can be a program name with args.
14599 set dummy $ac_prog; ac_word=$2
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14601 $as_echo_n "checking for $ac_word... " >&6; }
14602 if ${ac_cv_path_READLINK+:} false; then :
14603   $as_echo_n "(cached) " >&6
14604 else
14605   case $READLINK in
14606   [\\/]* | ?:[\\/]*)
14607   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14608   ;;
14609   *)
14610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14611 for as_dir in $PATH
14612 do
14613   IFS=$as_save_IFS
14614   test -z "$as_dir" && as_dir=.
14615     for ac_exec_ext in '' $ac_executable_extensions; do
14616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14617     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14619     break 2
14620   fi
14621 done
14622   done
14623 IFS=$as_save_IFS
14624 
14625   ;;
14626 esac
14627 fi
14628 READLINK=$ac_cv_path_READLINK
14629 if test -n "$READLINK"; then
14630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14631 $as_echo "$READLINK" >&6; }
14632 else
14633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14635 fi
14636 
14637 
14638   test -n "$READLINK" && break
14639 done
14640 
14641   else
14642     # The variable is set, but is it from the command line or the environment?
14643 
14644     # Try to remove the string !READLINK! from our list.
14645     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14646     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14647       # If it failed, the variable was not from the command line. Ignore it,
14648       # but warn the user (except for BASH, which is always set by the calling BASH).
14649       if test "xREADLINK" != xBASH; then
14650         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14651 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14652       fi
14653       # Try to locate tool using the code snippet
14654       for ac_prog in greadlink readlink
14655 do
14656   # Extract the first word of "$ac_prog", so it can be a program name with args.
14657 set dummy $ac_prog; ac_word=$2
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14659 $as_echo_n "checking for $ac_word... " >&6; }
14660 if ${ac_cv_path_READLINK+:} false; then :
14661   $as_echo_n "(cached) " >&6
14662 else
14663   case $READLINK in
14664   [\\/]* | ?:[\\/]*)
14665   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14666   ;;
14667   *)
14668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14669 for as_dir in $PATH
14670 do
14671   IFS=$as_save_IFS
14672   test -z "$as_dir" && as_dir=.
14673     for ac_exec_ext in '' $ac_executable_extensions; do
14674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14675     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14677     break 2
14678   fi
14679 done
14680   done
14681 IFS=$as_save_IFS
14682 
14683   ;;
14684 esac
14685 fi
14686 READLINK=$ac_cv_path_READLINK
14687 if test -n "$READLINK"; then
14688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14689 $as_echo "$READLINK" >&6; }
14690 else
14691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692 $as_echo "no" >&6; }
14693 fi
14694 
14695 
14696   test -n "$READLINK" && break
14697 done
14698 
14699     else
14700       # If it succeeded, then it was overridden by the user. We will use it
14701       # for the tool.
14702 
14703       # First remove it from the list of overridden variables, so we can test
14704       # for unknown variables in the end.
14705       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14706 
14707       # Check if we try to supply an empty value
14708       if test "x$READLINK" = x; then
14709         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14710 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14711         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14712 $as_echo_n "checking for READLINK... " >&6; }
14713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14714 $as_echo "disabled" >&6; }
14715       else
14716         # Check if the provided tool contains a complete path.
14717         tool_specified="$READLINK"
14718         tool_basename="${tool_specified##*/}"
14719         if test "x$tool_basename" = "x$tool_specified"; then
14720           # A command without a complete path is provided, search $PATH.
14721           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14722 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14723           # Extract the first word of "$tool_basename", so it can be a program name with args.
14724 set dummy $tool_basename; ac_word=$2
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14726 $as_echo_n "checking for $ac_word... " >&6; }
14727 if ${ac_cv_path_READLINK+:} false; then :
14728   $as_echo_n "(cached) " >&6
14729 else
14730   case $READLINK in
14731   [\\/]* | ?:[\\/]*)
14732   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14733   ;;
14734   *)
14735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14736 for as_dir in $PATH
14737 do
14738   IFS=$as_save_IFS
14739   test -z "$as_dir" && as_dir=.
14740     for ac_exec_ext in '' $ac_executable_extensions; do
14741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14742     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14744     break 2
14745   fi
14746 done
14747   done
14748 IFS=$as_save_IFS
14749 
14750   ;;
14751 esac
14752 fi
14753 READLINK=$ac_cv_path_READLINK
14754 if test -n "$READLINK"; then
14755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14756 $as_echo "$READLINK" >&6; }
14757 else
14758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14759 $as_echo "no" >&6; }
14760 fi
14761 
14762 
14763           if test "x$READLINK" = x; then
14764             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14765           fi
14766         else
14767           # Otherwise we believe it is a complete path. Use it as it is.
14768           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14769 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14770           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14771 $as_echo_n "checking for READLINK... " >&6; }
14772           if test ! -x "$tool_specified"; then
14773             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14774 $as_echo "not found" >&6; }
14775             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14776           fi
14777           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14778 $as_echo "$tool_specified" >&6; }
14779         fi
14780       fi
14781     fi
14782 
14783   fi
14784 
14785 
14786 
14787 
14788   # Publish this variable in the help.
14789 
14790 
14791   if [ -z "${DF+x}" ]; then
14792     # The variable is not set by user, try to locate tool using the code snippet
14793     for ac_prog in df
14794 do
14795   # Extract the first word of "$ac_prog", so it can be a program name with args.
14796 set dummy $ac_prog; ac_word=$2
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14798 $as_echo_n "checking for $ac_word... " >&6; }
14799 if ${ac_cv_path_DF+:} false; then :
14800   $as_echo_n "(cached) " >&6
14801 else
14802   case $DF in
14803   [\\/]* | ?:[\\/]*)
14804   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14805   ;;
14806   *)
14807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14808 for as_dir in $PATH
14809 do
14810   IFS=$as_save_IFS
14811   test -z "$as_dir" && as_dir=.
14812     for ac_exec_ext in '' $ac_executable_extensions; do
14813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14814     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14816     break 2
14817   fi
14818 done
14819   done
14820 IFS=$as_save_IFS
14821 
14822   ;;
14823 esac
14824 fi
14825 DF=$ac_cv_path_DF
14826 if test -n "$DF"; then
14827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14828 $as_echo "$DF" >&6; }
14829 else
14830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14831 $as_echo "no" >&6; }
14832 fi
14833 
14834 
14835   test -n "$DF" && break
14836 done
14837 
14838   else
14839     # The variable is set, but is it from the command line or the environment?
14840 
14841     # Try to remove the string !DF! from our list.
14842     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14843     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14844       # If it failed, the variable was not from the command line. Ignore it,
14845       # but warn the user (except for BASH, which is always set by the calling BASH).
14846       if test "xDF" != xBASH; then
14847         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14848 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14849       fi
14850       # Try to locate tool using the code snippet
14851       for ac_prog in df
14852 do
14853   # Extract the first word of "$ac_prog", so it can be a program name with args.
14854 set dummy $ac_prog; ac_word=$2
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14856 $as_echo_n "checking for $ac_word... " >&6; }
14857 if ${ac_cv_path_DF+:} false; then :
14858   $as_echo_n "(cached) " >&6
14859 else
14860   case $DF in
14861   [\\/]* | ?:[\\/]*)
14862   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14863   ;;
14864   *)
14865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14866 for as_dir in $PATH
14867 do
14868   IFS=$as_save_IFS
14869   test -z "$as_dir" && as_dir=.
14870     for ac_exec_ext in '' $ac_executable_extensions; do
14871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14872     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14874     break 2
14875   fi
14876 done
14877   done
14878 IFS=$as_save_IFS
14879 
14880   ;;
14881 esac
14882 fi
14883 DF=$ac_cv_path_DF
14884 if test -n "$DF"; then
14885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14886 $as_echo "$DF" >&6; }
14887 else
14888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14889 $as_echo "no" >&6; }
14890 fi
14891 
14892 
14893   test -n "$DF" && break
14894 done
14895 
14896     else
14897       # If it succeeded, then it was overridden by the user. We will use it
14898       # for the tool.
14899 
14900       # First remove it from the list of overridden variables, so we can test
14901       # for unknown variables in the end.
14902       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14903 
14904       # Check if we try to supply an empty value
14905       if test "x$DF" = x; then
14906         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14907 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14909 $as_echo_n "checking for DF... " >&6; }
14910         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14911 $as_echo "disabled" >&6; }
14912       else
14913         # Check if the provided tool contains a complete path.
14914         tool_specified="$DF"
14915         tool_basename="${tool_specified##*/}"
14916         if test "x$tool_basename" = "x$tool_specified"; then
14917           # A command without a complete path is provided, search $PATH.
14918           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14919 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14920           # Extract the first word of "$tool_basename", so it can be a program name with args.
14921 set dummy $tool_basename; ac_word=$2
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14923 $as_echo_n "checking for $ac_word... " >&6; }
14924 if ${ac_cv_path_DF+:} false; then :
14925   $as_echo_n "(cached) " >&6
14926 else
14927   case $DF in
14928   [\\/]* | ?:[\\/]*)
14929   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14930   ;;
14931   *)
14932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14933 for as_dir in $PATH
14934 do
14935   IFS=$as_save_IFS
14936   test -z "$as_dir" && as_dir=.
14937     for ac_exec_ext in '' $ac_executable_extensions; do
14938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14939     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14941     break 2
14942   fi
14943 done
14944   done
14945 IFS=$as_save_IFS
14946 
14947   ;;
14948 esac
14949 fi
14950 DF=$ac_cv_path_DF
14951 if test -n "$DF"; then
14952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14953 $as_echo "$DF" >&6; }
14954 else
14955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14956 $as_echo "no" >&6; }
14957 fi
14958 
14959 
14960           if test "x$DF" = x; then
14961             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14962           fi
14963         else
14964           # Otherwise we believe it is a complete path. Use it as it is.
14965           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14966 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14967           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14968 $as_echo_n "checking for DF... " >&6; }
14969           if test ! -x "$tool_specified"; then
14970             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14971 $as_echo "not found" >&6; }
14972             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14973           fi
14974           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14975 $as_echo "$tool_specified" >&6; }
14976         fi
14977       fi
14978     fi
14979 
14980   fi
14981 
14982 
14983 
14984 
14985   # Publish this variable in the help.
14986 
14987 
14988   if [ -z "${CPIO+x}" ]; then
14989     # The variable is not set by user, try to locate tool using the code snippet
14990     for ac_prog in cpio bsdcpio
14991 do
14992   # Extract the first word of "$ac_prog", so it can be a program name with args.
14993 set dummy $ac_prog; ac_word=$2
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14995 $as_echo_n "checking for $ac_word... " >&6; }
14996 if ${ac_cv_path_CPIO+:} false; then :
14997   $as_echo_n "(cached) " >&6
14998 else
14999   case $CPIO in
15000   [\\/]* | ?:[\\/]*)
15001   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15002   ;;
15003   *)
15004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15005 for as_dir in $PATH
15006 do
15007   IFS=$as_save_IFS
15008   test -z "$as_dir" && as_dir=.
15009     for ac_exec_ext in '' $ac_executable_extensions; do
15010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15011     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15013     break 2
15014   fi
15015 done
15016   done
15017 IFS=$as_save_IFS
15018 
15019   ;;
15020 esac
15021 fi
15022 CPIO=$ac_cv_path_CPIO
15023 if test -n "$CPIO"; then
15024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15025 $as_echo "$CPIO" >&6; }
15026 else
15027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15028 $as_echo "no" >&6; }
15029 fi
15030 
15031 
15032   test -n "$CPIO" && break
15033 done
15034 
15035   else
15036     # The variable is set, but is it from the command line or the environment?
15037 
15038     # Try to remove the string !CPIO! from our list.
15039     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
15040     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15041       # If it failed, the variable was not from the command line. Ignore it,
15042       # but warn the user (except for BASH, which is always set by the calling BASH).
15043       if test "xCPIO" != xBASH; then
15044         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
15045 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
15046       fi
15047       # Try to locate tool using the code snippet
15048       for ac_prog in cpio bsdcpio
15049 do
15050   # Extract the first word of "$ac_prog", so it can be a program name with args.
15051 set dummy $ac_prog; ac_word=$2
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15053 $as_echo_n "checking for $ac_word... " >&6; }
15054 if ${ac_cv_path_CPIO+:} false; then :
15055   $as_echo_n "(cached) " >&6
15056 else
15057   case $CPIO in
15058   [\\/]* | ?:[\\/]*)
15059   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15060   ;;
15061   *)
15062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15063 for as_dir in $PATH
15064 do
15065   IFS=$as_save_IFS
15066   test -z "$as_dir" && as_dir=.
15067     for ac_exec_ext in '' $ac_executable_extensions; do
15068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15069     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15071     break 2
15072   fi
15073 done
15074   done
15075 IFS=$as_save_IFS
15076 
15077   ;;
15078 esac
15079 fi
15080 CPIO=$ac_cv_path_CPIO
15081 if test -n "$CPIO"; then
15082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15083 $as_echo "$CPIO" >&6; }
15084 else
15085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15086 $as_echo "no" >&6; }
15087 fi
15088 
15089 
15090   test -n "$CPIO" && break
15091 done
15092 
15093     else
15094       # If it succeeded, then it was overridden by the user. We will use it
15095       # for the tool.
15096 
15097       # First remove it from the list of overridden variables, so we can test
15098       # for unknown variables in the end.
15099       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15100 
15101       # Check if we try to supply an empty value
15102       if test "x$CPIO" = x; then
15103         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15104 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15105         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15106 $as_echo_n "checking for CPIO... " >&6; }
15107         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15108 $as_echo "disabled" >&6; }
15109       else
15110         # Check if the provided tool contains a complete path.
15111         tool_specified="$CPIO"
15112         tool_basename="${tool_specified##*/}"
15113         if test "x$tool_basename" = "x$tool_specified"; then
15114           # A command without a complete path is provided, search $PATH.
15115           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15116 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15117           # Extract the first word of "$tool_basename", so it can be a program name with args.
15118 set dummy $tool_basename; ac_word=$2
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15120 $as_echo_n "checking for $ac_word... " >&6; }
15121 if ${ac_cv_path_CPIO+:} false; then :
15122   $as_echo_n "(cached) " >&6
15123 else
15124   case $CPIO in
15125   [\\/]* | ?:[\\/]*)
15126   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15127   ;;
15128   *)
15129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15130 for as_dir in $PATH
15131 do
15132   IFS=$as_save_IFS
15133   test -z "$as_dir" && as_dir=.
15134     for ac_exec_ext in '' $ac_executable_extensions; do
15135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15136     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15138     break 2
15139   fi
15140 done
15141   done
15142 IFS=$as_save_IFS
15143 
15144   ;;
15145 esac
15146 fi
15147 CPIO=$ac_cv_path_CPIO
15148 if test -n "$CPIO"; then
15149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15150 $as_echo "$CPIO" >&6; }
15151 else
15152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15153 $as_echo "no" >&6; }
15154 fi
15155 
15156 
15157           if test "x$CPIO" = x; then
15158             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15159           fi
15160         else
15161           # Otherwise we believe it is a complete path. Use it as it is.
15162           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15163 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15164           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15165 $as_echo_n "checking for CPIO... " >&6; }
15166           if test ! -x "$tool_specified"; then
15167             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15168 $as_echo "not found" >&6; }
15169             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15170           fi
15171           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15172 $as_echo "$tool_specified" >&6; }
15173         fi
15174       fi
15175     fi
15176 
15177   fi
15178 
15179 
15180 
15181 
15182   # Publish this variable in the help.
15183 
15184 
15185   if [ -z "${NICE+x}" ]; then
15186     # The variable is not set by user, try to locate tool using the code snippet
15187     for ac_prog in nice
15188 do
15189   # Extract the first word of "$ac_prog", so it can be a program name with args.
15190 set dummy $ac_prog; ac_word=$2
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15192 $as_echo_n "checking for $ac_word... " >&6; }
15193 if ${ac_cv_path_NICE+:} false; then :
15194   $as_echo_n "(cached) " >&6
15195 else
15196   case $NICE in
15197   [\\/]* | ?:[\\/]*)
15198   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15199   ;;
15200   *)
15201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15202 for as_dir in $PATH
15203 do
15204   IFS=$as_save_IFS
15205   test -z "$as_dir" && as_dir=.
15206     for ac_exec_ext in '' $ac_executable_extensions; do
15207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15208     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15210     break 2
15211   fi
15212 done
15213   done
15214 IFS=$as_save_IFS
15215 
15216   ;;
15217 esac
15218 fi
15219 NICE=$ac_cv_path_NICE
15220 if test -n "$NICE"; then
15221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15222 $as_echo "$NICE" >&6; }
15223 else
15224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15225 $as_echo "no" >&6; }
15226 fi
15227 
15228 
15229   test -n "$NICE" && break
15230 done
15231 
15232   else
15233     # The variable is set, but is it from the command line or the environment?
15234 
15235     # Try to remove the string !NICE! from our list.
15236     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15237     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15238       # If it failed, the variable was not from the command line. Ignore it,
15239       # but warn the user (except for BASH, which is always set by the calling BASH).
15240       if test "xNICE" != xBASH; then
15241         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15242 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15243       fi
15244       # Try to locate tool using the code snippet
15245       for ac_prog in nice
15246 do
15247   # Extract the first word of "$ac_prog", so it can be a program name with args.
15248 set dummy $ac_prog; ac_word=$2
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15250 $as_echo_n "checking for $ac_word... " >&6; }
15251 if ${ac_cv_path_NICE+:} false; then :
15252   $as_echo_n "(cached) " >&6
15253 else
15254   case $NICE in
15255   [\\/]* | ?:[\\/]*)
15256   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15257   ;;
15258   *)
15259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15260 for as_dir in $PATH
15261 do
15262   IFS=$as_save_IFS
15263   test -z "$as_dir" && as_dir=.
15264     for ac_exec_ext in '' $ac_executable_extensions; do
15265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15266     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15268     break 2
15269   fi
15270 done
15271   done
15272 IFS=$as_save_IFS
15273 
15274   ;;
15275 esac
15276 fi
15277 NICE=$ac_cv_path_NICE
15278 if test -n "$NICE"; then
15279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15280 $as_echo "$NICE" >&6; }
15281 else
15282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15283 $as_echo "no" >&6; }
15284 fi
15285 
15286 
15287   test -n "$NICE" && break
15288 done
15289 
15290     else
15291       # If it succeeded, then it was overridden by the user. We will use it
15292       # for the tool.
15293 
15294       # First remove it from the list of overridden variables, so we can test
15295       # for unknown variables in the end.
15296       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15297 
15298       # Check if we try to supply an empty value
15299       if test "x$NICE" = x; then
15300         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15301 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15302         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15303 $as_echo_n "checking for NICE... " >&6; }
15304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15305 $as_echo "disabled" >&6; }
15306       else
15307         # Check if the provided tool contains a complete path.
15308         tool_specified="$NICE"
15309         tool_basename="${tool_specified##*/}"
15310         if test "x$tool_basename" = "x$tool_specified"; then
15311           # A command without a complete path is provided, search $PATH.
15312           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15313 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15314           # Extract the first word of "$tool_basename", so it can be a program name with args.
15315 set dummy $tool_basename; ac_word=$2
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15317 $as_echo_n "checking for $ac_word... " >&6; }
15318 if ${ac_cv_path_NICE+:} false; then :
15319   $as_echo_n "(cached) " >&6
15320 else
15321   case $NICE in
15322   [\\/]* | ?:[\\/]*)
15323   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15324   ;;
15325   *)
15326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15327 for as_dir in $PATH
15328 do
15329   IFS=$as_save_IFS
15330   test -z "$as_dir" && as_dir=.
15331     for ac_exec_ext in '' $ac_executable_extensions; do
15332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15333     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15335     break 2
15336   fi
15337 done
15338   done
15339 IFS=$as_save_IFS
15340 
15341   ;;
15342 esac
15343 fi
15344 NICE=$ac_cv_path_NICE
15345 if test -n "$NICE"; then
15346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15347 $as_echo "$NICE" >&6; }
15348 else
15349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15350 $as_echo "no" >&6; }
15351 fi
15352 
15353 
15354           if test "x$NICE" = x; then
15355             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15356           fi
15357         else
15358           # Otherwise we believe it is a complete path. Use it as it is.
15359           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15360 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15361           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15362 $as_echo_n "checking for NICE... " >&6; }
15363           if test ! -x "$tool_specified"; then
15364             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15365 $as_echo "not found" >&6; }
15366             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15367           fi
15368           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15369 $as_echo "$tool_specified" >&6; }
15370         fi
15371       fi
15372     fi
15373 
15374   fi
15375 
15376 
15377 
15378 
15379   # Publish this variable in the help.
15380 
15381 
15382   if [ -z "${PANDOC+x}" ]; then
15383     # The variable is not set by user, try to locate tool using the code snippet
15384     for ac_prog in pandoc
15385 do
15386   # Extract the first word of "$ac_prog", so it can be a program name with args.
15387 set dummy $ac_prog; ac_word=$2
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15389 $as_echo_n "checking for $ac_word... " >&6; }
15390 if ${ac_cv_path_PANDOC+:} false; then :
15391   $as_echo_n "(cached) " >&6
15392 else
15393   case $PANDOC in
15394   [\\/]* | ?:[\\/]*)
15395   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15396   ;;
15397   *)
15398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15399 for as_dir in $PATH
15400 do
15401   IFS=$as_save_IFS
15402   test -z "$as_dir" && as_dir=.
15403     for ac_exec_ext in '' $ac_executable_extensions; do
15404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15405     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15407     break 2
15408   fi
15409 done
15410   done
15411 IFS=$as_save_IFS
15412 
15413   ;;
15414 esac
15415 fi
15416 PANDOC=$ac_cv_path_PANDOC
15417 if test -n "$PANDOC"; then
15418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15419 $as_echo "$PANDOC" >&6; }
15420 else
15421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15422 $as_echo "no" >&6; }
15423 fi
15424 
15425 
15426   test -n "$PANDOC" && break
15427 done
15428 
15429   else
15430     # The variable is set, but is it from the command line or the environment?
15431 
15432     # Try to remove the string !PANDOC! from our list.
15433     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/}
15434     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15435       # If it failed, the variable was not from the command line. Ignore it,
15436       # but warn the user (except for BASH, which is always set by the calling BASH).
15437       if test "xPANDOC" != xBASH; then
15438         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5
15439 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;}
15440       fi
15441       # Try to locate tool using the code snippet
15442       for ac_prog in pandoc
15443 do
15444   # Extract the first word of "$ac_prog", so it can be a program name with args.
15445 set dummy $ac_prog; ac_word=$2
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15447 $as_echo_n "checking for $ac_word... " >&6; }
15448 if ${ac_cv_path_PANDOC+:} false; then :
15449   $as_echo_n "(cached) " >&6
15450 else
15451   case $PANDOC in
15452   [\\/]* | ?:[\\/]*)
15453   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15454   ;;
15455   *)
15456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15457 for as_dir in $PATH
15458 do
15459   IFS=$as_save_IFS
15460   test -z "$as_dir" && as_dir=.
15461     for ac_exec_ext in '' $ac_executable_extensions; do
15462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15463     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15465     break 2
15466   fi
15467 done
15468   done
15469 IFS=$as_save_IFS
15470 
15471   ;;
15472 esac
15473 fi
15474 PANDOC=$ac_cv_path_PANDOC
15475 if test -n "$PANDOC"; then
15476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15477 $as_echo "$PANDOC" >&6; }
15478 else
15479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15480 $as_echo "no" >&6; }
15481 fi
15482 
15483 
15484   test -n "$PANDOC" && break
15485 done
15486 
15487     else
15488       # If it succeeded, then it was overridden by the user. We will use it
15489       # for the tool.
15490 
15491       # First remove it from the list of overridden variables, so we can test
15492       # for unknown variables in the end.
15493       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15494 
15495       # Check if we try to supply an empty value
15496       if test "x$PANDOC" = x; then
15497         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5
15498 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;}
15499         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15500 $as_echo_n "checking for PANDOC... " >&6; }
15501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15502 $as_echo "disabled" >&6; }
15503       else
15504         # Check if the provided tool contains a complete path.
15505         tool_specified="$PANDOC"
15506         tool_basename="${tool_specified##*/}"
15507         if test "x$tool_basename" = "x$tool_specified"; then
15508           # A command without a complete path is provided, search $PATH.
15509           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5
15510 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;}
15511           # Extract the first word of "$tool_basename", so it can be a program name with args.
15512 set dummy $tool_basename; ac_word=$2
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15514 $as_echo_n "checking for $ac_word... " >&6; }
15515 if ${ac_cv_path_PANDOC+:} false; then :
15516   $as_echo_n "(cached) " >&6
15517 else
15518   case $PANDOC in
15519   [\\/]* | ?:[\\/]*)
15520   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15521   ;;
15522   *)
15523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15524 for as_dir in $PATH
15525 do
15526   IFS=$as_save_IFS
15527   test -z "$as_dir" && as_dir=.
15528     for ac_exec_ext in '' $ac_executable_extensions; do
15529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15530     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15532     break 2
15533   fi
15534 done
15535   done
15536 IFS=$as_save_IFS
15537 
15538   ;;
15539 esac
15540 fi
15541 PANDOC=$ac_cv_path_PANDOC
15542 if test -n "$PANDOC"; then
15543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15544 $as_echo "$PANDOC" >&6; }
15545 else
15546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15547 $as_echo "no" >&6; }
15548 fi
15549 
15550 
15551           if test "x$PANDOC" = x; then
15552             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15553           fi
15554         else
15555           # Otherwise we believe it is a complete path. Use it as it is.
15556           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5
15557 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;}
15558           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15559 $as_echo_n "checking for PANDOC... " >&6; }
15560           if test ! -x "$tool_specified"; then
15561             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15562 $as_echo "not found" >&6; }
15563             as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5
15564           fi
15565           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15566 $as_echo "$tool_specified" >&6; }
15567         fi
15568       fi
15569     fi
15570 
15571   fi
15572 
15573 
15574 
15575 
15576 # Now we can determine OpenJDK build and target platforms. This is required to
15577 # have early on.
15578 # Make sure we can run config.sub.
15579 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15580   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15581 
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15583 $as_echo_n "checking build system type... " >&6; }
15584 if ${ac_cv_build+:} false; then :
15585   $as_echo_n "(cached) " >&6
15586 else
15587   ac_build_alias=$build_alias
15588 test "x$ac_build_alias" = x &&
15589   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15590 test "x$ac_build_alias" = x &&
15591   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15592 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15593   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15594 
15595 fi
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15597 $as_echo "$ac_cv_build" >&6; }
15598 case $ac_cv_build in
15599 *-*-*) ;;
15600 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15601 esac
15602 build=$ac_cv_build
15603 ac_save_IFS=$IFS; IFS='-'
15604 set x $ac_cv_build
15605 shift
15606 build_cpu=$1
15607 build_vendor=$2
15608 shift; shift
15609 # Remember, the first character of IFS is used to create $*,
15610 # except with old shells:
15611 build_os=$*
15612 IFS=$ac_save_IFS
15613 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15614 
15615 
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15617 $as_echo_n "checking host system type... " >&6; }
15618 if ${ac_cv_host+:} false; then :
15619   $as_echo_n "(cached) " >&6
15620 else
15621   if test "x$host_alias" = x; then
15622   ac_cv_host=$ac_cv_build
15623 else
15624   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15625     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15626 fi
15627 
15628 fi
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15630 $as_echo "$ac_cv_host" >&6; }
15631 case $ac_cv_host in
15632 *-*-*) ;;
15633 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15634 esac
15635 host=$ac_cv_host
15636 ac_save_IFS=$IFS; IFS='-'
15637 set x $ac_cv_host
15638 shift
15639 host_cpu=$1
15640 host_vendor=$2
15641 shift; shift
15642 # Remember, the first character of IFS is used to create $*,
15643 # except with old shells:
15644 host_os=$*
15645 IFS=$ac_save_IFS
15646 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15647 
15648 
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15650 $as_echo_n "checking target system type... " >&6; }
15651 if ${ac_cv_target+:} false; then :
15652   $as_echo_n "(cached) " >&6
15653 else
15654   if test "x$target_alias" = x; then
15655   ac_cv_target=$ac_cv_host
15656 else
15657   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15658     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15659 fi
15660 
15661 fi
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15663 $as_echo "$ac_cv_target" >&6; }
15664 case $ac_cv_target in
15665 *-*-*) ;;
15666 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15667 esac
15668 target=$ac_cv_target
15669 ac_save_IFS=$IFS; IFS='-'
15670 set x $ac_cv_target
15671 shift
15672 target_cpu=$1
15673 target_vendor=$2
15674 shift; shift
15675 # Remember, the first character of IFS is used to create $*,
15676 # except with old shells:
15677 target_os=$*
15678 IFS=$ac_save_IFS
15679 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15680 
15681 
15682 # The aliases save the names the user supplied, while $host etc.
15683 # will get canonicalized.
15684 test -n "$target_alias" &&
15685   test "$program_prefix$program_suffix$program_transform_name" = \
15686     NONENONEs,x,x, &&
15687   program_prefix=${target_alias}-
15688 
15689   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15690   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15691   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15692   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15693   # to use the configure naming style.
15694 
15695 
15696 
15697 
15698 
15699   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15700   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15701   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15702   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15703   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15704   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15705 
15706 
15707 
15708   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15709 
15710   case "$build_os" in
15711     *linux*)
15712       VAR_OS=linux
15713       VAR_OS_TYPE=unix
15714       ;;
15715     *solaris*)
15716       VAR_OS=solaris
15717       VAR_OS_TYPE=unix
15718       ;;
15719     *darwin*)
15720       VAR_OS=macosx
15721       VAR_OS_TYPE=unix
15722       ;;
15723     *bsd*)
15724       VAR_OS=bsd
15725       VAR_OS_TYPE=unix
15726       ;;
15727     *cygwin*)
15728       VAR_OS=windows
15729       VAR_OS_ENV=windows.cygwin
15730       ;;
15731     *mingw*)
15732       VAR_OS=windows
15733       VAR_OS_ENV=windows.msys
15734       ;;
15735     *wsl*)
15736       VAR_OS=windows
15737       VAR_OS_ENV=windows.wsl
15738       ;;
15739     *aix*)
15740       VAR_OS=aix
15741       VAR_OS_TYPE=unix
15742       ;;
15743     *)
15744       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15745       ;;
15746   esac
15747 
15748 
15749   # First argument is the cpu name from the trip/quad
15750   case "$build_cpu" in
15751     x86_64)
15752       VAR_CPU=x86_64
15753       VAR_CPU_ARCH=x86
15754       VAR_CPU_BITS=64
15755       VAR_CPU_ENDIAN=little
15756       ;;
15757     i?86)
15758       VAR_CPU=x86
15759       VAR_CPU_ARCH=x86
15760       VAR_CPU_BITS=32
15761       VAR_CPU_ENDIAN=little
15762       ;;
15763     alpha*)
15764       VAR_CPU=alpha
15765       VAR_CPU_ARCH=alpha
15766       VAR_CPU_BITS=64
15767       VAR_CPU_ENDIAN=little
15768       ;;
15769     arm*)
15770       VAR_CPU=arm
15771       VAR_CPU_ARCH=arm
15772       VAR_CPU_BITS=32
15773       VAR_CPU_ENDIAN=little
15774       ;;
15775     aarch64)
15776       VAR_CPU=aarch64
15777       VAR_CPU_ARCH=aarch64
15778       VAR_CPU_BITS=64
15779       VAR_CPU_ENDIAN=little
15780       ;;
15781     m68k)
15782       VAR_CPU=m68k
15783       VAR_CPU_ARCH=m68k
15784       VAR_CPU_BITS=32
15785       VAR_CPU_ENDIAN=big
15786       ;;
15787     mips)
15788       VAR_CPU=mips
15789       VAR_CPU_ARCH=mips
15790       VAR_CPU_BITS=32
15791       VAR_CPU_ENDIAN=big
15792       ;;
15793     mipsel)
15794       VAR_CPU=mipsel
15795       VAR_CPU_ARCH=mipsel
15796       VAR_CPU_BITS=32
15797       VAR_CPU_ENDIAN=little
15798       ;;
15799     mips64)
15800       VAR_CPU=mips64
15801       VAR_CPU_ARCH=mips64
15802       VAR_CPU_BITS=64
15803       VAR_CPU_ENDIAN=big
15804       ;;
15805     mips64el)
15806       VAR_CPU=mips64el
15807       VAR_CPU_ARCH=mips64el
15808       VAR_CPU_BITS=64
15809       VAR_CPU_ENDIAN=little
15810       ;;
15811     powerpc)
15812       VAR_CPU=ppc
15813       VAR_CPU_ARCH=ppc
15814       VAR_CPU_BITS=32
15815       VAR_CPU_ENDIAN=big
15816       ;;
15817     powerpc64)
15818       VAR_CPU=ppc64
15819       VAR_CPU_ARCH=ppc
15820       VAR_CPU_BITS=64
15821       VAR_CPU_ENDIAN=big
15822       ;;
15823     powerpc64le)
15824       VAR_CPU=ppc64le
15825       VAR_CPU_ARCH=ppc
15826       VAR_CPU_BITS=64
15827       VAR_CPU_ENDIAN=little
15828       ;;
15829     s390)
15830       VAR_CPU=s390
15831       VAR_CPU_ARCH=s390
15832       VAR_CPU_BITS=32
15833       VAR_CPU_ENDIAN=big
15834       ;;
15835     s390x)
15836       VAR_CPU=s390x
15837       VAR_CPU_ARCH=s390
15838       VAR_CPU_BITS=64
15839       VAR_CPU_ENDIAN=big
15840       ;;
15841     sh*eb)
15842       VAR_CPU=sh
15843       VAR_CPU_ARCH=sh
15844       VAR_CPU_BITS=32
15845       VAR_CPU_ENDIAN=big
15846       ;;
15847     sh*)
15848       VAR_CPU=sh
15849       VAR_CPU_ARCH=sh
15850       VAR_CPU_BITS=32
15851       VAR_CPU_ENDIAN=little
15852       ;;
15853     sparc)
15854       VAR_CPU=sparc
15855       VAR_CPU_ARCH=sparc
15856       VAR_CPU_BITS=32
15857       VAR_CPU_ENDIAN=big
15858       ;;
15859     sparcv9|sparc64)
15860       VAR_CPU=sparcv9
15861       VAR_CPU_ARCH=sparc
15862       VAR_CPU_BITS=64
15863       VAR_CPU_ENDIAN=big
15864       ;;
15865     *)
15866       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15867       ;;
15868   esac
15869 
15870   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15871   OPENJDK_BUILD_OS="$VAR_OS"
15872   if test "x$VAR_OS_TYPE" != x; then
15873     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15874   else
15875     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15876   fi
15877   if test "x$VAR_OS_ENV" != x; then
15878     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15879   else
15880     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15881   fi
15882   OPENJDK_BUILD_CPU="$VAR_CPU"
15883   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15884   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15885   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15886 
15887 
15888 
15889 
15890 
15891 
15892 
15893 
15894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15895 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15897 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15898 
15899   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15900 
15901   case "$host_os" in
15902     *linux*)
15903       VAR_OS=linux
15904       VAR_OS_TYPE=unix
15905       ;;
15906     *solaris*)
15907       VAR_OS=solaris
15908       VAR_OS_TYPE=unix
15909       ;;
15910     *darwin*)
15911       VAR_OS=macosx
15912       VAR_OS_TYPE=unix
15913       ;;
15914     *bsd*)
15915       VAR_OS=bsd
15916       VAR_OS_TYPE=unix
15917       ;;
15918     *cygwin*)
15919       VAR_OS=windows
15920       VAR_OS_ENV=windows.cygwin
15921       ;;
15922     *mingw*)
15923       VAR_OS=windows
15924       VAR_OS_ENV=windows.msys
15925       ;;
15926     *wsl*)
15927       VAR_OS=windows
15928       VAR_OS_ENV=windows.wsl
15929       ;;
15930     *aix*)
15931       VAR_OS=aix
15932       VAR_OS_TYPE=unix
15933       ;;
15934     *)
15935       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15936       ;;
15937   esac
15938 
15939 
15940   # First argument is the cpu name from the trip/quad
15941   case "$host_cpu" in
15942     x86_64)
15943       VAR_CPU=x86_64
15944       VAR_CPU_ARCH=x86
15945       VAR_CPU_BITS=64
15946       VAR_CPU_ENDIAN=little
15947       ;;
15948     i?86)
15949       VAR_CPU=x86
15950       VAR_CPU_ARCH=x86
15951       VAR_CPU_BITS=32
15952       VAR_CPU_ENDIAN=little
15953       ;;
15954     alpha*)
15955       VAR_CPU=alpha
15956       VAR_CPU_ARCH=alpha
15957       VAR_CPU_BITS=64
15958       VAR_CPU_ENDIAN=little
15959       ;;
15960     arm*)
15961       VAR_CPU=arm
15962       VAR_CPU_ARCH=arm
15963       VAR_CPU_BITS=32
15964       VAR_CPU_ENDIAN=little
15965       ;;
15966     aarch64)
15967       VAR_CPU=aarch64
15968       VAR_CPU_ARCH=aarch64
15969       VAR_CPU_BITS=64
15970       VAR_CPU_ENDIAN=little
15971       ;;
15972     m68k)
15973       VAR_CPU=m68k
15974       VAR_CPU_ARCH=m68k
15975       VAR_CPU_BITS=32
15976       VAR_CPU_ENDIAN=big
15977       ;;
15978     mips)
15979       VAR_CPU=mips
15980       VAR_CPU_ARCH=mips
15981       VAR_CPU_BITS=32
15982       VAR_CPU_ENDIAN=big
15983       ;;
15984     mipsel)
15985       VAR_CPU=mipsel
15986       VAR_CPU_ARCH=mipsel
15987       VAR_CPU_BITS=32
15988       VAR_CPU_ENDIAN=little
15989       ;;
15990     mips64)
15991       VAR_CPU=mips64
15992       VAR_CPU_ARCH=mips64
15993       VAR_CPU_BITS=64
15994       VAR_CPU_ENDIAN=big
15995       ;;
15996     mips64el)
15997       VAR_CPU=mips64el
15998       VAR_CPU_ARCH=mips64el
15999       VAR_CPU_BITS=64
16000       VAR_CPU_ENDIAN=little
16001       ;;
16002     powerpc)
16003       VAR_CPU=ppc
16004       VAR_CPU_ARCH=ppc
16005       VAR_CPU_BITS=32
16006       VAR_CPU_ENDIAN=big
16007       ;;
16008     powerpc64)
16009       VAR_CPU=ppc64
16010       VAR_CPU_ARCH=ppc
16011       VAR_CPU_BITS=64
16012       VAR_CPU_ENDIAN=big
16013       ;;
16014     powerpc64le)
16015       VAR_CPU=ppc64le
16016       VAR_CPU_ARCH=ppc
16017       VAR_CPU_BITS=64
16018       VAR_CPU_ENDIAN=little
16019       ;;
16020     s390)
16021       VAR_CPU=s390
16022       VAR_CPU_ARCH=s390
16023       VAR_CPU_BITS=32
16024       VAR_CPU_ENDIAN=big
16025       ;;
16026     s390x)
16027       VAR_CPU=s390x
16028       VAR_CPU_ARCH=s390
16029       VAR_CPU_BITS=64
16030       VAR_CPU_ENDIAN=big
16031       ;;
16032     sh*eb)
16033       VAR_CPU=sh
16034       VAR_CPU_ARCH=sh
16035       VAR_CPU_BITS=32
16036       VAR_CPU_ENDIAN=big
16037       ;;
16038     sh*)
16039       VAR_CPU=sh
16040       VAR_CPU_ARCH=sh
16041       VAR_CPU_BITS=32
16042       VAR_CPU_ENDIAN=little
16043       ;;
16044     sparc)
16045       VAR_CPU=sparc
16046       VAR_CPU_ARCH=sparc
16047       VAR_CPU_BITS=32
16048       VAR_CPU_ENDIAN=big
16049       ;;
16050     sparcv9|sparc64)
16051       VAR_CPU=sparcv9
16052       VAR_CPU_ARCH=sparc
16053       VAR_CPU_BITS=64
16054       VAR_CPU_ENDIAN=big
16055       ;;
16056     *)
16057       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
16058       ;;
16059   esac
16060 
16061   # ... and setup our own variables. (Do this explicitly to facilitate searching)
16062   OPENJDK_TARGET_OS="$VAR_OS"
16063   if test "x$VAR_OS_TYPE" != x; then
16064     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
16065   else
16066     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
16067   fi
16068   if test "x$VAR_OS_ENV" != x; then
16069     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
16070   else
16071     OPENJDK_TARGET_OS_ENV="$VAR_OS"
16072   fi
16073   OPENJDK_TARGET_CPU="$VAR_CPU"
16074   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
16075   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
16076   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
16077 
16078 
16079 
16080 
16081 
16082 
16083 
16084 
16085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
16086 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
16087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
16088 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
16089 
16090 
16091 
16092 # Check whether --with-target-bits was given.
16093 if test "${with_target_bits+set}" = set; then :
16094   withval=$with_target_bits;
16095 fi
16096 
16097 
16098   # We have three types of compiles:
16099   # native  == normal compilation, target system == build system
16100   # cross   == traditional cross compilation, target system != build system; special toolchain needed
16101   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
16102   #
16103   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
16104     # We're doing a proper cross-compilation
16105     COMPILE_TYPE="cross"
16106   else
16107     COMPILE_TYPE="native"
16108   fi
16109 
16110   if test "x$with_target_bits" != x; then
16111     if test "x$COMPILE_TYPE" = "xcross"; then
16112       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
16113     fi
16114 
16115     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16116       # A reduced build is requested
16117       COMPILE_TYPE="reduced"
16118       OPENJDK_TARGET_CPU_BITS=32
16119       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
16120         OPENJDK_TARGET_CPU=x86
16121       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
16122         OPENJDK_TARGET_CPU=sparc
16123       else
16124         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
16125       fi
16126     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
16127       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
16128     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
16129       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
16130 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
16131     else
16132       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
16133     fi
16134   fi
16135 
16136 
16137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
16138 $as_echo_n "checking compilation type... " >&6; }
16139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
16140 $as_echo "$COMPILE_TYPE" >&6; }
16141 
16142 
16143   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16144     OPENJDK_MODULE_TARGET_OS_NAME="macos"
16145   else
16146     OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS"
16147   fi
16148 
16149   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16150     OPENJDK_MODULE_TARGET_OS_ARCH="amd64"
16151   else
16152     OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU"
16153   fi
16154 
16155   OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}"
16156 
16157 
16158 
16159   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
16160     RELEASE_FILE_OS_NAME=SunOS
16161   fi
16162   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
16163     RELEASE_FILE_OS_NAME=Linux
16164   fi
16165   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16166     RELEASE_FILE_OS_NAME=Windows
16167   fi
16168   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16169     RELEASE_FILE_OS_NAME="Darwin"
16170   fi
16171   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
16172     RELEASE_FILE_OS_NAME="AIX"
16173   fi
16174   RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU}
16175 
16176 
16177 
16178 
16179 
16180 
16181   # Also store the legacy naming of the cpu.
16182   # Ie i586 and amd64 instead of x86 and x86_64
16183   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
16184   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16185     OPENJDK_TARGET_CPU_LEGACY="i586"
16186   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16187     # On all platforms except MacOSX replace x86_64 with amd64.
16188     OPENJDK_TARGET_CPU_LEGACY="amd64"
16189   elif test "x$OPENJDK_TARGET_CPU" = xalpha; then
16190     # Avoid name collisions with variables named alpha
16191     OPENJDK_TARGET_CPU_LEGACY="_alpha_"
16192   elif test "x$OPENJDK_TARGET_CPU" = xsh; then
16193     # Avoid name collisions with variables named sh
16194     OPENJDK_TARGET_CPU_LEGACY="_sh_"
16195   fi
16196 
16197 
16198   # And the second legacy naming of the cpu.
16199   # Ie i386 and amd64 instead of x86 and x86_64.
16200   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
16201   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16202     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
16203   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16204     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
16205   fi
16206 
16207 
16208   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16209   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16210   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
16211   OPENJDK_TARGET_CPU_ISADIR=""
16212   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
16213     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16214       OPENJDK_TARGET_CPU_ISADIR="/amd64"
16215     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16216       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
16217     fi
16218   fi
16219 
16220 
16221   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
16222   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
16223   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
16224     # On linux only, we replace x86 with i386.
16225     OPENJDK_TARGET_CPU_OSARCH="i386"
16226   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16227     # On all platforms except macosx, we replace x86_64 with amd64.
16228     OPENJDK_TARGET_CPU_OSARCH="amd64"
16229   fi
16230 
16231 
16232   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
16233   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16234     OPENJDK_TARGET_CPU_JLI="i386"
16235   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16236     # On all platforms except macosx, we replace x86_64 with amd64.
16237     OPENJDK_TARGET_CPU_JLI="amd64"
16238   fi
16239 
16240   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16241   # Macosx is osx and x86_64 is x64
16242   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16243     OPENJDK_TARGET_OS_BUNDLE="osx"
16244   else
16245     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
16246   fi
16247   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16248     OPENJDK_TARGET_CPU_BUNDLE="x64"
16249   else
16250     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
16251   fi
16252   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
16253 
16254 
16255   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16256     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16257     # unpack200.exe. This variable is used in
16258     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16259     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
16260       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
16261     fi
16262   fi
16263 
16264   if test "x$COMPILE_TYPE" = "xcross"; then
16265     # FIXME: ... or should this include reduced builds..?
16266     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
16267   else
16268     DEFINE_CROSS_COMPILE_ARCH=""
16269   fi
16270 
16271 
16272   # Convert openjdk platform names to hotspot names
16273 
16274   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
16275   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16276     HOTSPOT_TARGET_OS=bsd
16277   fi
16278 
16279 
16280   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
16281   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
16282     HOTSPOT_TARGET_OS_TYPE=posix
16283   fi
16284 
16285 
16286   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
16287   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16288     HOTSPOT_TARGET_CPU=x86_32
16289   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16290     HOTSPOT_TARGET_CPU=sparc
16291   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16292     HOTSPOT_TARGET_CPU=ppc_64
16293   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16294     HOTSPOT_TARGET_CPU=ppc_64
16295   fi
16296 
16297 
16298   # This is identical with OPENJDK_*, but define anyway for consistency.
16299   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
16300 
16301 
16302   # Setup HOTSPOT_TARGET_CPU_DEFINE
16303   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16304     HOTSPOT_TARGET_CPU_DEFINE=IA32
16305   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16306     HOTSPOT_TARGET_CPU_DEFINE=AMD64
16307   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16308     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16309   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
16310     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
16311   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16312     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16313   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16314     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16315 
16316   # The cpu defines below are for zero, we don't support them directly.
16317   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
16318     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16319   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
16320     HOTSPOT_TARGET_CPU_DEFINE=PPC32
16321   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
16322     HOTSPOT_TARGET_CPU_DEFINE=S390
16323   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
16324     HOTSPOT_TARGET_CPU_DEFINE=S390
16325   elif test "x$OPENJDK_TARGET_CPU" != x; then
16326     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16327   fi
16328 
16329 
16330   # For historical reasons, the OS include directories have odd names.
16331   OPENJDK_TARGET_OS_INCLUDE_SUBDIR="$OPENJDK_TARGET_OS"
16332   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16333     OPENJDK_TARGET_OS_INCLUDE_SUBDIR="win32"
16334   elif test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
16335     OPENJDK_TARGET_OS_INCLUDE_SUBDIR="darwin"
16336   fi
16337 
16338 
16339 
16340   # Also store the legacy naming of the cpu.
16341   # Ie i586 and amd64 instead of x86 and x86_64
16342   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16343   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16344     OPENJDK_BUILD_CPU_LEGACY="i586"
16345   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16346     # On all platforms except MacOSX replace x86_64 with amd64.
16347     OPENJDK_BUILD_CPU_LEGACY="amd64"
16348   elif test "x$OPENJDK_BUILD_CPU" = xalpha; then
16349     # Avoid name collisions with variables named alpha
16350     OPENJDK_BUILD_CPU_LEGACY="_alpha_"
16351   elif test "x$OPENJDK_BUILD_CPU" = xsh; then
16352     # Avoid name collisions with variables named sh
16353     OPENJDK_BUILD_CPU_LEGACY="_sh_"
16354   fi
16355 
16356 
16357   # And the second legacy naming of the cpu.
16358   # Ie i386 and amd64 instead of x86 and x86_64.
16359   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16360   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16361     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
16362   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16363     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
16364   fi
16365 
16366 
16367   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16368   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16369   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
16370   OPENJDK_BUILD_CPU_ISADIR=""
16371   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16372     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16373       OPENJDK_BUILD_CPU_ISADIR="/amd64"
16374     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16375       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
16376     fi
16377   fi
16378 
16379 
16380   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
16381   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
16382   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
16383     # On linux only, we replace x86 with i386.
16384     OPENJDK_BUILD_CPU_OSARCH="i386"
16385   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16386     # On all platforms except macosx, we replace x86_64 with amd64.
16387     OPENJDK_BUILD_CPU_OSARCH="amd64"
16388   fi
16389 
16390 
16391   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16392   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16393     OPENJDK_BUILD_CPU_JLI="i386"
16394   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16395     # On all platforms except macosx, we replace x86_64 with amd64.
16396     OPENJDK_BUILD_CPU_JLI="amd64"
16397   fi
16398 
16399   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16400   # Macosx is osx and x86_64 is x64
16401   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16402     OPENJDK_BUILD_OS_BUNDLE="osx"
16403   else
16404     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16405   fi
16406   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16407     OPENJDK_BUILD_CPU_BUNDLE="x64"
16408   else
16409     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16410   fi
16411   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16412 
16413 
16414   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16415     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16416     # unpack200.exe. This variable is used in
16417     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16418     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16419       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16420     fi
16421   fi
16422 
16423   if test "x$COMPILE_TYPE" = "xcross"; then
16424     # FIXME: ... or should this include reduced builds..?
16425     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16426   else
16427     DEFINE_CROSS_COMPILE_ARCH=""
16428   fi
16429 
16430 
16431   # Convert openjdk platform names to hotspot names
16432 
16433   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16434   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16435     HOTSPOT_BUILD_OS=bsd
16436   fi
16437 
16438 
16439   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16440   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16441     HOTSPOT_BUILD_OS_TYPE=posix
16442   fi
16443 
16444 
16445   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16446   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16447     HOTSPOT_BUILD_CPU=x86_32
16448   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16449     HOTSPOT_BUILD_CPU=sparc
16450   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16451     HOTSPOT_BUILD_CPU=ppc_64
16452   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16453     HOTSPOT_BUILD_CPU=ppc_64
16454   fi
16455 
16456 
16457   # This is identical with OPENJDK_*, but define anyway for consistency.
16458   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16459 
16460 
16461   # Setup HOTSPOT_BUILD_CPU_DEFINE
16462   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16463     HOTSPOT_BUILD_CPU_DEFINE=IA32
16464   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16465     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16466   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16467     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16468   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16469     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16470   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16471     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16472   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16473     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16474 
16475   # The cpu defines below are for zero, we don't support them directly.
16476   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16477     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16478   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16479     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16480   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16481     HOTSPOT_BUILD_CPU_DEFINE=S390
16482   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16483     HOTSPOT_BUILD_CPU_DEFINE=S390
16484   elif test "x$OPENJDK_BUILD_CPU" != x; then
16485     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16486   fi
16487 
16488 
16489   # For historical reasons, the OS include directories have odd names.
16490   OPENJDK_BUILD_OS_INCLUDE_SUBDIR="$OPENJDK_TARGET_OS"
16491   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16492     OPENJDK_BUILD_OS_INCLUDE_SUBDIR="win32"
16493   elif test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
16494     OPENJDK_BUILD_OS_INCLUDE_SUBDIR="darwin"
16495   fi
16496 
16497 
16498 
16499 
16500 
16501 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16502 
16503   # Save the current directory this script was started from
16504   CURDIR="$PWD"
16505 
16506   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16507   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16508   # was not available at that time.
16509   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16510   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16511     ORIGINAL_PATH="$REWRITTEN_PATH"
16512     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16513 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16514   fi
16515 
16516   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16517     PATH_SEP=";"
16518 
16519   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16520   if test $SRC_ROOT_LENGTH -gt 100; then
16521     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16522   fi
16523 
16524   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16525     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16526 $as_echo_n "checking cygwin release... " >&6; }
16527     CYGWIN_VERSION=`$UNAME -r`
16528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16529 $as_echo "$CYGWIN_VERSION" >&6; }
16530     WINDOWS_ENV_VENDOR='cygwin'
16531     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16532 
16533     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16534     if test "x$CYGWIN_VERSION_OLD" != x; then
16535       { $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
16536 $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;}
16537       as_fn_error $? "Cannot continue" "$LINENO" 5
16538     fi
16539     if test "x$CYGPATH" = x; then
16540       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16541     fi
16542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16543 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16544     # The cmd output ends with Windows line endings (CR/LF)
16545     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
16546     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16547     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16549 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16550     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16551     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16552     if test "x$test_cygdrive_prefix" = x; then
16553       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16554     fi
16555   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16557 $as_echo_n "checking msys release... " >&6; }
16558     MSYS_VERSION=`$UNAME -r`
16559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16560 $as_echo "$MSYS_VERSION" >&6; }
16561 
16562     WINDOWS_ENV_VENDOR='msys'
16563     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16564 
16565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16566 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16567     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16568     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16569 
16570   windows_path="$MSYS_ROOT_PATH"
16571   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16572     unix_path=`$CYGPATH -u "$windows_path"`
16573     MSYS_ROOT_PATH="$unix_path"
16574   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16575     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16576     MSYS_ROOT_PATH="$unix_path"
16577   fi
16578 
16579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16580 $as_echo "$MSYS_ROOT_PATH" >&6; }
16581     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16582   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
16583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking wsl kernel" >&5
16584 $as_echo_n "checking wsl kernel... " >&6; }
16585     WSL_KERNEL_VERSION=`$UNAME -r`
16586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WSL_KERNEL_VERSION" >&5
16587 $as_echo "$WSL_KERNEL_VERSION" >&6; }
16588 
16589     WINDOWS_ENV_VENDOR='wsl'
16590     WINDOWS_ENV_VERSION="$WSL_KERNEL_VERSION"
16591 
16592     WINDOWS_ENV_ROOT_PATH="/mnt/c"
16593   else
16594     as_fn_error $? "Unknown Windows environment: $OPENJDK_BUILD_OS_ENV " "$LINENO" 5
16595   fi
16596 
16597   # Test if windows or unix (cygwin/msys) find is first in path.
16598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16599 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16600   FIND_BINARY_OUTPUT=`find --version 2>&1`
16601   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16603 $as_echo "unix style" >&6; }
16604   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16606 $as_echo "Windows" >&6; }
16607     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16608 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16609     { $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
16610 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16611     as_fn_error $? "Cannot continue" "$LINENO" 5
16612   else
16613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16614 $as_echo "unknown" >&6; }
16615     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16616 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16617   fi
16618 
16619   else
16620     PATH_SEP=":"
16621   fi
16622 
16623 
16624   # We get the top-level directory from the supporting wrappers.
16625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16626 $as_echo_n "checking for top-level directory... " >&6; }
16627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16628 $as_echo "$TOPDIR" >&6; }
16629 
16630 
16631   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16632 
16633   # Only process if variable expands to non-empty
16634 
16635   if test "x$CURDIR" != x; then
16636     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16637 
16638   # Input might be given as Windows format, start by converting to
16639   # unix format.
16640   path="$CURDIR"
16641   new_path=`$CYGPATH -u "$path"`
16642 
16643   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16644   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16645   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16646   # "foo.exe" is OK but "foo" is an error.
16647   #
16648   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16649   # It is also a way to make sure we got the proper file name for the real test later on.
16650   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16651   if test "x$test_shortpath" = x; then
16652     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16653 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16654     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16655   fi
16656 
16657   # Call helper function which possibly converts this using DOS-style short mode.
16658   # If so, the updated path is stored in $new_path.
16659 
16660   input_path="$new_path"
16661   # Check if we need to convert this using DOS-style short mode. If the path
16662   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16663   # take no chances and rewrite it.
16664   # Note: m4 eats our [], so we need to use [ and ] instead.
16665   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16666   if test "x$has_forbidden_chars" != x; then
16667     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16668     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16669     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16670     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16671       # Going to short mode and back again did indeed matter. Since short mode is
16672       # case insensitive, let's make it lowercase to improve readability.
16673       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16674       # Now convert it back to Unix-style (cygpath)
16675       input_path=`$CYGPATH -u "$shortmode_path"`
16676       new_path="$input_path"
16677     fi
16678   fi
16679 
16680   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16681   if test "x$test_cygdrive_prefix" = x; then
16682     # As a simple fix, exclude /usr/bin since it's not a real path.
16683     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16684       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16685       # a path prefixed by /cygdrive for fixpath to work.
16686       new_path="$CYGWIN_ROOT_PATH$input_path"
16687     fi
16688   fi
16689 
16690 
16691   if test "x$path" != "x$new_path"; then
16692     CURDIR="$new_path"
16693     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16694 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16695   fi
16696 
16697     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16698 
16699   path="$CURDIR"
16700   has_colon=`$ECHO $path | $GREP ^.:`
16701   new_path="$path"
16702   if test "x$has_colon" = x; then
16703     # Not in mixed or Windows style, start by that.
16704     new_path=`cmd //c echo $path`
16705   fi
16706 
16707 
16708   input_path="$new_path"
16709   # Check if we need to convert this using DOS-style short mode. If the path
16710   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16711   # take no chances and rewrite it.
16712   # Note: m4 eats our [], so we need to use [ and ] instead.
16713   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16714   if test "x$has_forbidden_chars" != x; then
16715     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16716     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16717   fi
16718 
16719 
16720   windows_path="$new_path"
16721   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16722     unix_path=`$CYGPATH -u "$windows_path"`
16723     new_path="$unix_path"
16724   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16725     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16726     new_path="$unix_path"
16727   fi
16728 
16729   if test "x$path" != "x$new_path"; then
16730     CURDIR="$new_path"
16731     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16732 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16733   fi
16734 
16735   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16736   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16737 
16738     else
16739       # We're on a unix platform. Hooray! :)
16740       path="$CURDIR"
16741       has_space=`$ECHO "$path" | $GREP " "`
16742       if test "x$has_space" != x; then
16743         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16744 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16745         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16746       fi
16747 
16748       # Use eval to expand a potential ~
16749       eval path="$path"
16750       if test ! -f "$path" && test ! -d "$path"; then
16751         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16752       fi
16753 
16754       if test -d "$path"; then
16755         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16756       else
16757         dir="`$DIRNAME "$path"`"
16758         base="`$BASENAME "$path"`"
16759         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16760       fi
16761     fi
16762   fi
16763 
16764 
16765   # Only process if variable expands to non-empty
16766 
16767   if test "x$TOPDIR" != x; then
16768     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16769 
16770   # Input might be given as Windows format, start by converting to
16771   # unix format.
16772   path="$TOPDIR"
16773   new_path=`$CYGPATH -u "$path"`
16774 
16775   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16776   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16777   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16778   # "foo.exe" is OK but "foo" is an error.
16779   #
16780   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16781   # It is also a way to make sure we got the proper file name for the real test later on.
16782   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16783   if test "x$test_shortpath" = x; then
16784     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16785 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16786     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16787   fi
16788 
16789   # Call helper function which possibly converts this using DOS-style short mode.
16790   # If so, the updated path is stored in $new_path.
16791 
16792   input_path="$new_path"
16793   # Check if we need to convert this using DOS-style short mode. If the path
16794   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16795   # take no chances and rewrite it.
16796   # Note: m4 eats our [], so we need to use [ and ] instead.
16797   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16798   if test "x$has_forbidden_chars" != x; then
16799     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16800     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16801     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16802     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16803       # Going to short mode and back again did indeed matter. Since short mode is
16804       # case insensitive, let's make it lowercase to improve readability.
16805       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16806       # Now convert it back to Unix-style (cygpath)
16807       input_path=`$CYGPATH -u "$shortmode_path"`
16808       new_path="$input_path"
16809     fi
16810   fi
16811 
16812   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16813   if test "x$test_cygdrive_prefix" = x; then
16814     # As a simple fix, exclude /usr/bin since it's not a real path.
16815     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16816       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16817       # a path prefixed by /cygdrive for fixpath to work.
16818       new_path="$CYGWIN_ROOT_PATH$input_path"
16819     fi
16820   fi
16821 
16822 
16823   if test "x$path" != "x$new_path"; then
16824     TOPDIR="$new_path"
16825     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16826 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16827   fi
16828 
16829     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16830 
16831   path="$TOPDIR"
16832   has_colon=`$ECHO $path | $GREP ^.:`
16833   new_path="$path"
16834   if test "x$has_colon" = x; then
16835     # Not in mixed or Windows style, start by that.
16836     new_path=`cmd //c echo $path`
16837   fi
16838 
16839 
16840   input_path="$new_path"
16841   # Check if we need to convert this using DOS-style short mode. If the path
16842   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16843   # take no chances and rewrite it.
16844   # Note: m4 eats our [], so we need to use [ and ] instead.
16845   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16846   if test "x$has_forbidden_chars" != x; then
16847     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16848     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16849   fi
16850 
16851 
16852   windows_path="$new_path"
16853   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16854     unix_path=`$CYGPATH -u "$windows_path"`
16855     new_path="$unix_path"
16856   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16857     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16858     new_path="$unix_path"
16859   fi
16860 
16861   if test "x$path" != "x$new_path"; then
16862     TOPDIR="$new_path"
16863     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16864 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16865   fi
16866 
16867   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16868   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16869 
16870     else
16871       # We're on a unix platform. Hooray! :)
16872       path="$TOPDIR"
16873       has_space=`$ECHO "$path" | $GREP " "`
16874       if test "x$has_space" != x; then
16875         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16876 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16877         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16878       fi
16879 
16880       # Use eval to expand a potential ~
16881       eval path="$path"
16882       if test ! -f "$path" && test ! -d "$path"; then
16883         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16884       fi
16885 
16886       if test -d "$path"; then
16887         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16888       else
16889         dir="`$DIRNAME "$path"`"
16890         base="`$BASENAME "$path"`"
16891         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16892       fi
16893     fi
16894   fi
16895 
16896 
16897   # Locate the directory of this script.
16898   AUTOCONF_DIR=$TOPDIR/make/autoconf
16899 
16900   # Setup username (for use in adhoc version strings etc)
16901   # Outer [ ] to quote m4.
16902    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16903 
16904 
16905 
16906 # Check if it's a pure open build or if custom sources are to be used.
16907 
16908   # Check whether --enable-openjdk-only was given.
16909 if test "${enable_openjdk_only+set}" = set; then :
16910   enableval=$enable_openjdk_only;
16911 else
16912   enable_openjdk_only="no"
16913 fi
16914 
16915 
16916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16917 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16919 $as_echo "$enable_openjdk_only" >&6; }
16920   if test "x$enable_openjdk_only" = "xyes"; then
16921     SUPPRESS_CUSTOM_EXTENSIONS="true"
16922   elif test "x$enable_openjdk_only" = "xno"; then
16923     SUPPRESS_CUSTOM_EXTENSIONS="false"
16924   else
16925     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16926   fi
16927 
16928   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16929   # the IncludeCustomExtension macro.
16930 
16931 
16932 # Check whether --with-custom-make-dir was given.
16933 if test "${with_custom_make_dir+set}" = set; then :
16934   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
16935 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16936 fi
16937 
16938 
16939 
16940 
16941 # These are needed to be able to create a configuration name (and thus the output directory)
16942 
16943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16944 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16945 
16946 # Check whether --with-jdk-variant was given.
16947 if test "${with_jdk_variant+set}" = set; then :
16948   withval=$with_jdk_variant;
16949 fi
16950 
16951 
16952   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16953     JDK_VARIANT="normal"
16954   else
16955     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16956   fi
16957 
16958 
16959 
16960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16961 $as_echo "$JDK_VARIANT" >&6; }
16962 
16963 
16964   DEBUG_LEVEL="release"
16965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16966 $as_echo_n "checking which debug level to use... " >&6; }
16967   # Check whether --enable-debug was given.
16968 if test "${enable_debug+set}" = set; then :
16969   enableval=$enable_debug;
16970         ENABLE_DEBUG="${enableval}"
16971         DEBUG_LEVEL="fastdebug"
16972 
16973 else
16974   ENABLE_DEBUG="no"
16975 fi
16976 
16977 
16978 
16979 # Check whether --with-debug-level was given.
16980 if test "${with_debug_level+set}" = set; then :
16981   withval=$with_debug_level;
16982         DEBUG_LEVEL="${withval}"
16983         if test "x$ENABLE_DEBUG" = xyes; then
16984           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16985         fi
16986 
16987 fi
16988 
16989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16990 $as_echo "$DEBUG_LEVEL" >&6; }
16991 
16992   if test "x$DEBUG_LEVEL" != xrelease && \
16993       test "x$DEBUG_LEVEL" != xoptimized && \
16994       test "x$DEBUG_LEVEL" != xfastdebug && \
16995       test "x$DEBUG_LEVEL" != xslowdebug; then
16996     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16997   fi
16998 
16999   # Translate DEBUG_LEVEL to debug level used by Hotspot
17000   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
17001   if test "x$DEBUG_LEVEL" = xrelease; then
17002     HOTSPOT_DEBUG_LEVEL="product"
17003   elif test "x$DEBUG_LEVEL" = xslowdebug; then
17004     HOTSPOT_DEBUG_LEVEL="debug"
17005   fi
17006 
17007   if test "x$DEBUG_LEVEL" = xoptimized; then
17008     # The debug level 'optimized' is a little special because it is currently only
17009     # applicable to the HotSpot build where it means to build a completely
17010     # optimized version of the VM without any debugging code (like for the
17011     # 'release' debug level which is called 'product' in the HotSpot build) but
17012     # with the exception that it can contain additional code which is otherwise
17013     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
17014     # test new and/or experimental features which are not intended for customer
17015     # shipment. Because these new features need to be tested and benchmarked in
17016     # real world scenarios, we want to build the containing JDK at the 'release'
17017     # debug level.
17018     DEBUG_LEVEL="release"
17019   fi
17020 
17021 
17022 
17023 
17024 
17025 
17026 # Check whether --with-jvm-variants was given.
17027 if test "${with_jvm_variants+set}" = set; then :
17028   withval=$with_jvm_variants;
17029 fi
17030 
17031 
17032 
17033 
17034 # Check whether --with-cpu-port was given.
17035 if test "${with_cpu_port+set}" = set; then :
17036   withval=$with_cpu_port;
17037 fi
17038 
17039 
17040   if test "x$with_cpu_port" != x; then
17041     if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
17042       as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5
17043     fi
17044     if test "x$with_cpu_port" != xarm64 && \
17045         test "x$with_cpu_port" != xaarch64; then
17046       as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5
17047     fi
17048     HOTSPOT_TARGET_CPU_PORT="$with_cpu_port"
17049   fi
17050 
17051 
17052   if test "x$with_jvm_variants" = x; then
17053     with_jvm_variants="server"
17054   fi
17055   JVM_VARIANTS_OPT="$with_jvm_variants"
17056 
17057   # Has the user listed more than one variant?
17058   # Additional [] needed to keep m4 from mangling shell constructs.
17059   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
17060     BUILDING_MULTIPLE_JVM_VARIANTS=true
17061   else
17062     BUILDING_MULTIPLE_JVM_VARIANTS=false
17063   fi
17064   # Replace the commas with AND for use in the build directory name.
17065   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
17066 
17067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
17068 $as_echo_n "checking which variants of the JVM to build... " >&6; }
17069   # JVM_VARIANTS is a space-separated list.
17070   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
17071   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
17072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
17073 $as_echo "$JVM_VARIANTS" >&6; }
17074 
17075   # Check that the selected variants are valid
17076 
17077   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
17078   # Notice that the original variant failes on SLES 10 and 11
17079   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
17080   STACK=${JVM_VARIANTS// /$'\n'}
17081   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17082   if test "x$INVALID_VARIANTS" != x; then
17083     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
17084 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
17085     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
17086   fi
17087 
17088   # All "special" variants share the same output directory ("server")
17089   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
17090   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
17091   STACK=${JVM_VARIANTS// /$'\n'}
17092   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17093   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
17094     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
17095   fi
17096 
17097   # The "main" variant is the one used by other libs to link against during the
17098   # build.
17099   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
17100     MAIN_VARIANT_PRIO_ORDER="server client minimal"
17101     for variant in $MAIN_VARIANT_PRIO_ORDER; do
17102       if   [[ " $JVM_VARIANTS " =~ " $variant " ]]  ; then
17103         JVM_VARIANT_MAIN="$variant"
17104         break
17105       fi
17106     done
17107   else
17108     JVM_VARIANT_MAIN="$JVM_VARIANTS"
17109   fi
17110 
17111 
17112 
17113 
17114 
17115   if   [[ " $JVM_VARIANTS " =~ " zero " ]]  ; then
17116     # zero behaves as a platform and rewrites these values. This is really weird. :(
17117     # We are guaranteed that we do not build any other variants when building zero.
17118     HOTSPOT_TARGET_CPU=zero
17119     HOTSPOT_TARGET_CPU_ARCH=zero
17120   fi
17121 
17122 
17123 # With basic setup done, call the custom early hook.
17124 
17125 
17126 # Check if we have devkits, extra paths or sysroot set.
17127 
17128 
17129 # Check whether --with-devkit was given.
17130 if test "${with_devkit+set}" = set; then :
17131   withval=$with_devkit;
17132 
17133   # Only process if variable expands to non-empty
17134 
17135   if test "x$with_devkit" != x; then
17136     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17137 
17138   # Input might be given as Windows format, start by converting to
17139   # unix format.
17140   path="$with_devkit"
17141   new_path=`$CYGPATH -u "$path"`
17142 
17143   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17144   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17145   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17146   # "foo.exe" is OK but "foo" is an error.
17147   #
17148   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17149   # It is also a way to make sure we got the proper file name for the real test later on.
17150   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17151   if test "x$test_shortpath" = x; then
17152     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17153 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17154     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
17155   fi
17156 
17157   # Call helper function which possibly converts this using DOS-style short mode.
17158   # If so, the updated path is stored in $new_path.
17159 
17160   input_path="$new_path"
17161   # Check if we need to convert this using DOS-style short mode. If the path
17162   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17163   # take no chances and rewrite it.
17164   # Note: m4 eats our [], so we need to use [ and ] instead.
17165   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17166   if test "x$has_forbidden_chars" != x; then
17167     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17168     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17169     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17170     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17171       # Going to short mode and back again did indeed matter. Since short mode is
17172       # case insensitive, let's make it lowercase to improve readability.
17173       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17174       # Now convert it back to Unix-style (cygpath)
17175       input_path=`$CYGPATH -u "$shortmode_path"`
17176       new_path="$input_path"
17177     fi
17178   fi
17179 
17180   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17181   if test "x$test_cygdrive_prefix" = x; then
17182     # As a simple fix, exclude /usr/bin since it's not a real path.
17183     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17184       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17185       # a path prefixed by /cygdrive for fixpath to work.
17186       new_path="$CYGWIN_ROOT_PATH$input_path"
17187     fi
17188   fi
17189 
17190 
17191   if test "x$path" != "x$new_path"; then
17192     with_devkit="$new_path"
17193     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17194 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17195   fi
17196 
17197     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17198 
17199   path="$with_devkit"
17200   has_colon=`$ECHO $path | $GREP ^.:`
17201   new_path="$path"
17202   if test "x$has_colon" = x; then
17203     # Not in mixed or Windows style, start by that.
17204     new_path=`cmd //c echo $path`
17205   fi
17206 
17207 
17208   input_path="$new_path"
17209   # Check if we need to convert this using DOS-style short mode. If the path
17210   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17211   # take no chances and rewrite it.
17212   # Note: m4 eats our [], so we need to use [ and ] instead.
17213   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17214   if test "x$has_forbidden_chars" != x; then
17215     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17216     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17217   fi
17218 
17219 
17220   windows_path="$new_path"
17221   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17222     unix_path=`$CYGPATH -u "$windows_path"`
17223     new_path="$unix_path"
17224   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17225     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17226     new_path="$unix_path"
17227   fi
17228 
17229   if test "x$path" != "x$new_path"; then
17230     with_devkit="$new_path"
17231     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17232 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17233   fi
17234 
17235   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17236   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17237 
17238     else
17239       # We're on a unix platform. Hooray! :)
17240       path="$with_devkit"
17241       has_space=`$ECHO "$path" | $GREP " "`
17242       if test "x$has_space" != x; then
17243         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17244 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17245         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17246       fi
17247 
17248       # Use eval to expand a potential ~
17249       eval path="$path"
17250       if test ! -f "$path" && test ! -d "$path"; then
17251         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
17252       fi
17253 
17254       if test -d "$path"; then
17255         with_devkit="`cd "$path"; $THEPWDCMD -L`"
17256       else
17257         dir="`$DIRNAME "$path"`"
17258         base="`$BASENAME "$path"`"
17259         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
17260       fi
17261     fi
17262   fi
17263 
17264         DEVKIT_ROOT="$with_devkit"
17265         # Check for a meta data info file in the root of the devkit
17266         if test -f "$DEVKIT_ROOT/devkit.info"; then
17267           . $DEVKIT_ROOT/devkit.info
17268           # This potentially sets the following:
17269           # A descriptive name of the devkit
17270 
17271   if test "x$DEVKIT_NAME" = x; then
17272     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
17273   fi
17274 
17275           # Corresponds to --with-extra-path
17276 
17277   if test "x$DEVKIT_EXTRA_PATH" = x; then
17278     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
17279   fi
17280 
17281           # Corresponds to --with-toolchain-path
17282 
17283   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17284     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
17285   fi
17286 
17287           # Corresponds to --with-sysroot
17288 
17289   if test "x$DEVKIT_SYSROOT" = x; then
17290     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
17291   fi
17292 
17293 
17294           # Identifies the Visual Studio version in the devkit
17295 
17296   if test "x$DEVKIT_VS_VERSION" = x; then
17297     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
17298   fi
17299 
17300           # The Visual Studio include environment variable
17301 
17302   if test "x$DEVKIT_VS_INCLUDE" = x; then
17303     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
17304   fi
17305 
17306           # The Visual Studio lib environment variable
17307 
17308   if test "x$DEVKIT_VS_LIB" = x; then
17309     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
17310   fi
17311 
17312           # Corresponds to --with-msvcr-dll
17313 
17314   if test "x$DEVKIT_MSVCR_DLL" = x; then
17315     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
17316   fi
17317 
17318           # Corresponds to --with-msvcp-dll
17319 
17320   if test "x$DEVKIT_MSVCP_DLL" = x; then
17321     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
17322   fi
17323 
17324         fi
17325 
17326         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
17327 $as_echo_n "checking for devkit... " >&6; }
17328         if test "x$DEVKIT_NAME" != x; then
17329           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
17330 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
17331         else
17332           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17333 $as_echo "$DEVKIT_ROOT" >&6; }
17334         fi
17335 
17336 
17337   if test "x$DEVKIT_EXTRA_PATH" != x; then
17338     if test "x$EXTRA_PATH" = x; then
17339       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17340     else
17341       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17342     fi
17343   fi
17344 
17345 
17346         # Fallback default of just /bin if DEVKIT_PATH is not defined
17347         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17348           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17349         fi
17350 
17351   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17352     if test "x$TOOLCHAIN_PATH" = x; then
17353       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17354     else
17355       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17356     fi
17357   fi
17358 
17359 
17360         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17361         # places for backwards compatiblity.
17362         if test "x$DEVKIT_SYSROOT" != x; then
17363           SYSROOT="$DEVKIT_SYSROOT"
17364         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17365           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17366         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17367           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17368         fi
17369 
17370         if test "x$DEVKIT_ROOT" != x; then
17371           DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
17372           if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
17373             DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
17374           fi
17375 
17376         fi
17377 
17378 
17379 fi
17380 
17381 
17382   # You can force the sysroot if the sysroot encoded into the compiler tools
17383   # is not correct.
17384 
17385 # Check whether --with-sys-root was given.
17386 if test "${with_sys_root+set}" = set; then :
17387   withval=$with_sys_root; SYSROOT=$with_sys_root
17388 
17389 fi
17390 
17391 
17392 
17393 # Check whether --with-sysroot was given.
17394 if test "${with_sysroot+set}" = set; then :
17395   withval=$with_sysroot; SYSROOT=$with_sysroot
17396 
17397 fi
17398 
17399 
17400 
17401 # Check whether --with-tools-dir was given.
17402 if test "${with_tools_dir+set}" = set; then :
17403   withval=$with_tools_dir;
17404   if test "x$with_tools_dir" != x; then
17405     if test "x$TOOLCHAIN_PATH" = x; then
17406       TOOLCHAIN_PATH="$with_tools_dir"
17407     else
17408       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17409     fi
17410   fi
17411 
17412 
17413 fi
17414 
17415 
17416 
17417 # Check whether --with-toolchain-path was given.
17418 if test "${with_toolchain_path+set}" = set; then :
17419   withval=$with_toolchain_path;
17420   if test "x$with_toolchain_path" != x; then
17421     if test "x$TOOLCHAIN_PATH" = x; then
17422       TOOLCHAIN_PATH="$with_toolchain_path"
17423     else
17424       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17425     fi
17426   fi
17427 
17428 
17429 fi
17430 
17431 
17432 
17433 # Check whether --with-extra-path was given.
17434 if test "${with_extra_path+set}" = set; then :
17435   withval=$with_extra_path;
17436   if test "x$with_extra_path" != x; then
17437     if test "x$EXTRA_PATH" = x; then
17438       EXTRA_PATH="$with_extra_path"
17439     else
17440       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17441     fi
17442   fi
17443 
17444 
17445 fi
17446 
17447 
17448   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17449     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17450     # If not, detect if Xcode is installed by running xcodebuild -version
17451     # if no Xcode installed, xcodebuild exits with 1
17452     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17453     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17454       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17455       # fall back on the stub binary in /usr/bin/xcodebuild
17456       # Extract the first word of "xcodebuild", so it can be a program name with args.
17457 set dummy xcodebuild; ac_word=$2
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17459 $as_echo_n "checking for $ac_word... " >&6; }
17460 if ${ac_cv_path_XCODEBUILD+:} false; then :
17461   $as_echo_n "(cached) " >&6
17462 else
17463   case $XCODEBUILD in
17464   [\\/]* | ?:[\\/]*)
17465   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17466   ;;
17467   *)
17468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17469 for as_dir in $TOOLCHAIN_PATH
17470 do
17471   IFS=$as_save_IFS
17472   test -z "$as_dir" && as_dir=.
17473     for ac_exec_ext in '' $ac_executable_extensions; do
17474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17475     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17477     break 2
17478   fi
17479 done
17480   done
17481 IFS=$as_save_IFS
17482 
17483   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17484   ;;
17485 esac
17486 fi
17487 XCODEBUILD=$ac_cv_path_XCODEBUILD
17488 if test -n "$XCODEBUILD"; then
17489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17490 $as_echo "$XCODEBUILD" >&6; }
17491 else
17492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17493 $as_echo "no" >&6; }
17494 fi
17495 
17496 
17497     else
17498       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17499       # when only the command line tools are installed there are no SDKs, so headers
17500       # are copied into the system frameworks
17501       XCODEBUILD=
17502 
17503     fi
17504 
17505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17506 $as_echo_n "checking for sdk name... " >&6; }
17507 
17508 # Check whether --with-sdk-name was given.
17509 if test "${with_sdk_name+set}" = set; then :
17510   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17511 
17512 fi
17513 
17514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17515 $as_echo "$SDKNAME" >&6; }
17516 
17517     # if toolchain path is specified then don't rely on system headers, they may not compile
17518     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17519     test -z "$TOOLCHAIN_PATH" && \
17520       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17521 
17522     if test -z "$SYSROOT"; then
17523       if test -n "$XCODEBUILD"; then
17524         # if we don't have system headers, use default SDK name (last resort)
17525         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17526           SDKNAME=${SDKNAME:-macosx}
17527         fi
17528 
17529         if test -n "$SDKNAME"; then
17530           # Call xcodebuild to determine SYSROOT
17531           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17532         fi
17533       else
17534         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17535           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
17536         fi
17537       fi
17538     else
17539       # warn user if --with-sdk-name was also set
17540       if test -n "$with_sdk_name"; then
17541         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17542 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17543       fi
17544     fi
17545 
17546     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17547       # If no system framework headers, then SYSROOT must be set, or we won't build
17548       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
17549     fi
17550 
17551     # Perform a basic sanity test
17552     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17553       if test -z "$SYSROOT"; then
17554         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
17555       else
17556         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17557       fi
17558     fi
17559 
17560     # set SDKROOT too, Xcode tools will pick it up
17561     SDKROOT="$SYSROOT"
17562 
17563   fi
17564 
17565   # Prepend the extra path to the global path
17566 
17567   if test "x$EXTRA_PATH" != x; then
17568     if test "x$PATH" = x; then
17569       PATH="$EXTRA_PATH"
17570     else
17571       PATH="$EXTRA_PATH:$PATH"
17572     fi
17573   fi
17574 
17575 
17576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17577 $as_echo_n "checking for sysroot... " >&6; }
17578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17579 $as_echo "$SYSROOT" >&6; }
17580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17581 $as_echo_n "checking for toolchain path... " >&6; }
17582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17583 $as_echo "$TOOLCHAIN_PATH" >&6; }
17584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17585 $as_echo_n "checking for extra path... " >&6; }
17586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17587 $as_echo "$EXTRA_PATH" >&6; }
17588 
17589 
17590 # To properly create a configuration name, we need to have the OpenJDK target
17591 # and options (variants and debug level) parsed.
17592 
17593 
17594 
17595 # Check whether --with-conf-name was given.
17596 if test "${with_conf_name+set}" = set; then :
17597   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17598 fi
17599 
17600 
17601   # Test from where we are running configure, in or outside of src root.
17602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17603 $as_echo_n "checking where to store configuration... " >&6; }
17604   if test "x$CURDIR" = "x$TOPDIR" || test "x$CURDIR" = "x$CUSTOM_ROOT" \
17605       || test "x$CURDIR" = "x$TOPDIR/make/autoconf" \
17606       || test "x$CURDIR" = "x$TOPDIR/make" ; then
17607     # We are running configure from the src root.
17608     # Create a default ./build/target-variant-debuglevel output root.
17609     if test "x${CONF_NAME}" = x; then
17610       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17611 $as_echo "in default location" >&6; }
17612       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17613     else
17614       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17615 $as_echo "in build directory with custom name" >&6; }
17616     fi
17617 
17618     if test "x$CUSTOM_ROOT" != x; then
17619       OUTPUTDIR="${CUSTOM_ROOT}/build/${CONF_NAME}"
17620     else
17621       OUTPUTDIR="${TOPDIR}/build/${CONF_NAME}"
17622     fi
17623     $MKDIR -p "$OUTPUTDIR"
17624     if test ! -d "$OUTPUTDIR"; then
17625       as_fn_error $? "Could not create build directory $OUTPUTDIR" "$LINENO" 5
17626     fi
17627   else
17628     # We are running configure from outside of the src dir.
17629     # Then use the current directory as output dir!
17630     # If configuration is situated in normal build directory, just use the build
17631     # directory name as configuration name, otherwise use the complete path.
17632     if test "x${CONF_NAME}" = x; then
17633       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${TOPDIR}/build/!!"`
17634     fi
17635     OUTPUTDIR="$CURDIR"
17636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17637 $as_echo "in current directory" >&6; }
17638 
17639     # WARNING: This might be a bad thing to do. You need to be sure you want to
17640     # have a configuration in this directory. Do some sanity checks!
17641 
17642     if test ! -e "$OUTPUTDIR/spec.gmk"; then
17643       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17644       # other files
17645       files_present=`$LS $OUTPUTDIR`
17646       # Configure has already touched config.log and confdefs.h in the current dir when this check
17647       # is performed.
17648       filtered_files=`$ECHO "$files_present" \
17649           | $SED -e 's/config.log//g' \
17650               -e 's/configure.log//g' \
17651               -e 's/confdefs.h//g' \
17652               -e 's/ //g' \
17653           | $TR -d '\n'`
17654       if test "x$filtered_files" != x; then
17655         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17656 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17657         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17658 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17659         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17660 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17661         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17662 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17663         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17664 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17665         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $TOPDIR' and restart configure" >&5
17666 $as_echo "$as_me: Try 'cd $TOPDIR' and restart configure" >&6;}
17667         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17668 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17669         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17670       fi
17671     fi
17672   fi
17673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17674 $as_echo_n "checking what configuration name to use... " >&6; }
17675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17676 $as_echo "$CONF_NAME" >&6; }
17677 
17678 
17679   # Only process if variable expands to non-empty
17680 
17681   if test "x$OUTPUTDIR" != x; then
17682     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17683 
17684   # Input might be given as Windows format, start by converting to
17685   # unix format.
17686   path="$OUTPUTDIR"
17687   new_path=`$CYGPATH -u "$path"`
17688 
17689   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17690   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17691   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17692   # "foo.exe" is OK but "foo" is an error.
17693   #
17694   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17695   # It is also a way to make sure we got the proper file name for the real test later on.
17696   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17697   if test "x$test_shortpath" = x; then
17698     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5
17699 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;}
17700     as_fn_error $? "Cannot locate the the path of OUTPUTDIR" "$LINENO" 5
17701   fi
17702 
17703   # Call helper function which possibly converts this using DOS-style short mode.
17704   # If so, the updated path is stored in $new_path.
17705 
17706   input_path="$new_path"
17707   # Check if we need to convert this using DOS-style short mode. If the path
17708   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17709   # take no chances and rewrite it.
17710   # Note: m4 eats our [], so we need to use [ and ] instead.
17711   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17712   if test "x$has_forbidden_chars" != x; then
17713     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17714     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17715     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17716     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17717       # Going to short mode and back again did indeed matter. Since short mode is
17718       # case insensitive, let's make it lowercase to improve readability.
17719       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17720       # Now convert it back to Unix-style (cygpath)
17721       input_path=`$CYGPATH -u "$shortmode_path"`
17722       new_path="$input_path"
17723     fi
17724   fi
17725 
17726   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17727   if test "x$test_cygdrive_prefix" = x; then
17728     # As a simple fix, exclude /usr/bin since it's not a real path.
17729     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17730       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17731       # a path prefixed by /cygdrive for fixpath to work.
17732       new_path="$CYGWIN_ROOT_PATH$input_path"
17733     fi
17734   fi
17735 
17736 
17737   if test "x$path" != "x$new_path"; then
17738     OUTPUTDIR="$new_path"
17739     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5
17740 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;}
17741   fi
17742 
17743     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17744 
17745   path="$OUTPUTDIR"
17746   has_colon=`$ECHO $path | $GREP ^.:`
17747   new_path="$path"
17748   if test "x$has_colon" = x; then
17749     # Not in mixed or Windows style, start by that.
17750     new_path=`cmd //c echo $path`
17751   fi
17752 
17753 
17754   input_path="$new_path"
17755   # Check if we need to convert this using DOS-style short mode. If the path
17756   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17757   # take no chances and rewrite it.
17758   # Note: m4 eats our [], so we need to use [ and ] instead.
17759   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17760   if test "x$has_forbidden_chars" != x; then
17761     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17762     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17763   fi
17764 
17765 
17766   windows_path="$new_path"
17767   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17768     unix_path=`$CYGPATH -u "$windows_path"`
17769     new_path="$unix_path"
17770   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17771     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17772     new_path="$unix_path"
17773   fi
17774 
17775   if test "x$path" != "x$new_path"; then
17776     OUTPUTDIR="$new_path"
17777     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5
17778 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;}
17779   fi
17780 
17781   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17782   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17783 
17784     else
17785       # We're on a unix platform. Hooray! :)
17786       path="$OUTPUTDIR"
17787       has_space=`$ECHO "$path" | $GREP " "`
17788       if test "x$has_space" != x; then
17789         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5
17790 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;}
17791         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17792       fi
17793 
17794       # Use eval to expand a potential ~
17795       eval path="$path"
17796       if test ! -f "$path" && test ! -d "$path"; then
17797         as_fn_error $? "The path of OUTPUTDIR, which resolves as \"$path\", is not found." "$LINENO" 5
17798       fi
17799 
17800       if test -d "$path"; then
17801         OUTPUTDIR="`cd "$path"; $THEPWDCMD -L`"
17802       else
17803         dir="`$DIRNAME "$path"`"
17804         base="`$BASENAME "$path"`"
17805         OUTPUTDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
17806       fi
17807     fi
17808   fi
17809 
17810 
17811   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUTDIR/configure-support"
17812   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17813 
17814   SPEC="$OUTPUTDIR/spec.gmk"
17815 
17816 
17817 
17818 
17819 
17820   # The spec.gmk file contains all variables for the make system.
17821   ac_config_files="$ac_config_files $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17822 
17823   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17824   ac_config_files="$ac_config_files $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17825 
17826   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17827   ac_config_files="$ac_config_files $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17828 
17829   # The compare.sh is used to compare the build output to other builds.
17830   ac_config_files="$ac_config_files $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17831 
17832   # The generated Makefile knows where the spec.gmk is and where the source is.
17833   # You can run make from the OUTPUTDIR, or from the top-level Makefile
17834   # which will look for generated configurations
17835   ac_config_files="$ac_config_files $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in"
17836 
17837 
17838 
17839 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17840 
17841   for ac_prog in apt-get yum brew port pkgutil pkgadd
17842 do
17843   # Extract the first word of "$ac_prog", so it can be a program name with args.
17844 set dummy $ac_prog; ac_word=$2
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17846 $as_echo_n "checking for $ac_word... " >&6; }
17847 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17848   $as_echo_n "(cached) " >&6
17849 else
17850   if test -n "$PKGHANDLER"; then
17851   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17852 else
17853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17854 for as_dir in $PATH
17855 do
17856   IFS=$as_save_IFS
17857   test -z "$as_dir" && as_dir=.
17858     for ac_exec_ext in '' $ac_executable_extensions; do
17859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17860     ac_cv_prog_PKGHANDLER="$ac_prog"
17861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17862     break 2
17863   fi
17864 done
17865   done
17866 IFS=$as_save_IFS
17867 
17868 fi
17869 fi
17870 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17871 if test -n "$PKGHANDLER"; then
17872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17873 $as_echo "$PKGHANDLER" >&6; }
17874 else
17875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17876 $as_echo "no" >&6; }
17877 fi
17878 
17879 
17880   test -n "$PKGHANDLER" && break
17881 done
17882 
17883 
17884 
17885 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17886 
17887 
17888 
17889   # Publish this variable in the help.
17890 
17891 
17892   if [ -z "${MAKE+x}" ]; then
17893     # The variable is not set by user, try to locate tool using the code snippet
17894 
17895     # Try our hardest to locate a correct version of GNU make
17896     for ac_prog in gmake
17897 do
17898   # Extract the first word of "$ac_prog", so it can be a program name with args.
17899 set dummy $ac_prog; ac_word=$2
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17901 $as_echo_n "checking for $ac_word... " >&6; }
17902 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17903   $as_echo_n "(cached) " >&6
17904 else
17905   case $CHECK_GMAKE in
17906   [\\/]* | ?:[\\/]*)
17907   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17908   ;;
17909   *)
17910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17911 for as_dir in $PATH
17912 do
17913   IFS=$as_save_IFS
17914   test -z "$as_dir" && as_dir=.
17915     for ac_exec_ext in '' $ac_executable_extensions; do
17916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17917     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17919     break 2
17920   fi
17921 done
17922   done
17923 IFS=$as_save_IFS
17924 
17925   ;;
17926 esac
17927 fi
17928 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17929 if test -n "$CHECK_GMAKE"; then
17930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17931 $as_echo "$CHECK_GMAKE" >&6; }
17932 else
17933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17934 $as_echo "no" >&6; }
17935 fi
17936 
17937 
17938   test -n "$CHECK_GMAKE" && break
17939 done
17940 
17941 
17942   MAKE_CANDIDATE=""$CHECK_GMAKE""
17943   DESCRIPTION="gmake in PATH"
17944 
17945   # On Cygwin, we require a newer version of make than on other platforms
17946   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17947     MAKE_VERSION_EXPR="-e 4\."
17948     MAKE_REQUIRED_VERSION="4.0"
17949    else
17950     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17951     MAKE_REQUIRED_VERSION="3.81"
17952   fi
17953 
17954   if test "x$MAKE_CANDIDATE" != x; then
17955     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17956 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17957     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17958     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17959     if test "x$IS_GNU_MAKE" = x; then
17960       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17961 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17962     else
17963       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17964       if test "x$IS_MODERN_MAKE" = x; then
17965         { $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
17966 $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;}
17967       else
17968         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17969           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17970             MAKE_EXPECTED_ENV='cygwin'
17971           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17972             MAKE_EXPECTED_ENV='msys'
17973           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
17974             MAKE_EXPECTED_ENV='.'
17975           else
17976             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17977           fi
17978           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17979           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17980         else
17981           # Not relevant for non-Windows
17982           IS_MAKE_CORRECT_ENV=true
17983         fi
17984         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17985           { $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
17986 $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;}
17987         else
17988           FOUND_MAKE=$MAKE_CANDIDATE
17989 
17990   # Only process if variable expands to non-empty
17991 
17992   if test "x$FOUND_MAKE" != x; then
17993     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17994 
17995   # First separate the path from the arguments. This will split at the first
17996   # space.
17997   complete="$FOUND_MAKE"
17998   path="${complete%% *}"
17999   tmp="$complete EOL"
18000   arguments="${tmp#* }"
18001 
18002   # Input might be given as Windows format, start by converting to
18003   # unix format.
18004   new_path=`$CYGPATH -u "$path"`
18005 
18006   # Now try to locate executable using which
18007   new_path=`$WHICH "$new_path" 2> /dev/null`
18008   # bat and cmd files are not always considered executable in cygwin causing which
18009   # to not find them
18010   if test "x$new_path" = x \
18011       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18012       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18013     new_path=`$CYGPATH -u "$path"`
18014   fi
18015   if test "x$new_path" = x; then
18016     # Oops. Which didn't find the executable.
18017     # The splitting of arguments from the executable at a space might have been incorrect,
18018     # since paths with space are more likely in Windows. Give it another try with the whole
18019     # argument.
18020     path="$complete"
18021     arguments="EOL"
18022     new_path=`$CYGPATH -u "$path"`
18023     new_path=`$WHICH "$new_path" 2> /dev/null`
18024     # bat and cmd files are not always considered executable in cygwin causing which
18025     # to not find them
18026     if test "x$new_path" = x \
18027         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18028         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18029       new_path=`$CYGPATH -u "$path"`
18030     fi
18031     if test "x$new_path" = x; then
18032       # It's still not found. Now this is an unrecoverable error.
18033       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18034 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18035       has_space=`$ECHO "$complete" | $GREP " "`
18036       if test "x$has_space" != x; then
18037         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18038 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18039       fi
18040       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18041     fi
18042   fi
18043 
18044   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18045   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18046   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18047   # "foo.exe" is OK but "foo" is an error.
18048   #
18049   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18050   # It is also a way to make sure we got the proper file name for the real test later on.
18051   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18052   if test "x$test_shortpath" = x; then
18053     # Short path failed, file does not exist as specified.
18054     # Try adding .exe or .cmd
18055     if test -f "${new_path}.exe"; then
18056       input_to_shortpath="${new_path}.exe"
18057     elif test -f "${new_path}.cmd"; then
18058       input_to_shortpath="${new_path}.cmd"
18059     else
18060       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18061 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18062       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18063 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18064       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18065     fi
18066   else
18067     input_to_shortpath="$new_path"
18068   fi
18069 
18070   # Call helper function which possibly converts this using DOS-style short mode.
18071   # If so, the updated path is stored in $new_path.
18072   new_path="$input_to_shortpath"
18073 
18074   input_path="$input_to_shortpath"
18075   # Check if we need to convert this using DOS-style short mode. If the path
18076   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18077   # take no chances and rewrite it.
18078   # Note: m4 eats our [], so we need to use [ and ] instead.
18079   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18080   if test "x$has_forbidden_chars" != x; then
18081     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18082     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18083     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18084     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18085       # Going to short mode and back again did indeed matter. Since short mode is
18086       # case insensitive, let's make it lowercase to improve readability.
18087       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18088       # Now convert it back to Unix-style (cygpath)
18089       input_path=`$CYGPATH -u "$shortmode_path"`
18090       new_path="$input_path"
18091     fi
18092   fi
18093 
18094   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18095   if test "x$test_cygdrive_prefix" = x; then
18096     # As a simple fix, exclude /usr/bin since it's not a real path.
18097     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18098       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18099       # a path prefixed by /cygdrive for fixpath to work.
18100       new_path="$CYGWIN_ROOT_PATH$input_path"
18101     fi
18102   fi
18103 
18104   # remove trailing .exe if any
18105   new_path="${new_path/%.exe/}"
18106 
18107     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18108 
18109   # First separate the path from the arguments. This will split at the first
18110   # space.
18111   complete="$FOUND_MAKE"
18112   path="${complete%% *}"
18113   tmp="$complete EOL"
18114   arguments="${tmp#* }"
18115 
18116   # Input might be given as Windows format, start by converting to
18117   # unix format.
18118   new_path="$path"
18119 
18120   windows_path="$new_path"
18121   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18122     unix_path=`$CYGPATH -u "$windows_path"`
18123     new_path="$unix_path"
18124   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18125     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18126     new_path="$unix_path"
18127   fi
18128 
18129 
18130   # Now try to locate executable using which
18131   new_path=`$WHICH "$new_path" 2> /dev/null`
18132 
18133   if test "x$new_path" = x; then
18134     # Oops. Which didn't find the executable.
18135     # The splitting of arguments from the executable at a space might have been incorrect,
18136     # since paths with space are more likely in Windows. Give it another try with the whole
18137     # argument.
18138     path="$complete"
18139     arguments="EOL"
18140     new_path="$path"
18141 
18142   windows_path="$new_path"
18143   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18144     unix_path=`$CYGPATH -u "$windows_path"`
18145     new_path="$unix_path"
18146   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18147     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18148     new_path="$unix_path"
18149   fi
18150 
18151 
18152     new_path=`$WHICH "$new_path" 2> /dev/null`
18153     # bat and cmd files are not always considered executable in MSYS causing which
18154     # to not find them
18155     if test "x$new_path" = x \
18156         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18157         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18158       new_path="$path"
18159 
18160   windows_path="$new_path"
18161   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18162     unix_path=`$CYGPATH -u "$windows_path"`
18163     new_path="$unix_path"
18164   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18165     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18166     new_path="$unix_path"
18167   fi
18168 
18169     fi
18170 
18171     if test "x$new_path" = x; then
18172       # It's still not found. Now this is an unrecoverable error.
18173       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18174 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18175       has_space=`$ECHO "$complete" | $GREP " "`
18176       if test "x$has_space" != x; then
18177         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18178 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18179       fi
18180       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18181     fi
18182   fi
18183 
18184   # Now new_path has a complete unix path to the binary
18185   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18186     # Keep paths in /bin as-is, but remove trailing .exe if any
18187     new_path="${new_path/%.exe/}"
18188     # Do not save /bin paths to all_fixpath_prefixes!
18189   else
18190     # Not in mixed or Windows style, start by that.
18191     new_path=`cmd //c echo $new_path`
18192 
18193   input_path="$new_path"
18194   # Check if we need to convert this using DOS-style short mode. If the path
18195   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18196   # take no chances and rewrite it.
18197   # Note: m4 eats our [], so we need to use [ and ] instead.
18198   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18199   if test "x$has_forbidden_chars" != x; then
18200     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18201     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18202   fi
18203 
18204     # Output is in $new_path
18205 
18206   windows_path="$new_path"
18207   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18208     unix_path=`$CYGPATH -u "$windows_path"`
18209     new_path="$unix_path"
18210   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18211     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18212     new_path="$unix_path"
18213   fi
18214 
18215     # remove trailing .exe if any
18216     new_path="${new_path/%.exe/}"
18217 
18218     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18219     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18220   fi
18221 
18222     else
18223       # We're on a unix platform. Hooray! :)
18224       # First separate the path from the arguments. This will split at the first
18225       # space.
18226       complete="$FOUND_MAKE"
18227       path="${complete%% *}"
18228       tmp="$complete EOL"
18229       arguments="${tmp#* }"
18230 
18231       # Cannot rely on the command "which" here since it doesn't always work.
18232       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18233       if test -z "$is_absolute_path"; then
18234         # Path to executable is not absolute. Find it.
18235         IFS_save="$IFS"
18236         IFS=:
18237         for p in $PATH; do
18238           if test -f "$p/$path" && test -x "$p/$path"; then
18239             new_path="$p/$path"
18240             break
18241           fi
18242         done
18243         IFS="$IFS_save"
18244       else
18245         # This is an absolute path, we can use it without further modifications.
18246         new_path="$path"
18247       fi
18248 
18249       if test "x$new_path" = x; then
18250         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18251 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18252         has_space=`$ECHO "$complete" | $GREP " "`
18253         if test "x$has_space" != x; then
18254           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18255 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18256         fi
18257         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18258       fi
18259     fi
18260 
18261     # Now join together the path and the arguments once again
18262     if test "x$arguments" != xEOL; then
18263       new_complete="$new_path ${arguments% *}"
18264     else
18265       new_complete="$new_path"
18266     fi
18267 
18268     if test "x$complete" != "x$new_complete"; then
18269       FOUND_MAKE="$new_complete"
18270       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18271 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18272     fi
18273   fi
18274 
18275         fi
18276       fi
18277     fi
18278   fi
18279 
18280 
18281     if test "x$FOUND_MAKE" = x; then
18282       for ac_prog in make
18283 do
18284   # Extract the first word of "$ac_prog", so it can be a program name with args.
18285 set dummy $ac_prog; ac_word=$2
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18287 $as_echo_n "checking for $ac_word... " >&6; }
18288 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18289   $as_echo_n "(cached) " >&6
18290 else
18291   case $CHECK_MAKE in
18292   [\\/]* | ?:[\\/]*)
18293   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18294   ;;
18295   *)
18296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18297 for as_dir in $PATH
18298 do
18299   IFS=$as_save_IFS
18300   test -z "$as_dir" && as_dir=.
18301     for ac_exec_ext in '' $ac_executable_extensions; do
18302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18303     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18305     break 2
18306   fi
18307 done
18308   done
18309 IFS=$as_save_IFS
18310 
18311   ;;
18312 esac
18313 fi
18314 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18315 if test -n "$CHECK_MAKE"; then
18316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18317 $as_echo "$CHECK_MAKE" >&6; }
18318 else
18319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18320 $as_echo "no" >&6; }
18321 fi
18322 
18323 
18324   test -n "$CHECK_MAKE" && break
18325 done
18326 
18327 
18328   MAKE_CANDIDATE=""$CHECK_MAKE""
18329   DESCRIPTION="make in PATH"
18330 
18331   # On Cygwin, we require a newer version of make than on other platforms
18332   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18333     MAKE_VERSION_EXPR="-e 4\."
18334     MAKE_REQUIRED_VERSION="4.0"
18335    else
18336     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18337     MAKE_REQUIRED_VERSION="3.81"
18338   fi
18339 
18340   if test "x$MAKE_CANDIDATE" != x; then
18341     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18342 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18343     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18344     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18345     if test "x$IS_GNU_MAKE" = x; then
18346       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18347 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18348     else
18349       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18350       if test "x$IS_MODERN_MAKE" = x; then
18351         { $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
18352 $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;}
18353       else
18354         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18355           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18356             MAKE_EXPECTED_ENV='cygwin'
18357           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18358             MAKE_EXPECTED_ENV='msys'
18359           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
18360             MAKE_EXPECTED_ENV='.'
18361           else
18362             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18363           fi
18364           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18365           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18366         else
18367           # Not relevant for non-Windows
18368           IS_MAKE_CORRECT_ENV=true
18369         fi
18370         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18371           { $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
18372 $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;}
18373         else
18374           FOUND_MAKE=$MAKE_CANDIDATE
18375 
18376   # Only process if variable expands to non-empty
18377 
18378   if test "x$FOUND_MAKE" != x; then
18379     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18380 
18381   # First separate the path from the arguments. This will split at the first
18382   # space.
18383   complete="$FOUND_MAKE"
18384   path="${complete%% *}"
18385   tmp="$complete EOL"
18386   arguments="${tmp#* }"
18387 
18388   # Input might be given as Windows format, start by converting to
18389   # unix format.
18390   new_path=`$CYGPATH -u "$path"`
18391 
18392   # Now try to locate executable using which
18393   new_path=`$WHICH "$new_path" 2> /dev/null`
18394   # bat and cmd files are not always considered executable in cygwin causing which
18395   # to not find them
18396   if test "x$new_path" = x \
18397       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18398       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18399     new_path=`$CYGPATH -u "$path"`
18400   fi
18401   if test "x$new_path" = x; then
18402     # Oops. Which didn't find the executable.
18403     # The splitting of arguments from the executable at a space might have been incorrect,
18404     # since paths with space are more likely in Windows. Give it another try with the whole
18405     # argument.
18406     path="$complete"
18407     arguments="EOL"
18408     new_path=`$CYGPATH -u "$path"`
18409     new_path=`$WHICH "$new_path" 2> /dev/null`
18410     # bat and cmd files are not always considered executable in cygwin causing which
18411     # to not find them
18412     if test "x$new_path" = x \
18413         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18414         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18415       new_path=`$CYGPATH -u "$path"`
18416     fi
18417     if test "x$new_path" = x; then
18418       # It's still not found. Now this is an unrecoverable error.
18419       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18420 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18421       has_space=`$ECHO "$complete" | $GREP " "`
18422       if test "x$has_space" != x; then
18423         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18424 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18425       fi
18426       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18427     fi
18428   fi
18429 
18430   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18431   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18432   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18433   # "foo.exe" is OK but "foo" is an error.
18434   #
18435   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18436   # It is also a way to make sure we got the proper file name for the real test later on.
18437   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18438   if test "x$test_shortpath" = x; then
18439     # Short path failed, file does not exist as specified.
18440     # Try adding .exe or .cmd
18441     if test -f "${new_path}.exe"; then
18442       input_to_shortpath="${new_path}.exe"
18443     elif test -f "${new_path}.cmd"; then
18444       input_to_shortpath="${new_path}.cmd"
18445     else
18446       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18447 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18448       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18449 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18450       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18451     fi
18452   else
18453     input_to_shortpath="$new_path"
18454   fi
18455 
18456   # Call helper function which possibly converts this using DOS-style short mode.
18457   # If so, the updated path is stored in $new_path.
18458   new_path="$input_to_shortpath"
18459 
18460   input_path="$input_to_shortpath"
18461   # Check if we need to convert this using DOS-style short mode. If the path
18462   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18463   # take no chances and rewrite it.
18464   # Note: m4 eats our [], so we need to use [ and ] instead.
18465   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18466   if test "x$has_forbidden_chars" != x; then
18467     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18468     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18469     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18470     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18471       # Going to short mode and back again did indeed matter. Since short mode is
18472       # case insensitive, let's make it lowercase to improve readability.
18473       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18474       # Now convert it back to Unix-style (cygpath)
18475       input_path=`$CYGPATH -u "$shortmode_path"`
18476       new_path="$input_path"
18477     fi
18478   fi
18479 
18480   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18481   if test "x$test_cygdrive_prefix" = x; then
18482     # As a simple fix, exclude /usr/bin since it's not a real path.
18483     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18484       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18485       # a path prefixed by /cygdrive for fixpath to work.
18486       new_path="$CYGWIN_ROOT_PATH$input_path"
18487     fi
18488   fi
18489 
18490   # remove trailing .exe if any
18491   new_path="${new_path/%.exe/}"
18492 
18493     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18494 
18495   # First separate the path from the arguments. This will split at the first
18496   # space.
18497   complete="$FOUND_MAKE"
18498   path="${complete%% *}"
18499   tmp="$complete EOL"
18500   arguments="${tmp#* }"
18501 
18502   # Input might be given as Windows format, start by converting to
18503   # unix format.
18504   new_path="$path"
18505 
18506   windows_path="$new_path"
18507   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18508     unix_path=`$CYGPATH -u "$windows_path"`
18509     new_path="$unix_path"
18510   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18511     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18512     new_path="$unix_path"
18513   fi
18514 
18515 
18516   # Now try to locate executable using which
18517   new_path=`$WHICH "$new_path" 2> /dev/null`
18518 
18519   if test "x$new_path" = x; then
18520     # Oops. Which didn't find the executable.
18521     # The splitting of arguments from the executable at a space might have been incorrect,
18522     # since paths with space are more likely in Windows. Give it another try with the whole
18523     # argument.
18524     path="$complete"
18525     arguments="EOL"
18526     new_path="$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 
18538     new_path=`$WHICH "$new_path" 2> /dev/null`
18539     # bat and cmd files are not always considered executable in MSYS causing which
18540     # to not find them
18541     if test "x$new_path" = x \
18542         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18543         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18544       new_path="$path"
18545 
18546   windows_path="$new_path"
18547   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18548     unix_path=`$CYGPATH -u "$windows_path"`
18549     new_path="$unix_path"
18550   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18551     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18552     new_path="$unix_path"
18553   fi
18554 
18555     fi
18556 
18557     if test "x$new_path" = x; then
18558       # It's still not found. Now this is an unrecoverable error.
18559       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18560 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18561       has_space=`$ECHO "$complete" | $GREP " "`
18562       if test "x$has_space" != x; then
18563         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18564 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18565       fi
18566       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18567     fi
18568   fi
18569 
18570   # Now new_path has a complete unix path to the binary
18571   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18572     # Keep paths in /bin as-is, but remove trailing .exe if any
18573     new_path="${new_path/%.exe/}"
18574     # Do not save /bin paths to all_fixpath_prefixes!
18575   else
18576     # Not in mixed or Windows style, start by that.
18577     new_path=`cmd //c echo $new_path`
18578 
18579   input_path="$new_path"
18580   # Check if we need to convert this using DOS-style short mode. If the path
18581   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18582   # take no chances and rewrite it.
18583   # Note: m4 eats our [], so we need to use [ and ] instead.
18584   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18585   if test "x$has_forbidden_chars" != x; then
18586     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18587     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18588   fi
18589 
18590     # Output is in $new_path
18591 
18592   windows_path="$new_path"
18593   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18594     unix_path=`$CYGPATH -u "$windows_path"`
18595     new_path="$unix_path"
18596   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18597     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18598     new_path="$unix_path"
18599   fi
18600 
18601     # remove trailing .exe if any
18602     new_path="${new_path/%.exe/}"
18603 
18604     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18605     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18606   fi
18607 
18608     else
18609       # We're on a unix platform. Hooray! :)
18610       # First separate the path from the arguments. This will split at the first
18611       # space.
18612       complete="$FOUND_MAKE"
18613       path="${complete%% *}"
18614       tmp="$complete EOL"
18615       arguments="${tmp#* }"
18616 
18617       # Cannot rely on the command "which" here since it doesn't always work.
18618       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18619       if test -z "$is_absolute_path"; then
18620         # Path to executable is not absolute. Find it.
18621         IFS_save="$IFS"
18622         IFS=:
18623         for p in $PATH; do
18624           if test -f "$p/$path" && test -x "$p/$path"; then
18625             new_path="$p/$path"
18626             break
18627           fi
18628         done
18629         IFS="$IFS_save"
18630       else
18631         # This is an absolute path, we can use it without further modifications.
18632         new_path="$path"
18633       fi
18634 
18635       if test "x$new_path" = x; then
18636         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18637 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18638         has_space=`$ECHO "$complete" | $GREP " "`
18639         if test "x$has_space" != x; then
18640           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18641 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18642         fi
18643         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18644       fi
18645     fi
18646 
18647     # Now join together the path and the arguments once again
18648     if test "x$arguments" != xEOL; then
18649       new_complete="$new_path ${arguments% *}"
18650     else
18651       new_complete="$new_path"
18652     fi
18653 
18654     if test "x$complete" != "x$new_complete"; then
18655       FOUND_MAKE="$new_complete"
18656       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18657 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18658     fi
18659   fi
18660 
18661         fi
18662       fi
18663     fi
18664   fi
18665 
18666     fi
18667 
18668     if test "x$FOUND_MAKE" = x; then
18669       if test "x$TOOLCHAIN_PATH" != x; then
18670         # We have a toolchain path, check that as well before giving up.
18671         OLD_PATH=$PATH
18672         PATH=$TOOLCHAIN_PATH:$PATH
18673         for ac_prog in gmake
18674 do
18675   # Extract the first word of "$ac_prog", so it can be a program name with args.
18676 set dummy $ac_prog; ac_word=$2
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18678 $as_echo_n "checking for $ac_word... " >&6; }
18679 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18680   $as_echo_n "(cached) " >&6
18681 else
18682   case $CHECK_TOOLSDIR_GMAKE in
18683   [\\/]* | ?:[\\/]*)
18684   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18685   ;;
18686   *)
18687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18688 for as_dir in $PATH
18689 do
18690   IFS=$as_save_IFS
18691   test -z "$as_dir" && as_dir=.
18692     for ac_exec_ext in '' $ac_executable_extensions; do
18693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18694     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18696     break 2
18697   fi
18698 done
18699   done
18700 IFS=$as_save_IFS
18701 
18702   ;;
18703 esac
18704 fi
18705 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18706 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18708 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18709 else
18710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18711 $as_echo "no" >&6; }
18712 fi
18713 
18714 
18715   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18716 done
18717 
18718 
18719   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18720   DESCRIPTION="gmake in tools-dir"
18721 
18722   # On Cygwin, we require a newer version of make than on other platforms
18723   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18724     MAKE_VERSION_EXPR="-e 4\."
18725     MAKE_REQUIRED_VERSION="4.0"
18726    else
18727     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18728     MAKE_REQUIRED_VERSION="3.81"
18729   fi
18730 
18731   if test "x$MAKE_CANDIDATE" != x; then
18732     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18733 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18734     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18735     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18736     if test "x$IS_GNU_MAKE" = x; then
18737       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18738 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18739     else
18740       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18741       if test "x$IS_MODERN_MAKE" = x; then
18742         { $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
18743 $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;}
18744       else
18745         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18746           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18747             MAKE_EXPECTED_ENV='cygwin'
18748           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18749             MAKE_EXPECTED_ENV='msys'
18750           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
18751             MAKE_EXPECTED_ENV='.'
18752           else
18753             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18754           fi
18755           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18756           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18757         else
18758           # Not relevant for non-Windows
18759           IS_MAKE_CORRECT_ENV=true
18760         fi
18761         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18762           { $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
18763 $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;}
18764         else
18765           FOUND_MAKE=$MAKE_CANDIDATE
18766 
18767   # Only process if variable expands to non-empty
18768 
18769   if test "x$FOUND_MAKE" != x; then
18770     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18771 
18772   # First separate the path from the arguments. This will split at the first
18773   # space.
18774   complete="$FOUND_MAKE"
18775   path="${complete%% *}"
18776   tmp="$complete EOL"
18777   arguments="${tmp#* }"
18778 
18779   # Input might be given as Windows format, start by converting to
18780   # unix format.
18781   new_path=`$CYGPATH -u "$path"`
18782 
18783   # Now try to locate executable using which
18784   new_path=`$WHICH "$new_path" 2> /dev/null`
18785   # bat and cmd files are not always considered executable in cygwin causing which
18786   # to not find them
18787   if test "x$new_path" = x \
18788       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18789       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18790     new_path=`$CYGPATH -u "$path"`
18791   fi
18792   if test "x$new_path" = x; then
18793     # Oops. Which didn't find the executable.
18794     # The splitting of arguments from the executable at a space might have been incorrect,
18795     # since paths with space are more likely in Windows. Give it another try with the whole
18796     # argument.
18797     path="$complete"
18798     arguments="EOL"
18799     new_path=`$CYGPATH -u "$path"`
18800     new_path=`$WHICH "$new_path" 2> /dev/null`
18801     # bat and cmd files are not always considered executable in cygwin causing which
18802     # to not find them
18803     if test "x$new_path" = x \
18804         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18805         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18806       new_path=`$CYGPATH -u "$path"`
18807     fi
18808     if test "x$new_path" = x; then
18809       # It's still not found. Now this is an unrecoverable error.
18810       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18811 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18812       has_space=`$ECHO "$complete" | $GREP " "`
18813       if test "x$has_space" != x; then
18814         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18815 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18816       fi
18817       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18818     fi
18819   fi
18820 
18821   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18822   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18823   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18824   # "foo.exe" is OK but "foo" is an error.
18825   #
18826   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18827   # It is also a way to make sure we got the proper file name for the real test later on.
18828   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18829   if test "x$test_shortpath" = x; then
18830     # Short path failed, file does not exist as specified.
18831     # Try adding .exe or .cmd
18832     if test -f "${new_path}.exe"; then
18833       input_to_shortpath="${new_path}.exe"
18834     elif test -f "${new_path}.cmd"; then
18835       input_to_shortpath="${new_path}.cmd"
18836     else
18837       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18838 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18839       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18840 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18841       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18842     fi
18843   else
18844     input_to_shortpath="$new_path"
18845   fi
18846 
18847   # Call helper function which possibly converts this using DOS-style short mode.
18848   # If so, the updated path is stored in $new_path.
18849   new_path="$input_to_shortpath"
18850 
18851   input_path="$input_to_shortpath"
18852   # Check if we need to convert this using DOS-style short mode. If the path
18853   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18854   # take no chances and rewrite it.
18855   # Note: m4 eats our [], so we need to use [ and ] instead.
18856   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18857   if test "x$has_forbidden_chars" != x; then
18858     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18859     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18860     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18861     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18862       # Going to short mode and back again did indeed matter. Since short mode is
18863       # case insensitive, let's make it lowercase to improve readability.
18864       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18865       # Now convert it back to Unix-style (cygpath)
18866       input_path=`$CYGPATH -u "$shortmode_path"`
18867       new_path="$input_path"
18868     fi
18869   fi
18870 
18871   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18872   if test "x$test_cygdrive_prefix" = x; then
18873     # As a simple fix, exclude /usr/bin since it's not a real path.
18874     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18875       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18876       # a path prefixed by /cygdrive for fixpath to work.
18877       new_path="$CYGWIN_ROOT_PATH$input_path"
18878     fi
18879   fi
18880 
18881   # remove trailing .exe if any
18882   new_path="${new_path/%.exe/}"
18883 
18884     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18885 
18886   # First separate the path from the arguments. This will split at the first
18887   # space.
18888   complete="$FOUND_MAKE"
18889   path="${complete%% *}"
18890   tmp="$complete EOL"
18891   arguments="${tmp#* }"
18892 
18893   # Input might be given as Windows format, start by converting to
18894   # unix format.
18895   new_path="$path"
18896 
18897   windows_path="$new_path"
18898   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18899     unix_path=`$CYGPATH -u "$windows_path"`
18900     new_path="$unix_path"
18901   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18902     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18903     new_path="$unix_path"
18904   fi
18905 
18906 
18907   # Now try to locate executable using which
18908   new_path=`$WHICH "$new_path" 2> /dev/null`
18909 
18910   if test "x$new_path" = x; then
18911     # Oops. Which didn't find the executable.
18912     # The splitting of arguments from the executable at a space might have been incorrect,
18913     # since paths with space are more likely in Windows. Give it another try with the whole
18914     # argument.
18915     path="$complete"
18916     arguments="EOL"
18917     new_path="$path"
18918 
18919   windows_path="$new_path"
18920   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18921     unix_path=`$CYGPATH -u "$windows_path"`
18922     new_path="$unix_path"
18923   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18924     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18925     new_path="$unix_path"
18926   fi
18927 
18928 
18929     new_path=`$WHICH "$new_path" 2> /dev/null`
18930     # bat and cmd files are not always considered executable in MSYS causing which
18931     # to not find them
18932     if test "x$new_path" = x \
18933         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18934         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18935       new_path="$path"
18936 
18937   windows_path="$new_path"
18938   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18939     unix_path=`$CYGPATH -u "$windows_path"`
18940     new_path="$unix_path"
18941   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18942     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18943     new_path="$unix_path"
18944   fi
18945 
18946     fi
18947 
18948     if test "x$new_path" = x; then
18949       # It's still not found. Now this is an unrecoverable error.
18950       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18951 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18952       has_space=`$ECHO "$complete" | $GREP " "`
18953       if test "x$has_space" != x; then
18954         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18955 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18956       fi
18957       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18958     fi
18959   fi
18960 
18961   # Now new_path has a complete unix path to the binary
18962   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18963     # Keep paths in /bin as-is, but remove trailing .exe if any
18964     new_path="${new_path/%.exe/}"
18965     # Do not save /bin paths to all_fixpath_prefixes!
18966   else
18967     # Not in mixed or Windows style, start by that.
18968     new_path=`cmd //c echo $new_path`
18969 
18970   input_path="$new_path"
18971   # Check if we need to convert this using DOS-style short mode. If the path
18972   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18973   # take no chances and rewrite it.
18974   # Note: m4 eats our [], so we need to use [ and ] instead.
18975   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18976   if test "x$has_forbidden_chars" != x; then
18977     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18978     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18979   fi
18980 
18981     # Output is in $new_path
18982 
18983   windows_path="$new_path"
18984   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18985     unix_path=`$CYGPATH -u "$windows_path"`
18986     new_path="$unix_path"
18987   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18988     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18989     new_path="$unix_path"
18990   fi
18991 
18992     # remove trailing .exe if any
18993     new_path="${new_path/%.exe/}"
18994 
18995     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18996     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18997   fi
18998 
18999     else
19000       # We're on a unix platform. Hooray! :)
19001       # First separate the path from the arguments. This will split at the first
19002       # space.
19003       complete="$FOUND_MAKE"
19004       path="${complete%% *}"
19005       tmp="$complete EOL"
19006       arguments="${tmp#* }"
19007 
19008       # Cannot rely on the command "which" here since it doesn't always work.
19009       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19010       if test -z "$is_absolute_path"; then
19011         # Path to executable is not absolute. Find it.
19012         IFS_save="$IFS"
19013         IFS=:
19014         for p in $PATH; do
19015           if test -f "$p/$path" && test -x "$p/$path"; then
19016             new_path="$p/$path"
19017             break
19018           fi
19019         done
19020         IFS="$IFS_save"
19021       else
19022         # This is an absolute path, we can use it without further modifications.
19023         new_path="$path"
19024       fi
19025 
19026       if test "x$new_path" = x; then
19027         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19028 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19029         has_space=`$ECHO "$complete" | $GREP " "`
19030         if test "x$has_space" != x; then
19031           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19032 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19033         fi
19034         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19035       fi
19036     fi
19037 
19038     # Now join together the path and the arguments once again
19039     if test "x$arguments" != xEOL; then
19040       new_complete="$new_path ${arguments% *}"
19041     else
19042       new_complete="$new_path"
19043     fi
19044 
19045     if test "x$complete" != "x$new_complete"; then
19046       FOUND_MAKE="$new_complete"
19047       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19048 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19049     fi
19050   fi
19051 
19052         fi
19053       fi
19054     fi
19055   fi
19056 
19057         if test "x$FOUND_MAKE" = x; then
19058           for ac_prog in make
19059 do
19060   # Extract the first word of "$ac_prog", so it can be a program name with args.
19061 set dummy $ac_prog; ac_word=$2
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19063 $as_echo_n "checking for $ac_word... " >&6; }
19064 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19065   $as_echo_n "(cached) " >&6
19066 else
19067   case $CHECK_TOOLSDIR_MAKE in
19068   [\\/]* | ?:[\\/]*)
19069   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19070   ;;
19071   *)
19072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19073 for as_dir in $PATH
19074 do
19075   IFS=$as_save_IFS
19076   test -z "$as_dir" && as_dir=.
19077     for ac_exec_ext in '' $ac_executable_extensions; do
19078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19079     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19081     break 2
19082   fi
19083 done
19084   done
19085 IFS=$as_save_IFS
19086 
19087   ;;
19088 esac
19089 fi
19090 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19091 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19093 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19094 else
19095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19096 $as_echo "no" >&6; }
19097 fi
19098 
19099 
19100   test -n "$CHECK_TOOLSDIR_MAKE" && break
19101 done
19102 
19103 
19104   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19105   DESCRIPTION="make in tools-dir"
19106 
19107   # On Cygwin, we require a newer version of make than on other platforms
19108   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19109     MAKE_VERSION_EXPR="-e 4\."
19110     MAKE_REQUIRED_VERSION="4.0"
19111    else
19112     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19113     MAKE_REQUIRED_VERSION="3.81"
19114   fi
19115 
19116   if test "x$MAKE_CANDIDATE" != x; then
19117     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19118 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19119     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19120     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19121     if test "x$IS_GNU_MAKE" = x; then
19122       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19123 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19124     else
19125       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19126       if test "x$IS_MODERN_MAKE" = x; then
19127         { $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
19128 $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;}
19129       else
19130         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19131           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19132             MAKE_EXPECTED_ENV='cygwin'
19133           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19134             MAKE_EXPECTED_ENV='msys'
19135           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
19136             MAKE_EXPECTED_ENV='.'
19137           else
19138             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19139           fi
19140           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19141           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19142         else
19143           # Not relevant for non-Windows
19144           IS_MAKE_CORRECT_ENV=true
19145         fi
19146         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19147           { $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
19148 $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;}
19149         else
19150           FOUND_MAKE=$MAKE_CANDIDATE
19151 
19152   # Only process if variable expands to non-empty
19153 
19154   if test "x$FOUND_MAKE" != x; then
19155     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19156 
19157   # First separate the path from the arguments. This will split at the first
19158   # space.
19159   complete="$FOUND_MAKE"
19160   path="${complete%% *}"
19161   tmp="$complete EOL"
19162   arguments="${tmp#* }"
19163 
19164   # Input might be given as Windows format, start by converting to
19165   # unix format.
19166   new_path=`$CYGPATH -u "$path"`
19167 
19168   # Now try to locate executable using which
19169   new_path=`$WHICH "$new_path" 2> /dev/null`
19170   # bat and cmd files are not always considered executable in cygwin causing which
19171   # to not find them
19172   if test "x$new_path" = x \
19173       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19174       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19175     new_path=`$CYGPATH -u "$path"`
19176   fi
19177   if test "x$new_path" = x; then
19178     # Oops. Which didn't find the executable.
19179     # The splitting of arguments from the executable at a space might have been incorrect,
19180     # since paths with space are more likely in Windows. Give it another try with the whole
19181     # argument.
19182     path="$complete"
19183     arguments="EOL"
19184     new_path=`$CYGPATH -u "$path"`
19185     new_path=`$WHICH "$new_path" 2> /dev/null`
19186     # bat and cmd files are not always considered executable in cygwin causing which
19187     # to not find them
19188     if test "x$new_path" = x \
19189         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19190         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19191       new_path=`$CYGPATH -u "$path"`
19192     fi
19193     if test "x$new_path" = x; then
19194       # It's still not found. Now this is an unrecoverable error.
19195       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19196 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19197       has_space=`$ECHO "$complete" | $GREP " "`
19198       if test "x$has_space" != x; then
19199         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19200 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19201       fi
19202       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19203     fi
19204   fi
19205 
19206   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19207   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19208   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19209   # "foo.exe" is OK but "foo" is an error.
19210   #
19211   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19212   # It is also a way to make sure we got the proper file name for the real test later on.
19213   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19214   if test "x$test_shortpath" = x; then
19215     # Short path failed, file does not exist as specified.
19216     # Try adding .exe or .cmd
19217     if test -f "${new_path}.exe"; then
19218       input_to_shortpath="${new_path}.exe"
19219     elif test -f "${new_path}.cmd"; then
19220       input_to_shortpath="${new_path}.cmd"
19221     else
19222       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19223 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19224       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19225 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19226       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19227     fi
19228   else
19229     input_to_shortpath="$new_path"
19230   fi
19231 
19232   # Call helper function which possibly converts this using DOS-style short mode.
19233   # If so, the updated path is stored in $new_path.
19234   new_path="$input_to_shortpath"
19235 
19236   input_path="$input_to_shortpath"
19237   # Check if we need to convert this using DOS-style short mode. If the path
19238   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19239   # take no chances and rewrite it.
19240   # Note: m4 eats our [], so we need to use [ and ] instead.
19241   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19242   if test "x$has_forbidden_chars" != x; then
19243     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19244     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19245     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19246     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19247       # Going to short mode and back again did indeed matter. Since short mode is
19248       # case insensitive, let's make it lowercase to improve readability.
19249       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19250       # Now convert it back to Unix-style (cygpath)
19251       input_path=`$CYGPATH -u "$shortmode_path"`
19252       new_path="$input_path"
19253     fi
19254   fi
19255 
19256   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19257   if test "x$test_cygdrive_prefix" = x; then
19258     # As a simple fix, exclude /usr/bin since it's not a real path.
19259     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19260       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19261       # a path prefixed by /cygdrive for fixpath to work.
19262       new_path="$CYGWIN_ROOT_PATH$input_path"
19263     fi
19264   fi
19265 
19266   # remove trailing .exe if any
19267   new_path="${new_path/%.exe/}"
19268 
19269     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19270 
19271   # First separate the path from the arguments. This will split at the first
19272   # space.
19273   complete="$FOUND_MAKE"
19274   path="${complete%% *}"
19275   tmp="$complete EOL"
19276   arguments="${tmp#* }"
19277 
19278   # Input might be given as Windows format, start by converting to
19279   # unix format.
19280   new_path="$path"
19281 
19282   windows_path="$new_path"
19283   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19284     unix_path=`$CYGPATH -u "$windows_path"`
19285     new_path="$unix_path"
19286   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19287     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19288     new_path="$unix_path"
19289   fi
19290 
19291 
19292   # Now try to locate executable using which
19293   new_path=`$WHICH "$new_path" 2> /dev/null`
19294 
19295   if test "x$new_path" = x; then
19296     # Oops. Which didn't find the executable.
19297     # The splitting of arguments from the executable at a space might have been incorrect,
19298     # since paths with space are more likely in Windows. Give it another try with the whole
19299     # argument.
19300     path="$complete"
19301     arguments="EOL"
19302     new_path="$path"
19303 
19304   windows_path="$new_path"
19305   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19306     unix_path=`$CYGPATH -u "$windows_path"`
19307     new_path="$unix_path"
19308   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19309     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19310     new_path="$unix_path"
19311   fi
19312 
19313 
19314     new_path=`$WHICH "$new_path" 2> /dev/null`
19315     # bat and cmd files are not always considered executable in MSYS causing which
19316     # to not find them
19317     if test "x$new_path" = x \
19318         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19319         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19320       new_path="$path"
19321 
19322   windows_path="$new_path"
19323   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19324     unix_path=`$CYGPATH -u "$windows_path"`
19325     new_path="$unix_path"
19326   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19327     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19328     new_path="$unix_path"
19329   fi
19330 
19331     fi
19332 
19333     if test "x$new_path" = x; then
19334       # It's still not found. Now this is an unrecoverable error.
19335       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19336 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19337       has_space=`$ECHO "$complete" | $GREP " "`
19338       if test "x$has_space" != x; then
19339         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19340 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19341       fi
19342       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19343     fi
19344   fi
19345 
19346   # Now new_path has a complete unix path to the binary
19347   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19348     # Keep paths in /bin as-is, but remove trailing .exe if any
19349     new_path="${new_path/%.exe/}"
19350     # Do not save /bin paths to all_fixpath_prefixes!
19351   else
19352     # Not in mixed or Windows style, start by that.
19353     new_path=`cmd //c echo $new_path`
19354 
19355   input_path="$new_path"
19356   # Check if we need to convert this using DOS-style short mode. If the path
19357   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19358   # take no chances and rewrite it.
19359   # Note: m4 eats our [], so we need to use [ and ] instead.
19360   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19361   if test "x$has_forbidden_chars" != x; then
19362     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19363     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19364   fi
19365 
19366     # Output is in $new_path
19367 
19368   windows_path="$new_path"
19369   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19370     unix_path=`$CYGPATH -u "$windows_path"`
19371     new_path="$unix_path"
19372   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19373     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19374     new_path="$unix_path"
19375   fi
19376 
19377     # remove trailing .exe if any
19378     new_path="${new_path/%.exe/}"
19379 
19380     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19381     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19382   fi
19383 
19384     else
19385       # We're on a unix platform. Hooray! :)
19386       # First separate the path from the arguments. This will split at the first
19387       # space.
19388       complete="$FOUND_MAKE"
19389       path="${complete%% *}"
19390       tmp="$complete EOL"
19391       arguments="${tmp#* }"
19392 
19393       # Cannot rely on the command "which" here since it doesn't always work.
19394       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19395       if test -z "$is_absolute_path"; then
19396         # Path to executable is not absolute. Find it.
19397         IFS_save="$IFS"
19398         IFS=:
19399         for p in $PATH; do
19400           if test -f "$p/$path" && test -x "$p/$path"; then
19401             new_path="$p/$path"
19402             break
19403           fi
19404         done
19405         IFS="$IFS_save"
19406       else
19407         # This is an absolute path, we can use it without further modifications.
19408         new_path="$path"
19409       fi
19410 
19411       if test "x$new_path" = x; then
19412         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19413 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19414         has_space=`$ECHO "$complete" | $GREP " "`
19415         if test "x$has_space" != x; then
19416           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19417 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19418         fi
19419         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19420       fi
19421     fi
19422 
19423     # Now join together the path and the arguments once again
19424     if test "x$arguments" != xEOL; then
19425       new_complete="$new_path ${arguments% *}"
19426     else
19427       new_complete="$new_path"
19428     fi
19429 
19430     if test "x$complete" != "x$new_complete"; then
19431       FOUND_MAKE="$new_complete"
19432       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19433 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19434     fi
19435   fi
19436 
19437         fi
19438       fi
19439     fi
19440   fi
19441 
19442         fi
19443         PATH=$OLD_PATH
19444       fi
19445     fi
19446 
19447     if test "x$FOUND_MAKE" = x; then
19448       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
19449     fi
19450 
19451   else
19452     # The variable is set, but is it from the command line or the environment?
19453 
19454     # Try to remove the string !MAKE! from our list.
19455     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19456     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19457       # If it failed, the variable was not from the command line. Ignore it,
19458       # but warn the user (except for BASH, which is always set by the calling BASH).
19459       if test "xMAKE" != xBASH; then
19460         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19461 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19462       fi
19463       # Try to locate tool using the code snippet
19464 
19465     # Try our hardest to locate a correct version of GNU make
19466     for ac_prog in gmake
19467 do
19468   # Extract the first word of "$ac_prog", so it can be a program name with args.
19469 set dummy $ac_prog; ac_word=$2
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19471 $as_echo_n "checking for $ac_word... " >&6; }
19472 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19473   $as_echo_n "(cached) " >&6
19474 else
19475   case $CHECK_GMAKE in
19476   [\\/]* | ?:[\\/]*)
19477   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19478   ;;
19479   *)
19480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19481 for as_dir in $PATH
19482 do
19483   IFS=$as_save_IFS
19484   test -z "$as_dir" && as_dir=.
19485     for ac_exec_ext in '' $ac_executable_extensions; do
19486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19487     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19489     break 2
19490   fi
19491 done
19492   done
19493 IFS=$as_save_IFS
19494 
19495   ;;
19496 esac
19497 fi
19498 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19499 if test -n "$CHECK_GMAKE"; then
19500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19501 $as_echo "$CHECK_GMAKE" >&6; }
19502 else
19503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19504 $as_echo "no" >&6; }
19505 fi
19506 
19507 
19508   test -n "$CHECK_GMAKE" && break
19509 done
19510 
19511 
19512   MAKE_CANDIDATE=""$CHECK_GMAKE""
19513   DESCRIPTION="gmake in PATH"
19514 
19515   # On Cygwin, we require a newer version of make than on other platforms
19516   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19517     MAKE_VERSION_EXPR="-e 4\."
19518     MAKE_REQUIRED_VERSION="4.0"
19519    else
19520     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19521     MAKE_REQUIRED_VERSION="3.81"
19522   fi
19523 
19524   if test "x$MAKE_CANDIDATE" != x; then
19525     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19526 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19527     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19528     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19529     if test "x$IS_GNU_MAKE" = x; then
19530       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19531 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19532     else
19533       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19534       if test "x$IS_MODERN_MAKE" = x; then
19535         { $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
19536 $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;}
19537       else
19538         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19539           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19540             MAKE_EXPECTED_ENV='cygwin'
19541           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19542             MAKE_EXPECTED_ENV='msys'
19543           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
19544             MAKE_EXPECTED_ENV='.'
19545           else
19546             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19547           fi
19548           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19549           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19550         else
19551           # Not relevant for non-Windows
19552           IS_MAKE_CORRECT_ENV=true
19553         fi
19554         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19555           { $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
19556 $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;}
19557         else
19558           FOUND_MAKE=$MAKE_CANDIDATE
19559 
19560   # Only process if variable expands to non-empty
19561 
19562   if test "x$FOUND_MAKE" != x; then
19563     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19564 
19565   # First separate the path from the arguments. This will split at the first
19566   # space.
19567   complete="$FOUND_MAKE"
19568   path="${complete%% *}"
19569   tmp="$complete EOL"
19570   arguments="${tmp#* }"
19571 
19572   # Input might be given as Windows format, start by converting to
19573   # unix format.
19574   new_path=`$CYGPATH -u "$path"`
19575 
19576   # Now try to locate executable using which
19577   new_path=`$WHICH "$new_path" 2> /dev/null`
19578   # bat and cmd files are not always considered executable in cygwin causing which
19579   # to not find them
19580   if test "x$new_path" = x \
19581       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19582       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19583     new_path=`$CYGPATH -u "$path"`
19584   fi
19585   if test "x$new_path" = x; then
19586     # Oops. Which didn't find the executable.
19587     # The splitting of arguments from the executable at a space might have been incorrect,
19588     # since paths with space are more likely in Windows. Give it another try with the whole
19589     # argument.
19590     path="$complete"
19591     arguments="EOL"
19592     new_path=`$CYGPATH -u "$path"`
19593     new_path=`$WHICH "$new_path" 2> /dev/null`
19594     # bat and cmd files are not always considered executable in cygwin causing which
19595     # to not find them
19596     if test "x$new_path" = x \
19597         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19598         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19599       new_path=`$CYGPATH -u "$path"`
19600     fi
19601     if test "x$new_path" = x; then
19602       # It's still not found. Now this is an unrecoverable error.
19603       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19604 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19605       has_space=`$ECHO "$complete" | $GREP " "`
19606       if test "x$has_space" != x; then
19607         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19608 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19609       fi
19610       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19611     fi
19612   fi
19613 
19614   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19615   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19616   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19617   # "foo.exe" is OK but "foo" is an error.
19618   #
19619   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19620   # It is also a way to make sure we got the proper file name for the real test later on.
19621   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19622   if test "x$test_shortpath" = x; then
19623     # Short path failed, file does not exist as specified.
19624     # Try adding .exe or .cmd
19625     if test -f "${new_path}.exe"; then
19626       input_to_shortpath="${new_path}.exe"
19627     elif test -f "${new_path}.cmd"; then
19628       input_to_shortpath="${new_path}.cmd"
19629     else
19630       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19631 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19632       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19633 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19634       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19635     fi
19636   else
19637     input_to_shortpath="$new_path"
19638   fi
19639 
19640   # Call helper function which possibly converts this using DOS-style short mode.
19641   # If so, the updated path is stored in $new_path.
19642   new_path="$input_to_shortpath"
19643 
19644   input_path="$input_to_shortpath"
19645   # Check if we need to convert this using DOS-style short mode. If the path
19646   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19647   # take no chances and rewrite it.
19648   # Note: m4 eats our [], so we need to use [ and ] instead.
19649   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19650   if test "x$has_forbidden_chars" != x; then
19651     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19652     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19653     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19654     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19655       # Going to short mode and back again did indeed matter. Since short mode is
19656       # case insensitive, let's make it lowercase to improve readability.
19657       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19658       # Now convert it back to Unix-style (cygpath)
19659       input_path=`$CYGPATH -u "$shortmode_path"`
19660       new_path="$input_path"
19661     fi
19662   fi
19663 
19664   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19665   if test "x$test_cygdrive_prefix" = x; then
19666     # As a simple fix, exclude /usr/bin since it's not a real path.
19667     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19668       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19669       # a path prefixed by /cygdrive for fixpath to work.
19670       new_path="$CYGWIN_ROOT_PATH$input_path"
19671     fi
19672   fi
19673 
19674   # remove trailing .exe if any
19675   new_path="${new_path/%.exe/}"
19676 
19677     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19678 
19679   # First separate the path from the arguments. This will split at the first
19680   # space.
19681   complete="$FOUND_MAKE"
19682   path="${complete%% *}"
19683   tmp="$complete EOL"
19684   arguments="${tmp#* }"
19685 
19686   # Input might be given as Windows format, start by converting to
19687   # unix format.
19688   new_path="$path"
19689 
19690   windows_path="$new_path"
19691   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19692     unix_path=`$CYGPATH -u "$windows_path"`
19693     new_path="$unix_path"
19694   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19695     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19696     new_path="$unix_path"
19697   fi
19698 
19699 
19700   # Now try to locate executable using which
19701   new_path=`$WHICH "$new_path" 2> /dev/null`
19702 
19703   if test "x$new_path" = x; then
19704     # Oops. Which didn't find the executable.
19705     # The splitting of arguments from the executable at a space might have been incorrect,
19706     # since paths with space are more likely in Windows. Give it another try with the whole
19707     # argument.
19708     path="$complete"
19709     arguments="EOL"
19710     new_path="$path"
19711 
19712   windows_path="$new_path"
19713   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19714     unix_path=`$CYGPATH -u "$windows_path"`
19715     new_path="$unix_path"
19716   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19717     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19718     new_path="$unix_path"
19719   fi
19720 
19721 
19722     new_path=`$WHICH "$new_path" 2> /dev/null`
19723     # bat and cmd files are not always considered executable in MSYS causing which
19724     # to not find them
19725     if test "x$new_path" = x \
19726         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19727         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19728       new_path="$path"
19729 
19730   windows_path="$new_path"
19731   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19732     unix_path=`$CYGPATH -u "$windows_path"`
19733     new_path="$unix_path"
19734   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19735     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19736     new_path="$unix_path"
19737   fi
19738 
19739     fi
19740 
19741     if test "x$new_path" = x; then
19742       # It's still not found. Now this is an unrecoverable error.
19743       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19744 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19745       has_space=`$ECHO "$complete" | $GREP " "`
19746       if test "x$has_space" != x; then
19747         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19748 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19749       fi
19750       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19751     fi
19752   fi
19753 
19754   # Now new_path has a complete unix path to the binary
19755   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19756     # Keep paths in /bin as-is, but remove trailing .exe if any
19757     new_path="${new_path/%.exe/}"
19758     # Do not save /bin paths to all_fixpath_prefixes!
19759   else
19760     # Not in mixed or Windows style, start by that.
19761     new_path=`cmd //c echo $new_path`
19762 
19763   input_path="$new_path"
19764   # Check if we need to convert this using DOS-style short mode. If the path
19765   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19766   # take no chances and rewrite it.
19767   # Note: m4 eats our [], so we need to use [ and ] instead.
19768   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19769   if test "x$has_forbidden_chars" != x; then
19770     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19771     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19772   fi
19773 
19774     # Output is in $new_path
19775 
19776   windows_path="$new_path"
19777   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19778     unix_path=`$CYGPATH -u "$windows_path"`
19779     new_path="$unix_path"
19780   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19781     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19782     new_path="$unix_path"
19783   fi
19784 
19785     # remove trailing .exe if any
19786     new_path="${new_path/%.exe/}"
19787 
19788     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19789     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19790   fi
19791 
19792     else
19793       # We're on a unix platform. Hooray! :)
19794       # First separate the path from the arguments. This will split at the first
19795       # space.
19796       complete="$FOUND_MAKE"
19797       path="${complete%% *}"
19798       tmp="$complete EOL"
19799       arguments="${tmp#* }"
19800 
19801       # Cannot rely on the command "which" here since it doesn't always work.
19802       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19803       if test -z "$is_absolute_path"; then
19804         # Path to executable is not absolute. Find it.
19805         IFS_save="$IFS"
19806         IFS=:
19807         for p in $PATH; do
19808           if test -f "$p/$path" && test -x "$p/$path"; then
19809             new_path="$p/$path"
19810             break
19811           fi
19812         done
19813         IFS="$IFS_save"
19814       else
19815         # This is an absolute path, we can use it without further modifications.
19816         new_path="$path"
19817       fi
19818 
19819       if test "x$new_path" = x; then
19820         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19821 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19822         has_space=`$ECHO "$complete" | $GREP " "`
19823         if test "x$has_space" != x; then
19824           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19825 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19826         fi
19827         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19828       fi
19829     fi
19830 
19831     # Now join together the path and the arguments once again
19832     if test "x$arguments" != xEOL; then
19833       new_complete="$new_path ${arguments% *}"
19834     else
19835       new_complete="$new_path"
19836     fi
19837 
19838     if test "x$complete" != "x$new_complete"; then
19839       FOUND_MAKE="$new_complete"
19840       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19841 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19842     fi
19843   fi
19844 
19845         fi
19846       fi
19847     fi
19848   fi
19849 
19850 
19851     if test "x$FOUND_MAKE" = x; then
19852       for ac_prog in make
19853 do
19854   # Extract the first word of "$ac_prog", so it can be a program name with args.
19855 set dummy $ac_prog; ac_word=$2
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19857 $as_echo_n "checking for $ac_word... " >&6; }
19858 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19859   $as_echo_n "(cached) " >&6
19860 else
19861   case $CHECK_MAKE in
19862   [\\/]* | ?:[\\/]*)
19863   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19864   ;;
19865   *)
19866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19867 for as_dir in $PATH
19868 do
19869   IFS=$as_save_IFS
19870   test -z "$as_dir" && as_dir=.
19871     for ac_exec_ext in '' $ac_executable_extensions; do
19872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19873     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19875     break 2
19876   fi
19877 done
19878   done
19879 IFS=$as_save_IFS
19880 
19881   ;;
19882 esac
19883 fi
19884 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19885 if test -n "$CHECK_MAKE"; then
19886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19887 $as_echo "$CHECK_MAKE" >&6; }
19888 else
19889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19890 $as_echo "no" >&6; }
19891 fi
19892 
19893 
19894   test -n "$CHECK_MAKE" && break
19895 done
19896 
19897 
19898   MAKE_CANDIDATE=""$CHECK_MAKE""
19899   DESCRIPTION="make in PATH"
19900 
19901   # On Cygwin, we require a newer version of make than on other platforms
19902   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19903     MAKE_VERSION_EXPR="-e 4\."
19904     MAKE_REQUIRED_VERSION="4.0"
19905    else
19906     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19907     MAKE_REQUIRED_VERSION="3.81"
19908   fi
19909 
19910   if test "x$MAKE_CANDIDATE" != x; then
19911     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19912 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19913     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19914     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19915     if test "x$IS_GNU_MAKE" = x; then
19916       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19917 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19918     else
19919       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19920       if test "x$IS_MODERN_MAKE" = x; then
19921         { $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
19922 $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;}
19923       else
19924         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19925           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19926             MAKE_EXPECTED_ENV='cygwin'
19927           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19928             MAKE_EXPECTED_ENV='msys'
19929           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
19930             MAKE_EXPECTED_ENV='.'
19931           else
19932             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19933           fi
19934           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19935           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19936         else
19937           # Not relevant for non-Windows
19938           IS_MAKE_CORRECT_ENV=true
19939         fi
19940         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19941           { $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
19942 $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;}
19943         else
19944           FOUND_MAKE=$MAKE_CANDIDATE
19945 
19946   # Only process if variable expands to non-empty
19947 
19948   if test "x$FOUND_MAKE" != x; then
19949     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19950 
19951   # First separate the path from the arguments. This will split at the first
19952   # space.
19953   complete="$FOUND_MAKE"
19954   path="${complete%% *}"
19955   tmp="$complete EOL"
19956   arguments="${tmp#* }"
19957 
19958   # Input might be given as Windows format, start by converting to
19959   # unix format.
19960   new_path=`$CYGPATH -u "$path"`
19961 
19962   # Now try to locate executable using which
19963   new_path=`$WHICH "$new_path" 2> /dev/null`
19964   # bat and cmd files are not always considered executable in cygwin causing which
19965   # to not find them
19966   if test "x$new_path" = x \
19967       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19968       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19969     new_path=`$CYGPATH -u "$path"`
19970   fi
19971   if test "x$new_path" = x; then
19972     # Oops. Which didn't find the executable.
19973     # The splitting of arguments from the executable at a space might have been incorrect,
19974     # since paths with space are more likely in Windows. Give it another try with the whole
19975     # argument.
19976     path="$complete"
19977     arguments="EOL"
19978     new_path=`$CYGPATH -u "$path"`
19979     new_path=`$WHICH "$new_path" 2> /dev/null`
19980     # bat and cmd files are not always considered executable in cygwin causing which
19981     # to not find them
19982     if test "x$new_path" = x \
19983         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19984         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19985       new_path=`$CYGPATH -u "$path"`
19986     fi
19987     if test "x$new_path" = x; then
19988       # It's still not found. Now this is an unrecoverable error.
19989       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19990 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19991       has_space=`$ECHO "$complete" | $GREP " "`
19992       if test "x$has_space" != x; then
19993         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19994 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19995       fi
19996       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19997     fi
19998   fi
19999 
20000   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20001   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20002   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20003   # "foo.exe" is OK but "foo" is an error.
20004   #
20005   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20006   # It is also a way to make sure we got the proper file name for the real test later on.
20007   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20008   if test "x$test_shortpath" = x; then
20009     # Short path failed, file does not exist as specified.
20010     # Try adding .exe or .cmd
20011     if test -f "${new_path}.exe"; then
20012       input_to_shortpath="${new_path}.exe"
20013     elif test -f "${new_path}.cmd"; then
20014       input_to_shortpath="${new_path}.cmd"
20015     else
20016       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20017 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20018       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20019 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20020       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20021     fi
20022   else
20023     input_to_shortpath="$new_path"
20024   fi
20025 
20026   # Call helper function which possibly converts this using DOS-style short mode.
20027   # If so, the updated path is stored in $new_path.
20028   new_path="$input_to_shortpath"
20029 
20030   input_path="$input_to_shortpath"
20031   # Check if we need to convert this using DOS-style short mode. If the path
20032   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20033   # take no chances and rewrite it.
20034   # Note: m4 eats our [], so we need to use [ and ] instead.
20035   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20036   if test "x$has_forbidden_chars" != x; then
20037     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20038     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20039     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20040     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20041       # Going to short mode and back again did indeed matter. Since short mode is
20042       # case insensitive, let's make it lowercase to improve readability.
20043       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20044       # Now convert it back to Unix-style (cygpath)
20045       input_path=`$CYGPATH -u "$shortmode_path"`
20046       new_path="$input_path"
20047     fi
20048   fi
20049 
20050   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20051   if test "x$test_cygdrive_prefix" = x; then
20052     # As a simple fix, exclude /usr/bin since it's not a real path.
20053     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20054       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20055       # a path prefixed by /cygdrive for fixpath to work.
20056       new_path="$CYGWIN_ROOT_PATH$input_path"
20057     fi
20058   fi
20059 
20060   # remove trailing .exe if any
20061   new_path="${new_path/%.exe/}"
20062 
20063     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20064 
20065   # First separate the path from the arguments. This will split at the first
20066   # space.
20067   complete="$FOUND_MAKE"
20068   path="${complete%% *}"
20069   tmp="$complete EOL"
20070   arguments="${tmp#* }"
20071 
20072   # Input might be given as Windows format, start by converting to
20073   # unix format.
20074   new_path="$path"
20075 
20076   windows_path="$new_path"
20077   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20078     unix_path=`$CYGPATH -u "$windows_path"`
20079     new_path="$unix_path"
20080   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20081     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20082     new_path="$unix_path"
20083   fi
20084 
20085 
20086   # Now try to locate executable using which
20087   new_path=`$WHICH "$new_path" 2> /dev/null`
20088 
20089   if test "x$new_path" = x; then
20090     # Oops. Which didn't find the executable.
20091     # The splitting of arguments from the executable at a space might have been incorrect,
20092     # since paths with space are more likely in Windows. Give it another try with the whole
20093     # argument.
20094     path="$complete"
20095     arguments="EOL"
20096     new_path="$path"
20097 
20098   windows_path="$new_path"
20099   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20100     unix_path=`$CYGPATH -u "$windows_path"`
20101     new_path="$unix_path"
20102   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20103     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20104     new_path="$unix_path"
20105   fi
20106 
20107 
20108     new_path=`$WHICH "$new_path" 2> /dev/null`
20109     # bat and cmd files are not always considered executable in MSYS causing which
20110     # to not find them
20111     if test "x$new_path" = x \
20112         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20113         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20114       new_path="$path"
20115 
20116   windows_path="$new_path"
20117   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20118     unix_path=`$CYGPATH -u "$windows_path"`
20119     new_path="$unix_path"
20120   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20121     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20122     new_path="$unix_path"
20123   fi
20124 
20125     fi
20126 
20127     if test "x$new_path" = x; then
20128       # It's still not found. Now this is an unrecoverable error.
20129       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20130 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20131       has_space=`$ECHO "$complete" | $GREP " "`
20132       if test "x$has_space" != x; then
20133         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20134 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20135       fi
20136       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20137     fi
20138   fi
20139 
20140   # Now new_path has a complete unix path to the binary
20141   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20142     # Keep paths in /bin as-is, but remove trailing .exe if any
20143     new_path="${new_path/%.exe/}"
20144     # Do not save /bin paths to all_fixpath_prefixes!
20145   else
20146     # Not in mixed or Windows style, start by that.
20147     new_path=`cmd //c echo $new_path`
20148 
20149   input_path="$new_path"
20150   # Check if we need to convert this using DOS-style short mode. If the path
20151   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20152   # take no chances and rewrite it.
20153   # Note: m4 eats our [], so we need to use [ and ] instead.
20154   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20155   if test "x$has_forbidden_chars" != x; then
20156     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20157     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20158   fi
20159 
20160     # Output is in $new_path
20161 
20162   windows_path="$new_path"
20163   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20164     unix_path=`$CYGPATH -u "$windows_path"`
20165     new_path="$unix_path"
20166   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20167     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20168     new_path="$unix_path"
20169   fi
20170 
20171     # remove trailing .exe if any
20172     new_path="${new_path/%.exe/}"
20173 
20174     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20175     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20176   fi
20177 
20178     else
20179       # We're on a unix platform. Hooray! :)
20180       # First separate the path from the arguments. This will split at the first
20181       # space.
20182       complete="$FOUND_MAKE"
20183       path="${complete%% *}"
20184       tmp="$complete EOL"
20185       arguments="${tmp#* }"
20186 
20187       # Cannot rely on the command "which" here since it doesn't always work.
20188       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20189       if test -z "$is_absolute_path"; then
20190         # Path to executable is not absolute. Find it.
20191         IFS_save="$IFS"
20192         IFS=:
20193         for p in $PATH; do
20194           if test -f "$p/$path" && test -x "$p/$path"; then
20195             new_path="$p/$path"
20196             break
20197           fi
20198         done
20199         IFS="$IFS_save"
20200       else
20201         # This is an absolute path, we can use it without further modifications.
20202         new_path="$path"
20203       fi
20204 
20205       if test "x$new_path" = x; then
20206         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20207 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20208         has_space=`$ECHO "$complete" | $GREP " "`
20209         if test "x$has_space" != x; then
20210           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20211 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20212         fi
20213         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20214       fi
20215     fi
20216 
20217     # Now join together the path and the arguments once again
20218     if test "x$arguments" != xEOL; then
20219       new_complete="$new_path ${arguments% *}"
20220     else
20221       new_complete="$new_path"
20222     fi
20223 
20224     if test "x$complete" != "x$new_complete"; then
20225       FOUND_MAKE="$new_complete"
20226       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20227 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20228     fi
20229   fi
20230 
20231         fi
20232       fi
20233     fi
20234   fi
20235 
20236     fi
20237 
20238     if test "x$FOUND_MAKE" = x; then
20239       if test "x$TOOLCHAIN_PATH" != x; then
20240         # We have a toolchain path, check that as well before giving up.
20241         OLD_PATH=$PATH
20242         PATH=$TOOLCHAIN_PATH:$PATH
20243         for ac_prog in gmake
20244 do
20245   # Extract the first word of "$ac_prog", so it can be a program name with args.
20246 set dummy $ac_prog; ac_word=$2
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20248 $as_echo_n "checking for $ac_word... " >&6; }
20249 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
20250   $as_echo_n "(cached) " >&6
20251 else
20252   case $CHECK_TOOLSDIR_GMAKE in
20253   [\\/]* | ?:[\\/]*)
20254   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
20255   ;;
20256   *)
20257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20258 for as_dir in $PATH
20259 do
20260   IFS=$as_save_IFS
20261   test -z "$as_dir" && as_dir=.
20262     for ac_exec_ext in '' $ac_executable_extensions; do
20263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20264     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
20265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20266     break 2
20267   fi
20268 done
20269   done
20270 IFS=$as_save_IFS
20271 
20272   ;;
20273 esac
20274 fi
20275 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
20276 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
20277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
20278 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
20279 else
20280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20281 $as_echo "no" >&6; }
20282 fi
20283 
20284 
20285   test -n "$CHECK_TOOLSDIR_GMAKE" && break
20286 done
20287 
20288 
20289   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
20290   DESCRIPTION="gmake in tools-dir"
20291 
20292   # On Cygwin, we require a newer version of make than on other platforms
20293   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20294     MAKE_VERSION_EXPR="-e 4\."
20295     MAKE_REQUIRED_VERSION="4.0"
20296    else
20297     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20298     MAKE_REQUIRED_VERSION="3.81"
20299   fi
20300 
20301   if test "x$MAKE_CANDIDATE" != x; then
20302     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20303 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20304     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20305     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20306     if test "x$IS_GNU_MAKE" = x; then
20307       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20308 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20309     else
20310       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20311       if test "x$IS_MODERN_MAKE" = x; then
20312         { $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
20313 $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;}
20314       else
20315         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20316           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20317             MAKE_EXPECTED_ENV='cygwin'
20318           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20319             MAKE_EXPECTED_ENV='msys'
20320           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
20321             MAKE_EXPECTED_ENV='.'
20322           else
20323             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20324           fi
20325           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20326           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20327         else
20328           # Not relevant for non-Windows
20329           IS_MAKE_CORRECT_ENV=true
20330         fi
20331         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20332           { $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
20333 $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;}
20334         else
20335           FOUND_MAKE=$MAKE_CANDIDATE
20336 
20337   # Only process if variable expands to non-empty
20338 
20339   if test "x$FOUND_MAKE" != x; then
20340     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20341 
20342   # First separate the path from the arguments. This will split at the first
20343   # space.
20344   complete="$FOUND_MAKE"
20345   path="${complete%% *}"
20346   tmp="$complete EOL"
20347   arguments="${tmp#* }"
20348 
20349   # Input might be given as Windows format, start by converting to
20350   # unix format.
20351   new_path=`$CYGPATH -u "$path"`
20352 
20353   # Now try to locate executable using which
20354   new_path=`$WHICH "$new_path" 2> /dev/null`
20355   # bat and cmd files are not always considered executable in cygwin causing which
20356   # to not find them
20357   if test "x$new_path" = x \
20358       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20359       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20360     new_path=`$CYGPATH -u "$path"`
20361   fi
20362   if test "x$new_path" = x; then
20363     # Oops. Which didn't find the executable.
20364     # The splitting of arguments from the executable at a space might have been incorrect,
20365     # since paths with space are more likely in Windows. Give it another try with the whole
20366     # argument.
20367     path="$complete"
20368     arguments="EOL"
20369     new_path=`$CYGPATH -u "$path"`
20370     new_path=`$WHICH "$new_path" 2> /dev/null`
20371     # bat and cmd files are not always considered executable in cygwin causing which
20372     # to not find them
20373     if test "x$new_path" = x \
20374         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20375         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20376       new_path=`$CYGPATH -u "$path"`
20377     fi
20378     if test "x$new_path" = x; then
20379       # It's still not found. Now this is an unrecoverable error.
20380       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20381 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20382       has_space=`$ECHO "$complete" | $GREP " "`
20383       if test "x$has_space" != x; then
20384         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20385 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20386       fi
20387       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20388     fi
20389   fi
20390 
20391   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20392   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20393   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20394   # "foo.exe" is OK but "foo" is an error.
20395   #
20396   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20397   # It is also a way to make sure we got the proper file name for the real test later on.
20398   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20399   if test "x$test_shortpath" = x; then
20400     # Short path failed, file does not exist as specified.
20401     # Try adding .exe or .cmd
20402     if test -f "${new_path}.exe"; then
20403       input_to_shortpath="${new_path}.exe"
20404     elif test -f "${new_path}.cmd"; then
20405       input_to_shortpath="${new_path}.cmd"
20406     else
20407       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20408 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20409       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20410 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20411       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20412     fi
20413   else
20414     input_to_shortpath="$new_path"
20415   fi
20416 
20417   # Call helper function which possibly converts this using DOS-style short mode.
20418   # If so, the updated path is stored in $new_path.
20419   new_path="$input_to_shortpath"
20420 
20421   input_path="$input_to_shortpath"
20422   # Check if we need to convert this using DOS-style short mode. If the path
20423   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20424   # take no chances and rewrite it.
20425   # Note: m4 eats our [], so we need to use [ and ] instead.
20426   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20427   if test "x$has_forbidden_chars" != x; then
20428     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20429     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20430     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20431     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20432       # Going to short mode and back again did indeed matter. Since short mode is
20433       # case insensitive, let's make it lowercase to improve readability.
20434       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20435       # Now convert it back to Unix-style (cygpath)
20436       input_path=`$CYGPATH -u "$shortmode_path"`
20437       new_path="$input_path"
20438     fi
20439   fi
20440 
20441   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20442   if test "x$test_cygdrive_prefix" = x; then
20443     # As a simple fix, exclude /usr/bin since it's not a real path.
20444     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20445       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20446       # a path prefixed by /cygdrive for fixpath to work.
20447       new_path="$CYGWIN_ROOT_PATH$input_path"
20448     fi
20449   fi
20450 
20451   # remove trailing .exe if any
20452   new_path="${new_path/%.exe/}"
20453 
20454     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20455 
20456   # First separate the path from the arguments. This will split at the first
20457   # space.
20458   complete="$FOUND_MAKE"
20459   path="${complete%% *}"
20460   tmp="$complete EOL"
20461   arguments="${tmp#* }"
20462 
20463   # Input might be given as Windows format, start by converting to
20464   # unix format.
20465   new_path="$path"
20466 
20467   windows_path="$new_path"
20468   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20469     unix_path=`$CYGPATH -u "$windows_path"`
20470     new_path="$unix_path"
20471   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20472     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20473     new_path="$unix_path"
20474   fi
20475 
20476 
20477   # Now try to locate executable using which
20478   new_path=`$WHICH "$new_path" 2> /dev/null`
20479 
20480   if test "x$new_path" = x; then
20481     # Oops. Which didn't find the executable.
20482     # The splitting of arguments from the executable at a space might have been incorrect,
20483     # since paths with space are more likely in Windows. Give it another try with the whole
20484     # argument.
20485     path="$complete"
20486     arguments="EOL"
20487     new_path="$path"
20488 
20489   windows_path="$new_path"
20490   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20491     unix_path=`$CYGPATH -u "$windows_path"`
20492     new_path="$unix_path"
20493   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20494     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20495     new_path="$unix_path"
20496   fi
20497 
20498 
20499     new_path=`$WHICH "$new_path" 2> /dev/null`
20500     # bat and cmd files are not always considered executable in MSYS causing which
20501     # to not find them
20502     if test "x$new_path" = x \
20503         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20504         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20505       new_path="$path"
20506 
20507   windows_path="$new_path"
20508   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20509     unix_path=`$CYGPATH -u "$windows_path"`
20510     new_path="$unix_path"
20511   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20512     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20513     new_path="$unix_path"
20514   fi
20515 
20516     fi
20517 
20518     if test "x$new_path" = x; then
20519       # It's still not found. Now this is an unrecoverable error.
20520       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20521 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20522       has_space=`$ECHO "$complete" | $GREP " "`
20523       if test "x$has_space" != x; then
20524         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20525 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20526       fi
20527       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20528     fi
20529   fi
20530 
20531   # Now new_path has a complete unix path to the binary
20532   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20533     # Keep paths in /bin as-is, but remove trailing .exe if any
20534     new_path="${new_path/%.exe/}"
20535     # Do not save /bin paths to all_fixpath_prefixes!
20536   else
20537     # Not in mixed or Windows style, start by that.
20538     new_path=`cmd //c echo $new_path`
20539 
20540   input_path="$new_path"
20541   # Check if we need to convert this using DOS-style short mode. If the path
20542   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20543   # take no chances and rewrite it.
20544   # Note: m4 eats our [], so we need to use [ and ] instead.
20545   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20546   if test "x$has_forbidden_chars" != x; then
20547     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20548     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20549   fi
20550 
20551     # Output is in $new_path
20552 
20553   windows_path="$new_path"
20554   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20555     unix_path=`$CYGPATH -u "$windows_path"`
20556     new_path="$unix_path"
20557   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20558     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20559     new_path="$unix_path"
20560   fi
20561 
20562     # remove trailing .exe if any
20563     new_path="${new_path/%.exe/}"
20564 
20565     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20566     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20567   fi
20568 
20569     else
20570       # We're on a unix platform. Hooray! :)
20571       # First separate the path from the arguments. This will split at the first
20572       # space.
20573       complete="$FOUND_MAKE"
20574       path="${complete%% *}"
20575       tmp="$complete EOL"
20576       arguments="${tmp#* }"
20577 
20578       # Cannot rely on the command "which" here since it doesn't always work.
20579       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20580       if test -z "$is_absolute_path"; then
20581         # Path to executable is not absolute. Find it.
20582         IFS_save="$IFS"
20583         IFS=:
20584         for p in $PATH; do
20585           if test -f "$p/$path" && test -x "$p/$path"; then
20586             new_path="$p/$path"
20587             break
20588           fi
20589         done
20590         IFS="$IFS_save"
20591       else
20592         # This is an absolute path, we can use it without further modifications.
20593         new_path="$path"
20594       fi
20595 
20596       if test "x$new_path" = x; then
20597         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20598 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20599         has_space=`$ECHO "$complete" | $GREP " "`
20600         if test "x$has_space" != x; then
20601           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20602 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20603         fi
20604         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20605       fi
20606     fi
20607 
20608     # Now join together the path and the arguments once again
20609     if test "x$arguments" != xEOL; then
20610       new_complete="$new_path ${arguments% *}"
20611     else
20612       new_complete="$new_path"
20613     fi
20614 
20615     if test "x$complete" != "x$new_complete"; then
20616       FOUND_MAKE="$new_complete"
20617       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20618 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20619     fi
20620   fi
20621 
20622         fi
20623       fi
20624     fi
20625   fi
20626 
20627         if test "x$FOUND_MAKE" = x; then
20628           for ac_prog in make
20629 do
20630   # Extract the first word of "$ac_prog", so it can be a program name with args.
20631 set dummy $ac_prog; ac_word=$2
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20633 $as_echo_n "checking for $ac_word... " >&6; }
20634 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20635   $as_echo_n "(cached) " >&6
20636 else
20637   case $CHECK_TOOLSDIR_MAKE in
20638   [\\/]* | ?:[\\/]*)
20639   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20640   ;;
20641   *)
20642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20643 for as_dir in $PATH
20644 do
20645   IFS=$as_save_IFS
20646   test -z "$as_dir" && as_dir=.
20647     for ac_exec_ext in '' $ac_executable_extensions; do
20648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20649     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20651     break 2
20652   fi
20653 done
20654   done
20655 IFS=$as_save_IFS
20656 
20657   ;;
20658 esac
20659 fi
20660 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20661 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20663 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20664 else
20665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20666 $as_echo "no" >&6; }
20667 fi
20668 
20669 
20670   test -n "$CHECK_TOOLSDIR_MAKE" && break
20671 done
20672 
20673 
20674   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20675   DESCRIPTION="make in tools-dir"
20676 
20677   # On Cygwin, we require a newer version of make than on other platforms
20678   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20679     MAKE_VERSION_EXPR="-e 4\."
20680     MAKE_REQUIRED_VERSION="4.0"
20681    else
20682     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20683     MAKE_REQUIRED_VERSION="3.81"
20684   fi
20685 
20686   if test "x$MAKE_CANDIDATE" != x; then
20687     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20688 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20689     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20690     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20691     if test "x$IS_GNU_MAKE" = x; then
20692       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20693 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20694     else
20695       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20696       if test "x$IS_MODERN_MAKE" = x; then
20697         { $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
20698 $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;}
20699       else
20700         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20701           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20702             MAKE_EXPECTED_ENV='cygwin'
20703           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20704             MAKE_EXPECTED_ENV='msys'
20705           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
20706             MAKE_EXPECTED_ENV='.'
20707           else
20708             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20709           fi
20710           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20711           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20712         else
20713           # Not relevant for non-Windows
20714           IS_MAKE_CORRECT_ENV=true
20715         fi
20716         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20717           { $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
20718 $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;}
20719         else
20720           FOUND_MAKE=$MAKE_CANDIDATE
20721 
20722   # Only process if variable expands to non-empty
20723 
20724   if test "x$FOUND_MAKE" != x; then
20725     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20726 
20727   # First separate the path from the arguments. This will split at the first
20728   # space.
20729   complete="$FOUND_MAKE"
20730   path="${complete%% *}"
20731   tmp="$complete EOL"
20732   arguments="${tmp#* }"
20733 
20734   # Input might be given as Windows format, start by converting to
20735   # unix format.
20736   new_path=`$CYGPATH -u "$path"`
20737 
20738   # Now try to locate executable using which
20739   new_path=`$WHICH "$new_path" 2> /dev/null`
20740   # bat and cmd files are not always considered executable in cygwin causing which
20741   # to not find them
20742   if test "x$new_path" = x \
20743       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20744       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20745     new_path=`$CYGPATH -u "$path"`
20746   fi
20747   if test "x$new_path" = x; then
20748     # Oops. Which didn't find the executable.
20749     # The splitting of arguments from the executable at a space might have been incorrect,
20750     # since paths with space are more likely in Windows. Give it another try with the whole
20751     # argument.
20752     path="$complete"
20753     arguments="EOL"
20754     new_path=`$CYGPATH -u "$path"`
20755     new_path=`$WHICH "$new_path" 2> /dev/null`
20756     # bat and cmd files are not always considered executable in cygwin causing which
20757     # to not find them
20758     if test "x$new_path" = x \
20759         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20760         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20761       new_path=`$CYGPATH -u "$path"`
20762     fi
20763     if test "x$new_path" = x; then
20764       # It's still not found. Now this is an unrecoverable error.
20765       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20766 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20767       has_space=`$ECHO "$complete" | $GREP " "`
20768       if test "x$has_space" != x; then
20769         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20770 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20771       fi
20772       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20773     fi
20774   fi
20775 
20776   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20777   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20778   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20779   # "foo.exe" is OK but "foo" is an error.
20780   #
20781   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20782   # It is also a way to make sure we got the proper file name for the real test later on.
20783   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20784   if test "x$test_shortpath" = x; then
20785     # Short path failed, file does not exist as specified.
20786     # Try adding .exe or .cmd
20787     if test -f "${new_path}.exe"; then
20788       input_to_shortpath="${new_path}.exe"
20789     elif test -f "${new_path}.cmd"; then
20790       input_to_shortpath="${new_path}.cmd"
20791     else
20792       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20793 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20794       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20795 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20796       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20797     fi
20798   else
20799     input_to_shortpath="$new_path"
20800   fi
20801 
20802   # Call helper function which possibly converts this using DOS-style short mode.
20803   # If so, the updated path is stored in $new_path.
20804   new_path="$input_to_shortpath"
20805 
20806   input_path="$input_to_shortpath"
20807   # Check if we need to convert this using DOS-style short mode. If the path
20808   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20809   # take no chances and rewrite it.
20810   # Note: m4 eats our [], so we need to use [ and ] instead.
20811   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20812   if test "x$has_forbidden_chars" != x; then
20813     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20814     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20815     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20816     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20817       # Going to short mode and back again did indeed matter. Since short mode is
20818       # case insensitive, let's make it lowercase to improve readability.
20819       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20820       # Now convert it back to Unix-style (cygpath)
20821       input_path=`$CYGPATH -u "$shortmode_path"`
20822       new_path="$input_path"
20823     fi
20824   fi
20825 
20826   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20827   if test "x$test_cygdrive_prefix" = x; then
20828     # As a simple fix, exclude /usr/bin since it's not a real path.
20829     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20830       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20831       # a path prefixed by /cygdrive for fixpath to work.
20832       new_path="$CYGWIN_ROOT_PATH$input_path"
20833     fi
20834   fi
20835 
20836   # remove trailing .exe if any
20837   new_path="${new_path/%.exe/}"
20838 
20839     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20840 
20841   # First separate the path from the arguments. This will split at the first
20842   # space.
20843   complete="$FOUND_MAKE"
20844   path="${complete%% *}"
20845   tmp="$complete EOL"
20846   arguments="${tmp#* }"
20847 
20848   # Input might be given as Windows format, start by converting to
20849   # unix format.
20850   new_path="$path"
20851 
20852   windows_path="$new_path"
20853   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20854     unix_path=`$CYGPATH -u "$windows_path"`
20855     new_path="$unix_path"
20856   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20857     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20858     new_path="$unix_path"
20859   fi
20860 
20861 
20862   # Now try to locate executable using which
20863   new_path=`$WHICH "$new_path" 2> /dev/null`
20864 
20865   if test "x$new_path" = x; then
20866     # Oops. Which didn't find the executable.
20867     # The splitting of arguments from the executable at a space might have been incorrect,
20868     # since paths with space are more likely in Windows. Give it another try with the whole
20869     # argument.
20870     path="$complete"
20871     arguments="EOL"
20872     new_path="$path"
20873 
20874   windows_path="$new_path"
20875   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20876     unix_path=`$CYGPATH -u "$windows_path"`
20877     new_path="$unix_path"
20878   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20879     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20880     new_path="$unix_path"
20881   fi
20882 
20883 
20884     new_path=`$WHICH "$new_path" 2> /dev/null`
20885     # bat and cmd files are not always considered executable in MSYS causing which
20886     # to not find them
20887     if test "x$new_path" = x \
20888         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20889         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20890       new_path="$path"
20891 
20892   windows_path="$new_path"
20893   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20894     unix_path=`$CYGPATH -u "$windows_path"`
20895     new_path="$unix_path"
20896   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20897     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20898     new_path="$unix_path"
20899   fi
20900 
20901     fi
20902 
20903     if test "x$new_path" = x; then
20904       # It's still not found. Now this is an unrecoverable error.
20905       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20906 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20907       has_space=`$ECHO "$complete" | $GREP " "`
20908       if test "x$has_space" != x; then
20909         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20910 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20911       fi
20912       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20913     fi
20914   fi
20915 
20916   # Now new_path has a complete unix path to the binary
20917   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20918     # Keep paths in /bin as-is, but remove trailing .exe if any
20919     new_path="${new_path/%.exe/}"
20920     # Do not save /bin paths to all_fixpath_prefixes!
20921   else
20922     # Not in mixed or Windows style, start by that.
20923     new_path=`cmd //c echo $new_path`
20924 
20925   input_path="$new_path"
20926   # Check if we need to convert this using DOS-style short mode. If the path
20927   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20928   # take no chances and rewrite it.
20929   # Note: m4 eats our [], so we need to use [ and ] instead.
20930   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20931   if test "x$has_forbidden_chars" != x; then
20932     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20933     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20934   fi
20935 
20936     # Output is in $new_path
20937 
20938   windows_path="$new_path"
20939   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20940     unix_path=`$CYGPATH -u "$windows_path"`
20941     new_path="$unix_path"
20942   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20943     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20944     new_path="$unix_path"
20945   fi
20946 
20947     # remove trailing .exe if any
20948     new_path="${new_path/%.exe/}"
20949 
20950     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20951     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20952   fi
20953 
20954     else
20955       # We're on a unix platform. Hooray! :)
20956       # First separate the path from the arguments. This will split at the first
20957       # space.
20958       complete="$FOUND_MAKE"
20959       path="${complete%% *}"
20960       tmp="$complete EOL"
20961       arguments="${tmp#* }"
20962 
20963       # Cannot rely on the command "which" here since it doesn't always work.
20964       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20965       if test -z "$is_absolute_path"; then
20966         # Path to executable is not absolute. Find it.
20967         IFS_save="$IFS"
20968         IFS=:
20969         for p in $PATH; do
20970           if test -f "$p/$path" && test -x "$p/$path"; then
20971             new_path="$p/$path"
20972             break
20973           fi
20974         done
20975         IFS="$IFS_save"
20976       else
20977         # This is an absolute path, we can use it without further modifications.
20978         new_path="$path"
20979       fi
20980 
20981       if test "x$new_path" = x; then
20982         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20983 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20984         has_space=`$ECHO "$complete" | $GREP " "`
20985         if test "x$has_space" != x; then
20986           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20987 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20988         fi
20989         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20990       fi
20991     fi
20992 
20993     # Now join together the path and the arguments once again
20994     if test "x$arguments" != xEOL; then
20995       new_complete="$new_path ${arguments% *}"
20996     else
20997       new_complete="$new_path"
20998     fi
20999 
21000     if test "x$complete" != "x$new_complete"; then
21001       FOUND_MAKE="$new_complete"
21002       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21003 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21004     fi
21005   fi
21006 
21007         fi
21008       fi
21009     fi
21010   fi
21011 
21012         fi
21013         PATH=$OLD_PATH
21014       fi
21015     fi
21016 
21017     if test "x$FOUND_MAKE" = x; then
21018       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
21019     fi
21020 
21021     else
21022       # If it succeeded, then it was overridden by the user. We will use it
21023       # for the tool.
21024 
21025       # First remove it from the list of overridden variables, so we can test
21026       # for unknown variables in the end.
21027       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21028 
21029       # Check if we try to supply an empty value
21030       if test "x$MAKE" = x; then
21031         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
21032 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
21033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
21034 $as_echo_n "checking for MAKE... " >&6; }
21035         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21036 $as_echo "disabled" >&6; }
21037       else
21038         # Check if the provided tool contains a complete path.
21039         tool_specified="$MAKE"
21040         tool_basename="${tool_specified##*/}"
21041         if test "x$tool_basename" = "x$tool_specified"; then
21042           # A command without a complete path is provided, search $PATH.
21043           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
21044 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
21045           # Extract the first word of "$tool_basename", so it can be a program name with args.
21046 set dummy $tool_basename; ac_word=$2
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21048 $as_echo_n "checking for $ac_word... " >&6; }
21049 if ${ac_cv_path_MAKE+:} false; then :
21050   $as_echo_n "(cached) " >&6
21051 else
21052   case $MAKE in
21053   [\\/]* | ?:[\\/]*)
21054   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
21055   ;;
21056   *)
21057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21058 for as_dir in $PATH
21059 do
21060   IFS=$as_save_IFS
21061   test -z "$as_dir" && as_dir=.
21062     for ac_exec_ext in '' $ac_executable_extensions; do
21063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21064     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
21065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21066     break 2
21067   fi
21068 done
21069   done
21070 IFS=$as_save_IFS
21071 
21072   ;;
21073 esac
21074 fi
21075 MAKE=$ac_cv_path_MAKE
21076 if test -n "$MAKE"; then
21077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
21078 $as_echo "$MAKE" >&6; }
21079 else
21080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21081 $as_echo "no" >&6; }
21082 fi
21083 
21084 
21085           if test "x$MAKE" = x; then
21086             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21087           fi
21088         else
21089           # Otherwise we believe it is a complete path. Use it as it is.
21090           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
21091 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
21092           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
21093 $as_echo_n "checking for MAKE... " >&6; }
21094           if test ! -x "$tool_specified"; then
21095             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21096 $as_echo "not found" >&6; }
21097             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
21098           fi
21099           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21100 $as_echo "$tool_specified" >&6; }
21101         fi
21102       fi
21103     fi
21104 
21105     # If MAKE was set by user, verify the version
21106 
21107   MAKE_CANDIDATE=""$MAKE""
21108   DESCRIPTION="user supplied MAKE=$MAKE"
21109 
21110   # On Cygwin, we require a newer version of make than on other platforms
21111   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21112     MAKE_VERSION_EXPR="-e 4\."
21113     MAKE_REQUIRED_VERSION="4.0"
21114    else
21115     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
21116     MAKE_REQUIRED_VERSION="3.81"
21117   fi
21118 
21119   if test "x$MAKE_CANDIDATE" != x; then
21120     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
21121 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
21122     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
21123     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
21124     if test "x$IS_GNU_MAKE" = x; then
21125       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
21126 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
21127     else
21128       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
21129       if test "x$IS_MODERN_MAKE" = x; then
21130         { $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
21131 $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;}
21132       else
21133         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
21134           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21135             MAKE_EXPECTED_ENV='cygwin'
21136           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21137             MAKE_EXPECTED_ENV='msys'
21138           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
21139             MAKE_EXPECTED_ENV='.'
21140           else
21141             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
21142           fi
21143           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
21144           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
21145         else
21146           # Not relevant for non-Windows
21147           IS_MAKE_CORRECT_ENV=true
21148         fi
21149         if test "x$IS_MAKE_CORRECT_ENV" = x; then
21150           { $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
21151 $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;}
21152         else
21153           FOUND_MAKE=$MAKE_CANDIDATE
21154 
21155   # Only process if variable expands to non-empty
21156 
21157   if test "x$FOUND_MAKE" != x; then
21158     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21159 
21160   # First separate the path from the arguments. This will split at the first
21161   # space.
21162   complete="$FOUND_MAKE"
21163   path="${complete%% *}"
21164   tmp="$complete EOL"
21165   arguments="${tmp#* }"
21166 
21167   # Input might be given as Windows format, start by converting to
21168   # unix format.
21169   new_path=`$CYGPATH -u "$path"`
21170 
21171   # Now try to locate executable using which
21172   new_path=`$WHICH "$new_path" 2> /dev/null`
21173   # bat and cmd files are not always considered executable in cygwin causing which
21174   # to not find them
21175   if test "x$new_path" = x \
21176       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21177       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21178     new_path=`$CYGPATH -u "$path"`
21179   fi
21180   if test "x$new_path" = x; then
21181     # Oops. Which didn't find the executable.
21182     # The splitting of arguments from the executable at a space might have been incorrect,
21183     # since paths with space are more likely in Windows. Give it another try with the whole
21184     # argument.
21185     path="$complete"
21186     arguments="EOL"
21187     new_path=`$CYGPATH -u "$path"`
21188     new_path=`$WHICH "$new_path" 2> /dev/null`
21189     # bat and cmd files are not always considered executable in cygwin causing which
21190     # to not find them
21191     if test "x$new_path" = x \
21192         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21193         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21194       new_path=`$CYGPATH -u "$path"`
21195     fi
21196     if test "x$new_path" = x; then
21197       # It's still not found. Now this is an unrecoverable error.
21198       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21199 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21200       has_space=`$ECHO "$complete" | $GREP " "`
21201       if test "x$has_space" != x; then
21202         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21203 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21204       fi
21205       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21206     fi
21207   fi
21208 
21209   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21210   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21211   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21212   # "foo.exe" is OK but "foo" is an error.
21213   #
21214   # This test is therefore slightly more accurate than "test -f" to check for file presence.
21215   # It is also a way to make sure we got the proper file name for the real test later on.
21216   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21217   if test "x$test_shortpath" = x; then
21218     # Short path failed, file does not exist as specified.
21219     # Try adding .exe or .cmd
21220     if test -f "${new_path}.exe"; then
21221       input_to_shortpath="${new_path}.exe"
21222     elif test -f "${new_path}.cmd"; then
21223       input_to_shortpath="${new_path}.cmd"
21224     else
21225       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
21226 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
21227       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
21228 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
21229       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21230     fi
21231   else
21232     input_to_shortpath="$new_path"
21233   fi
21234 
21235   # Call helper function which possibly converts this using DOS-style short mode.
21236   # If so, the updated path is stored in $new_path.
21237   new_path="$input_to_shortpath"
21238 
21239   input_path="$input_to_shortpath"
21240   # Check if we need to convert this using DOS-style short mode. If the path
21241   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21242   # take no chances and rewrite it.
21243   # Note: m4 eats our [], so we need to use [ and ] instead.
21244   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21245   if test "x$has_forbidden_chars" != x; then
21246     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21247     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21248     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21249     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21250       # Going to short mode and back again did indeed matter. Since short mode is
21251       # case insensitive, let's make it lowercase to improve readability.
21252       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21253       # Now convert it back to Unix-style (cygpath)
21254       input_path=`$CYGPATH -u "$shortmode_path"`
21255       new_path="$input_path"
21256     fi
21257   fi
21258 
21259   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21260   if test "x$test_cygdrive_prefix" = x; then
21261     # As a simple fix, exclude /usr/bin since it's not a real path.
21262     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
21263       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21264       # a path prefixed by /cygdrive for fixpath to work.
21265       new_path="$CYGWIN_ROOT_PATH$input_path"
21266     fi
21267   fi
21268 
21269   # remove trailing .exe if any
21270   new_path="${new_path/%.exe/}"
21271 
21272     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21273 
21274   # First separate the path from the arguments. This will split at the first
21275   # space.
21276   complete="$FOUND_MAKE"
21277   path="${complete%% *}"
21278   tmp="$complete EOL"
21279   arguments="${tmp#* }"
21280 
21281   # Input might be given as Windows format, start by converting to
21282   # unix format.
21283   new_path="$path"
21284 
21285   windows_path="$new_path"
21286   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21287     unix_path=`$CYGPATH -u "$windows_path"`
21288     new_path="$unix_path"
21289   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21290     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21291     new_path="$unix_path"
21292   fi
21293 
21294 
21295   # Now try to locate executable using which
21296   new_path=`$WHICH "$new_path" 2> /dev/null`
21297 
21298   if test "x$new_path" = x; then
21299     # Oops. Which didn't find the executable.
21300     # The splitting of arguments from the executable at a space might have been incorrect,
21301     # since paths with space are more likely in Windows. Give it another try with the whole
21302     # argument.
21303     path="$complete"
21304     arguments="EOL"
21305     new_path="$path"
21306 
21307   windows_path="$new_path"
21308   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21309     unix_path=`$CYGPATH -u "$windows_path"`
21310     new_path="$unix_path"
21311   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21312     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21313     new_path="$unix_path"
21314   fi
21315 
21316 
21317     new_path=`$WHICH "$new_path" 2> /dev/null`
21318     # bat and cmd files are not always considered executable in MSYS causing which
21319     # to not find them
21320     if test "x$new_path" = x \
21321         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21322         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21323       new_path="$path"
21324 
21325   windows_path="$new_path"
21326   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21327     unix_path=`$CYGPATH -u "$windows_path"`
21328     new_path="$unix_path"
21329   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21330     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21331     new_path="$unix_path"
21332   fi
21333 
21334     fi
21335 
21336     if test "x$new_path" = x; then
21337       # It's still not found. Now this is an unrecoverable error.
21338       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21339 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21340       has_space=`$ECHO "$complete" | $GREP " "`
21341       if test "x$has_space" != x; then
21342         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21343 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21344       fi
21345       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21346     fi
21347   fi
21348 
21349   # Now new_path has a complete unix path to the binary
21350   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
21351     # Keep paths in /bin as-is, but remove trailing .exe if any
21352     new_path="${new_path/%.exe/}"
21353     # Do not save /bin paths to all_fixpath_prefixes!
21354   else
21355     # Not in mixed or Windows style, start by that.
21356     new_path=`cmd //c echo $new_path`
21357 
21358   input_path="$new_path"
21359   # Check if we need to convert this using DOS-style short mode. If the path
21360   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21361   # take no chances and rewrite it.
21362   # Note: m4 eats our [], so we need to use [ and ] instead.
21363   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21364   if test "x$has_forbidden_chars" != x; then
21365     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21366     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21367   fi
21368 
21369     # Output is in $new_path
21370 
21371   windows_path="$new_path"
21372   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21373     unix_path=`$CYGPATH -u "$windows_path"`
21374     new_path="$unix_path"
21375   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21376     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21377     new_path="$unix_path"
21378   fi
21379 
21380     # remove trailing .exe if any
21381     new_path="${new_path/%.exe/}"
21382 
21383     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21384     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21385   fi
21386 
21387     else
21388       # We're on a unix platform. Hooray! :)
21389       # First separate the path from the arguments. This will split at the first
21390       # space.
21391       complete="$FOUND_MAKE"
21392       path="${complete%% *}"
21393       tmp="$complete EOL"
21394       arguments="${tmp#* }"
21395 
21396       # Cannot rely on the command "which" here since it doesn't always work.
21397       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21398       if test -z "$is_absolute_path"; then
21399         # Path to executable is not absolute. Find it.
21400         IFS_save="$IFS"
21401         IFS=:
21402         for p in $PATH; do
21403           if test -f "$p/$path" && test -x "$p/$path"; then
21404             new_path="$p/$path"
21405             break
21406           fi
21407         done
21408         IFS="$IFS_save"
21409       else
21410         # This is an absolute path, we can use it without further modifications.
21411         new_path="$path"
21412       fi
21413 
21414       if test "x$new_path" = x; then
21415         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21416 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21417         has_space=`$ECHO "$complete" | $GREP " "`
21418         if test "x$has_space" != x; then
21419           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21420 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21421         fi
21422         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21423       fi
21424     fi
21425 
21426     # Now join together the path and the arguments once again
21427     if test "x$arguments" != xEOL; then
21428       new_complete="$new_path ${arguments% *}"
21429     else
21430       new_complete="$new_path"
21431     fi
21432 
21433     if test "x$complete" != "x$new_complete"; then
21434       FOUND_MAKE="$new_complete"
21435       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21436 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21437     fi
21438   fi
21439 
21440         fi
21441       fi
21442     fi
21443   fi
21444 
21445     if test "x$FOUND_MAKE" = x; then
21446       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21447     fi
21448 
21449   fi
21450 
21451 
21452   MAKE=$FOUND_MAKE
21453 
21454   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21455 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21456 
21457 
21458   # Check if make supports the output sync option and if so, setup using it.
21459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21460 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21461   if $MAKE --version -O > /dev/null 2>&1; then
21462     OUTPUT_SYNC_SUPPORTED=true
21463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21464 $as_echo "yes" >&6; }
21465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21466 $as_echo_n "checking for output-sync value... " >&6; }
21467 
21468 # Check whether --with-output-sync was given.
21469 if test "${with_output_sync+set}" = set; then :
21470   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21471 fi
21472 
21473     if test "x$OUTPUT_SYNC" = "x"; then
21474       OUTPUT_SYNC=none
21475     fi
21476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21477 $as_echo "$OUTPUT_SYNC" >&6; }
21478     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21479       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21480     fi
21481   else
21482     OUTPUT_SYNC_SUPPORTED=false
21483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21484 $as_echo "no" >&6; }
21485   fi
21486 
21487 
21488 
21489 
21490 
21491 
21492   # Test if find supports -delete
21493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21494 $as_echo_n "checking if find supports -delete... " >&6; }
21495   FIND_DELETE="-delete"
21496 
21497   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21498 
21499   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21500 
21501   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21502   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21503     # No, it does not.
21504     $RM $DELETEDIR/TestIfFindSupportsDelete
21505     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21506       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21507       FIND_DELETE="-print | $XARGS $RM"
21508     else
21509       FIND_DELETE="-exec $RM \{\} \+"
21510     fi
21511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21512 $as_echo "no" >&6; }
21513   else
21514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21515 $as_echo "yes" >&6; }
21516   fi
21517   $RMDIR $DELETEDIR
21518 
21519 
21520 
21521   # Test which kind of tar was found
21522   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21523     TAR_TYPE="gnu"
21524   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
21525     TAR_TYPE="bsd"
21526   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21527     TAR_TYPE="bsd"
21528   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21529     TAR_TYPE="solaris"
21530   fi
21531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21532 $as_echo_n "checking what type of tar was found... " >&6; }
21533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21534 $as_echo "$TAR_TYPE" >&6; }
21535 
21536   TAR_CREATE_FILE_PARAM=""
21537 
21538   if test "x$TAR_TYPE" = "xgnu"; then
21539     TAR_INCLUDE_PARAM="T"
21540     TAR_SUPPORTS_TRANSFORM="true"
21541     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21542       # When using gnu tar for Solaris targets, need to use compatibility mode
21543       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21544     fi
21545   else
21546     TAR_INCLUDE_PARAM="I"
21547     TAR_SUPPORTS_TRANSFORM="false"
21548   fi
21549 
21550 
21551 
21552 
21553 
21554 
21555   # Test that grep supports -Fx with a list of pattern which includes null pattern.
21556   # This is a problem for the grep resident on AIX.
21557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5
21558 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; }
21559   # Multiple subsequent spaces..
21560   STACK_SPACES='aaa   bbb   ccc'
21561   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
21562   # patterns in it.
21563   STACK_LIST=${STACK_SPACES// /$'\n'}
21564   NEEDLE_SPACES='ccc bbb aaa'
21565   NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'}
21566   RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")"
21567   if test "x$RESULT" == "x"; then
21568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21569 $as_echo "yes" >&6; }
21570   else
21571     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21572       ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin."
21573     fi
21574     as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5
21575   fi
21576 
21577 
21578   # These tools might not be installed by default,
21579   # need hint on how to install them.
21580 
21581 
21582 
21583   # Publish this variable in the help.
21584 
21585 
21586   if [ -z "${UNZIP+x}" ]; then
21587     # The variable is not set by user, try to locate tool using the code snippet
21588     for ac_prog in unzip
21589 do
21590   # Extract the first word of "$ac_prog", so it can be a program name with args.
21591 set dummy $ac_prog; ac_word=$2
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21593 $as_echo_n "checking for $ac_word... " >&6; }
21594 if ${ac_cv_path_UNZIP+:} false; then :
21595   $as_echo_n "(cached) " >&6
21596 else
21597   case $UNZIP in
21598   [\\/]* | ?:[\\/]*)
21599   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21600   ;;
21601   *)
21602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21603 for as_dir in $PATH
21604 do
21605   IFS=$as_save_IFS
21606   test -z "$as_dir" && as_dir=.
21607     for ac_exec_ext in '' $ac_executable_extensions; do
21608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21609     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21611     break 2
21612   fi
21613 done
21614   done
21615 IFS=$as_save_IFS
21616 
21617   ;;
21618 esac
21619 fi
21620 UNZIP=$ac_cv_path_UNZIP
21621 if test -n "$UNZIP"; then
21622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21623 $as_echo "$UNZIP" >&6; }
21624 else
21625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21626 $as_echo "no" >&6; }
21627 fi
21628 
21629 
21630   test -n "$UNZIP" && break
21631 done
21632 
21633   else
21634     # The variable is set, but is it from the command line or the environment?
21635 
21636     # Try to remove the string !UNZIP! from our list.
21637     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21638     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21639       # If it failed, the variable was not from the command line. Ignore it,
21640       # but warn the user (except for BASH, which is always set by the calling BASH).
21641       if test "xUNZIP" != xBASH; then
21642         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21643 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21644       fi
21645       # Try to locate tool using the code snippet
21646       for ac_prog in unzip
21647 do
21648   # Extract the first word of "$ac_prog", so it can be a program name with args.
21649 set dummy $ac_prog; ac_word=$2
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21651 $as_echo_n "checking for $ac_word... " >&6; }
21652 if ${ac_cv_path_UNZIP+:} false; then :
21653   $as_echo_n "(cached) " >&6
21654 else
21655   case $UNZIP in
21656   [\\/]* | ?:[\\/]*)
21657   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21658   ;;
21659   *)
21660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21661 for as_dir in $PATH
21662 do
21663   IFS=$as_save_IFS
21664   test -z "$as_dir" && as_dir=.
21665     for ac_exec_ext in '' $ac_executable_extensions; do
21666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21667     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21669     break 2
21670   fi
21671 done
21672   done
21673 IFS=$as_save_IFS
21674 
21675   ;;
21676 esac
21677 fi
21678 UNZIP=$ac_cv_path_UNZIP
21679 if test -n "$UNZIP"; then
21680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21681 $as_echo "$UNZIP" >&6; }
21682 else
21683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21684 $as_echo "no" >&6; }
21685 fi
21686 
21687 
21688   test -n "$UNZIP" && break
21689 done
21690 
21691     else
21692       # If it succeeded, then it was overridden by the user. We will use it
21693       # for the tool.
21694 
21695       # First remove it from the list of overridden variables, so we can test
21696       # for unknown variables in the end.
21697       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21698 
21699       # Check if we try to supply an empty value
21700       if test "x$UNZIP" = x; then
21701         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21702 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21703         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21704 $as_echo_n "checking for UNZIP... " >&6; }
21705         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21706 $as_echo "disabled" >&6; }
21707       else
21708         # Check if the provided tool contains a complete path.
21709         tool_specified="$UNZIP"
21710         tool_basename="${tool_specified##*/}"
21711         if test "x$tool_basename" = "x$tool_specified"; then
21712           # A command without a complete path is provided, search $PATH.
21713           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21714 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21715           # Extract the first word of "$tool_basename", so it can be a program name with args.
21716 set dummy $tool_basename; ac_word=$2
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21718 $as_echo_n "checking for $ac_word... " >&6; }
21719 if ${ac_cv_path_UNZIP+:} false; then :
21720   $as_echo_n "(cached) " >&6
21721 else
21722   case $UNZIP in
21723   [\\/]* | ?:[\\/]*)
21724   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21725   ;;
21726   *)
21727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21728 for as_dir in $PATH
21729 do
21730   IFS=$as_save_IFS
21731   test -z "$as_dir" && as_dir=.
21732     for ac_exec_ext in '' $ac_executable_extensions; do
21733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21734     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21736     break 2
21737   fi
21738 done
21739   done
21740 IFS=$as_save_IFS
21741 
21742   ;;
21743 esac
21744 fi
21745 UNZIP=$ac_cv_path_UNZIP
21746 if test -n "$UNZIP"; then
21747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21748 $as_echo "$UNZIP" >&6; }
21749 else
21750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21751 $as_echo "no" >&6; }
21752 fi
21753 
21754 
21755           if test "x$UNZIP" = x; then
21756             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21757           fi
21758         else
21759           # Otherwise we believe it is a complete path. Use it as it is.
21760           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21761 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21762           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21763 $as_echo_n "checking for UNZIP... " >&6; }
21764           if test ! -x "$tool_specified"; then
21765             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21766 $as_echo "not found" >&6; }
21767             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21768           fi
21769           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21770 $as_echo "$tool_specified" >&6; }
21771         fi
21772       fi
21773     fi
21774 
21775   fi
21776 
21777 
21778 
21779   if test "x$UNZIP" = x; then
21780     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21781   fi
21782 
21783 
21784   # Since zip uses "ZIP" as a environment variable for passing options, we need
21785   # to name our variable differently, hence ZIPEXE.
21786 
21787 
21788 
21789   # Publish this variable in the help.
21790 
21791 
21792   if [ -z "${ZIPEXE+x}" ]; then
21793     # The variable is not set by user, try to locate tool using the code snippet
21794     for ac_prog in zip
21795 do
21796   # Extract the first word of "$ac_prog", so it can be a program name with args.
21797 set dummy $ac_prog; ac_word=$2
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21799 $as_echo_n "checking for $ac_word... " >&6; }
21800 if ${ac_cv_path_ZIPEXE+:} false; then :
21801   $as_echo_n "(cached) " >&6
21802 else
21803   case $ZIPEXE in
21804   [\\/]* | ?:[\\/]*)
21805   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21806   ;;
21807   *)
21808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21809 for as_dir in $PATH
21810 do
21811   IFS=$as_save_IFS
21812   test -z "$as_dir" && as_dir=.
21813     for ac_exec_ext in '' $ac_executable_extensions; do
21814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21815     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21817     break 2
21818   fi
21819 done
21820   done
21821 IFS=$as_save_IFS
21822 
21823   ;;
21824 esac
21825 fi
21826 ZIPEXE=$ac_cv_path_ZIPEXE
21827 if test -n "$ZIPEXE"; then
21828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21829 $as_echo "$ZIPEXE" >&6; }
21830 else
21831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21832 $as_echo "no" >&6; }
21833 fi
21834 
21835 
21836   test -n "$ZIPEXE" && break
21837 done
21838 
21839   else
21840     # The variable is set, but is it from the command line or the environment?
21841 
21842     # Try to remove the string !ZIPEXE! from our list.
21843     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/}
21844     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21845       # If it failed, the variable was not from the command line. Ignore it,
21846       # but warn the user (except for BASH, which is always set by the calling BASH).
21847       if test "xZIPEXE" != xBASH; then
21848         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5
21849 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;}
21850       fi
21851       # Try to locate tool using the code snippet
21852       for ac_prog in zip
21853 do
21854   # Extract the first word of "$ac_prog", so it can be a program name with args.
21855 set dummy $ac_prog; ac_word=$2
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21857 $as_echo_n "checking for $ac_word... " >&6; }
21858 if ${ac_cv_path_ZIPEXE+:} false; then :
21859   $as_echo_n "(cached) " >&6
21860 else
21861   case $ZIPEXE in
21862   [\\/]* | ?:[\\/]*)
21863   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21864   ;;
21865   *)
21866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21867 for as_dir in $PATH
21868 do
21869   IFS=$as_save_IFS
21870   test -z "$as_dir" && as_dir=.
21871     for ac_exec_ext in '' $ac_executable_extensions; do
21872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21873     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21875     break 2
21876   fi
21877 done
21878   done
21879 IFS=$as_save_IFS
21880 
21881   ;;
21882 esac
21883 fi
21884 ZIPEXE=$ac_cv_path_ZIPEXE
21885 if test -n "$ZIPEXE"; then
21886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21887 $as_echo "$ZIPEXE" >&6; }
21888 else
21889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21890 $as_echo "no" >&6; }
21891 fi
21892 
21893 
21894   test -n "$ZIPEXE" && break
21895 done
21896 
21897     else
21898       # If it succeeded, then it was overridden by the user. We will use it
21899       # for the tool.
21900 
21901       # First remove it from the list of overridden variables, so we can test
21902       # for unknown variables in the end.
21903       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21904 
21905       # Check if we try to supply an empty value
21906       if test "x$ZIPEXE" = x; then
21907         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5
21908 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;}
21909         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21910 $as_echo_n "checking for ZIPEXE... " >&6; }
21911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21912 $as_echo "disabled" >&6; }
21913       else
21914         # Check if the provided tool contains a complete path.
21915         tool_specified="$ZIPEXE"
21916         tool_basename="${tool_specified##*/}"
21917         if test "x$tool_basename" = "x$tool_specified"; then
21918           # A command without a complete path is provided, search $PATH.
21919           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5
21920 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;}
21921           # Extract the first word of "$tool_basename", so it can be a program name with args.
21922 set dummy $tool_basename; ac_word=$2
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21924 $as_echo_n "checking for $ac_word... " >&6; }
21925 if ${ac_cv_path_ZIPEXE+:} false; then :
21926   $as_echo_n "(cached) " >&6
21927 else
21928   case $ZIPEXE in
21929   [\\/]* | ?:[\\/]*)
21930   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21931   ;;
21932   *)
21933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21934 for as_dir in $PATH
21935 do
21936   IFS=$as_save_IFS
21937   test -z "$as_dir" && as_dir=.
21938     for ac_exec_ext in '' $ac_executable_extensions; do
21939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21940     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21942     break 2
21943   fi
21944 done
21945   done
21946 IFS=$as_save_IFS
21947 
21948   ;;
21949 esac
21950 fi
21951 ZIPEXE=$ac_cv_path_ZIPEXE
21952 if test -n "$ZIPEXE"; then
21953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21954 $as_echo "$ZIPEXE" >&6; }
21955 else
21956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21957 $as_echo "no" >&6; }
21958 fi
21959 
21960 
21961           if test "x$ZIPEXE" = x; then
21962             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21963           fi
21964         else
21965           # Otherwise we believe it is a complete path. Use it as it is.
21966           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5
21967 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;}
21968           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21969 $as_echo_n "checking for ZIPEXE... " >&6; }
21970           if test ! -x "$tool_specified"; then
21971             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21972 $as_echo "not found" >&6; }
21973             as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
21974           fi
21975           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21976 $as_echo "$tool_specified" >&6; }
21977         fi
21978       fi
21979     fi
21980 
21981   fi
21982 
21983 
21984 
21985   if test "x$ZIPEXE" = x; then
21986     as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5
21987   fi
21988 
21989 
21990 
21991   # Non-required basic tools
21992 
21993 
21994 
21995   # Publish this variable in the help.
21996 
21997 
21998   if [ -z "${LDD+x}" ]; then
21999     # The variable is not set by user, try to locate tool using the code snippet
22000     for ac_prog in ldd
22001 do
22002   # Extract the first word of "$ac_prog", so it can be a program name with args.
22003 set dummy $ac_prog; ac_word=$2
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22005 $as_echo_n "checking for $ac_word... " >&6; }
22006 if ${ac_cv_path_LDD+:} false; then :
22007   $as_echo_n "(cached) " >&6
22008 else
22009   case $LDD in
22010   [\\/]* | ?:[\\/]*)
22011   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22012   ;;
22013   *)
22014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22015 for as_dir in $PATH
22016 do
22017   IFS=$as_save_IFS
22018   test -z "$as_dir" && as_dir=.
22019     for ac_exec_ext in '' $ac_executable_extensions; do
22020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22021     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22023     break 2
22024   fi
22025 done
22026   done
22027 IFS=$as_save_IFS
22028 
22029   ;;
22030 esac
22031 fi
22032 LDD=$ac_cv_path_LDD
22033 if test -n "$LDD"; then
22034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22035 $as_echo "$LDD" >&6; }
22036 else
22037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22038 $as_echo "no" >&6; }
22039 fi
22040 
22041 
22042   test -n "$LDD" && break
22043 done
22044 
22045   else
22046     # The variable is set, but is it from the command line or the environment?
22047 
22048     # Try to remove the string !LDD! from our list.
22049     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
22050     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22051       # If it failed, the variable was not from the command line. Ignore it,
22052       # but warn the user (except for BASH, which is always set by the calling BASH).
22053       if test "xLDD" != xBASH; then
22054         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
22055 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
22056       fi
22057       # Try to locate tool using the code snippet
22058       for ac_prog in ldd
22059 do
22060   # Extract the first word of "$ac_prog", so it can be a program name with args.
22061 set dummy $ac_prog; ac_word=$2
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22063 $as_echo_n "checking for $ac_word... " >&6; }
22064 if ${ac_cv_path_LDD+:} false; then :
22065   $as_echo_n "(cached) " >&6
22066 else
22067   case $LDD in
22068   [\\/]* | ?:[\\/]*)
22069   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22070   ;;
22071   *)
22072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22073 for as_dir in $PATH
22074 do
22075   IFS=$as_save_IFS
22076   test -z "$as_dir" && as_dir=.
22077     for ac_exec_ext in '' $ac_executable_extensions; do
22078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22079     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22081     break 2
22082   fi
22083 done
22084   done
22085 IFS=$as_save_IFS
22086 
22087   ;;
22088 esac
22089 fi
22090 LDD=$ac_cv_path_LDD
22091 if test -n "$LDD"; then
22092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22093 $as_echo "$LDD" >&6; }
22094 else
22095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22096 $as_echo "no" >&6; }
22097 fi
22098 
22099 
22100   test -n "$LDD" && break
22101 done
22102 
22103     else
22104       # If it succeeded, then it was overridden by the user. We will use it
22105       # for the tool.
22106 
22107       # First remove it from the list of overridden variables, so we can test
22108       # for unknown variables in the end.
22109       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22110 
22111       # Check if we try to supply an empty value
22112       if test "x$LDD" = x; then
22113         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
22114 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
22115         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22116 $as_echo_n "checking for LDD... " >&6; }
22117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22118 $as_echo "disabled" >&6; }
22119       else
22120         # Check if the provided tool contains a complete path.
22121         tool_specified="$LDD"
22122         tool_basename="${tool_specified##*/}"
22123         if test "x$tool_basename" = "x$tool_specified"; then
22124           # A command without a complete path is provided, search $PATH.
22125           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
22126 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
22127           # Extract the first word of "$tool_basename", so it can be a program name with args.
22128 set dummy $tool_basename; ac_word=$2
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22130 $as_echo_n "checking for $ac_word... " >&6; }
22131 if ${ac_cv_path_LDD+:} false; then :
22132   $as_echo_n "(cached) " >&6
22133 else
22134   case $LDD in
22135   [\\/]* | ?:[\\/]*)
22136   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22137   ;;
22138   *)
22139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22140 for as_dir in $PATH
22141 do
22142   IFS=$as_save_IFS
22143   test -z "$as_dir" && as_dir=.
22144     for ac_exec_ext in '' $ac_executable_extensions; do
22145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22146     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22148     break 2
22149   fi
22150 done
22151   done
22152 IFS=$as_save_IFS
22153 
22154   ;;
22155 esac
22156 fi
22157 LDD=$ac_cv_path_LDD
22158 if test -n "$LDD"; then
22159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22160 $as_echo "$LDD" >&6; }
22161 else
22162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22163 $as_echo "no" >&6; }
22164 fi
22165 
22166 
22167           if test "x$LDD" = x; then
22168             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22169           fi
22170         else
22171           # Otherwise we believe it is a complete path. Use it as it is.
22172           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
22173 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
22174           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22175 $as_echo_n "checking for LDD... " >&6; }
22176           if test ! -x "$tool_specified"; then
22177             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22178 $as_echo "not found" >&6; }
22179             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
22180           fi
22181           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22182 $as_echo "$tool_specified" >&6; }
22183         fi
22184       fi
22185     fi
22186 
22187   fi
22188 
22189 
22190   if test "x$LDD" = "x"; then
22191     # List shared lib dependencies is used for
22192     # debug output and checking for forbidden dependencies.
22193     # We can build without it.
22194     LDD="true"
22195   fi
22196 
22197 
22198   # Publish this variable in the help.
22199 
22200 
22201   if [ -z "${READELF+x}" ]; then
22202     # The variable is not set by user, try to locate tool using the code snippet
22203     for ac_prog in greadelf readelf
22204 do
22205   # Extract the first word of "$ac_prog", so it can be a program name with args.
22206 set dummy $ac_prog; ac_word=$2
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22208 $as_echo_n "checking for $ac_word... " >&6; }
22209 if ${ac_cv_path_READELF+:} false; then :
22210   $as_echo_n "(cached) " >&6
22211 else
22212   case $READELF in
22213   [\\/]* | ?:[\\/]*)
22214   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22215   ;;
22216   *)
22217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22218 for as_dir in $PATH
22219 do
22220   IFS=$as_save_IFS
22221   test -z "$as_dir" && as_dir=.
22222     for ac_exec_ext in '' $ac_executable_extensions; do
22223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22224     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22226     break 2
22227   fi
22228 done
22229   done
22230 IFS=$as_save_IFS
22231 
22232   ;;
22233 esac
22234 fi
22235 READELF=$ac_cv_path_READELF
22236 if test -n "$READELF"; then
22237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22238 $as_echo "$READELF" >&6; }
22239 else
22240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22241 $as_echo "no" >&6; }
22242 fi
22243 
22244 
22245   test -n "$READELF" && break
22246 done
22247 
22248   else
22249     # The variable is set, but is it from the command line or the environment?
22250 
22251     # Try to remove the string !READELF! from our list.
22252     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22253     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22254       # If it failed, the variable was not from the command line. Ignore it,
22255       # but warn the user (except for BASH, which is always set by the calling BASH).
22256       if test "xREADELF" != xBASH; then
22257         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22258 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22259       fi
22260       # Try to locate tool using the code snippet
22261       for ac_prog in greadelf readelf
22262 do
22263   # Extract the first word of "$ac_prog", so it can be a program name with args.
22264 set dummy $ac_prog; ac_word=$2
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22266 $as_echo_n "checking for $ac_word... " >&6; }
22267 if ${ac_cv_path_READELF+:} false; then :
22268   $as_echo_n "(cached) " >&6
22269 else
22270   case $READELF in
22271   [\\/]* | ?:[\\/]*)
22272   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22273   ;;
22274   *)
22275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22276 for as_dir in $PATH
22277 do
22278   IFS=$as_save_IFS
22279   test -z "$as_dir" && as_dir=.
22280     for ac_exec_ext in '' $ac_executable_extensions; do
22281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22282     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22284     break 2
22285   fi
22286 done
22287   done
22288 IFS=$as_save_IFS
22289 
22290   ;;
22291 esac
22292 fi
22293 READELF=$ac_cv_path_READELF
22294 if test -n "$READELF"; then
22295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22296 $as_echo "$READELF" >&6; }
22297 else
22298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22299 $as_echo "no" >&6; }
22300 fi
22301 
22302 
22303   test -n "$READELF" && break
22304 done
22305 
22306     else
22307       # If it succeeded, then it was overridden by the user. We will use it
22308       # for the tool.
22309 
22310       # First remove it from the list of overridden variables, so we can test
22311       # for unknown variables in the end.
22312       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22313 
22314       # Check if we try to supply an empty value
22315       if test "x$READELF" = x; then
22316         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22317 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22318         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22319 $as_echo_n "checking for READELF... " >&6; }
22320         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22321 $as_echo "disabled" >&6; }
22322       else
22323         # Check if the provided tool contains a complete path.
22324         tool_specified="$READELF"
22325         tool_basename="${tool_specified##*/}"
22326         if test "x$tool_basename" = "x$tool_specified"; then
22327           # A command without a complete path is provided, search $PATH.
22328           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22329 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22330           # Extract the first word of "$tool_basename", so it can be a program name with args.
22331 set dummy $tool_basename; ac_word=$2
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22333 $as_echo_n "checking for $ac_word... " >&6; }
22334 if ${ac_cv_path_READELF+:} false; then :
22335   $as_echo_n "(cached) " >&6
22336 else
22337   case $READELF in
22338   [\\/]* | ?:[\\/]*)
22339   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22340   ;;
22341   *)
22342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22343 for as_dir in $PATH
22344 do
22345   IFS=$as_save_IFS
22346   test -z "$as_dir" && as_dir=.
22347     for ac_exec_ext in '' $ac_executable_extensions; do
22348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22349     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22351     break 2
22352   fi
22353 done
22354   done
22355 IFS=$as_save_IFS
22356 
22357   ;;
22358 esac
22359 fi
22360 READELF=$ac_cv_path_READELF
22361 if test -n "$READELF"; then
22362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22363 $as_echo "$READELF" >&6; }
22364 else
22365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22366 $as_echo "no" >&6; }
22367 fi
22368 
22369 
22370           if test "x$READELF" = x; then
22371             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22372           fi
22373         else
22374           # Otherwise we believe it is a complete path. Use it as it is.
22375           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22376 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22377           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22378 $as_echo_n "checking for READELF... " >&6; }
22379           if test ! -x "$tool_specified"; then
22380             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22381 $as_echo "not found" >&6; }
22382             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22383           fi
22384           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22385 $as_echo "$tool_specified" >&6; }
22386         fi
22387       fi
22388     fi
22389 
22390   fi
22391 
22392 
22393 
22394 
22395   # Publish this variable in the help.
22396 
22397 
22398   if [ -z "${DOT+x}" ]; then
22399     # The variable is not set by user, try to locate tool using the code snippet
22400     for ac_prog in dot
22401 do
22402   # Extract the first word of "$ac_prog", so it can be a program name with args.
22403 set dummy $ac_prog; ac_word=$2
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22405 $as_echo_n "checking for $ac_word... " >&6; }
22406 if ${ac_cv_path_DOT+:} false; then :
22407   $as_echo_n "(cached) " >&6
22408 else
22409   case $DOT in
22410   [\\/]* | ?:[\\/]*)
22411   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22412   ;;
22413   *)
22414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22415 for as_dir in $PATH
22416 do
22417   IFS=$as_save_IFS
22418   test -z "$as_dir" && as_dir=.
22419     for ac_exec_ext in '' $ac_executable_extensions; do
22420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22421     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22423     break 2
22424   fi
22425 done
22426   done
22427 IFS=$as_save_IFS
22428 
22429   ;;
22430 esac
22431 fi
22432 DOT=$ac_cv_path_DOT
22433 if test -n "$DOT"; then
22434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22435 $as_echo "$DOT" >&6; }
22436 else
22437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22438 $as_echo "no" >&6; }
22439 fi
22440 
22441 
22442   test -n "$DOT" && break
22443 done
22444 
22445   else
22446     # The variable is set, but is it from the command line or the environment?
22447 
22448     # Try to remove the string !DOT! from our list.
22449     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/}
22450     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22451       # If it failed, the variable was not from the command line. Ignore it,
22452       # but warn the user (except for BASH, which is always set by the calling BASH).
22453       if test "xDOT" != xBASH; then
22454         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5
22455 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;}
22456       fi
22457       # Try to locate tool using the code snippet
22458       for ac_prog in dot
22459 do
22460   # Extract the first word of "$ac_prog", so it can be a program name with args.
22461 set dummy $ac_prog; ac_word=$2
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22463 $as_echo_n "checking for $ac_word... " >&6; }
22464 if ${ac_cv_path_DOT+:} false; then :
22465   $as_echo_n "(cached) " >&6
22466 else
22467   case $DOT in
22468   [\\/]* | ?:[\\/]*)
22469   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22470   ;;
22471   *)
22472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22473 for as_dir in $PATH
22474 do
22475   IFS=$as_save_IFS
22476   test -z "$as_dir" && as_dir=.
22477     for ac_exec_ext in '' $ac_executable_extensions; do
22478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22479     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22481     break 2
22482   fi
22483 done
22484   done
22485 IFS=$as_save_IFS
22486 
22487   ;;
22488 esac
22489 fi
22490 DOT=$ac_cv_path_DOT
22491 if test -n "$DOT"; then
22492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22493 $as_echo "$DOT" >&6; }
22494 else
22495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22496 $as_echo "no" >&6; }
22497 fi
22498 
22499 
22500   test -n "$DOT" && break
22501 done
22502 
22503     else
22504       # If it succeeded, then it was overridden by the user. We will use it
22505       # for the tool.
22506 
22507       # First remove it from the list of overridden variables, so we can test
22508       # for unknown variables in the end.
22509       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22510 
22511       # Check if we try to supply an empty value
22512       if test "x$DOT" = x; then
22513         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5
22514 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;}
22515         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22516 $as_echo_n "checking for DOT... " >&6; }
22517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22518 $as_echo "disabled" >&6; }
22519       else
22520         # Check if the provided tool contains a complete path.
22521         tool_specified="$DOT"
22522         tool_basename="${tool_specified##*/}"
22523         if test "x$tool_basename" = "x$tool_specified"; then
22524           # A command without a complete path is provided, search $PATH.
22525           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5
22526 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;}
22527           # Extract the first word of "$tool_basename", so it can be a program name with args.
22528 set dummy $tool_basename; ac_word=$2
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22530 $as_echo_n "checking for $ac_word... " >&6; }
22531 if ${ac_cv_path_DOT+:} false; then :
22532   $as_echo_n "(cached) " >&6
22533 else
22534   case $DOT in
22535   [\\/]* | ?:[\\/]*)
22536   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22537   ;;
22538   *)
22539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22540 for as_dir in $PATH
22541 do
22542   IFS=$as_save_IFS
22543   test -z "$as_dir" && as_dir=.
22544     for ac_exec_ext in '' $ac_executable_extensions; do
22545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22546     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22548     break 2
22549   fi
22550 done
22551   done
22552 IFS=$as_save_IFS
22553 
22554   ;;
22555 esac
22556 fi
22557 DOT=$ac_cv_path_DOT
22558 if test -n "$DOT"; then
22559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22560 $as_echo "$DOT" >&6; }
22561 else
22562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22563 $as_echo "no" >&6; }
22564 fi
22565 
22566 
22567           if test "x$DOT" = x; then
22568             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22569           fi
22570         else
22571           # Otherwise we believe it is a complete path. Use it as it is.
22572           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5
22573 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;}
22574           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22575 $as_echo_n "checking for DOT... " >&6; }
22576           if test ! -x "$tool_specified"; then
22577             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22578 $as_echo "not found" >&6; }
22579             as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5
22580           fi
22581           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22582 $as_echo "$tool_specified" >&6; }
22583         fi
22584       fi
22585     fi
22586 
22587   fi
22588 
22589 
22590 
22591 
22592   # Publish this variable in the help.
22593 
22594 
22595   if [ -z "${HG+x}" ]; then
22596     # The variable is not set by user, try to locate tool using the code snippet
22597     for ac_prog in hg
22598 do
22599   # Extract the first word of "$ac_prog", so it can be a program name with args.
22600 set dummy $ac_prog; ac_word=$2
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22602 $as_echo_n "checking for $ac_word... " >&6; }
22603 if ${ac_cv_path_HG+:} false; then :
22604   $as_echo_n "(cached) " >&6
22605 else
22606   case $HG in
22607   [\\/]* | ?:[\\/]*)
22608   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22609   ;;
22610   *)
22611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22612 for as_dir in $PATH
22613 do
22614   IFS=$as_save_IFS
22615   test -z "$as_dir" && as_dir=.
22616     for ac_exec_ext in '' $ac_executable_extensions; do
22617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22618     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22620     break 2
22621   fi
22622 done
22623   done
22624 IFS=$as_save_IFS
22625 
22626   ;;
22627 esac
22628 fi
22629 HG=$ac_cv_path_HG
22630 if test -n "$HG"; then
22631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22632 $as_echo "$HG" >&6; }
22633 else
22634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22635 $as_echo "no" >&6; }
22636 fi
22637 
22638 
22639   test -n "$HG" && break
22640 done
22641 
22642   else
22643     # The variable is set, but is it from the command line or the environment?
22644 
22645     # Try to remove the string !HG! from our list.
22646     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22647     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22648       # If it failed, the variable was not from the command line. Ignore it,
22649       # but warn the user (except for BASH, which is always set by the calling BASH).
22650       if test "xHG" != xBASH; then
22651         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22652 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22653       fi
22654       # Try to locate tool using the code snippet
22655       for ac_prog in hg
22656 do
22657   # Extract the first word of "$ac_prog", so it can be a program name with args.
22658 set dummy $ac_prog; ac_word=$2
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22660 $as_echo_n "checking for $ac_word... " >&6; }
22661 if ${ac_cv_path_HG+:} false; then :
22662   $as_echo_n "(cached) " >&6
22663 else
22664   case $HG in
22665   [\\/]* | ?:[\\/]*)
22666   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22667   ;;
22668   *)
22669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22670 for as_dir in $PATH
22671 do
22672   IFS=$as_save_IFS
22673   test -z "$as_dir" && as_dir=.
22674     for ac_exec_ext in '' $ac_executable_extensions; do
22675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22676     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22678     break 2
22679   fi
22680 done
22681   done
22682 IFS=$as_save_IFS
22683 
22684   ;;
22685 esac
22686 fi
22687 HG=$ac_cv_path_HG
22688 if test -n "$HG"; then
22689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22690 $as_echo "$HG" >&6; }
22691 else
22692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22693 $as_echo "no" >&6; }
22694 fi
22695 
22696 
22697   test -n "$HG" && break
22698 done
22699 
22700     else
22701       # If it succeeded, then it was overridden by the user. We will use it
22702       # for the tool.
22703 
22704       # First remove it from the list of overridden variables, so we can test
22705       # for unknown variables in the end.
22706       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22707 
22708       # Check if we try to supply an empty value
22709       if test "x$HG" = x; then
22710         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22711 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22712         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22713 $as_echo_n "checking for HG... " >&6; }
22714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22715 $as_echo "disabled" >&6; }
22716       else
22717         # Check if the provided tool contains a complete path.
22718         tool_specified="$HG"
22719         tool_basename="${tool_specified##*/}"
22720         if test "x$tool_basename" = "x$tool_specified"; then
22721           # A command without a complete path is provided, search $PATH.
22722           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22723 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22724           # Extract the first word of "$tool_basename", so it can be a program name with args.
22725 set dummy $tool_basename; ac_word=$2
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22727 $as_echo_n "checking for $ac_word... " >&6; }
22728 if ${ac_cv_path_HG+:} false; then :
22729   $as_echo_n "(cached) " >&6
22730 else
22731   case $HG in
22732   [\\/]* | ?:[\\/]*)
22733   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22734   ;;
22735   *)
22736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22737 for as_dir in $PATH
22738 do
22739   IFS=$as_save_IFS
22740   test -z "$as_dir" && as_dir=.
22741     for ac_exec_ext in '' $ac_executable_extensions; do
22742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22743     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22745     break 2
22746   fi
22747 done
22748   done
22749 IFS=$as_save_IFS
22750 
22751   ;;
22752 esac
22753 fi
22754 HG=$ac_cv_path_HG
22755 if test -n "$HG"; then
22756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22757 $as_echo "$HG" >&6; }
22758 else
22759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22760 $as_echo "no" >&6; }
22761 fi
22762 
22763 
22764           if test "x$HG" = x; then
22765             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22766           fi
22767         else
22768           # Otherwise we believe it is a complete path. Use it as it is.
22769           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22770 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22771           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22772 $as_echo_n "checking for HG... " >&6; }
22773           if test ! -x "$tool_specified"; then
22774             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22775 $as_echo "not found" >&6; }
22776             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22777           fi
22778           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22779 $as_echo "$tool_specified" >&6; }
22780         fi
22781       fi
22782     fi
22783 
22784   fi
22785 
22786 
22787 
22788 
22789   # Publish this variable in the help.
22790 
22791 
22792   if [ -z "${STAT+x}" ]; then
22793     # The variable is not set by user, try to locate tool using the code snippet
22794     for ac_prog in stat
22795 do
22796   # Extract the first word of "$ac_prog", so it can be a program name with args.
22797 set dummy $ac_prog; ac_word=$2
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22799 $as_echo_n "checking for $ac_word... " >&6; }
22800 if ${ac_cv_path_STAT+:} false; then :
22801   $as_echo_n "(cached) " >&6
22802 else
22803   case $STAT in
22804   [\\/]* | ?:[\\/]*)
22805   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22806   ;;
22807   *)
22808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22809 for as_dir in $PATH
22810 do
22811   IFS=$as_save_IFS
22812   test -z "$as_dir" && as_dir=.
22813     for ac_exec_ext in '' $ac_executable_extensions; do
22814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22815     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22817     break 2
22818   fi
22819 done
22820   done
22821 IFS=$as_save_IFS
22822 
22823   ;;
22824 esac
22825 fi
22826 STAT=$ac_cv_path_STAT
22827 if test -n "$STAT"; then
22828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22829 $as_echo "$STAT" >&6; }
22830 else
22831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22832 $as_echo "no" >&6; }
22833 fi
22834 
22835 
22836   test -n "$STAT" && break
22837 done
22838 
22839   else
22840     # The variable is set, but is it from the command line or the environment?
22841 
22842     # Try to remove the string !STAT! from our list.
22843     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22844     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22845       # If it failed, the variable was not from the command line. Ignore it,
22846       # but warn the user (except for BASH, which is always set by the calling BASH).
22847       if test "xSTAT" != xBASH; then
22848         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22849 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22850       fi
22851       # Try to locate tool using the code snippet
22852       for ac_prog in stat
22853 do
22854   # Extract the first word of "$ac_prog", so it can be a program name with args.
22855 set dummy $ac_prog; ac_word=$2
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22857 $as_echo_n "checking for $ac_word... " >&6; }
22858 if ${ac_cv_path_STAT+:} false; then :
22859   $as_echo_n "(cached) " >&6
22860 else
22861   case $STAT in
22862   [\\/]* | ?:[\\/]*)
22863   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22864   ;;
22865   *)
22866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22867 for as_dir in $PATH
22868 do
22869   IFS=$as_save_IFS
22870   test -z "$as_dir" && as_dir=.
22871     for ac_exec_ext in '' $ac_executable_extensions; do
22872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22873     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22875     break 2
22876   fi
22877 done
22878   done
22879 IFS=$as_save_IFS
22880 
22881   ;;
22882 esac
22883 fi
22884 STAT=$ac_cv_path_STAT
22885 if test -n "$STAT"; then
22886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22887 $as_echo "$STAT" >&6; }
22888 else
22889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22890 $as_echo "no" >&6; }
22891 fi
22892 
22893 
22894   test -n "$STAT" && break
22895 done
22896 
22897     else
22898       # If it succeeded, then it was overridden by the user. We will use it
22899       # for the tool.
22900 
22901       # First remove it from the list of overridden variables, so we can test
22902       # for unknown variables in the end.
22903       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22904 
22905       # Check if we try to supply an empty value
22906       if test "x$STAT" = x; then
22907         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22908 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22909         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22910 $as_echo_n "checking for STAT... " >&6; }
22911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22912 $as_echo "disabled" >&6; }
22913       else
22914         # Check if the provided tool contains a complete path.
22915         tool_specified="$STAT"
22916         tool_basename="${tool_specified##*/}"
22917         if test "x$tool_basename" = "x$tool_specified"; then
22918           # A command without a complete path is provided, search $PATH.
22919           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22920 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22921           # Extract the first word of "$tool_basename", so it can be a program name with args.
22922 set dummy $tool_basename; ac_word=$2
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22924 $as_echo_n "checking for $ac_word... " >&6; }
22925 if ${ac_cv_path_STAT+:} false; then :
22926   $as_echo_n "(cached) " >&6
22927 else
22928   case $STAT in
22929   [\\/]* | ?:[\\/]*)
22930   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22931   ;;
22932   *)
22933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22934 for as_dir in $PATH
22935 do
22936   IFS=$as_save_IFS
22937   test -z "$as_dir" && as_dir=.
22938     for ac_exec_ext in '' $ac_executable_extensions; do
22939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22940     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22942     break 2
22943   fi
22944 done
22945   done
22946 IFS=$as_save_IFS
22947 
22948   ;;
22949 esac
22950 fi
22951 STAT=$ac_cv_path_STAT
22952 if test -n "$STAT"; then
22953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22954 $as_echo "$STAT" >&6; }
22955 else
22956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22957 $as_echo "no" >&6; }
22958 fi
22959 
22960 
22961           if test "x$STAT" = x; then
22962             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22963           fi
22964         else
22965           # Otherwise we believe it is a complete path. Use it as it is.
22966           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22967 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22968           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22969 $as_echo_n "checking for STAT... " >&6; }
22970           if test ! -x "$tool_specified"; then
22971             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22972 $as_echo "not found" >&6; }
22973             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22974           fi
22975           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22976 $as_echo "$tool_specified" >&6; }
22977         fi
22978       fi
22979     fi
22980 
22981   fi
22982 
22983 
22984 
22985 
22986   # Publish this variable in the help.
22987 
22988 
22989   if [ -z "${TIME+x}" ]; then
22990     # The variable is not set by user, try to locate tool using the code snippet
22991     for ac_prog in time
22992 do
22993   # Extract the first word of "$ac_prog", so it can be a program name with args.
22994 set dummy $ac_prog; ac_word=$2
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22996 $as_echo_n "checking for $ac_word... " >&6; }
22997 if ${ac_cv_path_TIME+:} false; then :
22998   $as_echo_n "(cached) " >&6
22999 else
23000   case $TIME in
23001   [\\/]* | ?:[\\/]*)
23002   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23003   ;;
23004   *)
23005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23006 for as_dir in $PATH
23007 do
23008   IFS=$as_save_IFS
23009   test -z "$as_dir" && as_dir=.
23010     for ac_exec_ext in '' $ac_executable_extensions; do
23011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23012     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23014     break 2
23015   fi
23016 done
23017   done
23018 IFS=$as_save_IFS
23019 
23020   ;;
23021 esac
23022 fi
23023 TIME=$ac_cv_path_TIME
23024 if test -n "$TIME"; then
23025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23026 $as_echo "$TIME" >&6; }
23027 else
23028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23029 $as_echo "no" >&6; }
23030 fi
23031 
23032 
23033   test -n "$TIME" && break
23034 done
23035 
23036   else
23037     # The variable is set, but is it from the command line or the environment?
23038 
23039     # Try to remove the string !TIME! from our list.
23040     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
23041     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23042       # If it failed, the variable was not from the command line. Ignore it,
23043       # but warn the user (except for BASH, which is always set by the calling BASH).
23044       if test "xTIME" != xBASH; then
23045         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
23046 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
23047       fi
23048       # Try to locate tool using the code snippet
23049       for ac_prog in time
23050 do
23051   # Extract the first word of "$ac_prog", so it can be a program name with args.
23052 set dummy $ac_prog; ac_word=$2
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23054 $as_echo_n "checking for $ac_word... " >&6; }
23055 if ${ac_cv_path_TIME+:} false; then :
23056   $as_echo_n "(cached) " >&6
23057 else
23058   case $TIME in
23059   [\\/]* | ?:[\\/]*)
23060   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23061   ;;
23062   *)
23063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23064 for as_dir in $PATH
23065 do
23066   IFS=$as_save_IFS
23067   test -z "$as_dir" && as_dir=.
23068     for ac_exec_ext in '' $ac_executable_extensions; do
23069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23070     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23072     break 2
23073   fi
23074 done
23075   done
23076 IFS=$as_save_IFS
23077 
23078   ;;
23079 esac
23080 fi
23081 TIME=$ac_cv_path_TIME
23082 if test -n "$TIME"; then
23083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23084 $as_echo "$TIME" >&6; }
23085 else
23086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23087 $as_echo "no" >&6; }
23088 fi
23089 
23090 
23091   test -n "$TIME" && break
23092 done
23093 
23094     else
23095       # If it succeeded, then it was overridden by the user. We will use it
23096       # for the tool.
23097 
23098       # First remove it from the list of overridden variables, so we can test
23099       # for unknown variables in the end.
23100       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23101 
23102       # Check if we try to supply an empty value
23103       if test "x$TIME" = x; then
23104         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
23105 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
23106         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23107 $as_echo_n "checking for TIME... " >&6; }
23108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23109 $as_echo "disabled" >&6; }
23110       else
23111         # Check if the provided tool contains a complete path.
23112         tool_specified="$TIME"
23113         tool_basename="${tool_specified##*/}"
23114         if test "x$tool_basename" = "x$tool_specified"; then
23115           # A command without a complete path is provided, search $PATH.
23116           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
23117 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
23118           # Extract the first word of "$tool_basename", so it can be a program name with args.
23119 set dummy $tool_basename; ac_word=$2
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23121 $as_echo_n "checking for $ac_word... " >&6; }
23122 if ${ac_cv_path_TIME+:} false; then :
23123   $as_echo_n "(cached) " >&6
23124 else
23125   case $TIME in
23126   [\\/]* | ?:[\\/]*)
23127   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23128   ;;
23129   *)
23130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23131 for as_dir in $PATH
23132 do
23133   IFS=$as_save_IFS
23134   test -z "$as_dir" && as_dir=.
23135     for ac_exec_ext in '' $ac_executable_extensions; do
23136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23137     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23139     break 2
23140   fi
23141 done
23142   done
23143 IFS=$as_save_IFS
23144 
23145   ;;
23146 esac
23147 fi
23148 TIME=$ac_cv_path_TIME
23149 if test -n "$TIME"; then
23150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23151 $as_echo "$TIME" >&6; }
23152 else
23153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23154 $as_echo "no" >&6; }
23155 fi
23156 
23157 
23158           if test "x$TIME" = x; then
23159             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23160           fi
23161         else
23162           # Otherwise we believe it is a complete path. Use it as it is.
23163           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
23164 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
23165           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23166 $as_echo_n "checking for TIME... " >&6; }
23167           if test ! -x "$tool_specified"; then
23168             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23169 $as_echo "not found" >&6; }
23170             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
23171           fi
23172           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23173 $as_echo "$tool_specified" >&6; }
23174         fi
23175       fi
23176     fi
23177 
23178   fi
23179 
23180 
23181 
23182 
23183   # Publish this variable in the help.
23184 
23185 
23186   if [ -z "${FLOCK+x}" ]; then
23187     # The variable is not set by user, try to locate tool using the code snippet
23188     for ac_prog in flock
23189 do
23190   # Extract the first word of "$ac_prog", so it can be a program name with args.
23191 set dummy $ac_prog; ac_word=$2
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23193 $as_echo_n "checking for $ac_word... " >&6; }
23194 if ${ac_cv_path_FLOCK+:} false; then :
23195   $as_echo_n "(cached) " >&6
23196 else
23197   case $FLOCK in
23198   [\\/]* | ?:[\\/]*)
23199   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23200   ;;
23201   *)
23202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23203 for as_dir in $PATH
23204 do
23205   IFS=$as_save_IFS
23206   test -z "$as_dir" && as_dir=.
23207     for ac_exec_ext in '' $ac_executable_extensions; do
23208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23209     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23211     break 2
23212   fi
23213 done
23214   done
23215 IFS=$as_save_IFS
23216 
23217   ;;
23218 esac
23219 fi
23220 FLOCK=$ac_cv_path_FLOCK
23221 if test -n "$FLOCK"; then
23222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23223 $as_echo "$FLOCK" >&6; }
23224 else
23225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23226 $as_echo "no" >&6; }
23227 fi
23228 
23229 
23230   test -n "$FLOCK" && break
23231 done
23232 
23233   else
23234     # The variable is set, but is it from the command line or the environment?
23235 
23236     # Try to remove the string !FLOCK! from our list.
23237     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/}
23238     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23239       # If it failed, the variable was not from the command line. Ignore it,
23240       # but warn the user (except for BASH, which is always set by the calling BASH).
23241       if test "xFLOCK" != xBASH; then
23242         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5
23243 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;}
23244       fi
23245       # Try to locate tool using the code snippet
23246       for ac_prog in flock
23247 do
23248   # Extract the first word of "$ac_prog", so it can be a program name with args.
23249 set dummy $ac_prog; ac_word=$2
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23251 $as_echo_n "checking for $ac_word... " >&6; }
23252 if ${ac_cv_path_FLOCK+:} false; then :
23253   $as_echo_n "(cached) " >&6
23254 else
23255   case $FLOCK in
23256   [\\/]* | ?:[\\/]*)
23257   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23258   ;;
23259   *)
23260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23261 for as_dir in $PATH
23262 do
23263   IFS=$as_save_IFS
23264   test -z "$as_dir" && as_dir=.
23265     for ac_exec_ext in '' $ac_executable_extensions; do
23266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23267     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23269     break 2
23270   fi
23271 done
23272   done
23273 IFS=$as_save_IFS
23274 
23275   ;;
23276 esac
23277 fi
23278 FLOCK=$ac_cv_path_FLOCK
23279 if test -n "$FLOCK"; then
23280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23281 $as_echo "$FLOCK" >&6; }
23282 else
23283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23284 $as_echo "no" >&6; }
23285 fi
23286 
23287 
23288   test -n "$FLOCK" && break
23289 done
23290 
23291     else
23292       # If it succeeded, then it was overridden by the user. We will use it
23293       # for the tool.
23294 
23295       # First remove it from the list of overridden variables, so we can test
23296       # for unknown variables in the end.
23297       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23298 
23299       # Check if we try to supply an empty value
23300       if test "x$FLOCK" = x; then
23301         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5
23302 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;}
23303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23304 $as_echo_n "checking for FLOCK... " >&6; }
23305         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23306 $as_echo "disabled" >&6; }
23307       else
23308         # Check if the provided tool contains a complete path.
23309         tool_specified="$FLOCK"
23310         tool_basename="${tool_specified##*/}"
23311         if test "x$tool_basename" = "x$tool_specified"; then
23312           # A command without a complete path is provided, search $PATH.
23313           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5
23314 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;}
23315           # Extract the first word of "$tool_basename", so it can be a program name with args.
23316 set dummy $tool_basename; ac_word=$2
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23318 $as_echo_n "checking for $ac_word... " >&6; }
23319 if ${ac_cv_path_FLOCK+:} false; then :
23320   $as_echo_n "(cached) " >&6
23321 else
23322   case $FLOCK in
23323   [\\/]* | ?:[\\/]*)
23324   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23325   ;;
23326   *)
23327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23328 for as_dir in $PATH
23329 do
23330   IFS=$as_save_IFS
23331   test -z "$as_dir" && as_dir=.
23332     for ac_exec_ext in '' $ac_executable_extensions; do
23333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23334     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23336     break 2
23337   fi
23338 done
23339   done
23340 IFS=$as_save_IFS
23341 
23342   ;;
23343 esac
23344 fi
23345 FLOCK=$ac_cv_path_FLOCK
23346 if test -n "$FLOCK"; then
23347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23348 $as_echo "$FLOCK" >&6; }
23349 else
23350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23351 $as_echo "no" >&6; }
23352 fi
23353 
23354 
23355           if test "x$FLOCK" = x; then
23356             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23357           fi
23358         else
23359           # Otherwise we believe it is a complete path. Use it as it is.
23360           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5
23361 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;}
23362           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23363 $as_echo_n "checking for FLOCK... " >&6; }
23364           if test ! -x "$tool_specified"; then
23365             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23366 $as_echo "not found" >&6; }
23367             as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5
23368           fi
23369           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23370 $as_echo "$tool_specified" >&6; }
23371         fi
23372       fi
23373     fi
23374 
23375   fi
23376 
23377 
23378   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
23379   # be in the user path.
23380 
23381 
23382   # Publish this variable in the help.
23383 
23384 
23385   if [ -z "${DTRACE+x}" ]; then
23386     # The variable is not set by user, try to locate tool using the code snippet
23387     for ac_prog in dtrace
23388 do
23389   # Extract the first word of "$ac_prog", so it can be a program name with args.
23390 set dummy $ac_prog; ac_word=$2
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23392 $as_echo_n "checking for $ac_word... " >&6; }
23393 if ${ac_cv_path_DTRACE+:} false; then :
23394   $as_echo_n "(cached) " >&6
23395 else
23396   case $DTRACE in
23397   [\\/]* | ?:[\\/]*)
23398   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23399   ;;
23400   *)
23401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23402 as_dummy="$PATH:/usr/sbin"
23403 for as_dir in $as_dummy
23404 do
23405   IFS=$as_save_IFS
23406   test -z "$as_dir" && as_dir=.
23407     for ac_exec_ext in '' $ac_executable_extensions; do
23408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23409     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23411     break 2
23412   fi
23413 done
23414   done
23415 IFS=$as_save_IFS
23416 
23417   ;;
23418 esac
23419 fi
23420 DTRACE=$ac_cv_path_DTRACE
23421 if test -n "$DTRACE"; then
23422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23423 $as_echo "$DTRACE" >&6; }
23424 else
23425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23426 $as_echo "no" >&6; }
23427 fi
23428 
23429 
23430   test -n "$DTRACE" && break
23431 done
23432 
23433   else
23434     # The variable is set, but is it from the command line or the environment?
23435 
23436     # Try to remove the string !DTRACE! from our list.
23437     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
23438     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23439       # If it failed, the variable was not from the command line. Ignore it,
23440       # but warn the user (except for BASH, which is always set by the calling BASH).
23441       if test "xDTRACE" != xBASH; then
23442         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
23443 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
23444       fi
23445       # Try to locate tool using the code snippet
23446       for ac_prog in dtrace
23447 do
23448   # Extract the first word of "$ac_prog", so it can be a program name with args.
23449 set dummy $ac_prog; ac_word=$2
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23451 $as_echo_n "checking for $ac_word... " >&6; }
23452 if ${ac_cv_path_DTRACE+:} false; then :
23453   $as_echo_n "(cached) " >&6
23454 else
23455   case $DTRACE in
23456   [\\/]* | ?:[\\/]*)
23457   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23458   ;;
23459   *)
23460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23461 as_dummy="$PATH:/usr/sbin"
23462 for as_dir in $as_dummy
23463 do
23464   IFS=$as_save_IFS
23465   test -z "$as_dir" && as_dir=.
23466     for ac_exec_ext in '' $ac_executable_extensions; do
23467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23468     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23470     break 2
23471   fi
23472 done
23473   done
23474 IFS=$as_save_IFS
23475 
23476   ;;
23477 esac
23478 fi
23479 DTRACE=$ac_cv_path_DTRACE
23480 if test -n "$DTRACE"; then
23481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23482 $as_echo "$DTRACE" >&6; }
23483 else
23484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23485 $as_echo "no" >&6; }
23486 fi
23487 
23488 
23489   test -n "$DTRACE" && break
23490 done
23491 
23492     else
23493       # If it succeeded, then it was overridden by the user. We will use it
23494       # for the tool.
23495 
23496       # First remove it from the list of overridden variables, so we can test
23497       # for unknown variables in the end.
23498       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23499 
23500       # Check if we try to supply an empty value
23501       if test "x$DTRACE" = x; then
23502         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
23503 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
23504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23505 $as_echo_n "checking for DTRACE... " >&6; }
23506         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23507 $as_echo "disabled" >&6; }
23508       else
23509         # Check if the provided tool contains a complete path.
23510         tool_specified="$DTRACE"
23511         tool_basename="${tool_specified##*/}"
23512         if test "x$tool_basename" = "x$tool_specified"; then
23513           # A command without a complete path is provided, search $PATH.
23514           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
23515 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
23516           # Extract the first word of "$tool_basename", so it can be a program name with args.
23517 set dummy $tool_basename; ac_word=$2
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23519 $as_echo_n "checking for $ac_word... " >&6; }
23520 if ${ac_cv_path_DTRACE+:} false; then :
23521   $as_echo_n "(cached) " >&6
23522 else
23523   case $DTRACE in
23524   [\\/]* | ?:[\\/]*)
23525   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23526   ;;
23527   *)
23528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23529 for as_dir in $PATH
23530 do
23531   IFS=$as_save_IFS
23532   test -z "$as_dir" && as_dir=.
23533     for ac_exec_ext in '' $ac_executable_extensions; do
23534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23535     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23537     break 2
23538   fi
23539 done
23540   done
23541 IFS=$as_save_IFS
23542 
23543   ;;
23544 esac
23545 fi
23546 DTRACE=$ac_cv_path_DTRACE
23547 if test -n "$DTRACE"; then
23548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23549 $as_echo "$DTRACE" >&6; }
23550 else
23551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23552 $as_echo "no" >&6; }
23553 fi
23554 
23555 
23556           if test "x$DTRACE" = x; then
23557             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23558           fi
23559         else
23560           # Otherwise we believe it is a complete path. Use it as it is.
23561           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
23562 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
23563           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23564 $as_echo_n "checking for DTRACE... " >&6; }
23565           if test ! -x "$tool_specified"; then
23566             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23567 $as_echo "not found" >&6; }
23568             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
23569           fi
23570           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23571 $as_echo "$tool_specified" >&6; }
23572         fi
23573       fi
23574     fi
23575 
23576   fi
23577 
23578 
23579 
23580 
23581   # Publish this variable in the help.
23582 
23583 
23584   if [ -z "${PATCH+x}" ]; then
23585     # The variable is not set by user, try to locate tool using the code snippet
23586     for ac_prog in gpatch patch
23587 do
23588   # Extract the first word of "$ac_prog", so it can be a program name with args.
23589 set dummy $ac_prog; ac_word=$2
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23591 $as_echo_n "checking for $ac_word... " >&6; }
23592 if ${ac_cv_path_PATCH+:} false; then :
23593   $as_echo_n "(cached) " >&6
23594 else
23595   case $PATCH in
23596   [\\/]* | ?:[\\/]*)
23597   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23598   ;;
23599   *)
23600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23601 for as_dir in $PATH
23602 do
23603   IFS=$as_save_IFS
23604   test -z "$as_dir" && as_dir=.
23605     for ac_exec_ext in '' $ac_executable_extensions; do
23606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23607     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23609     break 2
23610   fi
23611 done
23612   done
23613 IFS=$as_save_IFS
23614 
23615   ;;
23616 esac
23617 fi
23618 PATCH=$ac_cv_path_PATCH
23619 if test -n "$PATCH"; then
23620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23621 $as_echo "$PATCH" >&6; }
23622 else
23623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23624 $as_echo "no" >&6; }
23625 fi
23626 
23627 
23628   test -n "$PATCH" && break
23629 done
23630 
23631   else
23632     # The variable is set, but is it from the command line or the environment?
23633 
23634     # Try to remove the string !PATCH! from our list.
23635     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23636     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23637       # If it failed, the variable was not from the command line. Ignore it,
23638       # but warn the user (except for BASH, which is always set by the calling BASH).
23639       if test "xPATCH" != xBASH; then
23640         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23641 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23642       fi
23643       # Try to locate tool using the code snippet
23644       for ac_prog in gpatch patch
23645 do
23646   # Extract the first word of "$ac_prog", so it can be a program name with args.
23647 set dummy $ac_prog; ac_word=$2
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23649 $as_echo_n "checking for $ac_word... " >&6; }
23650 if ${ac_cv_path_PATCH+:} false; then :
23651   $as_echo_n "(cached) " >&6
23652 else
23653   case $PATCH in
23654   [\\/]* | ?:[\\/]*)
23655   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23656   ;;
23657   *)
23658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23659 for as_dir in $PATH
23660 do
23661   IFS=$as_save_IFS
23662   test -z "$as_dir" && as_dir=.
23663     for ac_exec_ext in '' $ac_executable_extensions; do
23664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23665     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23667     break 2
23668   fi
23669 done
23670   done
23671 IFS=$as_save_IFS
23672 
23673   ;;
23674 esac
23675 fi
23676 PATCH=$ac_cv_path_PATCH
23677 if test -n "$PATCH"; then
23678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23679 $as_echo "$PATCH" >&6; }
23680 else
23681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23682 $as_echo "no" >&6; }
23683 fi
23684 
23685 
23686   test -n "$PATCH" && break
23687 done
23688 
23689     else
23690       # If it succeeded, then it was overridden by the user. We will use it
23691       # for the tool.
23692 
23693       # First remove it from the list of overridden variables, so we can test
23694       # for unknown variables in the end.
23695       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23696 
23697       # Check if we try to supply an empty value
23698       if test "x$PATCH" = x; then
23699         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23700 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23702 $as_echo_n "checking for PATCH... " >&6; }
23703         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23704 $as_echo "disabled" >&6; }
23705       else
23706         # Check if the provided tool contains a complete path.
23707         tool_specified="$PATCH"
23708         tool_basename="${tool_specified##*/}"
23709         if test "x$tool_basename" = "x$tool_specified"; then
23710           # A command without a complete path is provided, search $PATH.
23711           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23712 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23713           # Extract the first word of "$tool_basename", so it can be a program name with args.
23714 set dummy $tool_basename; ac_word=$2
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23716 $as_echo_n "checking for $ac_word... " >&6; }
23717 if ${ac_cv_path_PATCH+:} false; then :
23718   $as_echo_n "(cached) " >&6
23719 else
23720   case $PATCH in
23721   [\\/]* | ?:[\\/]*)
23722   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23723   ;;
23724   *)
23725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23726 for as_dir in $PATH
23727 do
23728   IFS=$as_save_IFS
23729   test -z "$as_dir" && as_dir=.
23730     for ac_exec_ext in '' $ac_executable_extensions; do
23731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23732     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23734     break 2
23735   fi
23736 done
23737   done
23738 IFS=$as_save_IFS
23739 
23740   ;;
23741 esac
23742 fi
23743 PATCH=$ac_cv_path_PATCH
23744 if test -n "$PATCH"; then
23745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23746 $as_echo "$PATCH" >&6; }
23747 else
23748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23749 $as_echo "no" >&6; }
23750 fi
23751 
23752 
23753           if test "x$PATCH" = x; then
23754             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23755           fi
23756         else
23757           # Otherwise we believe it is a complete path. Use it as it is.
23758           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23759 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23760           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23761 $as_echo_n "checking for PATCH... " >&6; }
23762           if test ! -x "$tool_specified"; then
23763             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23764 $as_echo "not found" >&6; }
23765             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23766           fi
23767           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23768 $as_echo "$tool_specified" >&6; }
23769         fi
23770       fi
23771     fi
23772 
23773   fi
23774 
23775 
23776   # Check if it's GNU time
23777   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23778   if test "x$IS_GNU_TIME" != x; then
23779     IS_GNU_TIME=yes
23780   else
23781     IS_GNU_TIME=no
23782   fi
23783 
23784 
23785   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23786 
23787 
23788 
23789   # Publish this variable in the help.
23790 
23791 
23792   if [ -z "${DSYMUTIL+x}" ]; then
23793     # The variable is not set by user, try to locate tool using the code snippet
23794     for ac_prog in dsymutil
23795 do
23796   # Extract the first word of "$ac_prog", so it can be a program name with args.
23797 set dummy $ac_prog; ac_word=$2
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23799 $as_echo_n "checking for $ac_word... " >&6; }
23800 if ${ac_cv_path_DSYMUTIL+:} false; then :
23801   $as_echo_n "(cached) " >&6
23802 else
23803   case $DSYMUTIL in
23804   [\\/]* | ?:[\\/]*)
23805   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23806   ;;
23807   *)
23808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23809 for as_dir in $PATH
23810 do
23811   IFS=$as_save_IFS
23812   test -z "$as_dir" && as_dir=.
23813     for ac_exec_ext in '' $ac_executable_extensions; do
23814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23815     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23817     break 2
23818   fi
23819 done
23820   done
23821 IFS=$as_save_IFS
23822 
23823   ;;
23824 esac
23825 fi
23826 DSYMUTIL=$ac_cv_path_DSYMUTIL
23827 if test -n "$DSYMUTIL"; then
23828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23829 $as_echo "$DSYMUTIL" >&6; }
23830 else
23831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23832 $as_echo "no" >&6; }
23833 fi
23834 
23835 
23836   test -n "$DSYMUTIL" && break
23837 done
23838 
23839   else
23840     # The variable is set, but is it from the command line or the environment?
23841 
23842     # Try to remove the string !DSYMUTIL! from our list.
23843     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23844     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23845       # If it failed, the variable was not from the command line. Ignore it,
23846       # but warn the user (except for BASH, which is always set by the calling BASH).
23847       if test "xDSYMUTIL" != xBASH; then
23848         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23849 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23850       fi
23851       # Try to locate tool using the code snippet
23852       for ac_prog in dsymutil
23853 do
23854   # Extract the first word of "$ac_prog", so it can be a program name with args.
23855 set dummy $ac_prog; ac_word=$2
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23857 $as_echo_n "checking for $ac_word... " >&6; }
23858 if ${ac_cv_path_DSYMUTIL+:} false; then :
23859   $as_echo_n "(cached) " >&6
23860 else
23861   case $DSYMUTIL in
23862   [\\/]* | ?:[\\/]*)
23863   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23864   ;;
23865   *)
23866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23867 for as_dir in $PATH
23868 do
23869   IFS=$as_save_IFS
23870   test -z "$as_dir" && as_dir=.
23871     for ac_exec_ext in '' $ac_executable_extensions; do
23872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23873     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23875     break 2
23876   fi
23877 done
23878   done
23879 IFS=$as_save_IFS
23880 
23881   ;;
23882 esac
23883 fi
23884 DSYMUTIL=$ac_cv_path_DSYMUTIL
23885 if test -n "$DSYMUTIL"; then
23886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23887 $as_echo "$DSYMUTIL" >&6; }
23888 else
23889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23890 $as_echo "no" >&6; }
23891 fi
23892 
23893 
23894   test -n "$DSYMUTIL" && break
23895 done
23896 
23897     else
23898       # If it succeeded, then it was overridden by the user. We will use it
23899       # for the tool.
23900 
23901       # First remove it from the list of overridden variables, so we can test
23902       # for unknown variables in the end.
23903       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23904 
23905       # Check if we try to supply an empty value
23906       if test "x$DSYMUTIL" = x; then
23907         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23908 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23909         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23910 $as_echo_n "checking for DSYMUTIL... " >&6; }
23911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23912 $as_echo "disabled" >&6; }
23913       else
23914         # Check if the provided tool contains a complete path.
23915         tool_specified="$DSYMUTIL"
23916         tool_basename="${tool_specified##*/}"
23917         if test "x$tool_basename" = "x$tool_specified"; then
23918           # A command without a complete path is provided, search $PATH.
23919           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23920 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23921           # Extract the first word of "$tool_basename", so it can be a program name with args.
23922 set dummy $tool_basename; ac_word=$2
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23924 $as_echo_n "checking for $ac_word... " >&6; }
23925 if ${ac_cv_path_DSYMUTIL+:} false; then :
23926   $as_echo_n "(cached) " >&6
23927 else
23928   case $DSYMUTIL in
23929   [\\/]* | ?:[\\/]*)
23930   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23931   ;;
23932   *)
23933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23934 for as_dir in $PATH
23935 do
23936   IFS=$as_save_IFS
23937   test -z "$as_dir" && as_dir=.
23938     for ac_exec_ext in '' $ac_executable_extensions; do
23939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23940     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23942     break 2
23943   fi
23944 done
23945   done
23946 IFS=$as_save_IFS
23947 
23948   ;;
23949 esac
23950 fi
23951 DSYMUTIL=$ac_cv_path_DSYMUTIL
23952 if test -n "$DSYMUTIL"; then
23953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23954 $as_echo "$DSYMUTIL" >&6; }
23955 else
23956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23957 $as_echo "no" >&6; }
23958 fi
23959 
23960 
23961           if test "x$DSYMUTIL" = x; then
23962             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23963           fi
23964         else
23965           # Otherwise we believe it is a complete path. Use it as it is.
23966           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23967 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23968           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23969 $as_echo_n "checking for DSYMUTIL... " >&6; }
23970           if test ! -x "$tool_specified"; then
23971             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23972 $as_echo "not found" >&6; }
23973             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23974           fi
23975           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23976 $as_echo "$tool_specified" >&6; }
23977         fi
23978       fi
23979     fi
23980 
23981   fi
23982 
23983 
23984 
23985   if test "x$DSYMUTIL" = x; then
23986     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23987   fi
23988 
23989 
23990 
23991 
23992 
23993   # Publish this variable in the help.
23994 
23995 
23996   if [ -z "${XATTR+x}" ]; then
23997     # The variable is not set by user, try to locate tool using the code snippet
23998     for ac_prog in xattr
23999 do
24000   # Extract the first word of "$ac_prog", so it can be a program name with args.
24001 set dummy $ac_prog; ac_word=$2
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24003 $as_echo_n "checking for $ac_word... " >&6; }
24004 if ${ac_cv_path_XATTR+:} false; then :
24005   $as_echo_n "(cached) " >&6
24006 else
24007   case $XATTR in
24008   [\\/]* | ?:[\\/]*)
24009   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24010   ;;
24011   *)
24012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24013 for as_dir in $PATH
24014 do
24015   IFS=$as_save_IFS
24016   test -z "$as_dir" && as_dir=.
24017     for ac_exec_ext in '' $ac_executable_extensions; do
24018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24019     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24021     break 2
24022   fi
24023 done
24024   done
24025 IFS=$as_save_IFS
24026 
24027   ;;
24028 esac
24029 fi
24030 XATTR=$ac_cv_path_XATTR
24031 if test -n "$XATTR"; then
24032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24033 $as_echo "$XATTR" >&6; }
24034 else
24035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24036 $as_echo "no" >&6; }
24037 fi
24038 
24039 
24040   test -n "$XATTR" && break
24041 done
24042 
24043   else
24044     # The variable is set, but is it from the command line or the environment?
24045 
24046     # Try to remove the string !XATTR! from our list.
24047     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
24048     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24049       # If it failed, the variable was not from the command line. Ignore it,
24050       # but warn the user (except for BASH, which is always set by the calling BASH).
24051       if test "xXATTR" != xBASH; then
24052         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
24053 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
24054       fi
24055       # Try to locate tool using the code snippet
24056       for ac_prog in xattr
24057 do
24058   # Extract the first word of "$ac_prog", so it can be a program name with args.
24059 set dummy $ac_prog; ac_word=$2
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24061 $as_echo_n "checking for $ac_word... " >&6; }
24062 if ${ac_cv_path_XATTR+:} false; then :
24063   $as_echo_n "(cached) " >&6
24064 else
24065   case $XATTR in
24066   [\\/]* | ?:[\\/]*)
24067   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24068   ;;
24069   *)
24070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24071 for as_dir in $PATH
24072 do
24073   IFS=$as_save_IFS
24074   test -z "$as_dir" && as_dir=.
24075     for ac_exec_ext in '' $ac_executable_extensions; do
24076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24077     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24079     break 2
24080   fi
24081 done
24082   done
24083 IFS=$as_save_IFS
24084 
24085   ;;
24086 esac
24087 fi
24088 XATTR=$ac_cv_path_XATTR
24089 if test -n "$XATTR"; then
24090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24091 $as_echo "$XATTR" >&6; }
24092 else
24093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24094 $as_echo "no" >&6; }
24095 fi
24096 
24097 
24098   test -n "$XATTR" && break
24099 done
24100 
24101     else
24102       # If it succeeded, then it was overridden by the user. We will use it
24103       # for the tool.
24104 
24105       # First remove it from the list of overridden variables, so we can test
24106       # for unknown variables in the end.
24107       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24108 
24109       # Check if we try to supply an empty value
24110       if test "x$XATTR" = x; then
24111         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
24112 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
24113         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24114 $as_echo_n "checking for XATTR... " >&6; }
24115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24116 $as_echo "disabled" >&6; }
24117       else
24118         # Check if the provided tool contains a complete path.
24119         tool_specified="$XATTR"
24120         tool_basename="${tool_specified##*/}"
24121         if test "x$tool_basename" = "x$tool_specified"; then
24122           # A command without a complete path is provided, search $PATH.
24123           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
24124 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
24125           # Extract the first word of "$tool_basename", so it can be a program name with args.
24126 set dummy $tool_basename; ac_word=$2
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24128 $as_echo_n "checking for $ac_word... " >&6; }
24129 if ${ac_cv_path_XATTR+:} false; then :
24130   $as_echo_n "(cached) " >&6
24131 else
24132   case $XATTR in
24133   [\\/]* | ?:[\\/]*)
24134   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24135   ;;
24136   *)
24137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24138 for as_dir in $PATH
24139 do
24140   IFS=$as_save_IFS
24141   test -z "$as_dir" && as_dir=.
24142     for ac_exec_ext in '' $ac_executable_extensions; do
24143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24144     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24146     break 2
24147   fi
24148 done
24149   done
24150 IFS=$as_save_IFS
24151 
24152   ;;
24153 esac
24154 fi
24155 XATTR=$ac_cv_path_XATTR
24156 if test -n "$XATTR"; then
24157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24158 $as_echo "$XATTR" >&6; }
24159 else
24160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24161 $as_echo "no" >&6; }
24162 fi
24163 
24164 
24165           if test "x$XATTR" = x; then
24166             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24167           fi
24168         else
24169           # Otherwise we believe it is a complete path. Use it as it is.
24170           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
24171 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
24172           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24173 $as_echo_n "checking for XATTR... " >&6; }
24174           if test ! -x "$tool_specified"; then
24175             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24176 $as_echo "not found" >&6; }
24177             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
24178           fi
24179           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24180 $as_echo "$tool_specified" >&6; }
24181         fi
24182       fi
24183     fi
24184 
24185   fi
24186 
24187 
24188 
24189   if test "x$XATTR" = x; then
24190     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
24191   fi
24192 
24193 
24194 
24195 
24196   # Publish this variable in the help.
24197 
24198 
24199   if [ -z "${CODESIGN+x}" ]; then
24200     # The variable is not set by user, try to locate tool using the code snippet
24201     for ac_prog in codesign
24202 do
24203   # Extract the first word of "$ac_prog", so it can be a program name with args.
24204 set dummy $ac_prog; ac_word=$2
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24206 $as_echo_n "checking for $ac_word... " >&6; }
24207 if ${ac_cv_path_CODESIGN+:} false; then :
24208   $as_echo_n "(cached) " >&6
24209 else
24210   case $CODESIGN in
24211   [\\/]* | ?:[\\/]*)
24212   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24213   ;;
24214   *)
24215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24216 for as_dir in $PATH
24217 do
24218   IFS=$as_save_IFS
24219   test -z "$as_dir" && as_dir=.
24220     for ac_exec_ext in '' $ac_executable_extensions; do
24221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24222     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24224     break 2
24225   fi
24226 done
24227   done
24228 IFS=$as_save_IFS
24229 
24230   ;;
24231 esac
24232 fi
24233 CODESIGN=$ac_cv_path_CODESIGN
24234 if test -n "$CODESIGN"; then
24235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24236 $as_echo "$CODESIGN" >&6; }
24237 else
24238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24239 $as_echo "no" >&6; }
24240 fi
24241 
24242 
24243   test -n "$CODESIGN" && break
24244 done
24245 
24246   else
24247     # The variable is set, but is it from the command line or the environment?
24248 
24249     # Try to remove the string !CODESIGN! from our list.
24250     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
24251     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24252       # If it failed, the variable was not from the command line. Ignore it,
24253       # but warn the user (except for BASH, which is always set by the calling BASH).
24254       if test "xCODESIGN" != xBASH; then
24255         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
24256 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
24257       fi
24258       # Try to locate tool using the code snippet
24259       for ac_prog in codesign
24260 do
24261   # Extract the first word of "$ac_prog", so it can be a program name with args.
24262 set dummy $ac_prog; ac_word=$2
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24264 $as_echo_n "checking for $ac_word... " >&6; }
24265 if ${ac_cv_path_CODESIGN+:} false; then :
24266   $as_echo_n "(cached) " >&6
24267 else
24268   case $CODESIGN in
24269   [\\/]* | ?:[\\/]*)
24270   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24271   ;;
24272   *)
24273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24274 for as_dir in $PATH
24275 do
24276   IFS=$as_save_IFS
24277   test -z "$as_dir" && as_dir=.
24278     for ac_exec_ext in '' $ac_executable_extensions; do
24279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24280     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24282     break 2
24283   fi
24284 done
24285   done
24286 IFS=$as_save_IFS
24287 
24288   ;;
24289 esac
24290 fi
24291 CODESIGN=$ac_cv_path_CODESIGN
24292 if test -n "$CODESIGN"; then
24293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24294 $as_echo "$CODESIGN" >&6; }
24295 else
24296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24297 $as_echo "no" >&6; }
24298 fi
24299 
24300 
24301   test -n "$CODESIGN" && break
24302 done
24303 
24304     else
24305       # If it succeeded, then it was overridden by the user. We will use it
24306       # for the tool.
24307 
24308       # First remove it from the list of overridden variables, so we can test
24309       # for unknown variables in the end.
24310       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24311 
24312       # Check if we try to supply an empty value
24313       if test "x$CODESIGN" = x; then
24314         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
24315 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
24316         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24317 $as_echo_n "checking for CODESIGN... " >&6; }
24318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24319 $as_echo "disabled" >&6; }
24320       else
24321         # Check if the provided tool contains a complete path.
24322         tool_specified="$CODESIGN"
24323         tool_basename="${tool_specified##*/}"
24324         if test "x$tool_basename" = "x$tool_specified"; then
24325           # A command without a complete path is provided, search $PATH.
24326           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
24327 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
24328           # Extract the first word of "$tool_basename", so it can be a program name with args.
24329 set dummy $tool_basename; ac_word=$2
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24331 $as_echo_n "checking for $ac_word... " >&6; }
24332 if ${ac_cv_path_CODESIGN+:} false; then :
24333   $as_echo_n "(cached) " >&6
24334 else
24335   case $CODESIGN in
24336   [\\/]* | ?:[\\/]*)
24337   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24338   ;;
24339   *)
24340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24341 for as_dir in $PATH
24342 do
24343   IFS=$as_save_IFS
24344   test -z "$as_dir" && as_dir=.
24345     for ac_exec_ext in '' $ac_executable_extensions; do
24346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24347     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24349     break 2
24350   fi
24351 done
24352   done
24353 IFS=$as_save_IFS
24354 
24355   ;;
24356 esac
24357 fi
24358 CODESIGN=$ac_cv_path_CODESIGN
24359 if test -n "$CODESIGN"; then
24360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24361 $as_echo "$CODESIGN" >&6; }
24362 else
24363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24364 $as_echo "no" >&6; }
24365 fi
24366 
24367 
24368           if test "x$CODESIGN" = x; then
24369             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24370           fi
24371         else
24372           # Otherwise we believe it is a complete path. Use it as it is.
24373           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
24374 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
24375           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24376 $as_echo_n "checking for CODESIGN... " >&6; }
24377           if test ! -x "$tool_specified"; then
24378             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24379 $as_echo "not found" >&6; }
24380             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
24381           fi
24382           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24383 $as_echo "$tool_specified" >&6; }
24384         fi
24385       fi
24386     fi
24387 
24388   fi
24389 
24390 
24391     if test "x$CODESIGN" != "x"; then
24392       # Verify that the openjdk_codesign certificate is present
24393       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
24394 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
24395       $RM codesign-testfile
24396       $TOUCH codesign-testfile
24397       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
24398       $RM codesign-testfile
24399       if test "x$CODESIGN" = x; then
24400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24401 $as_echo "no" >&6; }
24402       else
24403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24404 $as_echo "yes" >&6; }
24405       fi
24406     fi
24407 
24408 
24409 
24410   # Publish this variable in the help.
24411 
24412 
24413   if [ -z "${SETFILE+x}" ]; then
24414     # The variable is not set by user, try to locate tool using the code snippet
24415     for ac_prog in SetFile
24416 do
24417   # Extract the first word of "$ac_prog", so it can be a program name with args.
24418 set dummy $ac_prog; ac_word=$2
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24420 $as_echo_n "checking for $ac_word... " >&6; }
24421 if ${ac_cv_path_SETFILE+:} false; then :
24422   $as_echo_n "(cached) " >&6
24423 else
24424   case $SETFILE in
24425   [\\/]* | ?:[\\/]*)
24426   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24427   ;;
24428   *)
24429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24430 for as_dir in $PATH
24431 do
24432   IFS=$as_save_IFS
24433   test -z "$as_dir" && as_dir=.
24434     for ac_exec_ext in '' $ac_executable_extensions; do
24435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24436     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24438     break 2
24439   fi
24440 done
24441   done
24442 IFS=$as_save_IFS
24443 
24444   ;;
24445 esac
24446 fi
24447 SETFILE=$ac_cv_path_SETFILE
24448 if test -n "$SETFILE"; then
24449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24450 $as_echo "$SETFILE" >&6; }
24451 else
24452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24453 $as_echo "no" >&6; }
24454 fi
24455 
24456 
24457   test -n "$SETFILE" && break
24458 done
24459 
24460   else
24461     # The variable is set, but is it from the command line or the environment?
24462 
24463     # Try to remove the string !SETFILE! from our list.
24464     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
24465     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24466       # If it failed, the variable was not from the command line. Ignore it,
24467       # but warn the user (except for BASH, which is always set by the calling BASH).
24468       if test "xSETFILE" != xBASH; then
24469         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
24470 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
24471       fi
24472       # Try to locate tool using the code snippet
24473       for ac_prog in SetFile
24474 do
24475   # Extract the first word of "$ac_prog", so it can be a program name with args.
24476 set dummy $ac_prog; ac_word=$2
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24478 $as_echo_n "checking for $ac_word... " >&6; }
24479 if ${ac_cv_path_SETFILE+:} false; then :
24480   $as_echo_n "(cached) " >&6
24481 else
24482   case $SETFILE in
24483   [\\/]* | ?:[\\/]*)
24484   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24485   ;;
24486   *)
24487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24488 for as_dir in $PATH
24489 do
24490   IFS=$as_save_IFS
24491   test -z "$as_dir" && as_dir=.
24492     for ac_exec_ext in '' $ac_executable_extensions; do
24493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24494     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24496     break 2
24497   fi
24498 done
24499   done
24500 IFS=$as_save_IFS
24501 
24502   ;;
24503 esac
24504 fi
24505 SETFILE=$ac_cv_path_SETFILE
24506 if test -n "$SETFILE"; then
24507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24508 $as_echo "$SETFILE" >&6; }
24509 else
24510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24511 $as_echo "no" >&6; }
24512 fi
24513 
24514 
24515   test -n "$SETFILE" && break
24516 done
24517 
24518     else
24519       # If it succeeded, then it was overridden by the user. We will use it
24520       # for the tool.
24521 
24522       # First remove it from the list of overridden variables, so we can test
24523       # for unknown variables in the end.
24524       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24525 
24526       # Check if we try to supply an empty value
24527       if test "x$SETFILE" = x; then
24528         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
24529 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
24530         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24531 $as_echo_n "checking for SETFILE... " >&6; }
24532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24533 $as_echo "disabled" >&6; }
24534       else
24535         # Check if the provided tool contains a complete path.
24536         tool_specified="$SETFILE"
24537         tool_basename="${tool_specified##*/}"
24538         if test "x$tool_basename" = "x$tool_specified"; then
24539           # A command without a complete path is provided, search $PATH.
24540           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
24541 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
24542           # Extract the first word of "$tool_basename", so it can be a program name with args.
24543 set dummy $tool_basename; ac_word=$2
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24545 $as_echo_n "checking for $ac_word... " >&6; }
24546 if ${ac_cv_path_SETFILE+:} false; then :
24547   $as_echo_n "(cached) " >&6
24548 else
24549   case $SETFILE in
24550   [\\/]* | ?:[\\/]*)
24551   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24552   ;;
24553   *)
24554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24555 for as_dir in $PATH
24556 do
24557   IFS=$as_save_IFS
24558   test -z "$as_dir" && as_dir=.
24559     for ac_exec_ext in '' $ac_executable_extensions; do
24560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24561     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24563     break 2
24564   fi
24565 done
24566   done
24567 IFS=$as_save_IFS
24568 
24569   ;;
24570 esac
24571 fi
24572 SETFILE=$ac_cv_path_SETFILE
24573 if test -n "$SETFILE"; then
24574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24575 $as_echo "$SETFILE" >&6; }
24576 else
24577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24578 $as_echo "no" >&6; }
24579 fi
24580 
24581 
24582           if test "x$SETFILE" = x; then
24583             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24584           fi
24585         else
24586           # Otherwise we believe it is a complete path. Use it as it is.
24587           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24588 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24589           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24590 $as_echo_n "checking for SETFILE... " >&6; }
24591           if test ! -x "$tool_specified"; then
24592             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24593 $as_echo "not found" >&6; }
24594             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24595           fi
24596           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24597 $as_echo "$tool_specified" >&6; }
24598         fi
24599       fi
24600     fi
24601 
24602   fi
24603 
24604 
24605 
24606   if test "x$SETFILE" = x; then
24607     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24608   fi
24609 
24610 
24611   fi
24612 
24613 
24614   # Check bash version
24615   # Extra [ ] to stop m4 mangling
24616    BASH_VER=`$BASH --version | $SED -n  -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'`
24617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5
24618 $as_echo_n "checking bash version... " >&6; }
24619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5
24620 $as_echo "$BASH_VER" >&6; }
24621 
24622   BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1`
24623   BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2`
24624   if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then
24625     as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5
24626   fi
24627 
24628   # Test if bash supports pipefail.
24629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24630 $as_echo_n "checking if bash supports pipefail... " >&6; }
24631   if ${BASH} -c 'set -o pipefail'; then
24632     BASH_ARGS="$BASH_ARGS -o pipefail"
24633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24634 $as_echo "yes" >&6; }
24635   else
24636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24637 $as_echo "no" >&6; }
24638   fi
24639 
24640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24641 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24642   if ${BASH} -e -c 'true'; then
24643     BASH_ARGS="$BASH_ARGS -e"
24644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24645 $as_echo "yes" >&6; }
24646   else
24647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24648 $as_echo "no" >&6; }
24649   fi
24650 
24651 
24652 
24653 
24654 # Check if pkg-config is available.
24655 
24656 
24657 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24658         if test -n "$ac_tool_prefix"; then
24659   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24660 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24662 $as_echo_n "checking for $ac_word... " >&6; }
24663 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24664   $as_echo_n "(cached) " >&6
24665 else
24666   case $PKG_CONFIG in
24667   [\\/]* | ?:[\\/]*)
24668   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24669   ;;
24670   *)
24671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24672 for as_dir in $PATH
24673 do
24674   IFS=$as_save_IFS
24675   test -z "$as_dir" && as_dir=.
24676     for ac_exec_ext in '' $ac_executable_extensions; do
24677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24678     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24680     break 2
24681   fi
24682 done
24683   done
24684 IFS=$as_save_IFS
24685 
24686   ;;
24687 esac
24688 fi
24689 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24690 if test -n "$PKG_CONFIG"; then
24691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24692 $as_echo "$PKG_CONFIG" >&6; }
24693 else
24694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24695 $as_echo "no" >&6; }
24696 fi
24697 
24698 
24699 fi
24700 if test -z "$ac_cv_path_PKG_CONFIG"; then
24701   ac_pt_PKG_CONFIG=$PKG_CONFIG
24702   # Extract the first word of "pkg-config", so it can be a program name with args.
24703 set dummy pkg-config; ac_word=$2
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24705 $as_echo_n "checking for $ac_word... " >&6; }
24706 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24707   $as_echo_n "(cached) " >&6
24708 else
24709   case $ac_pt_PKG_CONFIG in
24710   [\\/]* | ?:[\\/]*)
24711   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24712   ;;
24713   *)
24714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24715 for as_dir in $PATH
24716 do
24717   IFS=$as_save_IFS
24718   test -z "$as_dir" && as_dir=.
24719     for ac_exec_ext in '' $ac_executable_extensions; do
24720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24721     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24723     break 2
24724   fi
24725 done
24726   done
24727 IFS=$as_save_IFS
24728 
24729   ;;
24730 esac
24731 fi
24732 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24733 if test -n "$ac_pt_PKG_CONFIG"; then
24734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24735 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24736 else
24737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24738 $as_echo "no" >&6; }
24739 fi
24740 
24741   if test "x$ac_pt_PKG_CONFIG" = x; then
24742     PKG_CONFIG=""
24743   else
24744     case $cross_compiling:$ac_tool_warned in
24745 yes:)
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24748 ac_tool_warned=yes ;;
24749 esac
24750     PKG_CONFIG=$ac_pt_PKG_CONFIG
24751   fi
24752 else
24753   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24754 fi
24755 
24756 fi
24757 if test -n "$PKG_CONFIG"; then
24758         _pkg_min_version=0.9.0
24759         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24760 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24761         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24762                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24763 $as_echo "yes" >&6; }
24764         else
24765                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24766 $as_echo "no" >&6; }
24767                 PKG_CONFIG=""
24768         fi
24769 
24770 fi
24771 
24772 # After basic tools have been setup, we can check build os specific details.
24773 
24774   ###############################################################################
24775 
24776   # Note that this is the build platform OS version!
24777 
24778   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24779   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24780   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24781   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24782 
24783 
24784 
24785 
24786 
24787 # Misc basic settings
24788 
24789 
24790 # Check whether --with-default-make-target was given.
24791 if test "${with_default_make_target+set}" = set; then :
24792   withval=$with_default_make_target;
24793 fi
24794 
24795   if test "x$with_default_make_target" = "x" \
24796       || test "x$with_default_make_target" = "xyes"; then
24797     DEFAULT_MAKE_TARGET="exploded-image"
24798   elif test "x$with_default_make_target" = "xno"; then
24799     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24800   else
24801     DEFAULT_MAKE_TARGET="$with_default_make_target"
24802   fi
24803 
24804 
24805 
24806 
24807 ###############################################################################
24808 #
24809 # Determine OpenJDK variants, options and version numbers.
24810 #
24811 ###############################################################################
24812 
24813 # We need build & target for this.
24814 
24815   # Should we build a JDK without a graphical UI?
24816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24817 $as_echo_n "checking headless only... " >&6; }
24818   # Check whether --enable-headless-only was given.
24819 if test "${enable_headless_only+set}" = set; then :
24820   enableval=$enable_headless_only;
24821 fi
24822 
24823 
24824   if test "x$enable_headless_only" = "xyes"; then
24825     ENABLE_HEADLESS_ONLY="true"
24826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24827 $as_echo "yes" >&6; }
24828   elif test "x$enable_headless_only" = "xno"; then
24829     ENABLE_HEADLESS_ONLY="false"
24830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24831 $as_echo "no" >&6; }
24832   elif test "x$enable_headless_only" = "x"; then
24833     ENABLE_HEADLESS_ONLY="false"
24834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24835 $as_echo "no" >&6; }
24836   else
24837     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24838   fi
24839 
24840 
24841 
24842   # Should we build the complete docs, or just a lightweight version?
24843   # Check whether --enable-full-docs was given.
24844 if test "${enable_full_docs+set}" = set; then :
24845   enableval=$enable_full_docs;
24846 fi
24847 
24848 
24849   # Verify dependencies
24850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5
24851 $as_echo_n "checking for graphviz dot... " >&6; }
24852   if test "x$DOT" != "x"; then
24853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24854 $as_echo "yes" >&6; }
24855   else
24856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24857 $as_echo "no, cannot generate full docs" >&6; }
24858     FULL_DOCS_DEP_MISSING=true
24859   fi
24860 
24861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5
24862 $as_echo_n "checking for pandoc... " >&6; }
24863   if test "x$PANDOC" != "x"; then
24864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24865 $as_echo "yes" >&6; }
24866   else
24867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24868 $as_echo "no, cannot generate full docs" >&6; }
24869     FULL_DOCS_DEP_MISSING=true
24870   fi
24871 
24872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5
24873 $as_echo_n "checking full docs... " >&6; }
24874   if test "x$enable_full_docs" = xyes; then
24875     if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then
24876       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
24877 $as_echo "no, missing dependencies" >&6; }
24878 
24879   # Print a helpful message on how to acquire the necessary build dependency.
24880   # dot is the help tag: freetype, cups, alsa etc
24881   MISSING_DEPENDENCY=dot
24882 
24883   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24884     cygwin_help $MISSING_DEPENDENCY
24885   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24886     msys_help $MISSING_DEPENDENCY
24887   else
24888     PKGHANDLER_COMMAND=
24889 
24890     case $PKGHANDLER in
24891       apt-get)
24892         apt_help     $MISSING_DEPENDENCY ;;
24893       yum)
24894         yum_help     $MISSING_DEPENDENCY ;;
24895       brew)
24896         brew_help    $MISSING_DEPENDENCY ;;
24897       port)
24898         port_help    $MISSING_DEPENDENCY ;;
24899       pkgutil)
24900         pkgutil_help $MISSING_DEPENDENCY ;;
24901       pkgadd)
24902         pkgadd_help  $MISSING_DEPENDENCY ;;
24903     esac
24904 
24905     if test "x$PKGHANDLER_COMMAND" != x; then
24906       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24907     fi
24908   fi
24909 
24910       as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5
24911     else
24912       ENABLE_FULL_DOCS=true
24913       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
24914 $as_echo "yes, forced" >&6; }
24915     fi
24916   elif test "x$enable_full_docs" = xno; then
24917     ENABLE_FULL_DOCS=false
24918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
24919 $as_echo "no, forced" >&6; }
24920   elif test "x$enable_full_docs" = x; then
24921     # Check for prerequisites
24922     if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then
24923       ENABLE_FULL_DOCS=false
24924       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
24925 $as_echo "no, missing dependencies" >&6; }
24926     else
24927       ENABLE_FULL_DOCS=true
24928       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5
24929 $as_echo "yes, dependencies present" >&6; }
24930     fi
24931   else
24932     as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5
24933   fi
24934 
24935 
24936 
24937   # Choose cacerts source file
24938 
24939 # Check whether --with-cacerts-file was given.
24940 if test "${with_cacerts_file+set}" = set; then :
24941   withval=$with_cacerts_file;
24942 fi
24943 
24944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacerts file" >&5
24945 $as_echo_n "checking for cacerts file... " >&6; }
24946   if test "x$with_cacerts_file" == x; then
24947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
24948 $as_echo "default" >&6; }
24949   else
24950     CACERTS_FILE=$with_cacerts_file
24951     if test ! -f "$CACERTS_FILE"; then
24952       { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
24953 $as_echo "fail" >&6; }
24954       as_fn_error $? "Specified cacerts file \"$CACERTS_FILE\" does not exist" "$LINENO" 5
24955     fi
24956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACERTS_FILE" >&5
24957 $as_echo "$CACERTS_FILE" >&6; }
24958   fi
24959 
24960 
24961   # Enable or disable unlimited crypto
24962   # Check whether --enable-unlimited-crypto was given.
24963 if test "${enable_unlimited_crypto+set}" = set; then :
24964   enableval=$enable_unlimited_crypto;
24965 else
24966   enable_unlimited_crypto=yes
24967 fi
24968 
24969   if test "x$enable_unlimited_crypto" = "xyes"; then
24970     UNLIMITED_CRYPTO=true
24971   else
24972     UNLIMITED_CRYPTO=false
24973   fi
24974 
24975 
24976   # Should we build the serviceability agent (SA)?
24977   INCLUDE_SA=true
24978   if   [[ " $JVM_VARIANTS " =~ " zero " ]]  ; then
24979     INCLUDE_SA=false
24980   fi
24981   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24982     INCLUDE_SA=false
24983   fi
24984 
24985 
24986   # Compress jars
24987   COMPRESS_JARS=false
24988 
24989 
24990 
24991   # Setup default copyright year. Mostly overridden when building close to a new year.
24992 
24993 # Check whether --with-copyright-year was given.
24994 if test "${with_copyright_year+set}" = set; then :
24995   withval=$with_copyright_year;
24996 fi
24997 
24998   if test "x$with_copyright_year" = xyes; then
24999     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
25000   elif test "x$with_copyright_year" != x; then
25001     COPYRIGHT_YEAR="$with_copyright_year"
25002   else
25003     COPYRIGHT_YEAR=`$DATE +'%Y'`
25004   fi
25005 
25006 
25007 
25008   # Check whether --enable-keep-packaged-modules was given.
25009 if test "${enable_keep_packaged_modules+set}" = set; then :
25010   enableval=$enable_keep_packaged_modules;
25011 fi
25012 
25013 
25014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
25015 $as_echo_n "checking if packaged modules are kept... " >&6; }
25016   if test "x$enable_keep_packaged_modules" = "xyes"; then
25017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25018 $as_echo "yes" >&6; }
25019     JLINK_KEEP_PACKAGED_MODULES=true
25020   elif test "x$enable_keep_packaged_modules" = "xno"; then
25021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25022 $as_echo "no" >&6; }
25023     JLINK_KEEP_PACKAGED_MODULES=false
25024   elif test "x$enable_keep_packaged_modules" = "x"; then
25025     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
25026 $as_echo "yes (default)" >&6; }
25027     JLINK_KEEP_PACKAGED_MODULES=true
25028   else
25029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
25030 $as_echo "error" >&6; }
25031     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
25032   fi
25033 
25034 
25035 
25036 
25037   # Warn user that old version arguments are deprecated.
25038 
25039 
25040 # Check whether --with-milestone was given.
25041 if test "${with_milestone+set}" = set; then :
25042   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
25043 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
25044 fi
25045 
25046 
25047 
25048 
25049 # Check whether --with-update-version was given.
25050 if test "${with_update_version+set}" = set; then :
25051   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
25052 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
25053 fi
25054 
25055 
25056 
25057 
25058 # Check whether --with-user-release-suffix was given.
25059 if test "${with_user_release_suffix+set}" = set; then :
25060   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
25061 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
25062 fi
25063 
25064 
25065 
25066 
25067 # Check whether --with-build-number was given.
25068 if test "${with_build_number+set}" = set; then :
25069   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
25070 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
25071 fi
25072 
25073 
25074 
25075 
25076 # Check whether --with-version-major was given.
25077 if test "${with_version_major+set}" = set; then :
25078   withval=$with_version_major; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-major is deprecated and will be ignored." >&5
25079 $as_echo "$as_me: WARNING: Option --with-version-major is deprecated and will be ignored." >&2;}
25080 fi
25081 
25082 
25083 
25084 
25085 # Check whether --with-version-minor was given.
25086 if test "${with_version_minor+set}" = set; then :
25087   withval=$with_version_minor; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-minor is deprecated and will be ignored." >&5
25088 $as_echo "$as_me: WARNING: Option --with-version-minor is deprecated and will be ignored." >&2;}
25089 fi
25090 
25091 
25092 
25093 
25094 # Check whether --with-version-security was given.
25095 if test "${with_version_security+set}" = set; then :
25096   withval=$with_version_security; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-security is deprecated and will be ignored." >&5
25097 $as_echo "$as_me: WARNING: Option --with-version-security is deprecated and will be ignored." >&2;}
25098 fi
25099 
25100 
25101 
25102   # Source the version numbers file
25103   . $AUTOCONF_DIR/version-numbers
25104 
25105   # Some non-version number information is set in that file
25106 
25107 
25108 
25109 
25110 
25111 
25112 
25113 
25114   # The vendor name, if any
25115 
25116 # Check whether --with-vendor-name was given.
25117 if test "${with_vendor_name+set}" = set; then :
25118   withval=$with_vendor_name;
25119 fi
25120 
25121   if test "x$with_vendor_name" = xyes; then
25122     as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5
25123   elif  ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then
25124     as_fn_error $? "--with--vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5
25125   else
25126     COMPANY_NAME="$with_vendor_name"
25127   fi
25128 
25129 
25130   # Override version from arguments
25131 
25132   # If --with-version-string is set, process it first. It is possible to
25133   # override parts with more specific flags, since these are processed later.
25134 
25135 # Check whether --with-version-string was given.
25136 if test "${with_version_string+set}" = set; then :
25137   withval=$with_version_string;
25138 fi
25139 
25140   if test "x$with_version_string" = xyes; then
25141     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
25142   elif test "x$with_version_string" != x; then
25143     # Additional [] needed to keep m4 from mangling shell constructs.
25144     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
25145       VERSION_FEATURE=${BASH_REMATCH[1]}
25146       VERSION_INTERIM=${BASH_REMATCH[3]}
25147       VERSION_UPDATE=${BASH_REMATCH[5]}
25148       VERSION_PATCH=${BASH_REMATCH[7]}
25149       VERSION_PRE=${BASH_REMATCH[9]}
25150       version_plus_separator=${BASH_REMATCH[11]}
25151       VERSION_BUILD=${BASH_REMATCH[12]}
25152       VERSION_OPT=${BASH_REMATCH[14]}
25153       # Unspecified numerical fields are interpreted as 0.
25154       if test "x$VERSION_INTERIM" = x; then
25155         VERSION_INTERIM=0
25156       fi
25157       if test "x$VERSION_UPDATE" = x; then
25158         VERSION_UPDATE=0
25159       fi
25160       if test "x$VERSION_PATCH" = x; then
25161         VERSION_PATCH=0
25162       fi
25163       if test "x$version_plus_separator" != x \
25164           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
25165         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
25166       fi
25167       # Stop the version part process from setting default values.
25168       # We still allow them to explicitly override though.
25169       NO_DEFAULT_VERSION_PARTS=true
25170     else
25171       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
25172     fi
25173   fi
25174 
25175 
25176 # Check whether --with-version-pre was given.
25177 if test "${with_version_pre+set}" = set; then :
25178   withval=$with_version_pre; with_version_pre_present=true
25179 else
25180   with_version_pre_present=false
25181 fi
25182 
25183 
25184   if test "x$with_version_pre_present" = xtrue; then
25185     if test "x$with_version_pre" = xyes; then
25186       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
25187     elif test "x$with_version_pre" = xno; then
25188       # Interpret --without-* as empty string instead of the literal "no"
25189       VERSION_PRE=
25190     else
25191       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
25192        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
25193       if test "x$VERSION_PRE" != "x$with_version_pre"; then
25194         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
25195 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
25196       fi
25197     fi
25198   else
25199     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25200       # Default is to use "internal" as pre
25201       VERSION_PRE="internal"
25202     fi
25203   fi
25204 
25205 
25206 # Check whether --with-version-opt was given.
25207 if test "${with_version_opt+set}" = set; then :
25208   withval=$with_version_opt; with_version_opt_present=true
25209 else
25210   with_version_opt_present=false
25211 fi
25212 
25213 
25214   if test "x$with_version_opt_present" = xtrue; then
25215     if test "x$with_version_opt" = xyes; then
25216       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
25217     elif test "x$with_version_opt" = xno; then
25218       # Interpret --without-* as empty string instead of the literal "no"
25219       VERSION_OPT=
25220     else
25221       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
25222        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
25223       if test "x$VERSION_OPT" != "x$with_version_opt"; then
25224         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
25225 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
25226       fi
25227     fi
25228   else
25229     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25230       # Default is to calculate a string like this 'adhoc.<username>.<base dir name>'
25231       # Outer [ ] to quote m4.
25232        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
25233       VERSION_OPT="adhoc.$USERNAME.$basedirname"
25234     fi
25235   fi
25236 
25237 
25238 # Check whether --with-version-build was given.
25239 if test "${with_version_build+set}" = set; then :
25240   withval=$with_version_build; with_version_build_present=true
25241 else
25242   with_version_build_present=false
25243 fi
25244 
25245 
25246   if test "x$with_version_build_present" = xtrue; then
25247     if test "x$with_version_build" = xyes; then
25248       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
25249     elif test "x$with_version_build" = xno; then
25250       # Interpret --without-* as empty string instead of the literal "no"
25251       VERSION_BUILD=
25252     elif test "x$with_version_build" = x; then
25253       VERSION_BUILD=
25254     else
25255 
25256   # Additional [] needed to keep m4 from mangling shell constructs.
25257   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25258     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
25259   fi
25260   # Extract the version number without leading zeros.
25261   cleaned_value=${BASH_REMATCH[1]}
25262   if test "x$cleaned_value" = x; then
25263     # Special case for zero
25264     cleaned_value=${BASH_REMATCH[2]}
25265   fi
25266 
25267   if test $cleaned_value -gt 255; then
25268     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
25269   fi
25270   if test "x$cleaned_value" != "x$with_version_build"; then
25271     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
25272 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
25273   fi
25274   VERSION_BUILD=$cleaned_value
25275 
25276     fi
25277   else
25278     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25279       # Default is to not have a build number.
25280       VERSION_BUILD=""
25281       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
25282       VERSION_BUILD=0
25283     fi
25284   fi
25285 
25286 
25287 # Check whether --with-version-feature was given.
25288 if test "${with_version_feature+set}" = set; then :
25289   withval=$with_version_feature; with_version_feature_present=true
25290 else
25291   with_version_feature_present=false
25292 fi
25293 
25294 
25295   if test "x$with_version_feature_present" = xtrue; then
25296     if test "x$with_version_feature" = xyes; then
25297       as_fn_error $? "--with-version-feature must have a value" "$LINENO" 5
25298     else
25299 
25300   # Additional [] needed to keep m4 from mangling shell constructs.
25301   if  ! [[ "$with_version_feature" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25302     as_fn_error $? "\"$with_version_feature\" is not a valid numerical value for VERSION_FEATURE" "$LINENO" 5
25303   fi
25304   # Extract the version number without leading zeros.
25305   cleaned_value=${BASH_REMATCH[1]}
25306   if test "x$cleaned_value" = x; then
25307     # Special case for zero
25308     cleaned_value=${BASH_REMATCH[2]}
25309   fi
25310 
25311   if test $cleaned_value -gt 255; then
25312     as_fn_error $? "VERSION_FEATURE is given as $with_version_feature. This is greater than 255 which is not allowed." "$LINENO" 5
25313   fi
25314   if test "x$cleaned_value" != "x$with_version_feature"; then
25315     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&5
25316 $as_echo "$as_me: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&2;}
25317   fi
25318   VERSION_FEATURE=$cleaned_value
25319 
25320     fi
25321   else
25322     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25323       # Default is to get value from version-numbers
25324       VERSION_FEATURE="$DEFAULT_VERSION_FEATURE"
25325     fi
25326   fi
25327 
25328 
25329 # Check whether --with-version-interim was given.
25330 if test "${with_version_interim+set}" = set; then :
25331   withval=$with_version_interim; with_version_interim_present=true
25332 else
25333   with_version_interim_present=false
25334 fi
25335 
25336 
25337   if test "x$with_version_interim_present" = xtrue; then
25338     if test "x$with_version_interim" = xyes; then
25339       as_fn_error $? "--with-version-interim must have a value" "$LINENO" 5
25340     elif test "x$with_version_interim" = xno; then
25341       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25342       VERSION_INTERIM=0
25343     elif test "x$with_version_interim" = x; then
25344       VERSION_INTERIM=0
25345     else
25346 
25347   # Additional [] needed to keep m4 from mangling shell constructs.
25348   if  ! [[ "$with_version_interim" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25349     as_fn_error $? "\"$with_version_interim\" is not a valid numerical value for VERSION_INTERIM" "$LINENO" 5
25350   fi
25351   # Extract the version number without leading zeros.
25352   cleaned_value=${BASH_REMATCH[1]}
25353   if test "x$cleaned_value" = x; then
25354     # Special case for zero
25355     cleaned_value=${BASH_REMATCH[2]}
25356   fi
25357 
25358   if test $cleaned_value -gt 255; then
25359     as_fn_error $? "VERSION_INTERIM is given as $with_version_interim. This is greater than 255 which is not allowed." "$LINENO" 5
25360   fi
25361   if test "x$cleaned_value" != "x$with_version_interim"; then
25362     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&5
25363 $as_echo "$as_me: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&2;}
25364   fi
25365   VERSION_INTERIM=$cleaned_value
25366 
25367     fi
25368   else
25369     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25370       # Default is 0, if unspecified
25371       VERSION_INTERIM=$DEFAULT_VERSION_INTERIM
25372     fi
25373   fi
25374 
25375 
25376 # Check whether --with-version-update was given.
25377 if test "${with_version_update+set}" = set; then :
25378   withval=$with_version_update; with_version_update_present=true
25379 else
25380   with_version_update_present=false
25381 fi
25382 
25383 
25384   if test "x$with_version_update_present" = xtrue; then
25385     if test "x$with_version_update" = xyes; then
25386       as_fn_error $? "--with-version-update must have a value" "$LINENO" 5
25387     elif test "x$with_version_update" = xno; then
25388       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25389       VERSION_UPDATE=0
25390     elif test "x$with_version_update" = x; then
25391       VERSION_UPDATE=0
25392     else
25393 
25394   # Additional [] needed to keep m4 from mangling shell constructs.
25395   if  ! [[ "$with_version_update" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25396     as_fn_error $? "\"$with_version_update\" is not a valid numerical value for VERSION_UPDATE" "$LINENO" 5
25397   fi
25398   # Extract the version number without leading zeros.
25399   cleaned_value=${BASH_REMATCH[1]}
25400   if test "x$cleaned_value" = x; then
25401     # Special case for zero
25402     cleaned_value=${BASH_REMATCH[2]}
25403   fi
25404 
25405   if test $cleaned_value -gt 255; then
25406     as_fn_error $? "VERSION_UPDATE is given as $with_version_update. This is greater than 255 which is not allowed." "$LINENO" 5
25407   fi
25408   if test "x$cleaned_value" != "x$with_version_update"; then
25409     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&5
25410 $as_echo "$as_me: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&2;}
25411   fi
25412   VERSION_UPDATE=$cleaned_value
25413 
25414     fi
25415   else
25416     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25417       # Default is 0, if unspecified
25418       VERSION_UPDATE=$DEFAULT_VERSION_UPDATE
25419     fi
25420   fi
25421 
25422 
25423 # Check whether --with-version-patch was given.
25424 if test "${with_version_patch+set}" = set; then :
25425   withval=$with_version_patch; with_version_patch_present=true
25426 else
25427   with_version_patch_present=false
25428 fi
25429 
25430 
25431   if test "x$with_version_patch_present" = xtrue; then
25432     if test "x$with_version_patch" = xyes; then
25433       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
25434     elif test "x$with_version_patch" = xno; then
25435       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25436       VERSION_PATCH=0
25437     elif test "x$with_version_patch" = x; then
25438       VERSION_PATCH=0
25439     else
25440 
25441   # Additional [] needed to keep m4 from mangling shell constructs.
25442   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25443     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
25444   fi
25445   # Extract the version number without leading zeros.
25446   cleaned_value=${BASH_REMATCH[1]}
25447   if test "x$cleaned_value" = x; then
25448     # Special case for zero
25449     cleaned_value=${BASH_REMATCH[2]}
25450   fi
25451 
25452   if test $cleaned_value -gt 255; then
25453     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
25454   fi
25455   if test "x$cleaned_value" != "x$with_version_patch"; then
25456     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
25457 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
25458   fi
25459   VERSION_PATCH=$cleaned_value
25460 
25461     fi
25462   else
25463     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25464       # Default is 0, if unspecified
25465       VERSION_PATCH=$DEFAULT_VERSION_PATCH
25466     fi
25467   fi
25468 
25469   # Calculate derived version properties
25470 
25471   # Set VERSION_IS_GA based on if VERSION_PRE has a value
25472   if test "x$VERSION_PRE" = x; then
25473     VERSION_IS_GA=true
25474   else
25475     VERSION_IS_GA=false
25476   fi
25477 
25478   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
25479   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_FEATURE.$VERSION_INTERIM.$VERSION_UPDATE.$VERSION_PATCH
25480 
25481   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
25482   # Strip trailing zeroes from stripped_version_number
25483   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
25484   VERSION_NUMBER=$stripped_version_number
25485 
25486   # The complete version string, with additional build information
25487   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
25488     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25489   else
25490     # If either build or opt is set, we need a + separator
25491     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
25492   fi
25493 
25494   # The short version string, just VERSION_NUMBER and PRE, if present.
25495   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25496 
25497   # The version date
25498 
25499 # Check whether --with-version-date was given.
25500 if test "${with_version_date+set}" = set; then :
25501   withval=$with_version_date;
25502 fi
25503 
25504   if test "x$with_version_date" = xyes; then
25505     as_fn_error $? "--with-version-date must have a value" "$LINENO" 5
25506   elif test "x$with_version_date" != x; then
25507     if  ! [[ $with_version_date =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] ; then
25508       as_fn_error $? "\"$with_version_date\" is not a valid version date" "$LINENO" 5
25509     else
25510       VERSION_DATE="$with_version_date"
25511     fi
25512   else
25513     VERSION_DATE="$DEFAULT_VERSION_DATE"
25514   fi
25515 
25516   # The vendor version string, if any
25517 
25518 # Check whether --with-vendor-version-string was given.
25519 if test "${with_vendor_version_string+set}" = set; then :
25520   withval=$with_vendor_version_string;
25521 fi
25522 
25523   if test "x$with_vendor_version_string" = xyes; then
25524     as_fn_error $? "--with-vendor-version-string must have a value" "$LINENO" 5
25525   elif  ! [[ $with_vendor_version_string =~ ^[[:graph:]]*$ ]] ; then
25526     as_fn_error $? "--with--vendor-version-string contains non-graphical characters: $with_vendor_version_string" "$LINENO" 5
25527   else
25528     VENDOR_VERSION_STRING="$with_vendor_version_string"
25529   fi
25530 
25531   # We could define --with flags for these, if really needed
25532   VERSION_CLASSFILE_MAJOR="$DEFAULT_VERSION_CLASSFILE_MAJOR"
25533   VERSION_CLASSFILE_MINOR="$DEFAULT_VERSION_CLASSFILE_MINOR"